zMUD

by Unknown

Back to Mechanic's Corner.

Unknown2007-01-16 02:31:44
zMUD 7.21...Any suggestions on why it spams endlessly?

CODE
#CLASS {Blah}
#CLASS {Blsh|Balances}
#VARIABLE balances right|left|bal|equilibrium
#ALIAS balancescan {#IF ((%ismember( left, @balances) and %ismember( right, @balances) and %ismember( bal, @balances) and %ismember( equilibrium, @balances))) {#SAY %ansi(blue,white)---Tengen Houmen---}
#TRIGGER {^(%d)h, (%d)m, (%d)e, (%d)p, (%d)en, (%d)w (%w)-} {#if (%pos( x, %7)) {add balances bal} {del balances bal};#IF (%pos( e, %7)) {add balances equilibrium} {del balances equilibrium};#IF (%pos( r, %7)) {add balances right} {del balances right};#IF (%pos( l, %7)) {add balances left} {del balances left}} "" {nocr|prompt}
#TRIGGER {^You have recovered (*)} {#GA;#IF (%match(%1,"balance on your left arm.")) {add balances left};#IF (%match(%1,"balance on your right arm.")) {add balances right};#IF (%match(%1,"balance on all limbs.")) {add balances bal};#IF (%match(%1,equilibrium.)) {add balances equilibrium};balancescan}
#CLASS 0


The 'You have recovered (*)' seems to be what's making it go crazy...

EDIT: Dumbest mistake ever....Forgot all the #'s...

EDITAGAIN: Ok...Still not working...
Sylphas2007-01-16 07:15:14
Shouldn't left, right, bal, and equilibrium be in quotes? Ex. %ismember( "left", @balances). Also, unless you defined an alias for it, you'll need #add instead of just add.
Unknown2007-01-16 12:45:04
Quotes are optional for single-word string arguments. When you have multiple words or special characters, you should be consistent with your quoting then, such as with your %1 in the balance trigger.
Daganev2007-01-16 17:34:34
#CLASS {Blah}
#CLASS {Blsh|Balances}

typo in the post or typo in your client?

You have Class Blah and Class Blsh