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
takke
Beginner


Joined: 11 Oct 2002
Posts: 29
Location: Sweden

PostPosted: Fri May 30, 2003 1:43 am   

Ismember
 
Hi

Im trying to make a pktrigger that puts ppl in a list then when I press a button and a person that is on that list are in the room it will start to kill that person. Something like this:

#var pkmob @pk
#IF (%ismember( @pk)) {
remove axe
sling @pkmob
srkill @pkmob
wield axe
kill @pkmob
d' pkmob
} {say That person is not on my deathlist.}

But I can't get this to work. Everytime I press the button it says. That person is not on my list. Regardless if the person is on the list or not. Can some1 help me with this problem?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri May 30, 2003 5:18 am   
 
1. If @pk is a list, then @pkmob will be too.
#var pkmob @pk

2. Since %ismember requires two parameters and you've only used one, it will always return 0 unless @pk is a nullstring or non-existent.
#IF (%ismember( @pk))

LightBulb
Advanced Member
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