A bot

Posted by TipsdaTurtle on Thu 25 Sep 2003 09:57 PM — 4 posts, 21,910 views.

#0
I am looking for a bot that allows me to kill a said creature, and then moves on through a set route. I also need it to not attack a mob that is already in battle with another character. I was wondering if someone could help me with it. I have absolutely no knowledge of MUSHclient and extremely limited for programing in general. I know bots are looked down upon in most muds so if there could be ways for me to shut the bot off easily i could use it sparingly and when not many people are on and most likely not get caught. Thanks for your time in reading my post.
Russia #1
hi there.
well i can help you with a part that moves him randomly.

Trigger:
match on: ^\[Exits\: (.*)\]$
regular expression - checked
enabled - checked
label: exits
script: subExits

PerlScript:
sub subExits
{
@exits = split(" ", $world->gettriggerinfo ("exits", 101));
$len = scalar(@exits);
$try = @exits[int(rand($len))];
if ($try eq "none") { $world->EnableTrigger("exits", false) }
else {$world->send($try)}
}

works on ROM based muds with such Exits string:
[Exits: north west]
and disables itself on
[Exits: none]

have just checked it on my local server - it works

of course you would like to add triggers for exhausting but at least it's somewhat to start with ;)
#2
Thanks.. How exactly do I import that file into my system?
#3
At this url I found a topic where someone made it so taht during a powerwalk if they ran out of stamina they had the script pause, cast a spell to gvie them more stamina, and unpaus the script. I was wondering if something like that could be altered to inclued three things that pause and then unpause the script.
Pause
1. The sight of a mob of my choice uningaged in combat.
2. My health dropping to a certain point
3. My stamina dropping to a certain point

Unpause
1. The text saying I defeated the mob.
2. A certain set of ticks
3. A certain set of ticks

If someone would help me through redoing the script to include what I need, and how to import it into MUSHClitent I would be much obliged.

http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=2445