View Full Version : simple kill/repeat script help needed
Elanthil01
03-30-2008, 05:27 AM
Can someone help out here?
I need a simple two or three critter script.
Doesnt need to move or anything, just wait for a creature to show up then attack it, rinse and repeat till dead, search it and go back to waiting for the next one to show up.
Critters im interested in are:
agresh troll scout
agresh troll warrior
dark orc
great boar
An example of how to do this so I can do it myself would be good
thefarmer
03-30-2008, 05:39 AM
waitfor <creature>
Kill
goto start
Actually since all your doing is attacking anyway
start:
put loot
put kill
pause 1
goto start
radamanthys
03-31-2008, 01:24 PM
Target random is your friend. I haven't written a script in a long while, but this might be useful.
again:
loot
put target random
start:
match again dead
match again motionless
match start roundtime
put kill target
matchwait
Typically, I set my keypad "/" key to this- which I never really totally finished- and my keypad "*" key to a macro for loot. I'll finish it someday.
again:
put target random
start:
put prep 702
put channel target
match Corrupt You feel weakened as a blood red haze
match Corrupt As you focus on your magic, your vision swims with a swirling haze of crimson.
match quit But it is dead!
match quit You hear a sound like a weeping child as
match quit motionless
match start You can only channel certain spells for extra power
match start still stunned
match start ...wait
match start Roundtime
match start Warded off
#match froze move
matchwait
Corrupt:
echo Blood Red Haze!
waitfor The blood red haze dissipates from around you.
goto start
Frozed:
echo frozen!
waitfor the leaden
goto start
quit:
pause
put loot
echo
echo looted corpse
echo
match again Obvious
match again Cast at what?
put look
matchwait
exit:
exit
Gibreficul
03-31-2008, 07:33 PM
Lich makes this easy... for the critters you listed....
agresh troll scout
agresh troll warrior
dark orc
great boar
The script would look like:
loop{
while checknpcs("boar","scout","warrior","orc")
multifput("Stance off","attack")
waitrt?
multifput("stance def","loot")
end
}
IN STORMFRONT:
I'd do something like...
START:
matchre KILL /(agresh troll|dark|great)\s(boar|scout|warrior|orc)/i
put look
matchwait
KILL:
put stance off
match loot You swing
put attack
matchwait
loot:
match start You search
match kill not find a valid
put loot
matchwait
(neither are tested, I just tossed em together, the matches on the SF version may need altered.)
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.