Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
undergod
Wanderer


Joined: 27 Jun 2001
Posts: 82

PostPosted: 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
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: 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
Reply with quote
undergod
Wanderer


Joined: 27 Jun 2001
Posts: 82

PostPosted: Thu Feb 07, 2002 7:02 am   
 
"get iron from corpse" gets all the iron

But, that worked perfectly, thanks
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net