Thread: [RSMod] Infernal Axe

Results 1 to 5 of 5
  1. #1 [RSMod] Infernal Axe 
    OWNER @ BOFA (Now Hiring)
    Mr Bill's Avatar
    Join Date
    May 2010
    Posts
    517
    Thanks given
    15
    Thanks received
    35
    Rep Power
    62
    Runescape Wiki:
    While chopping a tree with the infernal axe in the inventory or equipped, there is a 1/3 chance that the logs will be burnt as they are chopped, giving half of the Firemaking experience that would usually be gained by burning them the normal way. For example, redwood logs that are burnt by the infernal axe (which does not require level 90 Firemaking) will grant 175 Firemaking experience rather than the 350 experience that is granted by burning it normally.


    Example:
    Attached image


    Update TreeType.kt
    Code:
    enum class TreeType(val level: Int, val xp: Double, val firemakingXp: Double, val log: Int, val depleteChance: Int, val respawnTime: IntRange) {
        TREE(level = 1, xp = 25.0, firemakingXp = 20.0, log = Items.LOGS, depleteChance = 0, respawnTime = 15..25),
        ACHEY(level = 1, xp = 25.0, firemakingXp = 20.0, log = Items.ACHEY_TREE_LOGS, depleteChance = 0, respawnTime = 15..25),
        OAK(level = 15, xp = 37.5, firemakingXp = 34.75, log = Items.OAK_LOGS, depleteChance = 0, respawnTime = 15..25),
        WILLOW(level = 30, xp = 67.5, firemakingXp = 45.0, log = Items.WILLOW_LOGS, depleteChance = 8, respawnTime = 22..68),
        TEAK(level = 35, xp = 85.0, firemakingXp = 52.5, log = Items.TEAK_LOGS, depleteChance = 8, respawnTime = 22..68),
        MAPLE(level = 45, xp = 100.0, firemakingXp = 62.5, log = Items.MAPLE_LOGS, depleteChance = 8, respawnTime = 22..68),
        HOLLOW(level = 45, xp = 82.0, firemakingXp = 67.5, log = Items.BARK, depleteChance = 8, respawnTime = 22..68),
        MAHOGANY(level = 50, xp = 125.0, firemakingXp = 78.75, log = Items.MAHOGANY_LOGS, depleteChance = 8, respawnTime = 22..68),
        YEW(level = 60, xp = 175.0, firemakingXp = 101.25, log = Items.YEW_LOGS, depleteChance = 8, respawnTime = 22..68),
        MAGIC(level = 75, xp = 250.0, firemakingXp = 151.9, log = Items.MAGIC_LOGS, depleteChance = 8, respawnTime = 22..68),
        REDWOOD(level = 90, xp = 380.0, firemakingXp = 175.0, log = Items.REDWOOD_LOGS, depleteChance = 11, respawnTime = 50..100),
    }

    Update Woodcutting.kt, under:
    Code:
    p.addXp(Skills.WOODCUTTING, tree.xp)

    Add:
    Code:
                    val chanceOfBurningLogOnCut = (1..3).random()
                    if (axe.item == Items.INFERNAL_AXE && chanceOfBurningLogOnCut == 3) {
                            p.inventory.remove(tree.log)
                            p.addXp(Skills.FIREMAKING, tree.firemakingXp)
                    }

    This can probably be improved as well, I did not add degrading on the axe, or special attack yet! Feel free to post your improvements in the replies.
    Last edited by Mr Bill; 08-18-2019 at 03:41 AM.
    Attached image
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Extreme Donator


    Join Date
    Jul 2008
    Age
    31
    Posts
    956
    Thanks given
    186
    Thanks received
    344
    Rep Power
    1060
    Thanks Bill!
    Reply With Quote  
     

  4. #3  
    Software Developer

    Tyrant's Avatar
    Join Date
    Jul 2013
    Age
    24
    Posts
    1,562
    Thanks given
    678
    Thanks received
    423
    Rep Power
    1060
    instead of adding and then removing the logs, you should check if chance is matched and then add logs accordingly
    Reply With Quote  
     

  5. #4  
    OWNER @ BOFA (Now Hiring)
    Mr Bill's Avatar
    Join Date
    May 2010
    Posts
    517
    Thanks given
    15
    Thanks received
    35
    Rep Power
    62
    Quote Originally Posted by Tyrant View Post
    instead of adding and then removing the logs, you should check if chance is matched and then add logs accordingly
    Good point
    Attached image
    Reply With Quote  
     

  6. #5  
    Registered Member Anan's Avatar
    Join Date
    Oct 2008
    Posts
    408
    Thanks given
    5
    Thanks received
    27
    Rep Power
    15
    as said above you should just check before adding the item like this
    find
    Code:
                        p.inventory.add(tree.log)
    and replace with
    Code:
                    val chanceOfBurningLogOnCut = (1..3).random()
                    if (axe.item == Items.INFERNAL_AXE && chanceOfBurningLogOnCut == 3) {
                        p.addXp(Skills.FIREMAKING, tree.firemakingXp) //TODO : add infernal axe degradation + burning gfx
                    } else {
                        p.inventory.add(tree.log)
                    }
    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. Infernal pickaxe/axe GFX/ Anims
    By Dinh in forum Help
    Replies: 5
    Last Post: 09-13-2016, 03:28 PM
  2. Infernal pickaxe/axe GFX/ Anims
    By Kiana in forum Requests
    Replies: 8
    Last Post: 08-12-2016, 09:14 AM
  3. adding a basic dragon plate+ pick axe
    By Scottyz in forum Tutorials
    Replies: 43
    Last Post: 07-20-2008, 12:35 AM
  4. Dragon Woodcutting axe Special. + Exlplanations.
    By sik pure in forum Tutorials
    Replies: 6
    Last Post: 04-03-2008, 05:28 PM
  5. Barbarian Axe!
    By agent17 in forum Tutorials
    Replies: 12
    Last Post: 01-23-2008, 11:29 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
  •