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

Development::Bots Forum for bots.

Reply
 
Thread Tools Display Modes
  #1  
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
  #2  
Old 01-16-2010, 12:51 PM
WildcardX
Developer
 
Join Date: Apr 2003
Posts: 589
Default

excellent i'll try this code out now. if there is still a jitter every 6 seconds, then i'ts probably caused by the pos update that is sent in the process() method after the tick timer fires.
__________________
Read my developer notes at my blog.

Quote:
If it's not on IRC, it ain't l33t!
Reply With Quote
Reply

Thread Tools
Display Modes

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 06:16 PM.


 

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