Thread: Gain XP boost with wearing items

Results 1 to 7 of 7
  1. #1 Gain XP boost with wearing items 
    Registered Member
    Join Date
    Jan 2017
    Posts
    23
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Hi, i've been trying to fix items such as brawlers and botanist clothing, ehm. You are supposed to get xp boost whilst wearing these items and I ahvent figured out a good way to do this, so i'm wondering if there's a chance one of you guys on this forum have any easy ideas for this?

    Highly appreicated.
    Thanks.
    Reply With Quote  
     

  2. #2  
    08-13, SpawnScape Owner

    jet kai's Avatar
    Join Date
    Dec 2009
    Age
    25
    Posts
    736
    Thanks given
    378
    Thanks received
    353
    Discord
    View profile
    Rep Power
    2106
    Quick way of doing this is find where XP on Skill action is (Thieving for example), add a check if you're wearing the gloves and then add the % boost to the value. There are many better ways, but this is the most simple to explain and write for anyone. (This is the worst way though and will fill your whole source with such a mess, but it will *cough* get the job done ... after a while)

    The best way (in my opinion) of adding this bonus is if you have an 'AddExp(skill, exp) void', then if the skill (Thieving) is equal to the glove (Thieving brawling) for example, it will give the bonus.
    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jan 2017
    Posts
    23
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by jet kai View Post
    Quick way of doing this is find where XP on Skill action is (Thieving for example), add a check if you're wearing the gloves and then add the % boost to the value. There are many better ways, but this is the most simple to explain and write for anyone. (This is the worst way though and will fill your whole source with such a mess, but it will *cough* get the job done ... after a while)

    The best way (in my opinion) of adding this bonus is if you have an 'AddExp(skill, exp) void', then if the skill (Thieving) is equal to the glove (Thieving brawling) for example, it will give the bonus.
    I'm fairly new to coding 'n all that, can you give me like an example with thieving and the thieving brawler? :O
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    May 2013
    Age
    24
    Posts
    414
    Thanks given
    208
    Thanks received
    186
    Rep Power
    129
    Quote Originally Posted by kronans1234 View Post
    I'm fairly new to coding 'n all that, can you give me like an example with thieving and the thieving brawler? :O
    Brawlers only give a certain amount of bonus experience before degrading to dust, so that'd be a bit more code then a normal item, say the black ibis set.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jan 2017
    Posts
    23
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by ReverendDread View Post
    Brawlers only give a certain amount of bonus experience before degrading to dust, so that'd be a bit more code then a normal item, say the black ibis set.
    I have disabled that they are going to degrade, I just need an example of how the code would look like, just basically giving more XP whilst wearing the item. I've tried some things and it hasnt worked. :/
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    May 2013
    Age
    24
    Posts
    414
    Thanks given
    208
    Thanks received
    186
    Rep Power
    129
    Quote Originally Posted by kronans1234 View Post
    I have disabled that they are going to degrade, I just need an example of how the code would look like, just basically giving more XP whilst wearing the item. I've tried some things and it hasnt worked. :/
    Assuming your using Matrix if your using a 718ish+

    In the addExp method in Skills.java add:
    Code:
    if (skill == THEIVING && player.getEquipment().getGlovesId() == brawlerglovesid)
    exp *= 4;
    Forgive me if that code isnt 100% like matrix, its been awhile since ive looked at a 718+
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jan 2017
    Posts
    23
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Thank you!
    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. Item XP boost?
    By Codiction in forum Help
    Replies: 15
    Last Post: 10-14-2014, 02:22 PM
  2. Rune-Evo V3 - Adding xp boosts to items?
    By Adrian Graham in forum Help
    Replies: 6
    Last Post: 02-23-2014, 03:17 PM
  3. Problem with wearing items.
    By Djurres in forum Help
    Replies: 3
    Last Post: 12-27-2012, 10:50 PM
  4. PI Start with wearing items?
    By Aim High in forum Help
    Replies: 14
    Last Post: 10-05-2012, 01:17 PM
  5. A little help with wearing items [PI]
    By Dedicati0n in forum Help
    Replies: 4
    Last Post: 06-21-2012, 10:05 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
  •