Results 1 to 3 of 3

Thread: GetCombatLevel

  1. #1
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default GetCombatLevel

    All I did was change get stat level to right coords and added gametab switching.

    I needed it for something, but I don't know if you guys will find a use for it. Maybe something that mouses over monster, gets combat level and compares to the chars to know whether to run or fight. I dunno, whatever, it's here if you need it.

    SCAR Code:
    program New;
    {.include srl\srl.scar}

    function getcombatlevel:integer;
    var
    melon, i: integer;
    eagle : string;
    begin
      melon:=getcurrenttab;
      gametab(1);
      eagle:= GetTextAtEx(671, 230, 100, StatChars, False, True, 0, 5, -1, 2, True, tr_Digits);
      if (Trim(eagle) = '') then
      for i := 1 to 5 do
      begin
        eagle := GetTextAtEx(671 + i, 230, 100, StatChars, False, True, 0, 5, -1, 2, True, tr_Digits);
        if (Trim(eagle) <> '') then Exit;
      end;
      if (not (Trim(eagle) = '')) then
        result := StrToInt(Trim(eagle));
      gametab(melon);
    end;

    begin
    setupsrl;
    writeln(inttostr(getcombatlevel));
    end

  2. #2
    Join Date
    Aug 2006
    Location
    London
    Posts
    2,021
    Mentioned
    2 Post(s)
    Quoted
    0 Post(s)

    Default

    i already made something like this, ages ago before i became a developer

    its in this thread which i put the procedures i made
    http://www.villu-reborn.com/showthread.php?t=2800

    ps. why dont you just make a big thread to put all your procedures into?
    Join the Official SRL IRC channel. Learn how to Here.

  3. #3
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    O I didn't see that. O well, it only took me a minute to modify, and I needed it quick for the anti noob thing. By the way, did you release that before or after the last srl? I ask because I was surprised it wasn't in there, seeing as it's so much like getstat.

    Yea I think I'll put my obscure stuff in one thread and stuff like bank finder that people search for in separate.

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
  •