|
undergod Wanderer
Joined: 27 Jun 2001 Posts: 82
|
Posted: Thu Feb 07, 2002 1:26 am
auto looting? |
Well, my mud doesn't support autolooting of corpses. So, I made a trigger to check the corpse each time I make a kill. I want to write a script that will take the coins from a corpse automatically. I want it to only fire when it's checking a corpse though... here's the syntax and what-not.
look in corpse
an elf's corpse (here):
a copper piece
8 iron pieces
(prompt) get iron from corpse |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Thu Feb 07, 2002 2:39 am |
#TRIGGER {corpse ~(here~):$} {#T+ grabinv}
Just grab iron and more than one piece.
One piece is for scavengers. :P
#TRIGGER {%d iron pieces} {get iron from corpse} "grabinv"
#TRIGGER {(prompt)} {#T- grabinv} "grabinv"
TonDiening
Uses 6.16 |
|
|
|
undergod Wanderer
Joined: 27 Jun 2001 Posts: 82
|
Posted: Thu Feb 07, 2002 7:02 am |
"get iron from corpse" gets all the iron
But, that worked perfectly, thanks |
|
|
|
|
|