bump
|
How would go about making a npc appear in the map when that person has equipped a item and then disappear when they take it off but only appear for that person that equipped the item. Please help thanks will repp and thanks.
bump
is it even posible?....
wearitem.java
if (i==itemid) {
spawn = 336 2339 3185 0 0 0
}
and
import data.cfg.spawn-config;
maby ?
hmmm very nice question ill check if i cant make it work
and trty to get back on you but... if anybody know if its even possible..
It's definitely possible! I did it on my server last Easter for an event I created. Wasn't PI though, so I don't know what to tell you there, all I can say is that YES, it's possible.
No lol.
import the npchandler class
if (i==itemid) {
NpcHandler.spawnNpc(c, npcType, x, y, heightLevel, WalkingType, HP, maxHit, attack, defence, true, false) {
}
just change everything like heightlevel walking type etc to the actual itegers.
Do you want it to spawn under you or behind you?
jake, thats just what i said? the coords were an example..
Thanks, but it only works when I have 2 items and equip one after another for some reason and it will just keep spawning if i keep equiping the item and wont disappear when I unequip the item, is there a method for removeing a spawn?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |