adc Posted June 28, 2014 Share Posted June 28, 2014 Right, so I've been trying to parse the number out of the Barrows killcount. By creating a new RS2InterfaceChild and calling getMessage() from it, I get a return value of "Kill Count : %1" regardless of the number, which leads me to believe that %1 is a placeholder. How, then, can I get the actual number, instead of the placeholder? Link to comment Share on other sites More sharing options...
Joseph Posted June 28, 2014 Share Posted June 28, 2014 I mean if it's the fact that the % and your trying to get just the number. Get message is a string you could use replace("%","")and it will just turn into numbers Link to comment Share on other sites More sharing options...
Swizzbeat Posted June 28, 2014 Share Posted June 28, 2014 It's prolly stored in your player variables (ie. configs). 2 Link to comment Share on other sites More sharing options...
Botre Posted June 28, 2014 Share Posted June 28, 2014 (edited) It's prolly stored in your player variables (ie. configs). it is Edit: if you are writing a barrows script -> tackle the tunnels first ;) Edited June 28, 2014 by Botrepreneur 1 Link to comment Share on other sites More sharing options...
Pseudo Posted June 28, 2014 Share Posted June 28, 2014 I mean if it's the fact that the % and your trying to get just the number. Get message is a string you could use replace("%","")and it will just turn into numbers This. It must be a setting. Link to comment Share on other sites More sharing options...
Precise Posted June 28, 2014 Share Posted June 28, 2014 it is Edit: if you are writing a barrows script -> tackle the tunnels first yeah, i swear they are dynamic :P Link to comment Share on other sites More sharing options...
adc Posted June 28, 2014 Author Share Posted June 28, 2014 (edited) It's prolly stored in your player variables (ie. configs). Okay, I'll look around the configs class for it, thanks. feel free to add anything else about obtaining the number if you know it guys Also, the % character isn't the problem, it's the %1, which is a placeholder for a variable, and for some reason the placeholder is returned instead of the value of the variable. Edit: I'm poking through configs, but maybe someone can answer this for me: how exactly do I find a variable that I'm looking for in configs? Edited June 28, 2014 by adc Link to comment Share on other sites More sharing options...
Botre Posted June 28, 2014 Share Posted June 28, 2014 config debug Link to comment Share on other sites More sharing options...
adc Posted June 28, 2014 Author Share Posted June 28, 2014 config debug Well that was easy Link to comment Share on other sites More sharing options...