Jump to content
  • 0
Sign in to follow this  
runehero

[PI] Option Screen

Question

Hi. How do you make it where if a player clicks object 13619, they get a option screen like this:

[IMG]http://i41.tinypic.com/2m7de0j.jpg[/IMG]

And where would I put the code? Is it in ClickObject.java or ActionHandler.java?
Thanks for the help!

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
Actionhandler.java -> find "firstclickobject" -> where all the other stuff is add
[code]case 13619:
c.getDH().sendOption(optionID, npcType);
break;[/code]

Share this post


Link to post
Share on other sites
  • 0
[quote name='z0mg beast']Actionhandler.java -> find "firstclickobject" -> where all the other stuff is add
[code]case 13619:
c.getDH().sendOption(optionID, npcType);
break;[/code][/QUOTE]
So, if I put..
[code]c.getDH().sendOption2(optionID, npcType);[/code]
I will have 2 options? And what's NpcType for? It's an object :l. Sorry for all the questions, I really just want to learn this.

Share this post


Link to post
Share on other sites
  • 0
Sorry for that my bad.

Something like this
[code]
c.getDH().sendOption2("Mining", "Smithing");
c.teleAction = 54;
break;
[/code]

Then you would have to do the clickingbuttons for the option that would show up.

Share this post


Link to post
Share on other sites
  • 0
[quote name='z0mg beast']Sorry for that my bad.

Something like this
[code]
c.getDH().sendOption2("Mining", "Smithing");
c.teleAction = 54;
break;
[/code]

Then you would have to do the clickingbuttons for the option that would show up.[/QUOTE]
Thanks man! I got it from here.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×