Need help with a macro you are writing? Ask here!
Moderator: MacroQuest Developers
-
omper
- a ghoul

- Posts: 110
- Joined: Sat Dec 06, 2003 10:46 pm
Post
by omper » Sat May 08, 2004 10:42 pm
What i want is for this to continue checking for a spawn untill it finds one..
Code: Select all
| Rangerautopull.mac v 0.1 alpha
| Writen by Omper
#chat tell
#include spellcast.inc
#event TOFAR "Your target is too far"
#Event CANTSEE "see your target"
#Event GainExp "You gain party experience"
#Event LoseExp "You have been slain"
Sub Main
:loop
/doevents
/goto :loop
/return
Sub Event_GainExp
/call GoToStart
/target npc radius 100
/call Cast "ensnare
/delay 30s
/attack on
/echo test
/return
Sub Event_TOFAR
/face nolook fast
/keypress forward hold
/keypress forward
/keypress forward hold
/keypress forward
/keypress forward hold
/keypress forward
/keypress forward hold
/keypress forward
/return
Sub GoToStart
/target Groupmember
/fo
/delay 10s
/autofollow off
/return
Sub Event_CANTSEE
/face fast nolook
/return
Sub Event_LoseExp
/sit
/camp desktop
/return
Thanks for your help
Omper
-
Oid
- a snow griffon

- Posts: 416
- Joined: Thu Oct 17, 2002 3:26 am
-
Contact:
Post
by Oid » Sun May 09, 2004 7:10 am
I really dont want to help on this one but.. you made an effort....
soooooo
Code: Select all
| Rangerautopull.mac v 0.1 alpha
| Writen by Omper
#chat tell
#include spellcast.inc
#event TOFAR "Your target is too far"
#Event CANTSEE "see your target"
#Event GainExp "You gain party experience"
#Event LoseExp "You have been slain"
Sub Main
:loop
/doevents
/goto :loop
/return
Sub Event_GainExp
/call GoToStart
[color=red]
/keypress esc
:targetloop
/target npc radius 100
/if (!${Target.ID}) /goto :targetloop
[/color]
/call Cast "ensnare
/delay 30s
/attack on
/echo test
/return
Sub Event_TOFAR
/face nolook fast
/keypress forward hold
/keypress forward
/keypress forward hold
/keypress forward
/keypress forward hold
/keypress forward
/keypress forward hold
/keypress forward
/return
Sub GoToStart
/target Groupmember
/fo
/delay 10s
/autofollow off
/return
Sub Event_CANTSEE
/face fast nolook
/return
Sub Event_LoseExp
/sit
/camp desktop
/return
edit: you have it targeting a group member, so i had to add another line
Smokey the Lax says only you can prevent reproduction.