head 0
cape 1
amulet 2
weapon 3
body 4
shield 5
legs 7
glove 9
boots 10
ring 12
arrow 13
|
What would I put in my starter pack method to make the player spawn in wearing equipment? I want to do this for all equipment slots as well. Whoever helps me out much REP+THANKS as usual.
If you give me the general code and the numbers for the slots. I got it from there. -Thanks
I hope this is what you're looking for.
Code:playerEquipment[playerHat] = id; playerEquipment[playerBody] = id; playerEquipment[playerLegs] = id; playerEquipment[playerBoots] = id; playerEquipment[playerGloves] = id; playerEquipment[playerRing] = id; playerEquipment[playerShield] = id; playerEquipment[playerWeapon] = id;
Code:c.playerEquipment[c.playerHat] = value;
Do you mean like to equip the armor once they log in with a new account?
Code:int[] equip = { 10828, 2412, 6585, 4675, 4091, 6889, -1, 4093, -1, 7462, 6920, -1, 6731, 9244 }; for (int i = 0; i < equip.length; i++) { player.playerEquipment[i] = equip[i]; player.playerEquipmentN[i] = 1; player.getItems().setEquipment(equip[i], 1, i); }
[Today 05:35 AM] Verisimilitude: My new siggy [Today 05:34 AM] Verisimilitude: Ikr [Today 05:34 AM] a Kitty: 'there is litteraly nothing i can do to reach him, so i will just stand here and accept my fate'
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |