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
Solinari
Newbie


Joined: 05 Aug 2005
Posts: 2

PostPosted: Fri Aug 05, 2005 11:05 pm   

Auto (Medievia)
 
Summary

Auto allows you to automatically sneak, refresh yourself or your mount, open/pick/unlock doors, loot your kills, and survey while flying. It will recast certain spells when you fumble. It will also make you stand automatically when you fall down, re-enter portals automatically when you spin, and perform many other common tasks automatically. Please be aware that AutoSneak can be somewhat spammy. It looks for any possible situation where you might need to sneak. You may frequently try to sneak when you don't need to, but on the upside you'll never forget to sneak when you need to. For this and many more scripts please visit my web site at http://solinari.freeshell.org/.

Commands

adon : enable AutoDoor
adoff : disable AutoDoor
alon : enable AutoLoot
aloff : disable AutoLoot
aron : enable AutoRefresh
aroff : disable AutoRefresh
ason : enable AutoSneak
asoff : disable AutoSneak
asvon : enable AutoSurvey
asvoff : disable AutoSurvey
fs <direction> : cast farsight <direction> or use helm <direction>
tl : cast teleport
tn : cast transport
wr : cast word of recall

Recast List

invisibility
armor
shield
stone skin
protection from evil
protection from good
bless
detect invisibility
sense life
infravision
levitate
quickness
breathe water
sanctuary
fireshield
phantasmal images
manashield

Code:

#CLASS {Auto}
#ALIAS adoff {#var AutoDoor {0};#show {%char(10)%char(10)%ansi(bold,blue)AutoDoor %ansi(bold,red)disabled%ansi(bold,blue).}}
#ALIAS adon {#var AutoDoor {1};#show {%char(10)%char(10)%ansi(bold,blue)AutoDoor %ansi(bold,green)enabled%ansi(bold,blue).}}
#ALIAS aloff {#var AutoLoot {0};#show {%char(10)%char(10)%ansi(bold,blue)AutoLoot %ansi(bold,red)disabled%ansi(bold,blue).}}
#ALIAS alon {#var AutoLoot {1};#show {%char(10)%char(10)%ansi(bold,blue)AutoLoot %ansi(bold,green)enabled%ansi(bold,blue).}}
#ALIAS aroff {#var AutoRefresh {0};#show {%char(10)%char(10)%ansi(bold,blue)AutoRefresh %ansi(bold,red)disabled%ansi(bold,blue).}}
#ALIAS aron {#var AutoRefresh {1};#show {%char(10)%char(10)%ansi(bold,blue)AutoRefresh %ansi(bold,green)enabled%ansi(bold,blue).}}
#ALIAS asoff {#var AutoSneak {0};#show {%char(10)%char(10)%ansi(bold,blue)AutoSneak %ansi(bold,red)disabled%ansi(bold,blue).}}
#ALIAS ason {#var AutoSneak {1};#show {%char(10)%char(10)%ansi(bold,blue)AutoSneak %ansi(bold,green)enabled%ansi(bold,blue).}}
#ALIAS asvon {#var AutoSurvey {1};#show {%char(10)%char(10)%ansi(bold,blue)AutoSurvey %ansi(bold,green)enabled%ansi(bold,blue).}}
#ALIAS asvoff {#var AutoSurvey {0};#show {%char(10)%char(10)%ansi(bold,blue)AutoSurvey %ansi(bold,red)disabled%ansi(bold,blue).}}
#ALIAS d {down;#var LastDirection {down}}
#ALIAS e {east;#var LastDirection {east}}
#ALIAS enter {ent %1;#var LastPortal {%1}}
#ALIAS fs {use helm %1;#var FarsightSet {1};#var LastDirection {%1}}
#ALIAS mount {moun %1;#var LastMount {%1}}
#ALIAS n {north;#var LastDirection {north}}
#ALIAS s {south;#var LastDirection {south}}
#ALIAS tl {c teleport;#if {@AutoSneak=1 && @Mounted=0} {sneak}}
#ALIAS tn {c trans;#if {@AutoSneak=1 && @Mounted=0} {sneak}}
#ALIAS u {up;#var LastDirection {up}}
#ALIAS w {west;#var LastDirection {west}}
#ALIAS wr {c word;#if {@AutoSneak=1 && @Mounted=0} {sneak}}
#VAR AutoDoor {0}
#VAR AutoLoot {0}
#VAR AutoRefresh {0}
#VAR AutoSneak {0}
#VAR AutoSurvey {0}
#VAR FarsightSet {0}
#VAR Flying {0}
#VAR LastDirection {up}
#VAR LastDoor {}
#VAR LastMount {}
#VAR LastPortal {}
#VAR MedLink {0}
#VAR Mounted {0}
#VAR Recast {Armor|Bless|Breathe Water|Detect Invisibility|Fireshield|Infravision|Invisibility|Levitate|Manashield|Phantasmal Images|Protection from Evil|Protection from Good|Quickness|Sanctuary|Sense Life|Shield|Stone Skin}
#TRIGGER {<*hp *m (*)>} {#var Flying {0};#if {%match(%1,Mount) > 0} {#var Mounted {1};#if {@AutoRefresh=1} {#if (%left(%1,%eval(%match(%1,Mount)-1)) < 200) {c mass ref}}} {#var Mounted {0};#if {@AutoRefresh=1} {#if (%left(%1,%eval(%match(%1,mv)-1)) < 200) {c ref}}};#var FarsightSet {0}}
#TRIGGER {<MedLink>} {#var MedLink {1};#var FarsightSet {0}}
#TRIGGER {A divine force takes pity on your wretched existence} {stand;wear all;#if {@AutoSneak=1} {sneak}}
#TRIGGER {appears in the room with a bright flash of white light} {#if {@AutoSneak=1 && @Mounted=0} {sneak}}
#TRIGGER {At the demon's gesture, * suddenly revived} {stand;wear all;#if {@AutoSneak=1} {sneak}}
#TRIGGER {At this moment we have * rooms and * zones} {#var MedLink {0};#if {@AutoSneak=1} {sneak}}
#TRIGGER {becomes panic-stricken and attempts to flee.} {#if {@AutoSneak=1 && @Mounted=0} {sneak}}
#TRIGGER {Creating such a wind causes you to lose your balance.} {stand}
#TRIGGER {Dense gray smoke wells up from *'s feet, enveloping *.} {#if {@AutoSneak=1 && @Mounted=0} {sneak}}
#TRIGGER {disappears.} {#if {@AutoSneak=1 && @Mounted=0} {sneak}}
#TRIGGER {Failing to catch a fish, you retrieve your line from the water.} {use pole}
#TRIGGER {Flying east} {#var Flying {1};#if {@AutoSurvey=1} {survey}}
#TRIGGER {Flying Eastbound} {#var Flying {1};#if {@AutoSurvey=1} {survey}}
#TRIGGER {Flying north} {#var Flying {1};#if {@AutoSurvey=1} {survey}}
#TRIGGER {Flying Northbound} {#var Flying {1};#if {@AutoSurvey=1} {survey}}
#TRIGGER {Flying south} {#var Flying {1};#if {@AutoSurvey=1} {survey}}
#TRIGGER {Flying Southbound} {#var Flying {1};#if {@AutoSurvey=1} {survey}}
#TRIGGER {Flying west} {#var Flying {1};#if {@AutoSurvey=1} {survey}}
#TRIGGER {Flying Westbound} {#var Flying {1};#if {@AutoSurvey=1} {survey}}
#TRIGGER {is DEAD!!} {#if {@AutoSneak=1 && @Mounted=0} {sneak}}
#TRIGGER {It seems to be locked.} {#if {@AutoDoor=1} {unlock @LastDoor @LastDirection}}
#TRIGGER {Poof, You are back to reality.} {#var MedLink {0};#if {@Mounted=0} {#if {@AutoSneak=1} {sneak}} {moun @LastMount}}
#TRIGGER {Reconnecting.} {#if {@AutoSneak=1} {sneak}}
#TRIGGER {The (*) seem to be closed.} {#if {@AutoDoor=1} {#var LastDoor {%1};ope %1 @LastDirection}}
#TRIGGER {The (*) seems to be closed.} {#if {@AutoDoor=1} {#var LastDoor {%1};ope %1 @LastDirection}}
#TRIGGER {The falling stalactite POUNDS you to your knees.} {stand}
#TRIGGER {The strands of red magical fire falling everywhere prevent you from casting.} {#if {@AutoRefresh=1} {aroff}}
#TRIGGER {To the *, *, you see a large house bustling with activity and the sound of music.} {#if {@Flying=1} {#gag}}
#TRIGGER {To the *, *, you see the *. She's heading *. * is *.} {#if {@Flying=1} {#gag}}
#TRIGGER {To the *, *, you see the silhouette of a *.} {#if {@Flying=1} {#gag}}
#TRIGGER {To the *, *, you see the white fleck of a sail.} {#if {@Flying=1} {#gag}}
#TRIGGER {To the *, *, you sense a holy place touched by the gods.} {#if {@Flying=1} {#gag}}
#TRIGGER {Use is normally only for wands and staves.} {#if {@FarsightSet=1} {#gag;c farsight @LastDirection}}
#TRIGGER {You are awarded * experience points for the battle} {#if {@AutoLoot=1} {search corpse;get all corpse;sacrifice corpse}}
#TRIGGER {You are handed * gold and some men take * away.} {#if {@AutoSneak=1 && @Mounted=0} {sneak}}
#TRIGGER {You are not holding or wearing that item!} {#if {@FarsightSet=1} {#gag;c farsight @LastDirection}}
#TRIGGER {You collapse, totally out of breath!} {stand}
#TRIGGER {You do not have the proper key for that.} {#if {@AutoDoor=1} {pick @LastDoor @LastDirection}}
#TRIGGER {You fall down.} {stand}
#TRIGGER {You feel life return to your body} {stand;#if {@AutoSneak=1} {sneak}}
#TRIGGER {You flee in a near-blind panic.} {#if {@AutoSneak=1 && @Mounted=0} {sneak}}
#TRIGGER {You focus your gaze on the crystal. It seems to grow, and surround you...} {#if {@AutoSneak=1 && @Mounted=0} {sneak}}
#TRIGGER {You fumble over the correct inflection used to cast (*).} {#if {%ismember(%1,@Recast)} {c %1}}
#TRIGGER {You have been idle, and are pulled into a void.} {look}
#TRIGGER {You have caught *.} {use pole}
#TRIGGER {You haul your net in and collect your catch.} {use net}
#TRIGGER {You hear the call of the land, far off in the distance} {stand;wear all;#if {@AutoSneak=1} {sneak}}
#TRIGGER {You jump down and dismount *.} {#if {@AutoSneak=1} {sneak}}
#TRIGGER {You pull your net in and abandon your attempt.} {use net}
#TRIGGER {You realize you are already mounted on *.} {dismount;moun @LastMount}
#TRIGGER {You receive * experience points from the battle of * total} {#if {@AutoLoot=1} {search corpse;get all corpse;sacrifice corpse}}
#TRIGGER {You stagger out of the portal, then collapse.} {stand;#if {@Mounted=1} {moun @LastMount};ent @LastPortal}
#TRIGGER {you start following} {#if {@AutoLoot=1} {aloff}}
#TRIGGER {You step out of the shadows.} {hide}
#TRIGGER {You step through a portal, and find yourself back in the world of Medievia.} {#if {@AutoSneak=1 && @Mounted=0} {sneak}}
#TRIGGER {You stop sneaking.} {#if {@AutoSneak=1} {sneak}}
#TRIGGER {You wake up with a splitting headache} {stand;#if {@AutoSneak=1} {sneak}}
#CLASS 0
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