Thread: [PI] Dialogue Issues

Results 1 to 3 of 3
  1. #1 [PI] Dialogue Issues 
    Exiles Developer


    Join Date
    May 2009
    Age
    28
    Posts
    316
    Thanks given
    55
    Thanks received
    25
    Rep Power
    86
    So basically, i'm new to messing with dialogues, so i wanted to create a special altar with an optional dialogue box so this is what i have so far, will thank and try to rep. Yes, i know this is horrible and probably the worst way of doing it. Basically OBJECT 4008 is a altar, and i am trying to make it have a verification asking do they really want to spend 30 Pk Points on full special attack. I tried doing this but it doesn't work when i press spend Restore special attack.
    Actionhandler.java

    case 4008:
    if(c.specAltarTimer == 0) {
    if(c.Donator >= 1){
    c.startAnimation(645);
    c.specAmount = 10;
    c.getItems().addSpecialBar(c.playerEquipment[c.playerWeapon]);
    c.sendMessage("Your Special Attack Has Been Fully Restored!");
    c.specAltarTimer = 300;
    } else {
    c.sendMessage("Special Altar coming soon for non-donators, but for a price...");
    if(c.playerName.equalsIgnoreCase("Tyler")) {
    c.getDH().sendDialogues(19, 608);
    }
    }
    } else {
    c.sendMessage("You can only restore your special every 5 minutes!");
    }
    break;
    Dialoguehandler.java

    case 19:
    sendOption2("Restore Special Attack - @red@30 Pkp", "Nevermind");
    c.dialogueAction = 16;
    break;
    case 20://Restore Special attack
    if (c.pcPoints <= 29) {
    c.nextChat = 0;
    c.sendMessage("@red@Sorry come back with 30 or more Pk Points.");
    }
    if (c.pcPoints >= 30) {
    sendStatement("You give 30 Pk Points to the gods to recharge your special attack!");
    c.dialogueAction = 17;
    }
    break;
    Clickingbuttons.java

    else if (c.dialogueAction == 16) {
    c.getDH().sendDialogues(20, 608);
    } else if (c.dialogueAction == 17) {
    c.pcPoints -= 30;
    c.startAnimation(645);
    c.specAmount = 10;
    c.getItems().addSpecialBar(c.playerEquipment[c.playerWeapon]);
    c.sendMessage("Your Special Attack Has Been Fully Restored!");
    c.specAltarTimer = 300;
    }
    Any help would be appreciated
    Quote Originally Posted by Eazy View Post
    Quote Originally Posted by lostlegend View Post
    its not os-legacy its switched to Project-Insanity.
    And Very Much i ReCoded MEself. Check it out and u wil see ur self.
    People allways bothering with saying OS-LEGACY.. U NEVER CHECKED SERVERDONT COMPLAIN CHECK IT OUT B4 COMPLAINING
    So you switched Project-Insanity to Project-Insanity? gj
    Reply With Quote  
     

  2. #2  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    You can do this alot easier. Make the altar lead the the dialogue which confirms or denys it.

    case 4008:
    if(c.specAltarTimer == 0) {
    if(c.Donator >= 1){
    c.startAnimation(645);
    c.specAmount = 10;
    c.getItems().addSpecialBar(c.playerEquipment[c.playerWeapon]);
    c.sendMessage("Your Special Attack Has Been Fully Restored!");
    c.specAltarTimer = 300;
    } else {
    if (c.pcPoints <= 29) {
    c.nextChat = 0;
    c.sendMessage("@red@Sorry come back with 30 or more Pk Points.");
    } else {
    c.getDH().sendDialogues(19, 608);
    }


    case 19:
    sendOption2("Restore my special! @red@[30 PKP]", "No thanks!");
    c.dialogueAction = 17;
    break;




    else if (c.dialogueAction == 16) {
    c.getDH().sendDialogues(20, 608);
    } else if (c.dialogueAction == 17) {
    c.pcPoints -= 30;
    c.startAnimation(645);
    c.specAmount = 10;
    c.getItems().addSpecialBar(c.playerEquipment[c.playerWeapon]);
    c.sendMessage("Your Special Attack Has Been Fully Restored!");
    c.specAltarTimer = 300;
    }




    That's not exactly it, but i'm sure you can tweak it from there..
    Last edited by Xenon; 09-19-2012 at 12:03 AM. Reason: double post

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Exiles Developer


    Join Date
    May 2009
    Age
    28
    Posts
    316
    Thanks given
    55
    Thanks received
    25
    Rep Power
    86
    Quote Originally Posted by Ninth Legion View Post
    You can do this alot easier. Make the altar lead the the dialogue which confirms or denys it.

    case 4008:
    if(c.specAltarTimer == 0) {
    if(c.Donator >= 1){
    c.startAnimation(645);
    c.specAmount = 10;
    c.getItems().addSpecialBar(c.playerEquipment[c.playerWeapon]);
    c.sendMessage("Your Special Attack Has Been Fully Restored!");
    c.specAltarTimer = 300;
    } else {
    if (c.pcPoints <= 29) {
    c.nextChat = 0;
    c.sendMessage("@red@Sorry come back with 30 or more Pk Points.");
    } else {
    c.getDH().sendDialogues(19, 608);
    }


    case 19:
    sendOption2("Restore my special! @red@[30 PKP]", "No thanks!");
    c.dialogueAction = 17;
    break;




    else if (c.dialogueAction == 16) {
    c.getDH().sendDialogues(20, 608);
    } else if (c.dialogueAction == 17) {
    c.pcPoints -= 30;
    c.startAnimation(645);
    c.specAmount = 10;
    c.getItems().addSpecialBar(c.playerEquipment[c.playerWeapon]);
    c.sendMessage("Your Special Attack Has Been Fully Restored!");
    c.specAltarTimer = 300;
    }




    That's not exactly it, but i'm sure you can tweak it from there..
    Thanks a ton, solved, could this topic be closed? Thanked & Reped.
    Quote Originally Posted by Eazy View Post
    Quote Originally Posted by lostlegend View Post
    its not os-legacy its switched to Project-Insanity.
    And Very Much i ReCoded MEself. Check it out and u wil see ur self.
    People allways bothering with saying OS-LEGACY.. U NEVER CHECKED SERVERDONT COMPLAIN CHECK IT OUT B4 COMPLAINING
    So you switched Project-Insanity to Project-Insanity? gj
    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

Similar Threads

  1. PI Dialogue issues
    By Most Dope in forum Help
    Replies: 3
    Last Post: 06-13-2012, 05:27 AM
  2. Replies: 4
    Last Post: 03-22-2012, 11:53 PM
  3. Send dialogue and open dialogue commands
    By .Rex in forum Snippets
    Replies: 0
    Last Post: 01-04-2012, 11:12 PM
  4. Replies: 1
    Last Post: 03-05-2008, 12:47 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •