SRL Archive - OSR Help

How to get XP from range guild? + Updating real time


eXystis

2013-05-02 20:24:33

Well, I've been kinda stuck on this for a little while and I need some help. I can't figure out a way to get the current XP, and XP/Hour for the range guild. I've seen things like GetXP(skill_Range) but none of that seems to be working.

Anyone have any tips? This is for a proggy.

EngageTheRage

2013-05-02 20:34:58

yeha i think the getXp function hovers over the wrong area, what i would advise is basically copying the function out and changing this:
MMouse(MouseTB.X1+3,MouseTB.Y1+3, 55, 25);

to this:
MMouse((MouseTB.X1 + MouseTB.X2) / 2, (MouseTb.Y1 + MouseTB.Y2) / 2, 20, 10);

you may want to get the co-ords yourself if its just for ranged :D

EDIT: to explain what that does, instead of hovering over the top left corner of the skill box (+/- 55, 25) it hovers over the centre of the skill box (+/-20, 10)

EDIT: co- ords for the range skill box …


MMouse(574, 281, 20, 10);

eXystis

2013-05-02 23:10:09

I've gotten it to actually open up and looked at the range skill and view the XP, but how do I get the current XP to be displayed using SMART_DrawText command?

function TotalXP: Integer;
begin
XP := GetXP(skill_Range);
end;


And in the proggy:
SMART_DrawText(10,350-50,UpCharsEx, 'Current XP: ' + IntToStr(XP) ,clGreen);