Thread: need to make npc demote players

Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1 need to make npc demote players 
    RSPS SERVICES PROVIDER

    The Plateau's Avatar
    Join Date
    May 2015
    Posts
    999
    Thanks given
    592
    Thanks received
    191
    Rep Power
    129
    hello guys i'm try to added npc when a players talk to this npc demote him "explin"

    npc says "do you need to remove you donor status for 2000m cash ? "

    players say "yes" no Thanks"

    if players clicked on yes is got demote and got 2b cash but if clicked on no Thanks is don't got demote



    Thank you for read it hope help me pls ?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Feb 2015
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Make a dialogue.
    Reply With Quote  
     

  3. #3  
    RSPS SERVICES PROVIDER

    The Plateau's Avatar
    Join Date
    May 2015
    Posts
    999
    Thanks given
    592
    Thanks received
    191
    Rep Power
    129
    Quote Originally Posted by Javon SS View Post
    Make a dialogue.

    how can i make it ?
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Oct 2014
    Posts
    54
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    You need to make a case for the Dialoguehandler.java saying what you want him to say. Then you need to create what you want it to do in ActionHandler.java
    Reply With Quote  
     

  5. #5  
    RSPS SERVICES PROVIDER

    The Plateau's Avatar
    Join Date
    May 2015
    Posts
    999
    Thanks given
    592
    Thanks received
    191
    Rep Power
    129
    Quote Originally Posted by paulvereline View Post
    You need to make a case for the Dialoguehandler.java saying what you want him to say. Then you need to create what you want it to do in ActionHandler.java
    Thanks for reply again but i need

    Tutorials for do it ?
    Reply With Quote  
     

  6. #6  
    Donator

    Join Date
    Dec 2014
    Posts
    289
    Thanks given
    160
    Thanks received
    56
    Rep Power
    37
    Add something like this to your DialogueHandler.java

    Code:
    case 1:
    sendNpcChat2("Hello, I have the power to remove your Donator Status.", "This will be permanent so think about it.", c.talkingNpc, "Mikey96");
    c.nextChat = 2;
    break;
    
    case 2:
    sendOption2("I'd like to remove my status for 2B Coins.", "No Thanks, That's rather expensive.");
    c.dialogueAction = 1;
    break;

    You then need to handle the clicking of the Options in ClickingButtons,java, this can be done by obtaining the case ID of the option by clicking them in game and adding something like this under it:

    Code:
    case ****;
    
    if (c.dialogueAction == 1 && c.getItems().playerHasItem(995, 2000000000) && c.isDonator) {
    c.playerRights = 0;
    c.getPA().closeAllWindows();
    c.sendMessage("You successfully reset your donator status, please relog for it to take effect.");
    //You could add c.disconnect = true here if you want them to auto disconnect.
    } 
    
    
    case ****;
    
    if (c.dialogueAction == 1) {
    c.getPA().closeAllWindows();
    c.sendMessage("You god damn cheapskate.");
    }

    Hope this helps, any more questions don't hesitate to ask.
    Reply With Quote  
     

  7. Thankful user:


  8. #7  
    RSPS SERVICES PROVIDER

    The Plateau's Avatar
    Join Date
    May 2015
    Posts
    999
    Thanks given
    592
    Thanks received
    191
    Rep Power
    129
    Quote Originally Posted by mikey96 View Post
    Add something like this to your DialogueHandler.java

    Code:
    case 1:
    sendNpcChat2("Hello, I have the power to remove your Donator Status.", "This will be permanent so think about it.", c.talkingNpc, "Mikey96");
    c.nextChat = 2;
    break;
    
    case 2:
    sendOption2("I'd like to remove my status for 2B Coins.", "No Thanks, That's rather expensive.");
    c.dialogueAction = 1;
    break;

    You then need to handle the clicking of the Options in ClickingButtons,java, this can be done by obtaining the case ID of the option by clicking them in game and adding something like this under it:

    Code:
    case ****;
    
    if (c.dialogueAction == 1 && c.getItems().playerHasItem(995, 2000000000) && c.isDonator) {
    c.playerRights = 0;
    c.getPA().closeAllWindows();
    c.sendMessage("You successfully reset your donator status, please relog for it to take effect.");
    //You could add c.disconnect = true here if you want them to auto disconnect.
    } 
    
    
    case ****;
    
    if (c.dialogueAction == 1) {
    c.getPA().closeAllWindows();
    c.sendMessage("You god damn cheapskate.");
    }

    Hope this helps, any more questions don't hesitate to ask.

    Thanks mike for reply but my server don't have it DialogueHandler.java
    Reply With Quote  
     

  9. #8  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Probably 718 server or Asteria or something different, also why would someone who donated want their status removed and even paying for it?
    Secondly your english makes no sense
    Reply With Quote  
     

  10. #9  
    Donator

    Join Date
    Dec 2014
    Posts
    289
    Thanks given
    160
    Thanks received
    56
    Rep Power
    37
    Quote Originally Posted by ipkmills View Post
    Probably 718 server or Asteria or something different, also why would someone who donated want their status removed and even paying for it?
    Secondly your english makes no sense
    I agree, sorry I just assumed it was PI, can you tell us what base you are using?
    Reply With Quote  
     

  11. #10  
    Rune-Server Affiliate N0VA's Avatar
    Join Date
    Feb 2015
    Posts
    645
    Thanks given
    102
    Thanks received
    144
    Rep Power
    9
    Besides the fact, why would you want to remove you're donator status for 2b? I might have just have read this wrong.
    Reply With Quote  
     

Page 1 of 3 123 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. Replies: 6
    Last Post: 02-25-2014, 12:45 AM
  2. [PI] Need to make clipped NPc/Player
    By Br33zy in forum Help
    Replies: 1
    Last Post: 11-11-2013, 04:37 AM
  3. Replies: 7
    Last Post: 01-05-2013, 06:20 PM
  4. Replies: 2
    Last Post: 08-18-2010, 11:42 AM
  5. How to make NPCS talk like rl rs
    By .fabian in forum Tutorials
    Replies: 8
    Last Post: 10-18-2007, 10:09 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •