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
➜ General
➜ [?] No-Hands Killing Script
[?] No-Hands Killing Script
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2 3
Posted by
| Amoeba
(16 posts) Bio
|
Date
| Reply #15 on Mon 21 Feb 2005 09:09 AM (UTC) |
Message
| I'm not sure what you mean. It's just a carrot. | Top |
|
Posted by
| David Berthiaume
(202 posts) Bio
|
Date
| Reply #16 on Mon 21 Feb 2005 09:11 AM (UTC) |
Message
| Also, When you type text into the mud, does it newline?
Or does it add into your prompt?
I.E.
<prompt> You say "Hello World"
Or:
<prompt>
You say "Hello World"
| Top |
|
Posted by
| David Berthiaume
(202 posts) Bio
|
Date
| Reply #17 on Mon 21 Feb 2005 09:12 AM (UTC) Amended on Mon 21 Feb 2005 09:13 AM (UTC) by David Berthiaume
|
Message
| What I need... Is your exact prompt... What does it look like?
My prompt looks like this:
<100%HP|100%Mana|100%Move> <H>
(STL: Defensive)(Night)
<82%XTL>
You say "This is what my says look like with a new line"
| Top |
|
Posted by
| Amoeba
(16 posts) Bio
|
Date
| Reply #18 on Mon 21 Feb 2005 09:15 AM (UTC) |
Message
| Me
hp
HP: 56/64 Mana: 38/38 Fatigue: 28/45 Exp: 3349
> say this is what mine look like
You say: this is what mine look like
>
| Top |
|
Posted by
| David Berthiaume
(202 posts) Bio
|
Date
| Reply #19 on Mon 21 Feb 2005 09:22 AM (UTC) |
Message
| Ok, you're going to have to adjust the triggers to match what it is you want to match on, the code inside the trigger will be accurate. So keep that in mind...
Gimme the mud address and port, so I can see exactly what it is you are talking about. | Top |
|
Posted by
| David Berthiaume
(202 posts) Bio
|
Date
| Reply #21 on Mon 21 Feb 2005 09:26 AM (UTC) Amended on Mon 21 Feb 2005 09:27 AM (UTC) by David Berthiaume
|
Message
| Well, it appears the mud is down... Ok, no biggie, like I said you will just have to adjust the Triggers. | Top |
|
Posted by
| Amoeba
(16 posts) Bio
|
Date
| Reply #22 on Mon 21 Feb 2005 09:27 AM (UTC) Amended on Mon 21 Feb 2005 09:28 AM (UTC) by Amoeba
|
Message
| Doh
eotl.org:2010
Man, I typed that again as 2012 (in this post) and just had to edit it. I'm having a bad day today. Grr. | Top |
|
Posted by
| David Berthiaume
(202 posts) Bio
|
Date
| Reply #23 on Mon 21 Feb 2005 09:36 AM (UTC) |
Message
| This is the alias to turn the script on and off.
<aliases>
<alias
match="kill script *"
enabled="y"
send_to="12"
sequence="900"
>
<send>if "%1" = "on" then
EnableGroup ("KillScript", True)
Note ("Kill Script ON!!")
Send ("challenge")
else
EnableGroup ("Kill Script", False)
Note ("KillScript OFF!!")
end</send>
</alias>
</aliases>
--------------------------------------------------------------
These are the Triggers that make it work... Like I said before
you will need to adjust what they match on. The Trigger with
your health, and Mana, and Fatigue, needs the 6 wildcards.
I didn't make it a regexp trigger, I'm tired and this wasn't
that difficult to create. I use something similar for hunting
mobs.
<triggers>
<trigger
enabled="y"
group="KillScript"
match="The Intermediate calmly steps onto the mat."
send_to="13"
sequence="100"
>
<send>kill student</send>
</trigger>
</triggers>
<triggers>
<trigger
enabled="y"
group="KillScript"
match="You killed Intermediate!"
send_to="12"
sequence="100"
>
<send>Send ("get all from corpse")
Send ("cleanup")
Send ("rest")
DoAfter (30, "Stand")</send>
</trigger>
</triggers>
<triggers>
<trigger
enabled="y"
group="KillScript"
match="HP: */* Mana: */* Fatigue: */* Exp: *"
name="KillScriptPrompt"
sequence="100"
>
<send>If (("%1" = "%2") and ("%3" = "%4") and ("%5" = "%6") then
Send ("challenge")
else
Send ("rest")
DoAfter (30, "stand")
end</send>
</trigger>
</triggers>
<triggers>
<trigger
enabled="y"
group="KillScript"
match="You clamber to your feet."
sequence="100"
>
<send>EnableTrigger ("KillScriptPrompt, True)</send>
</trigger>
</triggers>
| Top |
|
Posted by
| Amoeba
(16 posts) Bio
|
Date
| Reply #24 on Mon 21 Feb 2005 09:38 AM (UTC) |
Message
| Thank you so kindly!! This makes me a very happy person.
I appreciate it. | Top |
|
Posted by
| David Berthiaume
(202 posts) Bio
|
Date
| Reply #25 on Mon 21 Feb 2005 09:39 AM (UTC) Amended on Mon 21 Feb 2005 09:49 AM (UTC) by David Berthiaume
|
Message
| Ok, this is even easier than I thought.
LOL...
Need to make a few changes then it will work.
| Top |
|
Posted by
| Amoeba
(16 posts) Bio
|
Date
| Reply #26 on Mon 21 Feb 2005 09:46 AM (UTC) |
Message
| Number of errors. Lots of assignment operators where I think you meant to put ==. I fixed those and I get
[string "Alias: "]:2: bad argument #2 to `EnableGroup' (number expected, got nil)
stack traceback:
[C]: in function `EnableGroup'
[string "Alias: "]:2: in main chunk | Top |
|
Posted by
| David Berthiaume
(202 posts) Bio
|
Date
| Reply #27 on Mon 21 Feb 2005 09:51 AM (UTC) |
Message
| yeah, hold on... I'm logged in there as Ryven, let me finish this up, I know there are errors. It would help if I was in the room where this script needs to run. | Top |
|
Posted by
| Amoeba
(16 posts) Bio
|
Date
| Reply #28 on Mon 21 Feb 2005 09:51 AM (UTC) |
Message
| I fixed that issue (some misspellings).
I think I have enough code here to let me write it all up.
I'm chugging away :) | Top |
|
Posted by
| David Berthiaume
(202 posts) Bio
|
Date
| Reply #29 on Mon 21 Feb 2005 10:04 AM (UTC) |
Message
| <triggers>
<trigger
enabled="y"
group="KillScript"
match="HP: */* Mana: */* Fatigue: */* Exp: *"
sequence="100"
>
<send>If (("%1" = "%2") and ("%3" = "%4") and ("%5" = "%6") then
Send ("Stand")
Send ("challenge")
else
Send ("rest")
DoAfter (10, "hp")
end</send>
</trigger>
</triggers>
<triggers>
<trigger
enabled="y"
group="KillScript"
match="You killed Intermediate!"
send_to="12"
sequence="100"
>
<send>Send ("get all from corpse")
Send ("cleanup")
Send ("rest")
DoAfter (10, "hp")</send>
</trigger>
</triggers>
You don't need the stand trigger at all. It's not needed... I misunderstood how the mud worked.
| 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.
76,538 views.
This is page 2, subject is 3 pages long:
1
2 3
It is now over 60 days since the last post. This thread is closed.
Refresh page
top