You need to put something in ActionHandler
Code:case NPCID: Do whatever here break;
|
So i saw a thread about a guy wanting it so when you Talk to an NPC a dialogue comes up saying "master" or "pure" and when you click one of them you get the levels for that option.
I tried doing this but when i click the NPC nothing happens, here's my code:
dialoguehandler.java
clickingbuttons.javaCode:case 640: sendOptions2("pure", "master"); dialogueAction = 13; break;
Code:} else if (c.dialogueAction == 13) { c.getPA().addSkillXP(13500000,6); c.sendMessage("You are now a Main."); c.getPA().addSkillXP(13500000,4); c.sendMessage("You are now a Pure.");
Help?
You need to put something in ActionHandler
Code:case NPCID: Do whatever here break;
what pakku said. you need to do
case npcid: <-- watever the id
c.getDH().sendDialogues(640, npcType);
break;
and in case 9157: in clickingbuttons.java
and in case 9158: in clickingbuttons.java addCode:if (c.dialogueAction == 13) { c.getPA().addSkillXP(13500000,0); c.getPA().addSkillXP(13500000,1); c.getPA().addSkillXP(13500000,2); c.getPA().addSkillXP(13500000,3); c.getPA().addSkillXP(13500000,4); c.getPA().addSkillXP(13500000,5); c.getPA().addSkillXP(13500000,6); c.sendMessage("You are now a master."); }Code:if (c.dialogueAction == 13) { c.getPA().addSkillXP(13500000,0); c.getPA().addSkillXP(13500000,2); c.getPA().addSkillXP(13500000,3); c.getPA().addSkillXP(13500000,4); c.getPA().addSkillXP(13500000,6); c.sendMessage("You are now a pure."); }
Put what animeking1120 said.
Ffs not working =/ i've followed that you guys have said but when i click him nothing happens..
Anyone could help? i think it might be ActionHandler.java since when i click the NPC the dialogue doesn't come up?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |