[Tut] Clickable Npcs

Results 1 to 14 of 14
  1. #1
    Valued Member takhaet is offline
    MemberRank
    Jun 2007 Join Date
    134Posts

    [Tut] Clickable Npcs

    Clickable Npcs Tut
    Reason: Good for slayer
    Server Base: Zamorak
    Editing: Client.java

    Step1:
    First open up client.java

    Then Find:
    else if (NPCID == 2259) // Mage Of Zamorak

    Step2:
    Right ontop of it addthis:

    else if (NPCID == npcid) // Details
    {
    skillX = server.npcHandler.npcs[NPCSlot].absX;
    skillY = server.npcHandler.npcs[NPCSlot].absY;
    //Do something here//
    }

    Lol A very simple code.

    Example:

    else if (NPCID == 1648) // Crawlinghand Slayerxp
    {
    skillX = server.npcHandler.npcs[NPCSlot].absX;
    skillY = server.npcHandler.npcs[NPCSlot].absY;
    addSkillXP(0,1000);
    }

    Hope you enjoyed!


  2. #2
    Account Upgraded | Title Enabled! adidishen is offline
    MemberRank
    Jan 2007 Join Date
    EarthLocation
    516Posts

    Re: [Basic] Clickable Npcs

    else if (NPCID == 1648) // Crawlinghand Slayerxp
    {
    skillX = server.npcHandler.npcs[NPCSlot].absX;
    skillY = server.npcHandler.npcs[NPCSlot].absY;
    addSkillXP(0,1000);
    }
    so probably when i mass click it i gain exp?
    there are a few options for it:

    trade with the npc(shop)
    talk to the npc(shop)
    finish a clue
    quests
    teleports
    etc etc..
    but adding experience doesnt fit good..

  3. #3
    Valued Member takhaet is offline
    MemberRank
    Jun 2007 Join Date
    134Posts

    Re: [Basic] Clickable Npcs

    Yep it can mass unless you put a timer on it.
    Quests are good im using it for my normal rs remake project.

  4. #4
    Account Upgraded | Title Enabled! adidishen is offline
    MemberRank
    Jan 2007 Join Date
    EarthLocation
    516Posts

    Re: [Basic] Clickable Npcs

    Good luck with that.

  5. #5
    Valued Member takhaet is offline
    MemberRank
    Jun 2007 Join Date
    134Posts

    Re: [Basic] Clickable Npcs

    Thanks. I think

  6. #6
    Valued Member Thomy-13 is offline
    MemberRank
    May 2007 Join Date
    Emps-ScapeLocation
    138Posts

    Re: [Basic] Clickable Npcs

    How can i put a timer on this?

  7. #7
    Account Upgraded | Title Enabled! adidishen is offline
    MemberRank
    Jan 2007 Join Date
    EarthLocation
    516Posts

    Re: [Basic] Clickable Npcs

    Quote Originally Posted by Thomy-13 View Post
    How can i put a timer on this?
    find:
    public class client extends player implements runnable {

    press enter after the {
    then add:
    public int randomtimer = 0;
    then go to
    public boolean process
    and add..
    if(randomtimer > 0){randomtimer -= 1;}
    then at the npc..
    if(randomtimer == 0){
    addSkillXP(15,9999999);
    randomtimer = 10000;}

    done.

    btw, the timer is not a good thing to add. once you log out, the timer resets to 0.

  8. #8
    Valued Member takhaet is offline
    MemberRank
    Jun 2007 Join Date
    134Posts

    Re: [Basic] Clickable Npcs

    Yep thats how...

  9. #9
    Account Upgraded | Title Enabled! Brandon is offline
    MemberRank
    Aug 2006 Join Date
    Florida - U.S.ALocation
    1,090Posts

    Re: [Basic] Clickable Npcs

    [Basic] is not an appropriate prefix for a title. I will change it for you this time; however next time action will be taken against your account for not complying with our rules.

    Regards,
    Brandon

  10. #10
    Valued Member takhaet is offline
    MemberRank
    Jun 2007 Join Date
    134Posts

    Re: [Tut] Clickable Npcs

    Lol its easy to follow why is it not basic???

  11. #11
    The light can't stop me. Steven is offline
    MemberRank
    May 2007 Join Date
    United KingdomLocation
    1,531Posts

    Re: [Tut] Clickable Npcs

    Kool!! Wicked...

  12. #12
    Member heleyhansen is offline
    MemberRank
    Jun 2007 Join Date
    Donkey's!Location
    62Posts

    Re: [Tut] Clickable Npcs

    Brilliant!

  13. #13
    Member pure3363 is offline
    MemberRank
    Apr 2007 Join Date
    57Posts

    Re: [Tut] Clickable Npcs

    could i also replace the addSkillXP(0,1000); part with tele cordinace

  14. #14
    Valued Member Thomy-13 is offline
    MemberRank
    May 2007 Join Date
    Emps-ScapeLocation
    138Posts

    Re: [Tut] Clickable Npcs

    Is there also a way to add the xp when the npc is dead?
    Cuz im working on slayer lol, added everything except the xp if a npc dies...



Advertisement