what kind of item are you wanting to do this for ? so i can make up an example for you.
|
I'm not sure how I would make it so when i click on a item it would open a dialog box giving me a few options and how would I link those options through action handler?
Hope you understood that whoever provides working solution gets +rep
what kind of item are you wanting to do this for ? so i can make up an example for you.
say like
im not sure if it's like this.
in add in clickitem.java you'll see
Code:case ####: <----- Item id sendOption2("OPTION 1","OPTION 2"); c.dialogueAction = 105; break;
for my source its more like this :
in clickitem / itemclick2 / itemclick3 - whatever item your adding dialogue for.
then in dialoguehandlerCode:case ####: <-- item id c.getDH().sendDialogues(99, 0); break;
Code:case 99: sendOption2("Option 1", "Option 2"); c.dialogueAction = 99; break;
and then if you want it to be a teleport or whatever you'd go on to clickingbuttons.java
alright thanks you guys I'll try this when I get back and if it works I'll rep you
You have to add the proper item ID
If you tell me the item and what you want it to do, I'll do it for you.
well I'm trying to add the rotten potato effect's from rs but I cannot get it so when I click option two a list of things you can do pops up like the glory in rs here is my code
case 5733:
sendOption2("Option 1", "Option 2");
c.dialogueAction = 99;
break;
(that's in my dialog handler)
then in my itemclick 3
case 5733:
c.getDH().sendDialogues(99, 0);
break;
I know I have to put something in actionhandler but this was a test to see if the option 1 and option two would even pop up and they didn't help please
nononono your not understanding how to use dialogues. the case ID in dialogue handler is used for the c.getDH.sendDialogues(##, 0);
So it would be like so.
Then to give it actions just find the actionbutton ID in clickingbuttons.java and add it likeCode:case 99: sendOption2("Option 1", "Option 2"); c.dialogueAction = 97; break; case 5733: c.getDH().sendDialogues(99, 0); break;
Code:} else if (c.dialogueAction == 97) { c.whatever here.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |