You have to use the setString method, how many lines are you using?
|
I added the Skillcape npc dialogue tutorial by Tony...but when ever I speak to the master, the interface shows "Name and Line1" not (ex: Cap'n Izzy No-beard and Congratz on 99 agility)
I can post a picture if you want me too.
You have to use the setString method, how many lines are you using?
I have 2 setString Methods. one for the name, and one for the message.
And I took this out of the original code, since I kept getting errors from it.
p.NpcDialogue = 0;
p.NpcDialogueSend = true;
Do I need that to have the dialogue pop up?
Here is an example of a one line dialogue.
Just call getOneLine(p, id, name, message);Code:public static void getOneLine(Player p, int intNpcId, String strNpcName, String strMessage) { p.frames.showChatboxInterface(p, 241); p.frames.animateInterfaceId(p, 9827, 241, 2); p.frames.setNPCId(p, intNpcId, 241, 2); p.frames.setString(p, strNpcName, 241, 3); p.frames.setString(p, strMessage, 241, 4); }
under which npcs you want talking.
also changed the id, name, and message to the appropriate things.
here is a man
Code:getOneLine(p, 1, "Man", "Hello there!");
Wait, so I don't get it. (New to this)
Do i declare the void in a file or something?
And, the getOneLine, does that have anything to do with my p.NpcDialogue?
Like, here's the code I'm using:
Code:case 270: /* Agility Master */ p.frames.showChatboxInterface(p, 241); p.frames.animateInterfaceId(p, 9847, 241, 2); p.frames.setNPCId(p, 437, 241, 2); p.frames.setString(p, "Cap'n Izzy No-Beard", 241, 3); if (p.skillLvl[16] < 99) { p.frames.setString(p, "You do not have 99 Agility.", 241, 4); } else { if (p.skillLvl[16] >= 99) { p.frames.setString(p, "Congratulations, take this worthy cape.", 241, 4); Engine.playerItems.addItem(p, 9771, 1); Engine.playerItems.addItem(p, 9772, 1); Engine.playerItems.addItem(p, 9773, 1); p.NpcDialogue = 0; p.NpcDialogueSend = true; break; }
Where did you declare that method.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |