Thread: Making elemental and catalytic runes trigger spells in spellbook

Results 1 to 8 of 8
  1. #1 Making elemental and catalytic runes trigger spells in spellbook 
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    23
    Posts
    3,415
    Thanks given
    7,254
    Thanks received
    1,938
    Rep Power
    3905
    I contain the elemental (ID: 12850) and catalytic (ID: 12851) runes in my inventory, but they don't seem to trigger any spells in the spellbook (whereas, they should make every spell triggered)..




    Help is appreciated.
    Attached image
    Attached image
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work here!
    Reply With Quote  
     

  2. #2  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    Quote Originally Posted by Zeref View Post
    I contain the elemental (ID: 12850) and catalytic (ID: 12851) runes in my inventory, but they don't seem to trigger any spells in the spellbook (whereas, they should make every spell triggered)..




    Help is appreciated.
    I'm guessing they only work with the stealing creation/fist of guthix spellbook.
    Project thread
    Reply With Quote  
     

  3. #3  
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    23
    Posts
    3,415
    Thanks given
    7,254
    Thanks received
    1,938
    Rep Power
    3905
    Quote Originally Posted by clem585 View Post
    I'm guessing they only work with the stealing creation/fist of guthix spellbook.
    There isn't a special spellbook for those two minigames..
    Attached image
    Attached image
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work here!
    Reply With Quote  
     

  4. #4  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    Quote Originally Posted by Zeref View Post
    There isn't a special spellbook for those two minigames..
    Are you using a 718/742 or a pure cache? Because maybe the scripts for updating the interface are waiting for another item Id (like a new 25000+ item).
    Project thread
    Reply With Quote  
     

  5. #5  
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    23
    Posts
    3,415
    Thanks given
    7,254
    Thanks received
    1,938
    Rep Power
    3905
    Still require assistance
    Attached image
    Attached image
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work here!
    Reply With Quote  
     

  6. #6  
    Registered Member
    Stimulant's Avatar
    Join Date
    Jan 2013
    Age
    27
    Posts
    1,457
    Thanks given
    248
    Thanks received
    187
    Rep Power
    578
    Quote Originally Posted by Zeref View Post
    Still require assistance
    Found this:

    Spoiler for Magic.java:
    private static final int ELEMENTAL_RUNE = 12850;
    private static final int CATALYTIC_RUNE = 12851;


    Spoiler for Still on magic.java:
    public static final boolean hasSpecialRunes(Player player, int runeId,
    int amount) {
    if (player.getInventory().containsItem(ELEMENTAL_RUNE , amount)) {
    if (runeId == AIR_RUNE || runeId == WATER_RUNE
    || runeId == EARTH_RUNE || runeId == FIRE_RUNE)
    return true;
    }
    if (player.getInventory().containsItem(CATALYTIC_RUNE , amount)) {
    if (runeId == ARMADYL_RUNE || runeId == MIND_RUNE
    || runeId == CHAOS_RUNE || runeId == DEATH_RUNE
    || runeId == BLOOD_RUNE || runeId == BODY_RUNE
    || runeId == NATURE_RUNE || runeId == ASTRAL_RUNE
    || runeId == SOUL_RUNE || runeId == LAW_RUNE)
    return true;
    }
    return false;
    }

    public static int getRuneForId(int runeId) {
    if (runeId == AIR_RUNE || runeId == WATER_RUNE || runeId == EARTH_RUNE
    || runeId == FIRE_RUNE)
    return ELEMENTAL_RUNE;
    else if (runeId == ARMADYL_RUNE || runeId == DEATH_RUNE
    || runeId == MIND_RUNE || runeId == CHAOS_RUNE
    || runeId == BLOOD_RUNE || runeId == BODY_RUNE
    || runeId == NATURE_RUNE || runeId == ASTRAL_RUNE
    || runeId == SOUL_RUNE || runeId == LAW_RUNE)
    return CATALYTIC_RUNE;
    return -1;
    }

    Reply With Quote  
     

  7. Thankful user:


  8. #7  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    Quote Originally Posted by Elyrion View Post
    Found this:

    Spoiler for Magic.java:
    private static final int ELEMENTAL_RUNE = 12850;
    private static final int CATALYTIC_RUNE = 12851;


    Spoiler for Still on magic.java:
    public static final boolean hasSpecialRunes(Player player, int runeId,
    int amount) {
    if (player.getInventory().containsItem(ELEMENTAL_RUNE , amount)) {
    if (runeId == AIR_RUNE || runeId == WATER_RUNE
    || runeId == EARTH_RUNE || runeId == FIRE_RUNE)
    return true;
    }
    if (player.getInventory().containsItem(CATALYTIC_RUNE , amount)) {
    if (runeId == ARMADYL_RUNE || runeId == MIND_RUNE
    || runeId == CHAOS_RUNE || runeId == DEATH_RUNE
    || runeId == BLOOD_RUNE || runeId == BODY_RUNE
    || runeId == NATURE_RUNE || runeId == ASTRAL_RUNE
    || runeId == SOUL_RUNE || runeId == LAW_RUNE)
    return true;
    }
    return false;
    }

    public static int getRuneForId(int runeId) {
    if (runeId == AIR_RUNE || runeId == WATER_RUNE || runeId == EARTH_RUNE
    || runeId == FIRE_RUNE)
    return ELEMENTAL_RUNE;
    else if (runeId == ARMADYL_RUNE || runeId == DEATH_RUNE
    || runeId == MIND_RUNE || runeId == CHAOS_RUNE
    || runeId == BLOOD_RUNE || runeId == BODY_RUNE
    || runeId == NATURE_RUNE || runeId == ASTRAL_RUNE
    || runeId == SOUL_RUNE || runeId == LAW_RUNE)
    return CATALYTIC_RUNE;
    return -1;
    }

    That works for the server-sided verification but we need to make them light up client-sided.

    Edit:Check these scripts out:

    Code:
    [Lightx] [Interface] Interface ID: 811
    [Lightx] [Script] Script ID: 295
    [Lightx] [Script] Possible Inputs: [Unknown]
    [Lightx] [Script] Linked Components: []
    [Lightx] [Script] Script ID: 1924
    [Lightx] [Script] Possible Inputs: [Blank]
    [Lightx] [Script] Linked Components: [65, 49, 106, 92, 78, 74]
    [Lightx] [Script] Script ID: 1926
    [Lightx] [Script] Possible Inputs: [Unknown]
    [Lightx] [Script] Linked Components: []
    [Lightx] [Script] Script ID: 1929
    [Lightx] [Script] Possible Inputs: [Blank]
    [Lightx] [Script] Linked Components: [126, 52, 65, 48, 95, 106, 91, 67, 78]
    [Lightx] [Script] Script ID: 1931
    [Lightx] [Script] Possible Inputs: [Int]
    [Lightx] [Script] Linked Components: [24, 26]
    [Lightx] [Script] Script ID: 1932
    [Lightx] [Script] Possible Inputs: [Blank]
    [Lightx] [Script] Linked Components: [5]
    [Lightx] [Script] Script ID: 1933
    [Lightx] [Script] Possible Inputs: [Blank]
    [Lightx] [Script] Linked Components: [5]
    [Lightx] [Script] Script ID: 1934
    [Lightx] [Script] Possible Inputs: [Blank]
    [Lightx] [Script] Linked Components: [30]
    [Lightx] [Script] Script ID: 1935
    [Lightx] [Script] Possible Inputs: [Blank]
    [Lightx] [Script] Linked Components: [30]
    [Lightx] [Script] Script ID: 1937
    [Lightx] [Script] Possible Inputs: [Unknown]
    [Lightx] [Script] Linked Components: []
    [Lightx] [Script] Script ID: 3734
    [Lightx] [Script] Possible Inputs: [Blank]
    [Lightx] [Script] Linked Components: []
    [Lightx] [Script] Script ID: 3757
    [Lightx] [Script] Possible Inputs: [Blank]
    [Lightx] [Script] Linked Components: []
    Maybe you need to send a special config.
    Project thread
    Reply With Quote  
     

  9. Thankful user:


  10. #8  
    Registered Member
    Stimulant's Avatar
    Join Date
    Jan 2013
    Age
    27
    Posts
    1,457
    Thanks given
    248
    Thanks received
    187
    Rep Power
    578
    Quote Originally Posted by clem585 View Post
    That works for the server-sided verification but we need to make them light up client-sided.

    Edit:Check these scripts out:

    Code:
    [Lightx] [Interface] Interface ID: 811
    [Lightx] [Script] Script ID: 295
    [Lightx] [Script] Possible Inputs: [Unknown]
    [Lightx] [Script] Linked Components: []
    [Lightx] [Script] Script ID: 1924
    [Lightx] [Script] Possible Inputs: [Blank]
    [Lightx] [Script] Linked Components: [65, 49, 106, 92, 78, 74]
    [Lightx] [Script] Script ID: 1926
    [Lightx] [Script] Possible Inputs: [Unknown]
    [Lightx] [Script] Linked Components: []
    [Lightx] [Script] Script ID: 1929
    [Lightx] [Script] Possible Inputs: [Blank]
    [Lightx] [Script] Linked Components: [126, 52, 65, 48, 95, 106, 91, 67, 78]
    [Lightx] [Script] Script ID: 1931
    [Lightx] [Script] Possible Inputs: [Int]
    [Lightx] [Script] Linked Components: [24, 26]
    [Lightx] [Script] Script ID: 1932
    [Lightx] [Script] Possible Inputs: [Blank]
    [Lightx] [Script] Linked Components: [5]
    [Lightx] [Script] Script ID: 1933
    [Lightx] [Script] Possible Inputs: [Blank]
    [Lightx] [Script] Linked Components: [5]
    [Lightx] [Script] Script ID: 1934
    [Lightx] [Script] Possible Inputs: [Blank]
    [Lightx] [Script] Linked Components: [30]
    [Lightx] [Script] Script ID: 1935
    [Lightx] [Script] Possible Inputs: [Blank]
    [Lightx] [Script] Linked Components: [30]
    [Lightx] [Script] Script ID: 1937
    [Lightx] [Script] Possible Inputs: [Unknown]
    [Lightx] [Script] Linked Components: []
    [Lightx] [Script] Script ID: 3734
    [Lightx] [Script] Possible Inputs: [Blank]
    [Lightx] [Script] Linked Components: []
    [Lightx] [Script] Script ID: 3757
    [Lightx] [Script] Possible Inputs: [Blank]
    [Lightx] [Script] Linked Components: []
    Maybe you need to send a special config.
    I don't think so, im sure it's server sided, the code checking if the runes is valid for the spell.

    - if im wrong nvm lol
    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. Replies: 7
    Last Post: 11-11-2013, 10:46 AM
  2. Replies: 5
    Last Post: 06-16-2013, 11:08 PM
  3. Replies: 2
    Last Post: 06-03-2010, 03:04 PM
  4. Replies: 1
    Last Post: 06-03-2010, 01:51 PM
  5. Replies: 5
    Last Post: 03-22-2008, 04:55 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
  •