|
OR-G Newbie
Joined: 30 Oct 2002 Posts: 4
|
Posted: Wed Oct 30, 2002 2:22 am
Help with creating a small kill bot |
I'm fairly new to zmud triggers/scripts. Could someone help me generate a script to heal by sleeping, list the targets in a room, pick a certain target, kill it, then repeat.
I can 'list' everything in a room and it gives a syntax of "name#" item/object. Basically "(*)"%sobject.
I've figured out how to document health into a var.
During fighting there is needed a short pause, to recover after an attack. About 2 seconds. If you try and attack before it, it will say you have to wait.
Same thing happens after you kill the mob, you need to wait about 1-2 seconds to loot corpse.
Any help would be appreciated thanks! |
|
|
|
Drylar Wanderer
Joined: 04 Nov 2001 Posts: 53 Location: USA
|
Posted: Wed Oct 30, 2002 2:07 pm |
Please provide copies of what text is displayed on the mud, and we can help you better. A full bot is alot harder to do than some peeps think. You need to know all sorts of things like string to trigger off of, etc. Here's about as detailed as I can get with what you gave me...
1)If hp drops below a specified amount, trigger it to flee and sleep.
2)When it raises to a good level, trigger it to wake up.
3)Make a list variable that has the short desc's of the mobs you are after, and make it so you do a look, and trigger it to attack when it sees a string in the list.
4)Make it trigger an attack immediately, and then put a 1 sec wait on it, and try again. If the 'please wait' message appears, have that trigger another waitstate and attack.
5)When you see the mob die, make it do another look, again triggering an attack, goto 4
-Drylar |
|
|
|
OR-G Newbie
Joined: 30 Oct 2002 Posts: 4
|
Posted: Wed Oct 30, 2002 6:30 pm |
Yeah, you've got the basic idea. Although there is no need to flee, so that should make it a little simpler.
Health/Mana Format:
871h, 688m
Please Wait message:
You are regaining balance and are unable to move.
The list is already generated by the game:
"Ogre234123" A Giant Ogre
"Knight3213" Queen's Paladin
"hat3213213" A wizards cap
Death:
You have slain A Giant Ogre.
1)If (Current_Hp < Max_Hp) Then (sleep)
{
Wait 3secs
If (Current_Hp == Max_Hp) then (wake)
}
2)look
{
If ("(*)"%sA Giant Ogre) then (#var target %1) else if .. not sure how to get to target others...
else wait 3 secs to loop back to 2 until it finds a target.
}
3)Once it finds a target, kill target, wait 2 secs(or keep typing command until message goes away), kill target, loop until mob dies.
4) if mob dies, wait 2 secs(or keep typing command until message goes away), loot, start loop back at 1
I think to trigger the loop would be an alias. I hope that's enough information? I understand the basics of how it would work, I just can't seem to figure out the syntax for it. |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|