Results 1 to 3 of 3

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

  1. #1
    Join Date
    Apr 2013
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

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

    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.

  2. #2
    Join Date
    Apr 2013
    Location
    England
    Posts
    223
    Mentioned
    2 Post(s)
    Quoted
    106 Post(s)

    Default

    yeha i think the getXp function hovers over the wrong area, what i would advise is basically copying the function out and changing this:
    Code:
    MMouse(MouseTB.X1+3,MouseTB.Y1+3, 55, 25);
    to this:
    Code:
    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

    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 ...

    Code:
      MMouse(574, 281, 20, 10);
    Last edited by EngageTheRage; 05-03-2013 at 12:52 AM.

  3. #3
    Join Date
    Apr 2013
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    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?

    Code:
    function TotalXP: Integer;
    begin
    XP := GetXP(skill_Range);
    end;
    And in the proggy:
    Code:
    SMART_DrawText(10,350-50,UpCharsEx, 'Current XP: ' + IntToStr(XP) ,clGreen);

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •