SRL Archive - Reflection Help

R_XpTillNextLevel not 100% accurate.


Floor66

2009-06-01 23:09:23

So yeah, i've noticed it's off by like 50~200 exp.

Shuttleu

2009-06-01 23:49:06

but that worked fine during when i made it :(
and anyway what is 50~200 exp?

~shut

EDIT: i will see if i can find the source of the problem

EDIT: i cant see any problem
it must be to do with the exp that reflection is getting not my function

Floor66

2009-06-02 15:51:29

It's not ur func indeed.

EDIT:
It isn't 50~200 exp I just saw, it can be anything (just saw 3k ..)

Shuttleu

2009-06-02 20:36:17

im gonna go into windows and run it to see how accurate it still is

~shut

Floor66

2009-06-02 21:58:47

My exp till 72 range: ~76k
R_XpTillNextLevel says: ~96k

EDIT:
I know you got a formula and all for it, but can't we just make an array with this info: http://www.tip.it/runescape/?page=xp_table.htm
And do the XpDiff - CurrentSkillExp (GetMySkill(Number, False)) or something?
Or get the current exp and subtract it from the exp needed for the next level?

HyperSecret

2009-06-02 22:34:33

When you grab the hook it could be the same way as the Quick Chat works. When you say your Xp till next level on Quick Chat is gives you ALL the xp between the level, not what you currently have left to gain but how much it takes to get the level.

my thought.

Floor66

2009-06-02 22:51:55

I've made an exact one, it's not that pretty but oh well. It's exact :)

HyperSecret

2009-06-02 22:53:19

The one that SRL uses does that type of things that you stated above. This is the REFLECTION version which just grabs the data from the game but I would assume that hook is like what is in Quick Chat.

Floor66

2009-06-02 22:56:03

SRL's uses GetTextAtEx afaik..

ZaSz

2009-06-02 23:08:53

reflections is weird but works? I use it for fish to next level.

fish to level = r_xptillnextlevel(10) / 15. (15 is the exp per fish) i watched it as it fished and it counted right. Like it didn't jump from 20 left to 15. It went from 20 to 19, to 18.

But when I compare the exp's in the debug are different from that of in game. Also I see the exp match the game when expleft is closer to under 120.

Shuttleu

2009-06-07 23:29:46

From: Zasz
reflections is weird but works? I use it for fish to next level.

fish to level = r_xptillnextlevel(10) / 15. (15 is the exp per fish) i watched it as it fished and it counted right. Like it didn't jump from 20 left to 15. It went from 20 to 19, to 18.

But when I compare the exp's in the debug are different from that of in game. Also I see the exp match the game when expleft is closer to under 120.


http://www.youtube.com/watch?v=BjQOdzz3BMY

~shut