Thread: [PI] Barrageing if lowerd stats.

Results 1 to 9 of 9
  1. #1 [PI] Barrageing if lowerd stats. 
    Registered Member

    Join Date
    Sep 2009
    Age
    27
    Posts
    2,768
    Thanks given
    367
    Thanks received
    187
    Rep Power
    458
    So say i have 94 magic, (to cast barrage), if i brewed down to 70 mage, i can still cast barrage ( that's how runescape updated it a few months back), does anyone know how i could do that on my project insanity server, or any ideas?
    Reply With Quote  
     

  2. #2  
    The One And Only

    01053's Avatar
    Join Date
    Apr 2011
    Age
    28
    Posts
    2,887
    Thanks given
    417
    Thanks received
    885
    Rep Power
    856
    well i am not sure what you are asking but i will try to explain what i think your asking.

    clearly there is a if statement asking if below 94 mage it cannot be casted just make another if statement checking if brewed and below 94 can be castable quite easy don't you think?


    Reply With Quote  
     

  3. #3  
    I'm Baack...


    Join Date
    Mar 2011
    Posts
    1,663
    Thanks given
    281
    Thanks received
    202
    Rep Power
    324
    Or you can have it check, not for the level but for the amount of exp in the magic skill. This way as long as you have the level (for real) a brew should not affect it.
    I'm back
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Sep 2009
    Age
    27
    Posts
    2,768
    Thanks given
    367
    Thanks received
    187
    Rep Power
    458
    Quote Originally Posted by 01053 View Post
    well i am not sure what you are asking but i will try to explain what i think your asking.

    clearly there is a if statement asking if below 94 mage it cannot be casted just make another if statement checking if brewed and below 94 can be castable quite easy don't you think?
    Well...

    Code:
    {12891,94,1979,0,0,369,30,52,560,4,565,2,555,6,0,0}, // ice barrage
    That's ice barrage the "94" is the level, i wouldn't really know.
    Reply With Quote  
     

  5. #5  
    Author of the first public OSRSPS

    Shadowy's Avatar
    Join Date
    Sep 2009
    Age
    28
    Posts
    1,499
    Thanks given
    490
    Thanks received
    241
    Rep Power
    307
    I've only ever done 508/525 coding, but this should work:

    (That really long code you had in the above post):
    X represents another number

    change
    Code:
    (X, X, X, X, 94, X, X)///ice brg
    to

    Code:
    (X, X, X, currentMagicLevel, X, X, X);///barrage
    then above in that method somewhere add

    Code:
    int currentMagicLevel = (your level thing... in 508/525 its player.skillLevel[6])
    e.g. (508/525:

    Code:
    int currentMagicLevel = p.skillLvl[6];
    Owner of OS-RSPS, the first Oldschool RuneScape Server (2014)
    Reply With Quote  
     

  6. #6  
    I'm Baack...


    Join Date
    Mar 2011
    Posts
    1,663
    Thanks given
    281
    Thanks received
    202
    Rep Power
    324
    What I would do is the above except the getxp method rather then assigning a new integer and using that.
    I'm back
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Mar 2011
    Posts
    4,062
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    there should be an if (c.playerLevel[6] >= 94) or if (c.playerLevel[6] > 93) change that to if (c.getPA().getLevelForXP(c.playerXP[6]) > 93)
    Reply With Quote  
     

  8. #8  
    I'm Baack...


    Join Date
    Mar 2011
    Posts
    1,663
    Thanks given
    281
    Thanks received
    202
    Rep Power
    324
    Quote Originally Posted by relex lawl View Post
    there should be an if (c.playerLevel[6] >= 94) or if (c.playerLevel[6] > 93) change that to if (c.getPA().getLevelForXP(c.playerXP[6]) > 93)
    yeah, Thats what i was saying but i cbf finding the exact code... thanks
    I'm back
    Reply With Quote  
     

  9. #9  
    Banned

    Join Date
    Mar 2011
    Posts
    4,062
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    Quote Originally Posted by Sillhouette View Post
    yeah, Thats what i was saying but i cbf finding the exact code... thanks
    lol redoing most skill classes makes you remember most things like that xD
    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. [562] Stats?
    By Exion in forum Help
    Replies: 0
    Last Post: 06-03-2010, 12:03 AM
  2. Stats Help
    By Chocothunda in forum Help
    Replies: 2
    Last Post: 05-09-2010, 09:42 AM
  3. RuneScape Stats Script & RuneScape Stats Image Script
    By Zachera in forum Website Development
    Replies: 26
    Last Post: 02-17-2010, 11:46 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
  •