Stuck on editing SEKite

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

LordRed
decaying skeleton
decaying skeleton
Posts: 1
Joined: Tue Mar 09, 2004 3:26 am

Stuck on editing SEKite

Post by LordRed » Tue Mar 09, 2004 3:30 am

Greetings,

I am having trouble with this Edited version of SEKite.mac http://macroquest2.com/phpBB2/viewtopic ... ght=sekite

When I run the mac I will run to camp loc and cast , then I will run to destination A then /face fast it over and over while running so it looks like im turning around over and over, What I would like to do is run to Camp loc , point A , B , C , D cyclling threw.

Here is the Code

Code: Select all

#turbo 90 

Sub Main

  /declare CampAnc global 
  /declare KiteAnchorA global 
  /declare KiteAnchorB global 
  /declare KiteAnchorC global
  /declare KiteAnchorD global

  ||||||||||BEGIN ANCHOR LOCATIONS|||||||||| 
  /varset CampAnc -619.32,-2607.21
  /varset KiteAnchorA -606.15,-2963.18
  /varset KiteAnchorB -485.28,-2963.18
  /varset KiteAnchorC -434.74,-2958.32
  /varset KiteAnchorD -619.32,-2607.21
  |||||||||||END ANCHOR LOCATIONS||||||||||| 

  /call KiteTheMob 
/endmacro 

Sub KiteTheMob
  /echo Kiting $target(name). 
  /press Num_Lock 
  /goto :CampAnchor
  
:CampAnchor 
  /if $target(name)==NULL /call MobDead 
  /if n $distance(@CampAnc)<=10 { 
   /press Num_Lock 
   /goto :CastSnare 
  } 
  /face fast loc @CampAnchor 
  /goto :CampAnchor 

:CastSnare 
  /if $target(name)==NULL /call MobDead 
  /delay 1s 
  /cast "Ensnare" 
  /delay 1s 
  /cast "Ensnare" 
  /delay 1s 
  /cast "Ensnare" 
  /delay 1s 
  /cast "Ensnare" 
  /doevents 
  /delay 3s 
  /press Num_Lock 
  /goto :AnchorA 

:AnchorA 
  /if $target(name)==NULL /call MobDead 
  /if n $distance(@KiteAnchorA)<=10 { 
   /press Num_Lock 
   /goto :CastDot1 
  } 
  /face fast loc @KiteAnchorB
  /goto :AnchorB

:AnchorB 
  /if $target(name)==NULL /call MobDead 
  /if n $distance(@KiteAnchorB)<=10 { 
   /press Num_Lock 
   /goto :CastDot2
  } 
  /face fast loc @KiteAnchorC
  /goto :AnchorB 

:AnchorC 
  /if $target(name)==NULL /call MobDead 
  /if n $distance(@KiteAnchorC)<=10 { 
   /press Num_Lock 
   /goto :CastDot3
  }
  /face fast loc @KiteAnchorD 
  /goto :AnchorC

:AnchorD 
  /if $target(name)==NULL /call MobDead 
  /if n $distance(@KiteAnchorC)<=10 { 
   /press Num_Lock 
   /goto :CastDot4
  } 
  /face fast loc @KiteAnchorC 
  /goto :AnchorD
 
:CastDot1 
  /if $target(name)==NULL /call MobDead 
  /delay 1s 
  /cast "Swarming Death" 
  /delay 1s 
  /cast "Swarming Death" 
  /delay 1s 
  /cast "Swarming Death" 
  /delay 1s 
  /cast "Swarming Death" 
  /doevents 
  /delay 3s 
  /press Num_Lock 
  /goto :TurnAnchorA 

:CastDot2 
  /if $target(name)==NULL /call MobDead 
  /delay 1s 
  /cast "Immolation of Ro" 
  /delay 1s 
  /cast "Immolation of Ro" 
  /delay 1s 
  /cast "Immolation of Ro" 
  /delay 1s 
  /cast "Immolation of Ro" 
  /doevents 
  /delay 3s 
  /press Num_Lock 
  /goto :TurnAnchorB 

:CastDot3 
  /if $target(name)==NULL /call MobDead 
  /delay 1s 
  /cast "Winged Death" 
  /delay 1s 
  /cast "Winged Death" 
  /delay 1s 
  /cast "Winged Death" 
  /delay 1s 
  /cast "Winged Death" 
  /doevents 
  /delay 3s 
  /press Num_Lock 
  /goto :TurnAnchorC

:CastDot4 
  /if $target(name)==NULL /call MobDead 
  /delay 1s 
  /cast "Drones of Doom" 
  /delay 1s 
  /cast "Drones of Doom" 
  /delay 1s 
  /cast "Drones of Doom" 
  /delay 1s 
  /cast "Drones of Doom" 
  /doevents 
  /delay 3s 
  /press Num_Lock 
  /goto :TurnAnchorB

:TurnAnchorA 
  /if $target(name)==NULL /call MobDead 
  /if n $distance(@KiteAnchorB)<=10 { 
   /goto :CastDot1
  } 
  /face fast loc @KiteAnchorB
  /goto :TurnAnchorA

:TurnAnchorB 
  /if $target(name)==NULL /call MobDead 
  /if n $distance(@KiteAnchorD)<=10 { 
   /goto :CastDot2
  } 
  /face fast loc @KiteAnchorD 
  /goto :TurnAnchorB 
/return 

:TurnAnchorC 
  /if $target(name)==NULL /call MobDead 
  /if n $distance(@KiteAnchorC)<=10 { 
   /goto :CastDot3
  } 
  /face fast loc @KiteAnchorC 
  /goto :TurnAnchorC

:TurnAnchorD 
  /if $target(name)==NULL /call MobDead 
  /if n $distance(@KiteAnchorD)<=10 { 
   /goto :CastDot4
  } 
  /face fast loc @KiteAnchorD 
  /goto :TurnAnchorD

Sub MobDead 
  /press up down 
  /goto :RestartAnchor 
  :RestartAnchor 
  /if n $distance(@CampAnc)<=10 { 
   /press up down 
        /sit 
   /endmacro 
  } 
  /face fast loc @CampAnc 
  /press up up 
  /goto :RestartAnchor 
/return 
All Input would be Helpful

LordRed

daerck
a ghoul
a ghoul
Posts: 134
Joined: Mon Jan 12, 2004 8:44 pm

Post by daerck » Tue Mar 09, 2004 5:41 pm

I'm sorry but your code is so borked in so many places...

The first thing that's borked is the :CastSnare part.
After spamming Snare a couple of times, it starts autorunnig again without ever facing the AnchorA.

In the :AnchorA part, it checks ONCE if it is close to the Anchor, and then faces AnchorB and proceeds to the :AnchorB part.

In AnchorB it faces towards AnchorC (?!) and starts looping to check for the distance to AnchorB which will of course not become less since it's running towards AnchorC.

Now, even if you correct all this and assume it would run correctly to Anchor A, and then proceed to the :CastDot1 part, it would stop running, spam the Dot, starting running and proceed to :TurnAnchorA. So far so good. In :TurnAnchorA however it will face AnchorB and if close to AnchorB stop running and go back to :CastDot1. => Endless loop.

Now, at this point I'm pretty tired of jumping through the code and suggest that you either learn how to code and start this from scratch, or just let it be and kite the mobs yourself.

RDPidb
a lesser mummy
a lesser mummy
Posts: 69
Joined: Mon Dec 15, 2003 1:14 am

start over

Post by RDPidb » Wed Mar 10, 2004 10:46 pm

just start over, this code isnt worth using realy, doesn't account for resists or lag or anything at all realy , you WILL die if u are not watching the screen.