Condition Caller needed and I'm Zmud dumb

Scripts and support for your favorite MUD client.
Jenera
Sojourner
Posts: 533
Joined: Sun Jan 28, 2001 6:01 am
Location: Warsaw, Indiana
Contact:

Condition Caller needed and I'm Zmud dumb

Postby Jenera » Fri Jan 27, 2006 2:05 am

Before my old computer blew up, I had a good condition caller that stated the full name of the mob instead of just Mob is pretty hurt! or "Keyword" is pretty hurt.

Can anyone scrounge me up a condition caller that can do this?
Memorable Quotes from TorilMUD Gathering 2006

Sotana sez, 'I'll take it dirty.'
Teflor sez, 'Bobo, show me on the doll where the barbarian touched you.'
Duna sez, 'Is there anything else that needs to go in my backend?'
Pril sez, 'I'm too pretty to go to jail.'
Boboloppe sez, 'The only reason I joined Imphras was because of Sotana's ass.'
Ambar
Sojourner
Posts: 2872
Joined: Tue Jul 02, 2002 5:01 am
Location: Our House in Va.
Contact:

Postby Ambar » Fri Jan 27, 2006 6:24 am

#CLASS {nasty} {disable}
#TRIGGER {E: (*) EC: nasty wounds (*)}{gsay %1 is at nasty wounds!!!;#t- nasty;#t+ ph;#t+ awf}
#CLASS 0

#CLASS {ph} {disable}
#TRIGGER {E: (*) EC: pretty hurt (*)}{gsay %1 is pretty hurt!!!;#t- ph;#t+ nasty;#t+ awf}
#CLASS 0

#CLASS {awf} {disable}
#TRIGGER {E: (*) EC: awful (*)}{gsay %1 is gonna die soon!;#t+ ph;#t+ nasty;#t- awf}
#CLASS 0


Copy each area into a new class, and put it on a button to enable/disable at will for spam purposes :)
"When a child is born, so is a grandmother."

-Italian Proverb
Yasden
Sojourner
Posts: 1597
Joined: Sat Feb 03, 2001 6:01 am
Location: Lake Stevens, WA, USA

Postby Yasden » Fri Jan 27, 2006 9:11 am

Copy/paste this into a .txt file, and import it (ascii). Feel free to modify the gsay messages as you wish. "ccon" turns the script on, "ccoff" turns it off.

Code: Select all

#ALIAS ccon {#say Condition Caller On!;#t+ ConditionTrigs}
#ALIAS ccoff {#say Condition Caller Off!;#t- ConditionTrigs}

#CLASS {ConditionTrigs}
#TRIGGER {^You receive your share of experience.} {#t+ NastyWounds;#t+ PrettyHurt;#t+ Awful}
#CLASS 0

#CLASS {ConditionTrigs|NastyWounds}
#TRIGGER {^* E: %1 EC: nasty wounds >} {gsay %1 is at nasty wounds!;#t- NastyWounds;#t+ PrettyHurt;#t+ Awful}
#CLASS 0

#CLASS {ConditionTrigs|PrettyHurt}
#TRIGGER {^* E: %1 EC: pretty hurt >} {gsay %1 is pretty hurt!;#t- PrettyHurt;#t+ Awful;#t+ NastyWounds}
#CLASS 0

#CLASS {ConditionTrigs|Awful}
#TRIGGER {^* E: %1 EC: awful >} {gsay %1 is awful!; #t- Awful; #t+ PrettyHurt; #t+ NastyWounds}
#CLASS 0
Last edited by Yasden on Sat Jan 28, 2006 6:47 am, edited 1 time in total.
Support Your Addiction! Vote for TorilMUD Today!

Top Mud Sites: http://www.topmudsites.com/cgi-bin/topmuds/rankem.cgi?id=shev

Why Nerox is jealous of me:

Nerox tells you 'man this thing is kicking my ass and i have blisters!'
Nerox tells you 'ok attempting it again put tape on my fingers for easier sliding'
Lilira
Sojourner
Posts: 1438
Joined: Thu Aug 28, 2003 3:53 pm

Postby Lilira » Fri Jan 27, 2006 1:25 pm

Hmmm...

What am I doing wrong Yas?

Everything imported over, and is enabled, but its not reporting.

Lil
Yasden
Sojourner
Posts: 1597
Joined: Sat Feb 03, 2001 6:01 am
Location: Lake Stevens, WA, USA

Postby Yasden » Fri Jan 27, 2006 6:35 pm

Silly question, but do you have enemy/enemycond on your display?

If that's not it, make sure the folders are set as follows:

ConditionTrigs - enabled
NastyWounds - enabled
PrettyHurt - disabled
Awful - disabled

"ccon" will set the ConditionTrigs folder to enabled.
"ccoff" will set the ConditionTrigs folder to disabled.

As a general rule of thumb when copying ANY script into .txt, make sure you MAXIMIZE the window before pasting, that way unnecessary line breaks generated by a smaller window don't carry over into zMUD. Zugg either hasn't figured out how to make import read this yet or is oblivious to it (more likely the former than the latter).

This could also be the reason why it's not working. If you do try this, make sure you DELETE THE OLD CONDITIONTRIGS FOLDER FIRST. The aliases can stay, they'll just be overwritten since they're short enough and will be duplicate copies.
Support Your Addiction! Vote for TorilMUD Today!



Top Mud Sites: http://www.topmudsites.com/cgi-bin/topmuds/rankem.cgi?id=shev



Why Nerox is jealous of me:



Nerox tells you 'man this thing is kicking my ass and i have blisters!'

Nerox tells you 'ok attempting it again put tape on my fingers for easier sliding'
Glorishan
Sojourner
Posts: 456
Joined: Thu Feb 15, 2001 6:01 am
Location: Minneapolis, MN

Postby Glorishan » Sat Jan 28, 2006 1:06 am

Delete the blank lines, that should take care of the problem.
Touk says 'ac > glorishan > mr > touk > hps'
Siamorphe OOC: 'If AFKing is the devil, then Corth is the Antichrist and Glorishan is the False Prophet who supports him.'
Referring to the guild on 8/28/06: Oghma responds to your petition with 'your leadership team averages 280 days MIA :('
Yasden
Sojourner
Posts: 1597
Joined: Sat Feb 03, 2001 6:01 am
Location: Lake Stevens, WA, USA

Postby Yasden » Sat Jan 28, 2006 5:13 am

Blank lines have nothing to do with a script's function.

I insert blank lines into my scripts for readability. My rescue script posted has blank lines and it imports just fine.
Support Your Addiction! Vote for TorilMUD Today!



Top Mud Sites: http://www.topmudsites.com/cgi-bin/topmuds/rankem.cgi?id=shev



Why Nerox is jealous of me:



Nerox tells you 'man this thing is kicking my ass and i have blisters!'

Nerox tells you 'ok attempting it again put tape on my fingers for easier sliding'
Yasden
Sojourner
Posts: 1597
Joined: Sat Feb 03, 2001 6:01 am
Location: Lake Stevens, WA, USA

Postby Yasden » Sat Jan 28, 2006 6:49 am

I tweaked that script a tiny bit, took out the 2 {disable} references. See if that works. You'll have to delete the original folder.
Support Your Addiction! Vote for TorilMUD Today!



Top Mud Sites: http://www.topmudsites.com/cgi-bin/topmuds/rankem.cgi?id=shev



Why Nerox is jealous of me:



Nerox tells you 'man this thing is kicking my ass and i have blisters!'

Nerox tells you 'ok attempting it again put tape on my fingers for easier sliding'
Ambar
Sojourner
Posts: 2872
Joined: Tue Jul 02, 2002 5:01 am
Location: Our House in Va.
Contact:

Postby Ambar » Sat Jan 28, 2006 12:38 pm

wow just copy mine :P they friggin work with no tweakings!


K I S S
"When a child is born, so is a grandmother."



-Italian Proverb
Glorishan
Sojourner
Posts: 456
Joined: Thu Feb 15, 2001 6:01 am
Location: Minneapolis, MN

Postby Glorishan » Sat Jan 28, 2006 6:54 pm

Yasden wrote:Blank lines have nothing to do with a script's function.

I insert blank lines into my scripts for readability. My rescue script posted has blank lines and it imports just fine.


Some versions of zMUD don't handle blank lines very well, and rather than importing them, it sends it as input to the MUD.
Touk says 'ac > glorishan > mr > touk > hps'

Siamorphe OOC: 'If AFKing is the devil, then Corth is the Antichrist and Glorishan is the False Prophet who supports him.'

Referring to the guild on 8/28/06: Oghma responds to your petition with 'your leadership team averages 280 days MIA :('
Disoputlip
Sojourner
Posts: 956
Joined: Thu Feb 21, 2002 6:01 am
Location: Copenhagen

Postby Disoputlip » Sun Jan 29, 2006 1:51 pm

And the short version:

Code: Select all

#CLASS {cond}
#TRIGGER {E: (%w) EC: ({nasty wounds|pretty hurt|awful}) P:} {#If (@cond != "%2") {@cond = %2;gsay %1 - @cond}}
#CLASS 0
Last edited by Disoputlip on Mon Oct 02, 2006 10:36 am, edited 1 time in total.
Glorishan
Sojourner
Posts: 456
Joined: Thu Feb 15, 2001 6:01 am
Location: Minneapolis, MN

Postby Glorishan » Mon Jan 30, 2006 2:28 pm

n/m
Touk says 'ac > glorishan > mr > touk > hps'

Siamorphe OOC: 'If AFKing is the devil, then Corth is the Antichrist and Glorishan is the False Prophet who supports him.'

Referring to the guild on 8/28/06: Oghma responds to your petition with 'your leadership team averages 280 days MIA :('
Dalar
Sojourner
Posts: 4905
Joined: Sun Feb 25, 2001 6:01 am

Postby Dalar » Mon Jan 30, 2006 6:40 pm

#trig {Lyria tells you '%1'} {#gag;%1}
It will be fixed in Toril 2.0.
Aremat group-says 'tanks i highly suggest investing 20 silver in training weapons from cm to cut down on the losing scales to shield'
Lilira
Sojourner
Posts: 1438
Joined: Thu Aug 28, 2003 3:53 pm

Postby Lilira » Thu Feb 02, 2006 2:32 pm

Yasden wrote:Silly question, but do you have enemy/enemycond on your display?

If that's not it, make sure the folders are set as follows:

ConditionTrigs - enabled
NastyWounds - enabled
PrettyHurt - disabled
Awful - disabled

"ccon" will set the ConditionTrigs folder to enabled.
"ccoff" will set the ConditionTrigs folder to disabled.

As a general rule of thumb when copying ANY script into .txt, make sure you MAXIMIZE the window before pasting, that way unnecessary line breaks generated by a smaller window don't carry over into zMUD. Zugg either hasn't figured out how to make import read this yet or is oblivious to it (more likely the former than the latter).

This could also be the reason why it's not working. If you do try this, make sure you DELETE THE OLD CONDITIONTRIGS FOLDER FIRST. The aliases can stay, they'll just be overwritten since they're short enough and will be duplicate copies.


Actually I managed to figure it out.

I have display position up. *bonk me* Fixed it! It works! Thanks!
Disoputlip
Sojourner
Posts: 956
Joined: Thu Feb 21, 2002 6:01 am
Location: Copenhagen

Postby Disoputlip » Sun Mar 05, 2006 10:14 pm

Just saw a condition trigger go nuts, and I think the condition callers here sometimes can give a wrong line.

Here is workaround:

A trigger a. la.
E: (*) EC: nasty wounds (*)}{

then the * is a wildcard that means anything. if know something specific about the piece of text such as its 10 chars long etc. then you can define that instead of *. E: is always a word, thats defined %w. So trigger can become

E: (%w) EC: nasty wounds (*)}{

I think that will make trigger better for some.
Ambar
Sojourner
Posts: 2872
Joined: Tue Jul 02, 2002 5:01 am
Location: Our House in Va.
Contact:

Postby Ambar » Sun Mar 05, 2006 11:45 pm

condition callers go wrong simply because people dont know to toggle them on and off

mine toggles on and off (as im sure targsk's does).. seen many people recently use it with no problem

why overdo something thats so simple :P

if I can do it anyone can .. im truly trigger ignorant
"When a child is born, so is a grandmother."



-Italian Proverb
Anonymous

Postby Anonymous » Mon Oct 02, 2006 1:46 am

i made caller that works perfectly though ive had troubles importing txt files so i have to input my scripts manually so heres the instructions:

create new class folder named (example):conditioncall
inside of that folder create 3 more folders named awful, prettyhurt, nastywounds. do NOT put spaces in ive found that spaces like to cause trouble in some cases. in awful create new trigger enter the pattern:

E: %1 EC: awful

as the value put in:

gsay %1 is awful;#t- awful;#t+ prettyhurt;#t+ nastywounds

your awful trigger is done

for prettyhurt enter as pattern:

E: %1 EC: pretty hurt

as the value put in:

gsay %1 is pretty hurt;#t- prettyhurt;#t+ nastywounds;#t+ awful

and the pretty hurt trigger is done

then for your nastywounds pattern:

E: %1 EC: nasty wounds

as the value put:

gsay %1 is looking nasty;#t- nastywounds;#t+ awful;#t+ prettyhurt

make sure the folder conditioncall is enabled and make sure all 3 of the subfolders are enabled. then in the conditioncall folder not in the subfolders make a trigger:

pattern: You recieve your share of experience.

value: #t+ awful;#t+ prettyhurt;#t+ nastywounds and if it doesnt work send me pm and we will sort it out and the messages that you gsay can be changed but dont remove the %1 or they dont say the mob name it will just say the message anyone can use this that wants to and by the way it works for zmud V 7.21 if you have an erlier version it might not be compatible
Disoputlip
Sojourner
Posts: 956
Joined: Thu Feb 21, 2002 6:01 am
Location: Copenhagen

Postby Disoputlip » Mon Oct 02, 2006 10:55 am

Changed my trigger a little. It's is a full cond caller even though it doesn't take up more space than it does.



Code: Select all

#CLASS {cond}
#VAR cond {}
#TRIGGER {E: (%w) EC: ({nasty wounds|pretty hurt|awful}) P:} {
  #If (@cond != "%2") {
    #VAR cond "%2" {_nodef} {cond}
    gsay %1 - @cond
    }
  } "" {nocr|prompt}
#CLASS 0
#AL condon {#t+ cond;#echo cond caller on}
#AL condoff {#t- cond;#echo cond caller off}
Ambar
Sojourner
Posts: 2872
Joined: Tue Jul 02, 2002 5:01 am
Location: Our House in Va.
Contact:

Postby Ambar » Tue Oct 03, 2006 2:26 am

buttons ftw
"When a child is born, so is a grandmother."



-Italian Proverb
Gormal
Sojourner
Posts: 3917
Joined: Tue Feb 13, 2001 6:01 am
Location: A Whale's Vagina
Contact:

Postby Gormal » Wed Dec 27, 2006 2:06 pm

I added an asterisk before the > in each of yasden's triggers and it works with display position on. I like that display you fag!

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 4 guests