ZMud Scripts
Posted: Tue Apr 20, 2010 9:15 am
here are some scripts i have writen. some edited from others and some transfered off wotmud
counters:
#CLASS {Skewer Counter}
#VAR missskewer {0}
#VAR landskewer {0}
#VAR totalskewer {0}
#VAR skewerpercentage {0}
#TRIGGER {You SKEWER %1, who doesn't get the opportunity to see %2 body get torn in half.} {
#MATH landskewer @landskewer+1
#math totalskewer @landskewer+@missskewer
#math skewerpercentage (@landskewer*100 / @totalskewer)
#Echo This session you've landed @landskewer out of @totalskewer skewers (@skewerpercentage~% landed)
}
#TRIGGER {You SKEWER %1 right through the middle!} {
#MATH landskewer @landskewer+1
#math totalskewer @landskewer+@missskewer
#math skewerpercentage (@landskewer*100 / @totalskewer)
#Echo This session you've landed @landskewer out of @totalskewer skewers (@skewerpercentage~% landed)
}
#TRIGGER {You try to skewer %1, and stumble as %2 steps aside.} {
#math missskewer @missskewer+1
#math totalskewer @landskewer+@missskewer
#math skewerpercentage (@landskewer*100 / @totalskewer)
#Echo This session you've missed @missskewer out of @totalskewer skewers (@skewerpercentage~% landed)
}
#CLASS 0
#CLASS {Stab Counter}
#VAR missstab {0}
#VAR landstab {0}
#VAR totalstab {0}
#VAR stabpercentage {0}
#TRIGGER {A %1 makes a strange sound but is suddenly very silent as you place a %2 in %3 back.} {
#MATH landstab @landstab+1
#math totalstab @landstab+@missstab
#math stabpercentage (@landstab*100 / @totalstab)
#Echo This session you've landed @landstab out of @totalstab stabs (@stabpercentage~% landed)
}
#TRIGGER {A %1 makes a strange sound as you place a %2 in %3 back!} {
#MATH landstab @landstab+1
#math totalstab @landstab+@missstab
#math stabpercentage (@landstab*100 / @totalstab)
#Echo This session you've landed @landstab out of @totalstab stabs (@stabpercentage~% landed)
}
#TRIGGER {A %1 notices your attempt to backstab him!} {
#math missstab @missstab+1
#math totalstab @landstab+@missstab
#math stabpercentage (@landstab*100 / @totalstab)
#Echo This session you've missed @missstab out of @totalstab stabs (@stabpercentage~% landed)
}
#CLASS 0
#CLASS {Charge Counter}
#VAR misscharge {0}
#VAR landcharge {0}
#VAR totalcharge {0}
#VAR chargepercentage {0}
#TRIGGER {You CHARGE %1, who doesn't get the opportunity to see its body get torn in half.} {
#MATH landcharge @landcharge+1
#math totalcharge @landcharge+@misscharge
#math chargepercentage (@landcharge*100 / @totalcharge)
#Echo This session you've landed @landcharge out of @totalcharge charges (@chargepercentage~% landed)
}
#TRIGGER {You CHARGE %1 right through the middle!} {
#MATH landcharge @landcharge+1
#math totalcharge @landcharge+@misscharge
#math chargepercentage (@landcharge*100 / @totalcharge)
#Echo This session you've landed @landcharge out of @totalcharge charges (@chargepercentage~% landed)
}
#TRIGGER {You charge at a %1, and stumble as he steps aside.} {
#math misscharge @misscharge+1
#math totalcharge @landcharge+@misscharge
#math chargepercentage (@landcharge*100 / @totalcharge)
#Echo This session you've missed @misscharge out of @totalcharge charges (@chargepercentage~% landed)
}
#CLASS 0
#CLASS {Bash Counter}
#VAR missbash {0}
#VAR landbash {0}
#VAR totalbash {0}
#VAR bashpercentage {0}
#TRIGGER {Your bash at %1 sprawling!} {
#MATH landbash @landbash+1
#math totalbash @landbash+@missbash
#math bashpercentage (@landbash*100 / @totalbash)
#Echo This session you've landed @landbash out of @totalbash bashes (@bashpercentage~% landed)
}
#TRIGGER {As %1 your bash, you topple over and fall to the ground!} {
#math missbash @missbash+1
#math totalbash @landbash+@missbash
#math bashpercentage (@landbash*100 / @totalbash)
#Echo This session you've missed @missbash out of @totalbash bashes (@bashpercentage~% landed)
}
#CLASS 0
just a little one to count how many successful or failed mines you have had
#CLASS {Mining}
#VAR successfullmine {0}
#VAR failmine {0}
#VAR enemymine {0}
#VAR rockfalls {0}
#VAR totalmines {0}
#VAR minepercentage {0}
#TRIGGER {You found some %1 ore!} {
#MATH successfullmine @successfullmine+1
#math totalmines @successfullmine+@failmine+@enemymine
#math minepercentage (@successfullmine*100 / @totalmines)
#Echo This session you've successfully mined @successfullmine out of @totalmines mines. (@minepercentage~% mines)
}
#TRIGGER {You decide to take a small break, resting your arms.} {
#MATH failmine @failmine+1
#math totalmines @successfullmine+@failmine=@enemymine
#math minepercentage (@successfullmine*100 / @totalmines)
#Echo This session you've failed @failmine out of @totalmines (@minepercentage~% failed mines)
}
#TRIGGER {You stop mining and back away when you see that the wall in front of you is moving!} {
#MATH enemymine @enemymine+1
#math totalmines @successfullmine+@failmine+@enemymine
#math minepercentage (@successfullmine*100 / @totalmines)
#Echo This session @enemymine enemy's have attacked you out of @totalmines mines. (@minepercentage~% mines)
}
#TRIGGER {You are hit by falling rocks!} {
#MATH rockfalls @rockfalls+1
#MATH failmine @failmine+1
#math totalmines @successfullmine+@failmine+@enemymine
#math minepercentage (@successfullmine*100 / @totalmines)
#Echo This session you have had @rockfalls rock slides out of @totalmines mines. (@minepercentage ~% mines)
}
#CLASS 0
Ill be making more soon!!! Next on my agenda is a script that wil count what ore you find and how many of that ore you have found!
also ill be doing a status bar that will go just above your command bar to list your hps, sps, mvs, and exp till next lvl... so sit tight
and enjoy these for now..
counters:
#CLASS {Skewer Counter}
#VAR missskewer {0}
#VAR landskewer {0}
#VAR totalskewer {0}
#VAR skewerpercentage {0}
#TRIGGER {You SKEWER %1, who doesn't get the opportunity to see %2 body get torn in half.} {
#MATH landskewer @landskewer+1
#math totalskewer @landskewer+@missskewer
#math skewerpercentage (@landskewer*100 / @totalskewer)
#Echo This session you've landed @landskewer out of @totalskewer skewers (@skewerpercentage~% landed)
}
#TRIGGER {You SKEWER %1 right through the middle!} {
#MATH landskewer @landskewer+1
#math totalskewer @landskewer+@missskewer
#math skewerpercentage (@landskewer*100 / @totalskewer)
#Echo This session you've landed @landskewer out of @totalskewer skewers (@skewerpercentage~% landed)
}
#TRIGGER {You try to skewer %1, and stumble as %2 steps aside.} {
#math missskewer @missskewer+1
#math totalskewer @landskewer+@missskewer
#math skewerpercentage (@landskewer*100 / @totalskewer)
#Echo This session you've missed @missskewer out of @totalskewer skewers (@skewerpercentage~% landed)
}
#CLASS 0
#CLASS {Stab Counter}
#VAR missstab {0}
#VAR landstab {0}
#VAR totalstab {0}
#VAR stabpercentage {0}
#TRIGGER {A %1 makes a strange sound but is suddenly very silent as you place a %2 in %3 back.} {
#MATH landstab @landstab+1
#math totalstab @landstab+@missstab
#math stabpercentage (@landstab*100 / @totalstab)
#Echo This session you've landed @landstab out of @totalstab stabs (@stabpercentage~% landed)
}
#TRIGGER {A %1 makes a strange sound as you place a %2 in %3 back!} {
#MATH landstab @landstab+1
#math totalstab @landstab+@missstab
#math stabpercentage (@landstab*100 / @totalstab)
#Echo This session you've landed @landstab out of @totalstab stabs (@stabpercentage~% landed)
}
#TRIGGER {A %1 notices your attempt to backstab him!} {
#math missstab @missstab+1
#math totalstab @landstab+@missstab
#math stabpercentage (@landstab*100 / @totalstab)
#Echo This session you've missed @missstab out of @totalstab stabs (@stabpercentage~% landed)
}
#CLASS 0
#CLASS {Charge Counter}
#VAR misscharge {0}
#VAR landcharge {0}
#VAR totalcharge {0}
#VAR chargepercentage {0}
#TRIGGER {You CHARGE %1, who doesn't get the opportunity to see its body get torn in half.} {
#MATH landcharge @landcharge+1
#math totalcharge @landcharge+@misscharge
#math chargepercentage (@landcharge*100 / @totalcharge)
#Echo This session you've landed @landcharge out of @totalcharge charges (@chargepercentage~% landed)
}
#TRIGGER {You CHARGE %1 right through the middle!} {
#MATH landcharge @landcharge+1
#math totalcharge @landcharge+@misscharge
#math chargepercentage (@landcharge*100 / @totalcharge)
#Echo This session you've landed @landcharge out of @totalcharge charges (@chargepercentage~% landed)
}
#TRIGGER {You charge at a %1, and stumble as he steps aside.} {
#math misscharge @misscharge+1
#math totalcharge @landcharge+@misscharge
#math chargepercentage (@landcharge*100 / @totalcharge)
#Echo This session you've missed @misscharge out of @totalcharge charges (@chargepercentage~% landed)
}
#CLASS 0
#CLASS {Bash Counter}
#VAR missbash {0}
#VAR landbash {0}
#VAR totalbash {0}
#VAR bashpercentage {0}
#TRIGGER {Your bash at %1 sprawling!} {
#MATH landbash @landbash+1
#math totalbash @landbash+@missbash
#math bashpercentage (@landbash*100 / @totalbash)
#Echo This session you've landed @landbash out of @totalbash bashes (@bashpercentage~% landed)
}
#TRIGGER {As %1 your bash, you topple over and fall to the ground!} {
#math missbash @missbash+1
#math totalbash @landbash+@missbash
#math bashpercentage (@landbash*100 / @totalbash)
#Echo This session you've missed @missbash out of @totalbash bashes (@bashpercentage~% landed)
}
#CLASS 0
just a little one to count how many successful or failed mines you have had
#CLASS {Mining}
#VAR successfullmine {0}
#VAR failmine {0}
#VAR enemymine {0}
#VAR rockfalls {0}
#VAR totalmines {0}
#VAR minepercentage {0}
#TRIGGER {You found some %1 ore!} {
#MATH successfullmine @successfullmine+1
#math totalmines @successfullmine+@failmine+@enemymine
#math minepercentage (@successfullmine*100 / @totalmines)
#Echo This session you've successfully mined @successfullmine out of @totalmines mines. (@minepercentage~% mines)
}
#TRIGGER {You decide to take a small break, resting your arms.} {
#MATH failmine @failmine+1
#math totalmines @successfullmine+@failmine=@enemymine
#math minepercentage (@successfullmine*100 / @totalmines)
#Echo This session you've failed @failmine out of @totalmines (@minepercentage~% failed mines)
}
#TRIGGER {You stop mining and back away when you see that the wall in front of you is moving!} {
#MATH enemymine @enemymine+1
#math totalmines @successfullmine+@failmine+@enemymine
#math minepercentage (@successfullmine*100 / @totalmines)
#Echo This session @enemymine enemy's have attacked you out of @totalmines mines. (@minepercentage~% mines)
}
#TRIGGER {You are hit by falling rocks!} {
#MATH rockfalls @rockfalls+1
#MATH failmine @failmine+1
#math totalmines @successfullmine+@failmine+@enemymine
#math minepercentage (@successfullmine*100 / @totalmines)
#Echo This session you have had @rockfalls rock slides out of @totalmines mines. (@minepercentage ~% mines)
}
#CLASS 0
Ill be making more soon!!! Next on my agenda is a script that wil count what ore you find and how many of that ore you have found!
also ill be doing a status bar that will go just above your command bar to list your hps, sps, mvs, and exp till next lvl... so sit tight