Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Tips and tricks
➜ A bot
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| TipsdaTurtle
(3 posts) Bio
|
| Date
| Thu 25 Sep 2003 09:57 PM (UTC) |
| Message
| | 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. | | Top |
|
| Posted by
| finnish
Russia (18 posts) Bio
|
| Date
| Reply #1 on Thu 25 Sep 2003 10:58 PM (UTC) |
| Message
| 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 ;) |
she never loved me why should anyone | | Top |
|
| Posted by
| TipsdaTurtle
(3 posts) Bio
|
| Date
| Reply #2 on Fri 26 Sep 2003 12:21 AM (UTC) |
| Message
| | Thanks.. How exactly do I import that file into my system? | | Top |
|
| Posted by
| TipsdaTurtle
(3 posts) Bio
|
| Date
| Reply #3 on Fri 26 Sep 2003 10:05 PM (UTC) |
| Message
| 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 | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
19,885 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top