Interruption when casting after moving . . .

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

a_large_rat01
orc pawn
orc pawn
Posts: 10
Joined: Thu Jan 02, 2003 3:43 am

Interruption when casting after moving . . .

Post by a_large_rat01 » Mon Jan 06, 2003 7:41 am

I have the following problem:

In my macro I want to give a bot a command to cast on a mob. If the mob is out of range the bot should get into casting range and cast the spell.
Ok this is how I have sloved it and it works but my problem is that when the bot gets in range he stops and starts casting he is always interrupted. I guess this is movement lag but not sure.
Please give me some tips how I could make it so that he isn't interrupted all the time.

Thanks,

a_large_rat01 :wink:

Code: Select all

Sub SnareSub 
	/if n $spell("Ensnare",mana)>$char(mana,cur) { 
      /tell $Master Sorry to low on mana to '$p2', Mana: $char(mana,pct), HP: $char(hp,pct) 
	  /return
    } 
    /stand 
    /assist $Master 
    /delay 6 
    /if n $spell("Ensnare",range)<$target(distance) { 
	  /tell $Master %T Out of range
	  /call GoTargetNEW $spell("Ensnare",range) 
	} 
    /tell $Master Ensnaring %T 
	:ReSnare 
    /call cast "Ensnare" 
    /if n $return==4 { 
	  /tell $Master %T Out of range
	  /call GoTargetNEW $spell("Ensnare",range) 
      /doevents 
	  /goto :ReSnare 
	} 
    /tell $Master %T is ensnared, Mana: $char(mana,pct), HP: $char(hp,pct) 
    /target $Master 
/return 

Sub GoTargetNEW
| $p0 is minimum distance needed to cast 
   /if n $p0>0 { 
     /varset v91 $p0
   } else { 
     /varset v91 15
   }
   /stand 
   /face nopredict 
   /varset v90 $target(id) 
   /varset t0 5m 
   /tell $Master OMW to %T 
   :CloserAFN 
      /doevents 
      /if "$target(id)"!="$v90" /goto :EndAFN 
      /if n $target(distance)>$calc($v91-2) /call AutoRun 1 
      /if n $target(distance)<$calc($v91) /goto :EndAFN 
      /face nopredict 
      /doevents 
      /if n $t0==0 /press esc 
   /goto :CloserAFN 

   :EndAFN 
   /call AutoRun 0 
   /tell $Master stopped 
   /doevents 
|   /sit
/return 

Sub AutoRun 
   /if $p0==$v80 /return 
   /varset v80 $p0 
   /if $p0==1 /sendkey down up 
   /if $p0==0 /sendkey up up 
/return 

Zelker
a lesser mummy
a lesser mummy
Posts: 38
Joined: Fri Jan 03, 2003 3:01 pm

Post by Zelker » Mon Jan 06, 2003 9:09 am

Before casting some spells, at least for my caster, I must remain stationary for about 2 seconds before I can cast, after running, without it being interrupted. Make sure you have a long enough delay in the between running and casting. Just my 2 cp.
Z
Last edited by Zelker on Mon Jan 06, 2003 3:38 pm, edited 1 time in total.

Zorg
a lesser mummy
a lesser mummy
Posts: 44
Joined: Fri Oct 18, 2002 7:01 pm

Post by Zorg » Mon Jan 06, 2003 9:25 am

Not MQ specific, but I notice that if I just tap left or right, or duck quickly, I can cast without getting interrupted. I assume that sending the new movement to the server updates my location so I don't have to wait out the lag. Maybe add a /press left before casting if you've got problems with lag.

a_large_rat01
orc pawn
orc pawn
Posts: 10
Joined: Thu Jan 02, 2003 3:43 am

Post by a_large_rat01 » Mon Jan 06, 2003 9:53 am

Thanks will try the /press left

a_large_rat01 :wink:

User avatar
SingleServing
a hill giant
a hill giant
Posts: 195
Joined: Tue Dec 17, 2002 11:00 pm

nonono

Post by SingleServing » Mon Jan 06, 2003 11:23 am

press left bah

two things you can do

add a delay like said

Code: Select all

/delay 2s
my personal favorite or you can

Code: Select all

/sit off
/sit on 
/sit off
this is what I do when i actually place EQ, i sit down and stand up to make sure I am not drifting at all

both work buh bye
[color=DarkBlue]Everything,[/color] [color=DarkBlue][b]is[/b][/color] [color=black]black[/color] [color=DarkBlue]and[/color] [color=white]white[/color][color=DarkBlue], when you zoom out it looks[/color] [color=gray]grey[/color][color=DarkBlue].[/color]