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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
lambroger
Newbie


Joined: 19 Jan 2001
Posts: 2
Location: USA

PostPosted: Fri Jan 19, 2001 6:22 am   

LooneyMUD - Auto Kill/Advancement/Hp monitor
 
Here is my script for Auto Kill 1 monster at a time. Hit point monitor and autoadvancement.
I play on LooneyMUD.
The commands ga and gc are aliases for "get all" and "get all from corpse"

I consider this script complete. However, if you have optimization suggestions, well let me know.

-- Roger
------------------------
#CLASS {onekill} {enable}
#ALIAS roundtrip {#t- onekill;s;s;e;e;n;nw;n;enter;advance @raise;out;s;se;s;w;w;n;n;#t+ onekill}
#VAR raise {} {occult.spells.cursing by 100}
#TRIGGER {Your current experience is (%d),} {#var cexp %1;#if (@exp<0) { exp=@cexp} {#no};#math temp (@cexp-@exp);#var exp @cexp;#say {You earn @temp points.};#if (@exp>25000) {roundtrip;#var exp 0;#var cexp 0} {#no}}
#TRIGGER {^* (%w) arrives from the} {#if (@target="") {#var target %lower( %1);kill @target;score brief} {shape @target}}
#TRIGGER {^(%w) arrives from the} {#if (@target="") {#var target %lower( %1);kill @target;score brief} {shape @target}}
#TRIGGER {I can't seem to find someone called '*' right here.} {#var target ""}
#TRIGGER {^You killed * (%w).$} {#var target "";gc;ga}
#TRIGGER {^You killed (%w).$} {#var target "";gc;ga}
#BUTTON 1 {health} {} {} {} {@hp} {} {} {} {} {} {} {} {} {} {} {Gauge|9|0|@maxhp|@maxhp/10} {} "" {Explore|Inset} {} {}
#CLASS 0

#VAR target {}
#VAR hp {869}
#VAR maxhp {880}
#VAR cexp {9281}
#VAR exp {9281}
#VAR temp {889}
#TRIGGER {Suddenly you are standing in a different booth.} {out}
#TRIGGER {Hp: (%d) Gp:*} {#var hp %1}
#TRIGGER {~%-wItcH-~% Admiral Magnificent! becomes involved in deep thought!} {~: sings ~"do wa ditty ditty dum ...~" ~(just like in the movie stripes~).}
#TRIGGER {Hp: (%d)~((%d)~) *} {#var hp %1;#var maxhp %2}


Edited by Tarn- added the mud name to the subject header



Edited by - Tarn on 01/19/2001 11:38:28
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts 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