Winslow Novice
Joined: 17 Feb 2007 Posts: 48
|
Posted: 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! |
|