Thread: Help with objects giving xp please

Results 1 to 4 of 4
  1. #1 Help with objects giving xp please 
    Registered Member
    Join Date
    May 2017
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Hello, im new to coding rsps and ive got everything i need so far to my server from rune-server thanks alot but theres this 1 thing i cant figure out/find help


    i want it that if i click a portal itl give me Attack/Strenght/Defence/hp levels, all 3 portals 1 each

    https://gyazo.com/642eb6886e55309a99ff4b34285b4eef


    if this screenie helps ^


    Thanks alot
    Reply With Quote  
     

  2. #2  
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,716
    Thanks given
    56
    Thanks received
    108
    Rep Power
    129
    Quote Originally Posted by Crowbox View Post
    Hello, im new to coding rsps and ive got everything i need so far to my server from rune-server thanks alot but theres this 1 thing i cant figure out/find help


    i want it that if i click a portal itl give me Attack/Strenght/Defence/hp levels, all 3 portals 1 each

    https://gyazo.com/642eb6886e55309a99ff4b34285b4eef


    if this screenie helps ^


    Thanks alot
    In the server should be a class that handles object clicks. In that class you have to add the object id of the portal and make it so it adds xp to a skill.
    If you look at one of your skills server sided you can find out how giving xp works, if you can't figure it out then try to find some code, so we can figure it out.
    Attached image
    Reply With Quote  
     

  3. #3  
    Extreme Donator


    Join Date
    Aug 2016
    Posts
    597
    Thanks given
    109
    Thanks received
    96
    Rep Power
    254
    What he said.

    Should have some sort of xp adding method so once you find it you apply it to your object id and every time you click it, then it does the action which in this case is adding experience

    Code:
    player.getSkillManager().addExperience(Skill.ATTACK, 2000);
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    May 2017
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Thanks guys
    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. Help with object id's please {718}
    By loli8urcat in forum Help
    Replies: 5
    Last Post: 11-10-2015, 09:52 AM
  2. [pi] Item on object gives xp. [help]
    By 1defk0 in forum Help
    Replies: 2
    Last Post: 08-15-2011, 10:46 PM
  3. [pi] Item on object gives xp. [help]
    By 1defk0 in forum Help
    Replies: 2
    Last Post: 08-09-2011, 12:32 AM
  4. help with objects doing things..
    By Toonscape in forum Tutorials
    Replies: 2
    Last Post: 04-21-2008, 06:49 PM
  5. Help with a few things please.
    By Jakey in forum Tutorials
    Replies: 1
    Last Post: 09-26-2007, 07:50 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
  •