Kegor can you make me a trigger pretty please?

Scripts and support for your favorite MUD client.
watashi420
Sojourner
Posts: 28
Joined: Sat Dec 15, 2001 6:01 am
Location: Maine
Contact:

Kegor can you make me a trigger pretty please?

Postby watashi420 » Sun Jan 30, 2011 5:22 am

I made a trigger for looting, and i tried to make it in a class named AUTOLOOT and mave aliases like autolooton and autolootoff that turned the class on and off, but it stopped working. :( I was hoping you might write me one pretty please? I am just terrible at this.

Thanks, any help is truly appreciated.

vipabbiple / bizibobble / wibizipple / sinik / gonoc
Kegor
Sojourner
Posts: 665
Joined: Wed Feb 28, 2001 6:01 am
Location: St. Cloud, MN
Contact:

Re: Kegor can you make me a trigger pretty please?

Postby Kegor » Tue Feb 01, 2011 2:28 am

I used to do that with a lot of triggers, but I like using variables more now to activate triggers.

It just seems more organized and the #IF seems to process a little quicker with a trig that is always on in more complex scripts.

Code: Select all

#CLASS {LOOT}
#ALIAS lootoff {#VAR LOOT {0};#ECHO -= Looting: NOTHING =-}
#ALIAS looton {#VAR LOOT {1};#ECHO -= Looting: COINS =-}
#ALIAS lootall {#VAR LOOT {2};#ECHO -= Looting: ALL =-}
#ALIAS allcoins {#LOOP %1 {get coins %i~.corpse};#NOOP}
#ALIAS allcorpse {#LOOP %1 {get all %i~.corpse};#NOOP}
#TRIGGER {You receive your share of experience.$} {#IF (@LOOT = 1) {get coins corpse};#IF (@LOOT = 2) {get all corpse}}
#CLASS 0


lootoff - turn looter off
looton - coin looter on
lootall - loot all on
allcoins 6 - loots coins from 1 - 6 corpse
allcorpse 38 - loots all from 1 - 38 corspe
Last edited by Kegor on Sat Feb 12, 2011 8:35 am, edited 1 time in total.
watashi420
Sojourner
Posts: 28
Joined: Sat Dec 15, 2001 6:01 am
Location: Maine
Contact:

Re: Kegor can you make me a trigger pretty please?

Postby watashi420 » Wed Feb 02, 2011 6:26 am

tyvm kegor, you're the best!
kanenan
Sojourner
Posts: 227
Joined: Sat Oct 05, 2002 5:01 am
Location: BC
Contact:

Re: Kegor can you make me a trigger pretty please?

Postby kanenan » Tue May 05, 2015 1:19 pm

Can NOT get this to function properly in Cmud..

Any help out there?

The allcoins/corpse loops work fine..
but it simply wont fire/compile on the experience line (which i've updated to -
You receive * experience.

Thanks in advance!
stuff.

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 3 guests