Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
einar
Wanderer


Joined: 06 Nov 2000
Posts: 80
Location: USA

PostPosted: Wed Nov 28, 2001 12:05 am   

Please help debug this
 
Ok, been trying to help a friend make some timers, and they don't really seem to work.
What they're supposed to do is inform him when his protection spell goes up, when it goes down, and time how long it has been going.
I thought I had it working, but It seems that all of the alarms (except for one) seem to delete themselves after i logout, then log back in.
So here is the whole setting file, just so everyone can see EVERYTHING going on in this.

#CLASS {prots}
#VAR venom_blade_timer {459} {_nodef} "prots"
#VAR sylph_blade_timer {473} {_nodef} "prots"
#VAR ia_timer {247} {_nodef} "prots"
#VAR as_timer {248} {_nodef} "prots"
#VAR iw_timer {250} {_nodef} "prots"
#VAR roots_timer {252} {_nodef} "prots"
#VAR wrath_blade_timer {253} {_nodef} "prots"
#VAR sylph_guard_timer {254} {_nodef} "prots"
#VAR venom_guard_timer {243} {_nodef} "prots"
#VAR undine_blade_timer {231} {_nodef} "prots"
#VAR undine_guard_timer {246} {_nodef} "prots"
#TRIGGER {Lostego's nature's blade loses the greenish aura surrounding it.} {#T- venom_blade_alarm;#SHOW %ansi( bold, magenta)Venom Blade: DOWN!} "prots"
#TRIGGER {Lostego's nature's blade loses its enchantment as the sylph spirit returns to its own plane.} {#T- sylph_blade_alarm;#SHOW %ansi( bold, magenta)Sylph Blade: DOWN!} "prots"
#TRIGGER {You lose your trance-like state.} {#T- ia_alarm;#SHOW %ansi( bold, magenta)IA: DOWN!} "prots"
#TRIGGER {You feel your body control return to normal.} {#T- as_alarm;#SHOW %ansi( bold, magenta)AS: DOWN!} "prots"
#TRIGGER {Your inner walls crumble as you lose the focus to maintain them.} {#T- iw_alarm;#SHOW %ansi( bold, magenta)IW: DOWN!} "prots"
#TRIGGER {You lift up your feet, shake yourself out, and regain a normal sense of your surroundings.} {#T- roots_alarm;#SHOW %ansi( bold, magenta)Roots: DOWN!} "prots"
#TRIGGER {Lostego's nature's blade flickers as the blessing leaves it.} {#T- wrath_blade_alarm;#SHOW %ansi( bold, magenta)Wrath Blade: DOWN!} "prots"
#TRIGGER {Lostego's nature's shield loses its enchantment as the sylph spirit returns to its own plane.} {#T- sylph_guard_alarm;#SHOW %ansi( bold, magenta)Sylph Guard: DOWN!} "prots"
#TRIGGER {Lostego's nature's shield loses its absorbing aura.} {#T- venom_guard_alarm;#SHOW %ansi( bold, magenta)Venom Guard: DOWN!} "prots"
#TRIGGER {Lostego's nature's blade loses its enchantment as the undine spirit returns to its own plane.} {#T- undine_blade_alarm;#SHOW %ansi( bold, magenta)Undine Blade: DOWN!} "prots"
#TRIGGER {Lostego's nature's shield loses its enchantment as the undine spirit returns to its own plane.} {#T- undine_guard_alarm;#SHOW %ansi( bold, magenta)Undine Guard: DOWN!} "prots"
#TRIGGER {Lostego's nature's blade glows with a sick greenish aura.} {venom_blade_timer=0;#T+ venom_alarm;#SHOW %ansi( bold, magenta)Venom Blade: UP!} "prots"
#TRIGGER {You summon a Sylph and direct it into your nature's blade!} {sylph_blade_timer=0;#T+ sylph_blade_alarm;#SHOW %ansi( bold, magenta)Sylph Blade: UP!} "prots"
#TRIGGER {You get into a trance-like state and focus all your senses.} {ia_timer=0;#T+ ia_alarm;#SHOW %ansi( bold, magenta)IA: UP!} "prots"
#TRIGGER {You enter an acrobat stance.} {as_timer=0;#T+ as_alarm;#SHOW %ansi( bold, magenta)AS: UP!} "prots"
#TRIGGER {You focus your mind and create inner walls within you.} {iw_timer=0;#T+ iw_alarm;#SHOW %ansi( bold, magenta)IW: UP!} "prots"
#TRIGGER {You stand immobile, drawing power from the Earth!} {roots_timer=0;#T+ roots_alarm;#SHOW %ansi( bold, magenta)Roots: UP!} "prots"
#TRIGGER {You lay your hands over your blade and pray for mother earth's blessing.} {wrath_blade_timer=0;#T+ wrath_blade_alarm;#SHOW %ansi( bold, magenta)Wrath Blade: UP!} "prots"
#TRIGGER {You summon a Sylph and direct it into your nature's shield!} {sylph_guard_timer=0;#T+ sylph_shield_alarm;#SHOW %ansi( bold, magenta)Sylph Guard: UP!} "prots"
#TRIGGER {You kneel down and whisper a silent prayer to the earth and summon a magical protection against poisons into your shield.} {venom_guard_timer=0;#T+ venom_guard_alarm;#SHOW %ansi( bold, magenta)Venom Guard: UP!} "prots"
#TRIGGER {You summon a water spirit and direct it into your nature's blade!} {undine_blade_timer=0;#T+ undine_blade_alarm;#SHOW %ansi( bold, magenta)Undine Blade: UP!} "prots"
#TRIGGER {You summon an Undine and direct it into your nature's shield!} {undine_guard_timer=0;#T+ undine_guard_alarm;#SHOW %ansi( bold, magenta)Undine Guard: UP!} "prots"
#ALARM "undine_blade_alarm" *1 {#ADD undine_blade_timer 1} "prots" {"disable"}
#ALARM "venom_blade_alarm" *1 {#ADD venom_blade_timer 1} "prots" {"disable"}
#ALARM "sylph_blade_alarm" *1 {#ADD sylph_blade_timer 1} "prots" {"disable"}
#ALARM "ia_alarm" *1 {#ADD ia_timer 1} "prots" {"disable"}
#ALARM "as_alarm" *1 {#ADD as_timer 1} "prots" {"disable"}
#ALARM "iw_alarm" *1 {#ADD iw_timer 1} "prots" {"disable"}
#ALARM "roots_alarm" *1 {#ADD roots_timer 1} "prots" {"disable"}
#ALARM "sylph_guard_alarm" *1 {#ADD sylph_guard_timer 1} "prots" {"disable"}
#ALARM "wrath_blade_alarm" *1 {#ADD wrath_blade_timer 1} "prots" {"disable"}
#ALARM "venom_guard_alarm" *1 {#ADD venom_guard_timer 1} "prots" {"disable"}
#ALARM "undine_guard_alarm" *1 {#ADD undine_guard_timer 1} "prots" {"disable"}
#STW {AS: @as_timer;IA: @ia_timer;IW: @iw_timer;Roots: @roots_timer;Wrath Blade: @wrath_blade_timer;Undine Guard: @undine_guard_timer;Sylph Blade: @sylph_blade_timer;Undine Blade: @undine_blade_timer;Venom Guard: @venom_guard_timer;Sylph Guard: @sylph_guard_timer}

PLEASE someone help me get this working.
Thanks


Master, seventh circle of idling
Reply with quote
einar
Wanderer


Joined: 06 Nov 2000
Posts: 80
Location: USA

PostPosted: Thu Nov 29, 2001 5:01 am   
 
PLEASE can someone help me with this.
My friend has been waiting for quite awhile now, and I just can't seem to figure out why the alarms delete themselves.

Master, seventh circle of idling
Reply with quote
iljhar
GURU


Joined: 10 Oct 2000
Posts: 1116
Location: USA

PostPosted: Thu Nov 29, 2001 8:47 am   
 
Try this:


#CLASS {prots}
#STW {AS: @as_timer;IA: @ia_timer;IW: @iw_timer;Roots: @roots_timer;Wrath Blade: @wrath_blade_timer;Undine Guard: @undine_guard_timer;Undine Blade: @undine_blade_timer;Venom Blade: @venom_blade_timer;Venom Guard: @venom_guard_timer;Sylph Blade: @sylph_blade_timer;Sylph Guard: @sylph_guard_timer}
#VAR as_timer {248}
#VAR ia_timer {247}
#VAR iw_timer {250}
#VAR roots_timer {252}
#VAR sylph_blade_timer {473}
#VAR sylph_guard_timer {254}
#VAR undine_blade_timer {231}
#VAR undine_guard_timer {246}
#VAR venom_blade_timer {459}
#VAR venom_guard_timer {243}
#VAR wrath_blade_timer {253}
#TRIGGER {Lostego's nature's blade loses the greenish aura surrounding it.} {#T- venom_blade_alarm;#SHOW %ansi(bold, magenta)Venom Blade: DOWN!}
#TRIGGER {Lostego's nature's blade loses its enchantment as the sylph spirit returns to its own plane.} {#T- sylph_blade_alarm;#SHOW %ansi(bold, magenta)Sylph Blade: DOWN!}
#TRIGGER {You lose your trance-like state.} {#T- ia_alarm;#SHOW %ansi(bold, magenta)IA: DOWN!}
#TRIGGER {You feel your body control return to normal.} {#T- as_alarm;#SHOW %ansi(bold, magenta)AS: DOWN!}
#TRIGGER {Your inner walls crumble as you lose the focus to maintain them.} {#T- iw_alarm;#SHOW %ansi(bold, magenta)IW: DOWN!}
#TRIGGER {You lift up your feet, shake yourself out, and regain a normal sense of your surroundings.} {#T- roots_alarm;#SHOW %ansi(bold, magenta)Roots: DOWN!}
#TRIGGER {Lostego's nature's blade flickers as the blessing leaves it.} {#T- wrath_blade_alarm;#SHOW %ansi(bold, magenta)Wrath Blade: DOWN!}
#TRIGGER {Lostego's nature's shield loses its enchantment as the sylph spirit returns to its own plane.} {#T- sylph_guard_alarm;#SHOW %ansi(bold, magenta)Sylph Guard: DOWN!}
#TRIGGER {Lostego's nature's shield loses its absorbing aura.} {#T- venom_guard_alarm;#SHOW %ansi(bold, magenta)Venom Guard: DOWN!}
#TRIGGER {Lostego's nature's blade loses its enchantment as the undine spirit returns to its own plane.} {#T- undine_blade_alarm;#SHOW %ansi(bold, magenta)Undine Blade: DOWN!}
#TRIGGER {Lostego's nature's shield loses its enchantment as the undine spirit returns to its own plane.} {#T- undine_guard_alarm;#SHOW %ansi(bold, magenta)Undine Guard: DOWN!}
#TRIGGER {Lostego's nature's blade glows with a sick greenish aura.} {venom_blade_timer=0;#T+ venom_blade_alarm;#SHOW %ansi(bold, magenta)Venom Blade: UP!}
#TRIGGER {You summon a Sylph and direct it into your nature's blade!} {sylph_blade_timer=0;#T+ sylph_blade_alarm;#SHOW %ansi(bold, magenta)Sylph Blade: UP!}
#TRIGGER {You get into a trance-like state and focus all your senses.} {ia_timer=0;#T+ ia_alarm;#SHOW %ansi(bold, magenta)IA: UP!}
#TRIGGER {You enter an acrobat stance.} {as_timer=0;#T+ as_alarm;#SHOW %ansi(bold, magenta)AS: UP!}
#TRIGGER {You focus your mind and create inner walls within you.} {iw_timer=0;#T+ iw_alarm;#SHOW %ansi(bold, magenta)IW: UP!}
#TRIGGER {You stand immobile, drawing power from the Earth!} {roots_timer=0;#T+ roots_alarm;#SHOW %ansi(bold, magenta)Roots: UP!}
#TRIGGER {You lay your hands over your blade and pray for mother earth's blessing.} {wrath_blade_timer=0;#T+ wrath_blade_alarm;#SHOW %ansi(bold, magenta)Wrath Blade: UP!}
#TRIGGER {You summon a Sylph and direct it into your nature's shield!} {sylph_guard_timer=0;#T+ sylph_guard_alarm;#SHOW %ansi(bold, magenta)Sylph Guard: UP!}
#TRIGGER {You kneel down and whisper a silent prayer to the earth and summon a magical protection against poisons into your shield.} {venom_guard_timer=0;#T+ venom_guard_alarm;#SHOW %ansi(bold, magenta)Venom Guard: UP!}
#TRIGGER {You summon a water spirit and direct it into your nature's blade!} {undine_blade_timer=0;#T+ undine_blade_alarm;#SHOW %ansi(bold, magenta)Undine Blade: UP!}
#TRIGGER {You summon an Undine and direct it into your nature's shield!} {undine_guard_timer=0;#T+ undine_guard_alarm;#SHOW %ansi(bold, magenta)Undine Guard: UP!}
#CLASS 0


#CLASS {prots|as_alarm}
#ALARM *1 {#ADD as_timer 1}
#CLASS 0

#CLASS {prots|ia_alarm}
#ALARM *1 {#ADD ia_timer 1}
#CLASS 0

#CLASS {prots|iw_alarm}
#ALARM *1 {#ADD iw_timer 1}
#CLASS 0

#CLASS {prots|roots_alarm}
#ALARM *1 {#ADD roots_timer 1}
#CLASS 0

#CLASS {prots|sylph_blade_alarm}
#ALARM *1 {#ADD sylph_blade_timer 1}
#CLASS 0

#CLASS {prots|sylph_guard_alarm}
#ALARM *1 {#ADD sylph_guard_timer 1}
#CLASS 0

#CLASS {prots|undine_blade_alarm}
#ALARM *1 {#ADD undine_blade_timer 1}
#CLASS 0

#CLASS {prots|undine_guard_alarm}
#ALARM *1 {#ADD undine_guard_timer 1}
#CLASS 0

#CLASS {prots|venom_blade_alarm}
#ALARM *1 {#ADD venom_blade_timer 1}
#CLASS 0

#CLASS {prots|venom_guard_alarm}
#ALARM *1 {#ADD venom_guard_timer 1}
#CLASS 0

#CLASS {prots|wrath_blade_alarm}
#ALARM *1 {#ADD wrath_blade_timer 1}
#CLASS 0


You can cut-n-paste the whole thing into a txt file and import it as a script or just cut-n-paste into the command line, but don't forget the line separators at the end of each line if you're gonna cut-n-paste to the command line.

Iljhar
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net