this is easy you can make them into an object this way this was posted with the Christmas and Halloween event by somebody but good job i guess rep+
|
|
Im almost sure this has been posted before, and its extremley easy. but someone in the help section said that they couldnt find it, so here it is:
Description: make the player turn into a npc when it equips an item
Difficulty: 0
Assumed Knowledge: an iq above 11
Tested Server: anything with basic methods and a public void writebonus
Files/Classes Modified: client
Step 1: (the only step)
search for
somewhere in that void add:Code:public void WriteBonus() {change playerRing to whatever you want (playerWeapon playerCape, etc)Code:if (playerEquipment[playerRing] == Itemid) { npcId = npcidk; isNpc = true; updateRequired = true; appearanceUpdateRequired = true; }
change the itemid to the itemid that the player equips.
change npcidk to the id of the npc you want the player to turn into.
simple stuff.
this is easy you can make them into an object this way this was posted with the Christmas and Halloween event by somebody but good job i guess rep+

And it will not work people dont have that void if you acutally did want it to work then
In boolean proccess addCode:public void npcSwap() { if (playerEquipment[playerRing] == Itemid) { npcId = npcidk; isNpc = true; updateRequired = true; appearanceUpdateRequired = true; }
Code:npcSwap();

:O that will work to but the new people at server might not know where to add but in boolean process then people would know where to add it
the method i posted works just fine. . .
| « how to test gfx'es with a command! | Object Adding [DODIAN/DEVOLUTION] [TUT] » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |