Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bots

Development::Bots Forum for bots.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 01-16-2010, 08:53 AM
Frumph
Fire Beetle
 
Join Date: Jan 2010
Posts: 17
Default

Try this out, it's looking great on my server with just a jitter every 6 seconds:

Code:
@@ -1583,11 +1583,10 @@
 
 	if (tic_timer.Check()) {
 		//6 seconds, or whatever the rule is set to has passed, send this position to everyone to avoid ghosting
-		if(!IsMoving() && !IsEngaged())
-			SendPosUpdate();
-
+//		if(!IsMoving() && !IsEngaged())
+//			SendPosUpdate();
+		
 		SpellProcess();
-
 		BuffProcess();
 
 		if(curfp)
@@ -2068,7 +2067,7 @@
 
 			SetRunAnimSpeed(0);
 			
-			if(IsMoving()) {
+			if (IsMoving()) {
 				SetMoving(false);
 				moved = false;
 				SetHeading(0);
@@ -2395,9 +2394,7 @@
 		}
 
 		if(AImovement_timer->Check()) {
-			if(!IsMoving())
-				SendPosUpdate();
-
+			// if(!IsMoving()) SendPosUpdate();
 			// now the followID: that's what happening as the bots follow their leader.
 			if(GetFollowID()) {
 				Mob* follow = entity_list.GetMob(GetFollowID());
@@ -2419,9 +2416,11 @@
 					else {
 						SetHeading(follow->GetHeading());
 
-						if(moved) {	
+						if (moved) {	
 							SetMoving(false);
-							SendPosUpdate();
+							if (tic_timer.Check()) {
+								SendPosUpdate();
+							}
 						}
 					}
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 09:31 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3