Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved Combo Staff returns 0 for quantity of Rune.@@@.getQuantity() for the non-combo runes it provides

Joined
Aug 23, 2015
Messages
1,970
Code:
snufalufugusmuffin [2 hours ago]
@party Rune.AIR.getQuantity() returns 0 with a `Dust battlestaff` equipped


cloud [12 minutes ago]
OSRS or RS3?


cloud [12 minutes ago]
Also, making a thread would ensure we'd see it


snufalufugusmuffin [11 minutes ago]
OSRS


snufalufugusmuffin [11 minutes ago]
i made a comment in my code for party to see too :lul:


cloud [10 minutes ago]
Comments may be overlooked unless we think something odd is up with the code around it


snufalufugusmuffin [10 minutes ago]
:thumbsup:


cloud [8 minutes ago]
Looking at the code though I would think it would work


cloud [7 minutes ago]
actually that may only apply to combination runes not combination staffs


cloud [7 minutes ago]
check other combination staffs and see what the results are


snufalufugusmuffin [7 minutes ago]
if its regex related i wont be much help


cloud [6 minutes ago]
and also see if using Rune.DUST.getQuantity() returns a proper value


cloud [6 minutes ago]
Party can handle the regex if you can debug the results


snufalufugusmuffin [5 minutes ago]
for mystic mud staff, earth and water both return 0


snufalufugusmuffin [4 minutes ago]
mud returns `2147483647`


snufalufugusmuffin [3 minutes ago]
so it looks like combo staffs are considered to be only combo runes, instead of combo runes AND the combo rune's individual runes


cloud [3 minutes ago]
that's appropriate then


snufalufugusmuffin [3 minutes ago]
ehhh idk

cloud [2 minutes ago]
yeah that seems to be case based on the regex


cloud [2 minutes ago]
my second to last response was in regards to your comment about combo staf

cloud [1 minute ago]
staffs only being considered for combo runes


snufalufugusmuffin [1 minute ago]
by appropriate do you mean that's the intended operation?  because if so, i strongly disagree


cloud [< 1 minute ago]
@party look into this when you get a chance and @snufalufugusmuffin please make a forum thread with your findings and appropriate tags
 
@Party
 
scuffed
 
Joined
Aug 23, 2015
Messages
1,970
Rubular: (?=.*staff\b)(?=.*DUST\b).*

Should work, can you debug a little please.

  1. cloud [7 minutes ago]
  2. check other combination staffs and see what the results are
  1. cloud [6 minutes ago]
  2. and also see if using Rune.DUST.getQuantity() returns a proper value
  1. snufalufugusmuffin [5 minutes ago]
  2. for mystic mud staff, earth and water both return 0


  3. snufalufugusmuffin [4 minutes ago]
  4. mud returns `2147483647`


  5. snufalufugusmuffin [3 minutes ago]
  6. so it looks like combo staffs are considered to be only combo runes, instead of combo runes AND the combo rune's individual runes
 
Client Developer
Joined
Oct 12, 2015
Messages
3,781
Yeah I found the issue but the fix isn't working and it's a pain in the ass.
 
Fixed next release.
 
Top