Thread: Actionbuttons Handling

Results 1 to 6 of 6
  1. #1 Actionbuttons Handling 
    Banned

    Join Date
    Sep 2007
    Posts
    1,838
    Thanks given
    22
    Thanks received
    21
    Rep Power
    0
    Okay, it only reads the first action, what do i do to make it read all of them?

    case 9157:
    if (c.dialogueAction == 14) {
    c.playerquest1 = 1;
    }
    else if (c.dialogueAction == 17) {
    if (c.getItems().playerHasItem(423, 1)) {
    c.getItems().deleteItem(423,1);
    c.getPA().removeAllWindows();
    c.playerquest1 = 4;
    }
    else if (c.dialogueAction == 16) {
    c.playerquest1 = 3;
    }
    else if (c.dialogueAction == 15) {
    c.playerquest1 = 2;
    }
    Reply With Quote  
     

  2. #2  
    ̿ ̿̿ ̿̿ ̿̿̿'̿'\̵͇̿̿\=(•̪

    Dragonking's Avatar
    Join Date
    May 2008
    Posts
    2,011
    Thanks given
    16
    Thanks received
    31
    Rep Power
    567
    What do u mean


    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Sep 2007
    Posts
    1,838
    Thanks given
    22
    Thanks received
    21
    Rep Power
    0
    Okay, well i have an npc open dialogues etc. Then i have him give you an option YES/NO, Case 9157 is YES
    and 9158 is NO
    No matter what those are the cases. So i have to make it read all of them, not just the top one.
    Reply With Quote  
     

  4. #4  
    Registered Member Mayday Parade's Avatar
    Join Date
    Apr 2009
    Age
    24
    Posts
    495
    Thanks given
    20
    Thanks received
    17
    Rep Power
    8
    ugh... I have to retype this because I accidentally backed the page.

    If you are trying to make the person recieve and item, try:
    Code:
     else if (c.dialogueAction == 14) {
    					c.getItems().addItem(ID, AMNT);
    				}
    or, if you want the player to "buy" the item, do this:
    Code:
     else if (c.dialogueAction == 14) {
    					if (c.getItems().playerHasItem(ID, Amount)) {
    					c.getItems().addItem(ID, AMNT);
    					c.getItems().deleteItem2(ID, AMNT);
    					}
    				}
    Those should work. If deleteItem2 deletes all of that item, try deleteItem. Have fun
    (NOTE: I love making this stuff, so if you need help, add my msn and message me. Also, they need to go under case 9157: for yes, and case 9158: for no.)

    Spoiler for LoL:
    Quote Originally Posted by Imbued View Post
    Quote Originally Posted by pasta186 View Post
    That tutorial doesnt walk.
    That's because it got no legs..
    Best report I've sent? "Mass spam? Also in wrong sexual"
    LOL
    Reply With Quote  
     

  5. #5  
    :doge:

    Join Date
    Jan 2009
    Posts
    3,759
    Thanks given
    221
    Thanks received
    816
    Rep Power
    2113
    case INTERFACE_ID:
    switch(buttonId) {
    case BUTTON_ID_ON_INTERFACE:
    //process
    break;
    }
    break;

    just made that in comment box so it's messy
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Sep 2007
    Posts
    1,838
    Thanks given
    22
    Thanks received
    21
    Rep Power
    0
    Quote Originally Posted by king gauge View Post
    ugh... I have to retype this because I accidentally backed the page.

    If you are trying to make the person recieve and item, try:
    Code:
     else if (c.dialogueAction == 14) {
    					c.getItems().addItem(ID, AMNT);
    				}
    or, if you want the player to "buy" the item, do this:
    Code:
     else if (c.dialogueAction == 14) {
    					if (c.getItems().playerHasItem(ID, Amount)) {
    					c.getItems().addItem(ID, AMNT);
    					c.getItems().deleteItem2(ID, AMNT);
    					}
    				}
    Those should work. If deleteItem2 deletes all of that item, try deleteItem. Have fun
    (NOTE: I love making this stuff, so if you need help, add my msn and message me. Also, they need to go under case 9157: for yes, and case 9158: for no.)
    I dont know what you're on about.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

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