Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[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