DialogueHandler ("c.getDH()")
and then handle input from the client, clickingButtons (not sure which ID's)
|
Okay so i need to know how can i make my Dialogue like this
__________________________________
|
| CITIES
| MONSTERS
|
|__________________________________
And when u click that Cities, it will open something like this
__________________________________
|
| Varrock
| Falador
| Canifis
|__________________________________
So the main problem is, i can't find any guides related to something liek this
Thanks!
DialogueHandler ("c.getDH()")
and then handle input from the client, clickingButtons (not sure which ID's)
Hold, this one is mine dialoguehandles, added this into it yetand this is Mine clickingbuttons, but this still wont workCode:case 46: sendOption4("Places", "Dungeons", "Bosses", "Minigames"); break; case 47:// this is the 'PLACES TELE' sendOption5("Taverly Dungeon", "Brimhaven Dungeon", "Slayer Tower", "Warriors Guild", "more"); c.teleAction = 47; break;
and what should i do now?Code:if (c.dialogueAction == 46) { c.getDH().sendDialogues(47, 0); }
First off that won't work because you're requsting 5 strings but have only supplied 4,
Go into clickingButtons, search for the following cases through 9190 - 9195. The cases correspond with the placing of the Strings so for example; Places = 9190 & Dungeons = 9191, Bosses = 9192, etcetera. You're also going to have to make an integer or use one that most sources use called dialogueAction and initialize it in the switch case in DH which I have done for you.Code:case 46: sendOption5("Places", "Dungeons", "Bosses", "Minigames", "More"); c.dialogueAction = 500; break;
to make the "click to continue" button continue to a chat of your desire then just use c.nextChat = ID;
-nvm
Hold, this one is mine dialoguehandles, added this into it yetand this is Mine clickingbuttons, but this still wont workCode:case 46: sendOption4("Places", "Dungeons", "Bosses", "Minigames"); c.dialogueAction = 46; break; case 47:// this is the 'PLACES TELE' sendOption5("Taverly Dungeon", "Brimhaven Dungeon", "Slayer Tower", "Warriors Guild", "more"); c.teleAction = 47; break;
and what should i do now?Code:if (c.dialogueAction == 46) { c.getDH().sendDialogues(47, 0); }
still need help
any1?
first of all you can only have 4 options, so just remove 1 for now so itll open @ more
anyway im not sure never needed this before lol
[example] if your options are:
case 47:// this is the 'PLACES TELE'
sendOption5("Taverly Dungeon", "Brimhaven Dungeon", "Slayer Tower", "more");
c.teleAction = 47;
break;
case 48:// this is the 'MORE option'
sendOption5("warrior guild", "blah", "hi", "empty");
c.teleAction = 48;
break;
go ingame and click on the "more" option, check your run.bat cmd (server) to see what case id you get.
case id:
if (c.teleAction == 48) {
//a place
c.getPA().spellTeleport(coords, coords, 0);
change "id" to the id u got from clicking "more" ingame
change "coords" and "coords" to your coords
i just confused myself lol no idea if this works anyway it shud look like dat
tell me any errors you get
Last edited by Lesley15; 04-08-2012 at 10:18 PM. Reason: sorry no time on actually making it work im busy lol
bro, that it npc first click which emans taht when u click npc it opens up the dialogue
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |