Thread: Item help +rep (pi/dspk)

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 Item help +rep (pi/dspk) 
    Want help? Message me!
    Join Date
    Jul 2011
    Posts
    162
    Thanks given
    3
    Thanks received
    8
    Rep Power
    2
    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
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Dec 2009
    Posts
    27
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    what kind of item are you wanting to do this for ? so i can make up an example for you.
    Reply With Quote  
     

  3. #3  
    Catherby Developer
    Mini Slurpee's Avatar
    Join Date
    Apr 2011
    Posts
    747
    Thanks given
    80
    Thanks received
    86
    Rep Power
    31
    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;
    Attached image
    “I have not failed, I've just found 10,000 ways that won't work.”
    “Any fool can write code that a computer can understand. Good programmers write code that humans can understand.”
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Dec 2009
    Posts
    27
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    for my source its more like this :

    in clickitem / itemclick2 / itemclick3 - whatever item your adding dialogue for.


    Code:
    case ####: <-- item id
    c.getDH().sendDialogues(99, 0);
    break;
    then in dialoguehandler
    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
    Reply With Quote  
     

  5. #5  
    Want help? Message me!
    Join Date
    Jul 2011
    Posts
    162
    Thanks given
    3
    Thanks received
    8
    Rep Power
    2
    alright thanks you guys I'll try this when I get back and if it works I'll rep you
    Reply With Quote  
     

  6. #6  
    Want help? Message me!
    Join Date
    Jul 2011
    Posts
    162
    Thanks given
    3
    Thanks received
    8
    Rep Power
    2
    Quote Originally Posted by MrRawwrz View Post
    for my source its more like this :

    in clickitem / itemclick2 / itemclick3 - whatever item your adding dialogue for.


    Code:
    case ####: <-- item id
    c.getDH().sendDialogues(99, 0);
    break;
    then in dialoguehandler
    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
    Well it still does not show the options to click on
    Reply With Quote  
     

  7. #7  
    Donator

    Join Date
    May 2010
    Posts
    321
    Thanks given
    25
    Thanks received
    25
    Rep Power
    13
    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.
    Reply With Quote  
     

  8. #8  
    Registered Member Beanerrr's Avatar
    Join Date
    Feb 2011
    Posts
    598
    Thanks given
    78
    Thanks received
    28
    Rep Power
    6
    It's like MrRawwrz explained. Try doing it yourself and if there are no compiling errors paste the codes here so we can try to help out.
    Quote Originally Posted by Galkon View Post
    The rules clearly state, if you can't help, don't reply.


    Quote Originally Posted by Mod Josh - Question: How do you ask girls out?
    I can't ask them out, I am banned from the kitchen
    Quote Originally Posted by Penor View Post
    How will i know if its PI based?? Omfg this is sooo confusing!!
    Reply With Quote  
     

  9. #9  
    Want help? Message me!
    Join Date
    Jul 2011
    Posts
    162
    Thanks given
    3
    Thanks received
    8
    Rep Power
    2
    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
    Reply With Quote  
     

  10. #10  
    Banned imsuperman05's Avatar
    Join Date
    May 2011
    Posts
    410
    Thanks given
    21
    Thanks received
    25
    Rep Power
    0
    Quote Originally Posted by Nice bones View Post
    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.
    Code:
    	case 99:
    		sendOption2("Option 1", "Option 2");
    		c.dialogueAction = 97;
    		break;
    	case 5733: 
    	c.getDH().sendDialogues(99, 0);
    	break;
    Then to give it actions just find the actionbutton ID in clickingbuttons.java and add it like
    Code:
    } else if (c.dialogueAction == 97) {
    c.whatever here.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [DSPK] Item On Object
    By Kota Ko in forum Help
    Replies: 8
    Last Post: 06-01-2011, 11:04 PM
  2. Item Rarity PI/DSPK
    By Barinade in forum Help
    Replies: 4
    Last Post: 12-22-2010, 03:09 AM
  3. [PI/DSPK] Item Rarity
    By Barinade in forum Help
    Replies: 0
    Last Post: 12-19-2010, 09:13 AM
  4. DSPK Item Dump
    By MerzA in forum Configuration
    Replies: 6
    Last Post: 12-18-2010, 09:56 PM
  5. DSPK Item Dump
    By MerzA in forum Configuration
    Replies: 1
    Last Post: 12-17-2010, 10:53 PM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •