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
Winslow
Novice


Joined: 17 Feb 2007
Posts: 48

PostPosted: Tue Jul 17, 2007 11:52 pm   

Script for Exile: AutoSneak
 
This script was originally written for mm2k and is here translated for all Exile addits into zScript. Command is "autosneak" which toggles it on and off. It triggers to sneak again after every possible time that sneak turns off automatically.

Code:

#trigger {^Your experience is at its maximum.} {AddCorpse} AutoSneak;#trigger {^You receive (*) experience points..} {AddCorpse} AutoSneak;#alias AddCorpse {#if (@AutoSneak = 1) {#math CorpsesCounted @Corpses+1} {}} AutoSneak;#alias SneakCheck {#if (@{CorpsesCounted} >= 1) {sneak;#var Corpses {0};#var CorpseCount {0};#var CorpsesCounted {0}} {}} AutoSneak;#trigger {<(*) (*) (*) (*)>} {#if (@{AutoSneak} = 1) {SneakCheck} {}} AutoSneak;#alias asn {autosneak};#trigger {^You flee head over heels!} {#if (@AutoSneak = 1) {sneak} {}} AutoSneak;#trigger {^You stop sneaking.} {#if (@AutoSneak = 1) {sneak} {}} AutoSneak;#alias autosneak {#if (@AutoSneak = 1) {#var AutoSneak {0};#show [AutoSneak OFF]} {#var AutoSneak {1};#show [AutoSneak ON]}} AutoSneak;#var AutoSneak {1} "" AutoSneak;#var Corpses {0} "" AutoSneak;#var CorpseCount {0} "" AutoSneak;#var CorpsesCounted {0} "" AutoSneak


Happy mudding!
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