|
gerry_d98 Beginner
Joined: 05 Sep 2008 Posts: 20
|
Posted: Thu Feb 26, 2009 5:29 am
zmud and cmud rescue script |
I had a rescue script i liked and have used for about 9 years with zmud that whem I imported it to cmud got ALL messed up. Now im looking for some help writing one that is useable with both cmud and zmud since i use both clients depending on where i am. can someone help me out? i am completely illiterate with coding languages and its damn confusing to me
what i used to have is an alias that stocked a variable...
when i typed GROUP it would read this output from the Mud:
< 651h/724H 127v/127V Pos: standing >
<> group
< 648h/724H 127v/127V Pos: standing >
<>
Your group consists of ( 8/99):
( Head) 1219/1219 hit, 178/178 move Draz
(Front) 1426/1426 hit, 164/168 move Xanan
(Front) 958/958 hit, 200/200 move Sevali
(Front) 648/724 hit, 127/127 move Antiku
(Front) 1096/1096 hit, 159/159 move Axvab
(Front) 935/935 hit, 201/201 move Majk
(Front) 1263/1263 hit, 143/143 move Keane
(Front) 1028/1134 hit, 150/150 move Kesk
and stock it to @groupmember alias
then when something attacked soemone in the @groupmember aliase would echo to press F12 to rescue (rescue_targets_name)
also there are people in the group that should not be rescued ever, so either an alias to remove a groupmember from the rescue list, or an aliase like DO_rescue and DONT_rescue that could be populated manually and one alias to clear the list after a raid party is over?
when there is battle i used to trigger the rescue off the word ATTACKS, as this is what battle looks like when i have terse mode enabled:
A phantasm dragon attacks Keane. [2 hits]
in this case i would want it to echo to press F12 to rescue keane
Ive tried re-making my old setup and i jstu cant get it to work at all. any help is appriciated pls. i looked throgh the forums and couldnt find what iw as looking for, or at least couldnt understand what iw as reading if i DID find what iw as looking for.
thanks |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Thu Feb 26, 2009 8:26 am |
Wrong forum. This is for FINISHED Scripts only. Please post (or it will be moved, either way) to the correct forum.
Charneus |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Thu Feb 26, 2009 11:24 am |
Post moved.
|
|
|
|
jackwest Novice
Joined: 01 Jan 2009 Posts: 35
|
Posted: Thu Feb 26, 2009 1:25 pm |
simple is best, i find for rescue scripts.
first i trigger on a message when someone joins my group
Code: |
#trigger {^(%w) joins your group.} {
#yesno "add %1 to rescue list?" {
#additem rescuelist %1
#echo %1 has been added to autorescue!
} {}
} |
with little triggers which remove someone from the group, or clears the variable if the group disbands. i've tested this and it stacks fine... as in if everyone joins at once before you get a chance to hit the yes no it doesnt screw things up.
then i have a combat driven trigger
Code: |
#trigger {*{attack|attacks} {strikes|strike} ({@rescuelist}) %d {time|times}, with *!} {rescue %1} |
obviously this conforms to my mud outputs...
if you want to get fancy, disable the rescue trigger when it fires, i use a class simply because it's easy, autorescue on any failed rescue attempts, and renable the class on successful rescue, ready for the next attempt, to prevent spamming the trigger. but personally i let it spam rescue.
also, i believe this code is basic enough that it doesnt care if it's in zmud or cmud
jack. |
|
|
|
|
|
|
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
|
|