How would i make a Function that showed how much EXP had been maded?
Thanks
How would i make a Function that showed how much EXP had been maded?
Thanks
Last edited by rya; 12-13-2009 at 08:30 PM.
I see Now, says the blind man
maded == made or added, or maybe gained?![]()
um go to a site and get the XP for the object (www.runehq.com is an example), ex Copper = 17.5 xp per ore
then do a count of the object in the inventory, or an invcount if nothing else could be in there and go...
xp_gained := amountobject*XP so in the case of copper it is
xp_gained := Copper_Count*17.5;
i hope that makes sense
“Ignorance, the root and the stem of every evil.”
SCAR Code:Procedure ProgXP;
var I:Integer;
Begin
For I:=0 to HowManyPlayers -1 Do
Begin
Case Players[i].Integers[1] Of
1,2,3: Players[i].Extendeds[1]:=17.5;
4: Players[i].Extendeds[1]:=35;
End;
End;
End;
+''+Padr(FloatToStr((Players[i].integers[80])*(Players[i].Extendeds[1])),5)+''
Lol, lines from my powerminer, but basically:
XP per whatever you mined/fished/whatever TIMES How many you got.

You don't even have to look up anything. Everything is in SRL!
Look in FindXP.scar
In some cases it may be easier to just use a number but I wanted to inform you that SRL got some cool things like this.
But in some other cases it's much easier to use this. Like in my smither I had a good use of it.
Also looking up the starting xp and then the the xp after is a good idea too(then gained := afterxp - startxp) but it's not so good to do lots of times with color.
Lol, not ALL of them, but some here and there are broken. From what I've heard FindXP IS broken. But these are two different things.
1) Finding how much XP you have (FindXP)
2) Finding how much XP the script got you ^ those calculations up there.

Maybe the xps are broken a bit.
I just checked smithing and it was okay. And if it's not okay then correct it and tell it to a dev to commit it.
I haven't meant any calculation though. Just to get the xp for example for copper.
And I'm not talking about reflection(maybe you FEAR thought I am talking about it). SRL>Misc>FindXP.scar
If GetXP() works, you can do
in the beginning andSCAR Code:StartXP := GetXP(Skill);
in proggressreportSCAR Code:NowXP := GetXP(Skill);
GainedXP := NowXP - StartXP;
WriteLn('Player has gained '+IntToStr(GainedXP)+' XP');
What marpis posted, is the best way imo. It's most accurate in any way. If you just do OresMined * ExpPerOre you wouldn't count lamps, etc.
Ce ne sont que des gueux
There are currently 1 users browsing this thread. (0 members and 1 guests)