Purpose: ok, allow people to start with items on them (wearing the items :P)
Difficulty: 2
Assumed Knowledge: copy and paste
Server Base: pimpscape, cheezscape, testscape
Classes Modified: player.java
step 1:
ok first open up your player.java and search for this
step 2:Code://Giving the player an unique look playerEquipment[playerHat]=
you should see the following :
or atleast something very similar :pCode://Giving the player an unique look playerEquipment[playerHat]=Item.randomHat(); playerEquipment[playerCape]=Item.randomCape(); playerEquipment[playerAmulet]=Item.randomAmulet(); playerEquipment[playerChest]=Item.randomBody(); playerEquipment[playerShield]=Item.randomShield(); playerEquipment[playerLegs]=Item.randomLegs(); playerEquipment[playerHands]=Item.randomGloves(); playerEquipment[playerFeet]=Item.randomBoots(); playerEquipment[playerRing]=Item.randomRing(); playerEquipment[playerArrows]=Item.randomArrows(); playerEquipment[playerWeapon]=1275;
step 3:
ok now to have them start with something make sure there are no /* or */ in front or at the end of the code above , and then all you do is change the code like so...
toCode:playerEquipment[playerHat]=Item.randomHat();that would make them start wearing a red party hat, you just change each code to an item you want :PCode:playerEquipment[playerHat]= 1038;
or you could also make a random thing, so you would go into item.java , and add something like this...
you would only need to add the static int , because most sources come with the rest of the coding completed :PCode:public static int hats[] = {1038, 1040};
credits : -fedexer-



![[Tut] [317] Making players start on server wearing items](http://ragezone.com/hyper728.png)


