Is there any easy way to determine the number of charges left on a dueling ring?
Thanks in advance!
JIM
Is there any easy way to determine the number of charges left on a dueling ring?
Thanks in advance!
JIM
Uptext function should work.. Doesn't it say the charges left in the top left corner when you hover over the ring?
Should work when mouse is hovering over the item.SCAR Code:function ChargesRemaining : integer;
begin
result := StrToIntDef(between('Ring of dueling (', ')', GetUpText), -1);
end;
I don't know if that's how it looks as I haven't logged onto RuneScape in a while.
Last edited by Sex; 01-17-2010 at 10:58 AM.
Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
Originally Posted by #srl
"A programmer is just a tool which converts caffeine into code"
Worked perfectly! Thanks a mil!
Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
Originally Posted by #srl
"A programmer is just a tool which converts caffeine into code"
Would be a lot better to use something like
SCAR Code:S := GetUpText;
if (Pos('uel', s) > 0) then
Charge := StrToIntDef(GetNumbers(S), 0);
Sex's is a better option. Albiet, the Pos check probably removes the need for the Default.
Writing an SRL Member Application | [Updated] Pascal Scripting Statements
My GitHub
Progress Report:13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you have serious physchological problems 13:46 <@BenLand100> HE GETS IT! 13:46 <@BenLand100> HE FINALLY GETS IT!!!!1
No, because it checks to see if the string contains 'uel' before it does that.
What's wrong with that? It has a better chance of working IMO, his depends on a larger portion of a string to work... how often does UpText detect an entire phrase correctly?
Writing an SRL Member Application | [Updated] Pascal Scripting Statements
My GitHub
Progress Report:13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you have serious physchological problems 13:46 <@BenLand100> HE GETS IT! 13:46 <@BenLand100> HE FINALLY GETS IT!!!!1
Writing an SRL Member Application | [Updated] Pascal Scripting Statements
My GitHub
Progress Report:13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you have serious physchological problems 13:46 <@BenLand100> HE GETS IT! 13:46 <@BenLand100> HE FINALLY GETS IT!!!!1
I wasn't being completely serious. Haha and I know he wasn't being exact with the chance.
But even if the chances are better with your way with less letters (you'd still need to do what Nava2 said, since it'll also add the "3 more options" and add the 3 to the thing. :P), wouldn't you want to repeat it a few times, since apparently it doesn't work every time?
Now, now, girls....you're BOTH pretty!
You guys are seriously making a big deal out of this.
Mine works. IceFire's works.
It doesn't really matter which one is faster, it is a small loss/gain of speed.
Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
Originally Posted by #srl
"A programmer is just a tool which converts caffeine into code"
There are currently 1 users browsing this thread. (0 members and 1 guests)