Goto npchandler and at thirdnpcclic
add
case 553:
c.getPA().spellTeleport(3109, 3347, 0);
break;
change the coords and add a forcechat if you want
|
I'm trying to add that and make it so that he teleports i add that to npcHandlerCode:public void auburyTeleport() { for (int i = 0; i < maxNPCs; i++) { if (npcs[i] == null) continue; npcs[i].clearUpdateFlags(); } for (int i = 0; i < maxNPCs; i++) { if (npcs[i] != null) { if (npcs[i].npcType == 553) { npcs[i].animNumber = 722; npcs[i].gfx0(148); npcs[i].animUpdateRequired = true; npcs[i].updateRequired = true; npcs[i].forceChat("Senventior Disthine Molenko!"); } } } }
then i add this to thirdnpcclick
case 553:
auburyTeleport();
break;
but it doesnt work help please thanks
Goto npchandler and at thirdnpcclic
add
case 553:
c.getPA().spellTeleport(3109, 3347, 0);
break;
change the coords and add a forcechat if you want
Why are you using For Loops for this?
yeah so
bump
NpcH
3rdClickCode:public void auburyTeleport(Client c) { for (int i = 0; i < maxNPCs; i++) { if (npcs[i] == null) continue; npcs[i].clearUpdateFlags(); } for (int i = 0; i < maxNPCs; i++) { if (npcs[i] != null) { if (npcs[i].npcType == 553) { npcs[i].facePlayer(c.playerId); npcs[i].requestAnimation(1818,0); npcs[i].gfx0(343); npcs[i].forceChat("Senventior Disthine Molenko!"); npcs[i].animUpdateRequired = true; npcs[i].updateRequired = true; break; } } } }
Tell me if missing anything.Code:case 553://aubury Server.npcHandler.auburyTeleport(c); String type = c.playerMagicBook == 0 ? "modern" : "modern"; c.getPA().startTeleport(2911, 4832, 0, type); break;
thanks guys your great
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |