Results 1 to 10 of 10

Thread: Reflection: BankItemIndex

  1. #1
    Join Date
    Feb 2006
    Location
    Belgium
    Posts
    3,137
    Mentioned
    3 Post(s)
    Quoted
    5 Post(s)

    Default Reflection: BankItemIndex

    I need someone to test the BankItemIndex hook in reflection, I updated it, my original transform returned the same result as Method's updater, but my original transform was flawed, my new transform should be rocksolid, but it hooks another field, so I need someone to verify if it does or doesn't work... Thx in advance.

  2. #2
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    'ac' doesn't work if that's what you're asking.

  3. #3
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by Boreas View Post
    'ac' doesn't work if that's what you're asking.
    Is 'Rb' returning the correct information, though?
    :-)

  4. #4
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Most of the time.

    There's a setarraylength(result in BankContains, even though it isn't returning an array, so I commented that out. I used this, and most of the time it would output the same number I inputted, actually maybe half the time. But with 'ac' it was giving a crazy 10 digit number.
    SCAR Code:
    myslot:=GetBankSlot(1);
     writeln(myslot.name);
     BankContains(myslot,dd);
     writeln(inttostr(dd));

    Edit:
    I added a for loop, it's not half or most of the time. 31.5% of the time.
    SCAR Code:
    1 1 Gold leaf
    2 2 Limestone brick
    3 2 Teak plank
    4 1 Oak plank
    5 5 Mahogany plank
    6 6 Willow logs
    7 7 Maple logs
    8 6 Logs
    9 9 Oak logs
    10 10 Teak logs
    11 8 Iron nails
    12 12 Fire rune
    13 1 Staff of earth
    14 5 Dust rune
    15 15 Earth rune
    16 0 Staff of water
    17 1 Staff of air
    18 18 Lumbridge teleport
    19 19 Battlestaff
    20 20 Soul rune
    21 21 Law rune
    22 22 Blood rune
    23 23 Water rune
    24 24 Body rune
    25 25 Air rune
    26 26 Fire orb
    27 18 Cosmic talisman
    28 5 Ring of duelling(1)
    29 1 Camelot teleport
    30 18 Ring of life
    31 1 Mystic robe top
    32 1 Mystic robe bottom
    33 1 Fist of guthix token
    34 34 Death rune
    35 35 Mind rune
    36 36 Nature rune
    37 37 Chaos rune
    38 38 Cosmic rune
    39 39 Seers ring
    40 40 Soft clay
    41 41 Fire battlestaff
    42 5 Progress hat
    43 5 Lunar ring
    44 5 Mithril bar
    45 18 Bones
    46 5 Games necklace(3)
    47 0 Amulet of glory(4)
    48 5 Lava battlestaff
    49 49 Coins
    50 5 Mystic fire staff
    51 5 Chaos tiara
    52 5 Air talisman
    53 5 Earth talisman
    54 1 Air tiara
    55 5 Earth tiara
    56 5 Water tiara
    57 5 Fire tiara
    58 5 Mystic hat
    59 1 Staff of fire
    60 5 Nature tiara
    61 1 Water talisman
    62 5 Lunar staff
    63 5 Lunar boots
    64 5 Lunar legs
    65 5 Lunar helm
    66 5 Lunar torso
    67 5 Lunar cape
    68 5 Lunar gloves
    69 5 Lunar amulet
    70 70 Bones to peaches
    71 71 Steel bar
    72 0 Coal
    73 73 Iron bar
    74 1 Rune pickaxe
    75 75 Steel arrowtips
    76 76 Headless arrow
    77 77 Gold bar
    78 5 Bronze bar
    79 79 Unicorn horn dust
    80 79 Grimy irit
    81 81 Grimy avantoe
    82 5 Chocolate bar
    83 81 Strawberry seed
    84 84 Grimy harralander
    85 18 Grimy cadantine
    86 39 Grimy kwuarm
    87 2 Grimy snapdragon
    88 5 Grimy dwarf weed
    89 89 Limpwurt root
    90 90 Vial of water
    91 71 Vial
    92 92 Chocolate dust
    93 93 Clean harralander
    94 77 Attack potion(4)
    95 5 Compost potion(4)
    96 81 Prayer potion(4)
    97 97 Energy potion(4)
    98 98 Restore potion(4)
    99 99 Shark
    100 39 Raw monkfish
    101 98 Potato with cheese
    102 102 Bucket of milk
    103 103 Pat of butter
    104 79 Swordfish
    105 105 Willow seed
    106 5 Torstol seed
    107 99 Jangerberry seed
    108 108 Mithril seeds
    109 79 Wildblood seed
    110 18 Watermelon seed
    111 81 Krandorian seed
    112 18 Asgarnian seed
    113 1 Nasturtium seed
    114 105 Yanillian seed
    115 77 Hammerstone seed
    116 103 Marigold seed
    117 0 Tomato seed
    118 9 Apple tree seed
    119 0 Orange tree seed
    120 120 Ranarr seed
    121 1 Curry tree seed
    122 1 Pineapple seed
    123 5 Calquat tree seed
    124 0 Banana tree seed
    125 5 Yew seed
    126 5 Palm tree seed
    127 5 Avantoe seed
    128 128 Spirit weed seed
    129 5 Maple seed
    130 0 Whiteberry seed
    131 9 Plant cure
    132 122 Pineapple
    133 5 Spicy sauce
    134 5 Chilli con carne
    135 5 Half an admiral pie
    136 105 Acorn
    137 5 Rake
    138 1 Cabbages(10)
    139 5 Onions(3)
    140 1 Onions(10)
    141 141 Tuna
    142 0 Chef's delight(m)
    143 142 Chef'
    s delight
    144 81 Cake
    145 1 Wizard's mind bomb
    146 98 Ale yeast
    147 5 Lobster pot
    148 148 Beer glass
    149 1 Dwarven stout
    150 81 Blue dragon scale
    151 5 Raw chicken
    152 18 Raw swordfish
    153 9 Raw trout
    154 5 Redberry pie
    155 1 Empty pot
    156 156 Antipoison(4)
    157 5 Chocolate cake
    158 79 Grimy toadflax
    159 5 Antipoison(3)
    160 5 Rune axe
    161 5 Rune warhammer
    162 1 Defence potion(3)
    163 5 Attack potion(1)
    164 105 Guam potion(unf)
    165 0 Red spiders'
    eggs
    166 5 Pestle and mortar
    167 5 Rosemary seed
    168 5 Woad seed
    169 0 Cabbage seed
    170 81 Fishing potion(4)
    171 5 Clean guam
    172 172 Strength potion(4)
    173 102 Bucket
    174 101 Potato
    175 175 Sweetcorn
    176 5 Snape grass
    177 9 Barley malt
    178 178 Jute fibre
    179 179 Grimy guam
    180 102 Irit seed
    181 18 Potatoes(10)
    182 81 Tomato
    183 5 Empty sack
    184 77 Grimy tarromin
    185 5 Potatoes(6)
    186 186 Supercompost
    187 187 Barley seed
    188 188 Jute seed
    189 5 Secateurs
    190 190 Potato seed
    191 5 Ectophial
    192 192 Marrentill seed
    193 193 Sweetcorn seed
    194 194 Limpwurt seed
    195 5 Amulet of nature
    196 5 Acrobat shoes
    197 5 Acrobat hood
    198 5 Moss giant bone
    199 79 Uncut emerald
    200 158 Flax
    63 of 200 correct

  5. #5
    Join Date
    Feb 2006
    Location
    Belgium
    Posts
    3,137
    Mentioned
    3 Post(s)
    Quoted
    5 Post(s)

    Default

    Hmm, odd, hooked ac by string reference, should technically be a perfect hook, oh well, I'll go hook Rb then

  6. #6
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Freddy1990, I will call you sexy if you give us the ability of using the interface master hooks

  7. #7
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by n3ss3s View Post
    Freddy1990, I will call you sexy if you give us the ability of using the interface master hooks
    It's either your constants or nothing, n3ss3s. I really doubt anything that Freddy can do will lead us to those coordinates.
    :-)

  8. #8
    Join Date
    Feb 2006
    Location
    Belgium
    Posts
    3,137
    Mentioned
    3 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by Method View Post
    It's either your constants or nothing, n3ss3s. I really doubt anything that Freddy can do will lead us to those coordinates.
    Getting Genesis done could probably achieve it

    I wrote a new transform and I committed the correct hook to reflection

  9. #9
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Was I doing something wrong or is there no way to make that 31.5 into 100?

  10. #10
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Well, you could try using DebugTBankSlotArray with GetBankArray to see what that outputs, but I can't really see anything that's wrong just from looking at that snippet of code.

    It's weird that it would get the names and other things correct but not the index.
    :-)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Reflection Help please?
    By Blumblebee in forum OSR Help
    Replies: 5
    Last Post: 01-10-2009, 10:28 PM
  2. reflection and non reflection scripts?
    By randy marsh in forum SRL Site Discussion
    Replies: 8
    Last Post: 01-08-2009, 04:05 PM
  3. reflection
    By m4sterdr4g0n in forum SRL Site Discussion
    Replies: 6
    Last Post: 12-06-2008, 06:58 PM
  4. Reflection
    By The! in forum OSR Help
    Replies: 6
    Last Post: 08-08-2008, 07:04 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
  •