Jalain2008-03-08 11:31:10
I don't suppose you could type it up so all I'd need to do is copy, paste and hit enter?
Anisu2008-03-08 11:47:22
normal
#TRIG {(&health)h, (&mana)m, (&ego)e, (&power)p, (&endurance)en, (&willpower)w (&promptstate)}
#TRIG {~| Health :%s(&health)/(&maxhealth)%sMana :%s(&mana)/(&maxmana)%sEgo :%s(&ego)/(&maxego)%s%w%s~|}
ATCP
#regex {Char.Vitals\\12NL:(\\d+)/100 H:(\\d+)/(\\d+) M:(\\d+)/(\\d+) E:(\\d+)/(\\d+) P:(\\d+)/10 N:(\\d+)/(\\d+) W:(\\d+)/(\\d+)} {CurrentHealth=%2;MaxHealth=%3;CurrentMana=%4;MaxMana=%5;CurrentEgo=%6;MaxEgo=%7;CurrentPower=%8} "" {telnet|param=200}
(you must disable mccp and enable atcp in your mud options for this to work)
#TRIG {(&health)h, (&mana)m, (&ego)e, (&power)p, (&endurance)en, (&willpower)w (&promptstate)}
#TRIG {~| Health :%s(&health)/(&maxhealth)%sMana :%s(&mana)/(&maxmana)%sEgo :%s(&ego)/(&maxego)%s%w%s~|}
ATCP
#regex {Char.Vitals\\12NL:(\\d+)/100 H:(\\d+)/(\\d+) M:(\\d+)/(\\d+) E:(\\d+)/(\\d+) P:(\\d+)/10 N:(\\d+)/(\\d+) W:(\\d+)/(\\d+)} {CurrentHealth=%2;MaxHealth=%3;CurrentMana=%4;MaxMana=%5;CurrentEgo=%6;MaxEgo=%7;CurrentPower=%8} "" {telnet|param=200}
(you must disable mccp and enable atcp in your mud options for this to work)
Unknown2008-03-08 11:49:17
To capture any form of your score (note: these triggers will also capture others' scores, if you have the ability to see them):
I use an event for my prompt, so I only need one trigger. If your prompt doesn't have a newline after it like mine, change the {case} to {case|nocr|prompt} before you import it.
You fill in the rest...
CODE
#CLASS "Score" enable
#REGEX {^Â Â Sex\\s+\\: (?:Male|Female)\\s+Race\\s+\\: .+$} {}
#COND {^Â Â Level\\s+\\: (\\d+) \\((\\d+)\\%\\)\\s+Rank\\s+\\: (.+?)$} {
level = %1
tonextlevel = %2
levelname = %3
} {regex|within|param=1}
#COND {^Â Â Health\\s+\\: (\\d+)\\/(\\d+)\\s+Endurance\\s+\\: (\\d+)\\/(\\d+)$} {
health = %1
max_health = %2
endurance = %3
max_endurance = %4
} {regex|within|param=1}
#COND {^Â Â Mana\\s+\\: (\\d+)\\/(\\d+)\\s+Willpower\\s+\\: (\\d+)\\/(\\d+)$} {
mana = %1
max_mana = %2
willpower = %3
max_willpower = %4
} {regex|within|param=1}
#COND {^Â Â Ego\\s+\\: (\\d+)\\/(\\d+)\\s+Reserves\\s+\\: (\\d+)\\%$} {
ego = %1
max_ego = %2
reserves = %3
} {regex|within|param=1}
#COND {^Â Â Karma\\s+\\: (\\d+)\\%\\s+Esteem\\s+\\: (\\d+)\\%$} {
karma = %1
esteem = %2
} {regex|within|param=1}
#COND {^You are ranked (\\d+)\\a\\a in Lusternia\\.$} {
rank = %1
} {regex|within|param=1}
#REGEX {^\\|\\-{66} VITALS\\|$} {}
#COND {^\\| Health \\: (\\d+)\\/(\\d+)\\s+Endurance \\: (\\d+)\\/(\\d+)\\s+Power    \\: \\d+p\\s+\\|$} {
health = %1
max_health = %2
endurance = %3
max_endurance = %4
} {regex|within|param=1}
#COND {^\\| Mana  \\: (\\d+)\\/(\\d+)\\s+Willpower \\: (\\d+)\\/(\\d+)\\s+Reserves \\: (\\d+)\\%\\s+\\|$} {
mana = %1
max_mana = %2
willpower = %3
max_willpower = %4
reserves = %5
} {regex|within|param=1}
#COND {^\\| Ego    \\: (\\d+)\\/(\\d+)\\s+Mindset  \\: \\w+\\s+Esteem  \\: (\\d+)\\%\\s+\\|$} {
ego = %1
max_ego = %2
esteem = %3
} {regex|within|param=1}
#COND {^\\|\\-{67} KARMA\\|$} {} {regex|within|param=1}
#COND {^\\| Karma  \\: (\\d+)\\%\\s+\\|$} {
karma = %1
} {regex|within|param=1}
#COND {^\\|\\-{67} STATS\\|$} {} {regex}
#COND {^\\| Strength    \\:\\s+(\\d+)\\s+Dexterity \\:\\s+(\\d+)\\s+Constitution \\:\\s+(\\d+)\\s+\\|$} {
str = %1
dex = %2
con = %3
} {regex|within|param=1}
#COND {^\\| Intelligence \\:\\s+(\\d+)\\s+Size      \\:\\s+(\\d+)\\s+Charisma    \\:\\s+(\\d+)\\s+\\|$} {
int = %1
size = %2
cha = %3
} {regex|within|param=1}
#COND {^\\|\\-{64} RANKINGS\\|$} {} {regex}
#COND {^\\| Experience \\: \\#(\\d+).+?Level \\: (\\d+) \\(\\s*(\\d+\\.\\d+)\\%\\)\\s+\\|$} {
rank = %1
level = %2
tonextlevel = %3
} {regex|within|param=1}
#REGEX {^\\| Level  \\:\\s+(\\d+) \\(\\s*(\\d+\\.\\d+)\\%\\)\\s+Power\\:\\s+\\d+p \\(\\s*(\\d+)\\%\\)\\s+Karma\\:\\s+(\\d+)\\%\\s+Esteem\\:\\s+(\\d+)\\%\\s+\\|$} {
level = %1
tonextlevel = %2
reserves = %3
karma = %4
esteem = %5
}
#COND {^\\| Health \\:\\s+(\\d+)\\/(\\d+)\\s+Mana \\:\\s+(\\d+)\\/(\\d+)\\s+Ego  \\:\\s+(\\d+)\\/(\\d+).+?\\|$} {
health = %1
max_health = %2
mana = %3
max_mana = %4
ego = %5
max_ego = %6
} {regex|within|param=1}
#CLASS 0
#REGEX {^Â Â Sex\\s+\\: (?:Male|Female)\\s+Race\\s+\\: .+$} {}
#COND {^Â Â Level\\s+\\: (\\d+) \\((\\d+)\\%\\)\\s+Rank\\s+\\: (.+?)$} {
level = %1
tonextlevel = %2
levelname = %3
} {regex|within|param=1}
#COND {^Â Â Health\\s+\\: (\\d+)\\/(\\d+)\\s+Endurance\\s+\\: (\\d+)\\/(\\d+)$} {
health = %1
max_health = %2
endurance = %3
max_endurance = %4
} {regex|within|param=1}
#COND {^Â Â Mana\\s+\\: (\\d+)\\/(\\d+)\\s+Willpower\\s+\\: (\\d+)\\/(\\d+)$} {
mana = %1
max_mana = %2
willpower = %3
max_willpower = %4
} {regex|within|param=1}
#COND {^Â Â Ego\\s+\\: (\\d+)\\/(\\d+)\\s+Reserves\\s+\\: (\\d+)\\%$} {
ego = %1
max_ego = %2
reserves = %3
} {regex|within|param=1}
#COND {^Â Â Karma\\s+\\: (\\d+)\\%\\s+Esteem\\s+\\: (\\d+)\\%$} {
karma = %1
esteem = %2
} {regex|within|param=1}
#COND {^You are ranked (\\d+)\\a\\a in Lusternia\\.$} {
rank = %1
} {regex|within|param=1}
#REGEX {^\\|\\-{66} VITALS\\|$} {}
#COND {^\\| Health \\: (\\d+)\\/(\\d+)\\s+Endurance \\: (\\d+)\\/(\\d+)\\s+Power    \\: \\d+p\\s+\\|$} {
health = %1
max_health = %2
endurance = %3
max_endurance = %4
} {regex|within|param=1}
#COND {^\\| Mana  \\: (\\d+)\\/(\\d+)\\s+Willpower \\: (\\d+)\\/(\\d+)\\s+Reserves \\: (\\d+)\\%\\s+\\|$} {
mana = %1
max_mana = %2
willpower = %3
max_willpower = %4
reserves = %5
} {regex|within|param=1}
#COND {^\\| Ego    \\: (\\d+)\\/(\\d+)\\s+Mindset  \\: \\w+\\s+Esteem  \\: (\\d+)\\%\\s+\\|$} {
ego = %1
max_ego = %2
esteem = %3
} {regex|within|param=1}
#COND {^\\|\\-{67} KARMA\\|$} {} {regex|within|param=1}
#COND {^\\| Karma  \\: (\\d+)\\%\\s+\\|$} {
karma = %1
} {regex|within|param=1}
#COND {^\\|\\-{67} STATS\\|$} {} {regex}
#COND {^\\| Strength    \\:\\s+(\\d+)\\s+Dexterity \\:\\s+(\\d+)\\s+Constitution \\:\\s+(\\d+)\\s+\\|$} {
str = %1
dex = %2
con = %3
} {regex|within|param=1}
#COND {^\\| Intelligence \\:\\s+(\\d+)\\s+Size      \\:\\s+(\\d+)\\s+Charisma    \\:\\s+(\\d+)\\s+\\|$} {
int = %1
size = %2
cha = %3
} {regex|within|param=1}
#COND {^\\|\\-{64} RANKINGS\\|$} {} {regex}
#COND {^\\| Experience \\: \\#(\\d+).+?Level \\: (\\d+) \\(\\s*(\\d+\\.\\d+)\\%\\)\\s+\\|$} {
rank = %1
level = %2
tonextlevel = %3
} {regex|within|param=1}
#REGEX {^\\| Level  \\:\\s+(\\d+) \\(\\s*(\\d+\\.\\d+)\\%\\)\\s+Power\\:\\s+\\d+p \\(\\s*(\\d+)\\%\\)\\s+Karma\\:\\s+(\\d+)\\%\\s+Esteem\\:\\s+(\\d+)\\%\\s+\\|$} {
level = %1
tonextlevel = %2
reserves = %3
karma = %4
esteem = %5
}
#COND {^\\| Health \\:\\s+(\\d+)\\/(\\d+)\\s+Mana \\:\\s+(\\d+)\\/(\\d+)\\s+Ego  \\:\\s+(\\d+)\\/(\\d+).+?\\|$} {
health = %1
max_health = %2
mana = %3
max_mana = %4
ego = %5
max_ego = %6
} {regex|within|param=1}
#CLASS 0
I use an event for my prompt, so I only need one trigger. If your prompt doesn't have a newline after it like mine, change the {case} to {case|nocr|prompt} before you import it.
CODE
#REGEX {^(\\d+)h\\, (\\d+)m\\, (\\d+)e\\, (\\d+)p\\, \\d+en\\, \\d+w (.*?)\\-} {
#RAISE OnPrompt %1 %2 %3 %4 %5
} "" {case}
#EVENT OnPrompt($health, $mana, $ego, $power, $flags) {
health = $health
mana = $mana
ego = $ego
power = $power
#IF (%pos(x, $flags)) {
  balance = 1
} {
  balance = 0
}
#IF (%pos(e, $flags)) {
  equilibrium = 1
} {
  equilibrium = 0
}
}
#RAISE OnPrompt %1 %2 %3 %4 %5
} "" {case}
#EVENT OnPrompt($health, $mana, $ego, $power, $flags) {
health = $health
mana = $mana
ego = $ego
power = $power
#IF (%pos(x, $flags)) {
  balance = 1
} {
  balance = 0
}
#IF (%pos(e, $flags)) {
  equilibrium = 1
} {
  equilibrium = 0
}
}
You fill in the rest...
Jalain2008-03-08 13:06:35
I made mine a bit more simplistic and uploaded it to the Library if anyone wants a nice and simple gauge system.
Jalain2008-03-10 23:29:34
How do I make Cmud do the same thing that a Zmud alias of "target=" would do?
Nevermind.. I worked it out. need to put spaces on both sides of the '='
Nevermind.. I worked it out. need to put spaces on both sides of the '='
Rakor2008-04-10 01:46:17
QUOTE(Kharaen d @ Feb 8 2008, 09:41 AM) 484854
Here's a little 'upgrade' to Anisu's herbalism package. It uses MXP so when you do plants, you'll see "You see some (herb) growing here." You click on that to set the herb, then click on the number left to set the toharv variable, and then on harvest to start harvesting. Currently set so you harvest sparkleberry to 3, earwort to 5, and all other herbs to 10.
EDIT: You may need to put a #T+ herbalism in the (%d) left.$ trigger. (so it looks like)
EDIT: You may need to put a #T+ herbalism in the (%d) left.$ trigger. (so it looks like
Anyone got this to work?
Kharaen2008-10-13 00:02:27
QUOTE(Rakor @ Apr 9 2008, 09:46 PM) 500885
Anyone got this to work?
I combined Anisu's, and my alterations, into one package (I am currently using this package.)
It now gags all harvesting work (but you'll see clan messages, market, et cetera...). It also gags prompt. You can delete that trigger or disable it, it's in the herbalism class (so your prompt will be seen again when you aren't harvesting.) You attempt to inr herb after each time you harvest as well, instead of inr all herb when you finish harvesting.