• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[Tut - 508] Item On Players

Junior Spellweaver
Joined
May 17, 2007
Messages
131
Reaction score
2
Credit's Ren
 
Last edited by a moderator:
Junior Spellweaver
Joined
Aug 12, 2006
Messages
115
Reaction score
2
Re: [508] Item On Players

and yet again , I'll fix that code :
Code:
			int usedItem = p.stream.readUnsignedWord();
			int usedOn = p.stream.readUnsignedWordA();
			PlayerItems pi = new PlayerItems();
			int[] partyHat = {1038,1040,1042,1044,1046,1048};
			if(usedItem == 962 && usedOn <= Engine.maxPlayers)  
			{
				pi.addItem(p, partyHat[1], 1);
				p.frames.sendMessage(p, "Someone cracked a cracker on you!");
				pi = null;
			}

A tip:
if you are lazy , press quote button in rune-server , and copy all that , and add credits , so codes wont mess up.
 
Junior Spellweaver
Joined
May 17, 2007
Messages
131
Reaction score
2
Re: [508] Item On Players

Hay i did do that but removed quotes lol
 
Newbie Spellweaver
Joined
Mar 26, 2008
Messages
32
Reaction score
0
It's more like thank you superman for the code and thank you naikboy for fixing the code :p.
 
Newbie Spellweaver
Joined
Nov 28, 2009
Messages
63
Reaction score
0
Like Thanks Dude, Will be Using this. : ), Make some more Guides , And good luck on your 500 Posts , LAWL :).
 
Back
Top