Talk:Script

From MUME

There has to be a better way to structure this page. Perhaps per-client scripts?


Quite a bad example of a coin-loot trigger. It will trigger on anything dying no matter who killed it or if it is a PK situation or not. Since there is a somewhat better way to trigger it, on the exp gain message when mobiles dies, I moved it here for now.

#alias loot+={#print ("- Enabled Autoloot");#print;#action +loot1;#action +loot2;#(@loot_timer = timer)}
#alias loot-={#print ("- Disabled Autoloot");#print;#action -loot1;#action -loot2;#var @loot_timer=}

#action >-loot1 &1 is dead! R.I.P.={#print;#if (((timer-@loot_timer)/1000) > 5) {#(@loot_timer=timer);get all.coins all.corpse}}
#action >-loot2 &1 disappears into nothing.={#print;#if (((timer-@loot_timer)/1000) > 5) #(@loot_timer=timer);get all.coins}}

/Caerroil

I agree that there probably is a better way to design this page. I was waiting for more scripts to be posted before I tried changing it some. I suppose I might look at my old JMC and zMud scripts and add them to it.

Oh, and when players die they have a different message, for example:

  • a Bear* has drawn his last breath! R.I.P.

/Jahara