Thread: Twisted Bow Magic Damage Scaling

Results 1 to 9 of 9
  1. #1 Twisted Bow Magic Damage Scaling 
    Registered Member Cr0nix's Avatar
    Join Date
    Jul 2017
    Posts
    91
    Thanks given
    4
    Thanks received
    9
    Rep Power
    10
    Hey mates,

    I am quite new to the rsps scene and I've been messing around with the Twisted Bow n all that.

    Obviously got it working basically but I am not quite sure on how to implement or make a code that makes the Twisted Bow scale with the opponents Magic level like in osrs...

    I heard it wasn't that hard but I just can't seem to get it to work properly!


    Anyone got the Twisted Bow code for the magic scaling???
    (rusePS preferrably but any would be great!!!)



    Thanks for anyone sharing this!
    A wise man once said:

    What is love,
    Baby don't hurt me....
    No more :C
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Dec 2014
    Posts
    369
    Thanks given
    77
    Thanks received
    112
    Rep Power
    164
    the formula is:
    int Magic = p.getCombat().getAttacking().getLevels()[Skills.MAGIC];

    int Accuracy = 140 + (3*Magic-10)/100- ((3*Magic /10 - 100)*(3*Magic /10 - 100))/100;
    int Damage = 250 + (3*Magic-14)/100 - ((3*Magic /10 - 140)*(3*Magic /10 - 140))/100;

    Now just use this in your combat formulas.

    if(player.getequipment... == twistedbow.id)...
    apply this
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member Cr0nix's Avatar
    Join Date
    Jul 2017
    Posts
    91
    Thanks given
    4
    Thanks received
    9
    Rep Power
    10
    Quote Originally Posted by xfukecx View Post
    the formula is:
    int Magic = p.getCombat().getAttacking().getLevels()[Skills.MAGIC];

    int Accuracy = 140 + (3*Magic-10)/100- ((3*Magic /10 - 100)*(3*Magic /10 - 100))/100;
    int Damage = 250 + (3*Magic-14)/100 - ((3*Magic /10 - 140)*(3*Magic /10 - 140))/100;

    Now just use this in your combat formulas.

    if(player.getequipment... == twistedbow.id)...
    apply this
    Thanks a ton for your help mate, appreciated! I kept failing to make the calculation into a proper working code!
    A wise man once said:

    What is love,
    Baby don't hurt me....
    No more :C
    Reply With Quote  
     

  5. #4  
    Donator


    Join Date
    Dec 2014
    Posts
    369
    Thanks given
    77
    Thanks received
    112
    Rep Power
    164
    Quote Originally Posted by Cr0nix View Post
    Thanks a ton for your help mate, appreciated! I kept failing to make the calculation into a proper working code!
    Haha no problem my dude.
    Reply With Quote  
     

  6. #5  
    Registered Member
    Join Date
    Aug 2017
    Posts
    9
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Cr0nix View Post
    Thanks a ton for your help mate, appreciated! I kept failing to make the calculation into a proper working code!
    can u help me fix the t bow on my server, its shooting 2 arrows and the formula i adding wont work

    Quote Originally Posted by xfukecx View Post
    the formula is:
    int Magic = p.getCombat().getAttacking().getLevels()[Skills.MAGIC];

    int Accuracy = 140 + (3*Magic-10)/100- ((3*Magic /10 - 100)*(3*Magic /10 - 100))/100;
    int Damage = 250 + (3*Magic-14)/100 - ((3*Magic /10 - 140)*(3*Magic /10 - 140))/100;

    Now just use this in your combat formulas.

    if(player.getequipment... == twistedbow.id)...
    apply this
    Help me with this, code pls. and the 2 shooting Arrow gfx, when its shooting 1 Arrow, is dissapearing my character
    Reply With Quote  
     

  7. #6  
    Registered Member Cr0nix's Avatar
    Join Date
    Jul 2017
    Posts
    91
    Thanks given
    4
    Thanks received
    9
    Rep Power
    10
    Quote Originally Posted by stephansam View Post
    can u help me fix the t bow on my server, its shooting 2 arrows and the formula i adding wont work



    Help me with this, code pls. and the 2 shooting Arrow gfx, when its shooting 1 Arrow, is dissapearing my character
    2 Arrow shooting GFX is because you copied the Dark Bow Animations lad, simply change to any other bow's animation that you'd like it to use..

    Code for magic dmg scaling has to be placed in your Combat Formulas.
    A wise man once said:

    What is love,
    Baby don't hurt me....
    No more :C
    Reply With Quote  
     

  8. #7  
    Registered Member
    Join Date
    Nov 2012
    Posts
    599
    Thanks given
    14
    Thanks received
    54
    Rep Power
    26
    Any1 know how i can add this formula to a 718? I have twisted bow added but i cant figure how to make the damage formula/scaling like osrs onto 718
    Reply With Quote  
     

  9. #8  
    Banned

    Join Date
    Mar 2015
    Age
    31
    Posts
    1,332
    Thanks given
    215
    Thanks received
    329
    Rep Power
    0
    i need this for proper damage
    Reply With Quote  
     

  10. #9  
    Blurite

    Corey's Avatar
    Join Date
    Feb 2012
    Age
    26
    Posts
    1,491
    Thanks given
    1,245
    Thanks received
    1,729
    Rep Power
    5000
    Quote Originally Posted by khayam View Post
    Any1 know how i can add this formula to a 718? I have twisted bow added but i cant figure how to make the damage formula/scaling like osrs onto 718
    copy and paste
    Attached image
    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. Buying 100% Magic Damage
    By Orel in forum Buying
    Replies: 5
    Last Post: 08-02-2012, 06:57 PM
  2. making special attack do magic damage?
    By g s t a r in forum Help
    Replies: 1
    Last Post: 05-22-2011, 02:42 AM
  3. PI Magic damage melee weapon
    By c0re in forum Help
    Replies: 7
    Last Post: 03-06-2011, 08:28 PM
  4. [PI] Adding magic damage boost
    By McGill in forum Help
    Replies: 2
    Last Post: 10-30-2010, 11:25 PM
  5. [PI] Making items give more magic damage
    By Ross in forum Snippets
    Replies: 5
    Last Post: 10-02-2010, 06:33 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
  •