Thread: [PI] NPC that gives loyalty title

Results 1 to 3 of 3
  1. #1 [PI] NPC that gives loyalty title 
    Registered Member
    Join Date
    Jul 2011
    Posts
    537
    Thanks given
    25
    Thanks received
    35
    Rep Power
    0
    Ok, so i've made a NPC with all the dialogues needed to change rank.

    All that i need help is how to actually give someone a rank? what code would i put in ClickingButtons.java?

    here's the loyalty title Tutorial http://www.rune-server.org/runescape...ty-titles.html


    Thanks.
    I support Eliminate.


    [Today 06:28 PM] Scu11: Mans gotta spread his wings, to do his tings
    Reply With Quote  
     

  2. #2  
    OoO Donor <3
    Rockstar Jax's Avatar
    Join Date
    Mar 2011
    Age
    27
    Posts
    608
    Thanks given
    77
    Thanks received
    78
    Rep Power
    21
    all you do is make the npc have dialog for each name. then you click the text get the action id. go to actionhandler and under that action add in a code like

    if(c.playerTitle == 0) {
    c.playerTitle = (or == not sure writing as i go) #;
    } else {
    c.sendMessage("you already have a title!");
    }
    }

    thats the basic format of the code youll probally have to change since i didnt compile it.

    This makes it so if you title is 0 then it can change, else if it has a number send a message and not change the title.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2011
    Posts
    537
    Thanks given
    25
    Thanks received
    35
    Rep Power
    0
    Quote Originally Posted by fogle7 View Post
    all you do is make the npc have dialog for each name. then you click the text get the action id. go to actionhandler and under that action add in a code like

    if(c.playerTitle == 0) {
    c.playerTitle = (or == not sure writing as i go) #;
    } else {
    c.sendMessage("you already have a title!");
    }
    }

    thats the basic format of the code youll probally have to change since i didnt compile it.

    This makes it so if you title is 0 then it can change, else if it has a number send a message and not change the title.
    Ok thanks, ill just change the first line to Donator.
    I support Eliminate.


    [Today 06:28 PM] Scu11: Mans gotta spread his wings, to do his tings
    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. All new rs Emote's ( of loyalty )
    By Tony12 in forum Configuration
    Replies: 9
    Last Post: 10-30-2011, 01:02 AM
  2. Loyalty program title flags
    By Discardedx2 in forum Snippets
    Replies: 26
    Last Post: 10-30-2011, 12:03 AM
  3. loyalty title [317 pi]
    By chrish146 in forum Help
    Replies: 3
    Last Post: 10-18-2011, 08:20 AM
  4. 562+ Loyalty flags
    By Beuner in forum Help
    Replies: 3
    Last Post: 09-17-2011, 03:51 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
  •