|  | 
	
	
		| takke Beginner
 
 
 Joined: 11 Oct 2002
 Posts: 29
 Location: Sweden
 
 | 
			
			  |  Posted: 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?
 |  | 
	
	  |  | 
	
		|  | 
	
		| LightBulb MASTER
 
 
 Joined: 28 Nov 2000
 Posts: 4817
 Location: USA
 
 | 
			
			  |  Posted: 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
 |  | 
	
	  |  | 
	
		|  | 
	
		|  | 
	
		|  |