Results 1 to 3 of 3

Thread: Ermmmm... am I stupid or something...?

  1. #1
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Ermmmm... am I stupid or something...?

    Because I simply can't find a function which returns the current world, or logs into another world... I looked into Scss.Scar, but that just kept confusing me... would anyone dumb it down for me or show me where i can find a normal function? thanks a lot
    Pure1993
    There is nothing right in my left brain and there is nothing left in my right brain.

  2. #2
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    SCAR Code:
    {*******************************************************************************
    function CurrentWorld: Integer;
    By: Cheesehunk, Ron and fixed by ZephyrsFury
    Description: Returns the current world you are on.
    *******************************************************************************}


    function CurrentWorld: Integer;
    var
      TextX, TextY: Integer;
    begin
      if (GetCurrentTab <> 8) then
      begin
        GameTab(8);
        Wait(50 + Random(50));
      end;
      if (IsTextInAreaEx(634, 208, 723, 224, TextX, TextY, 'RuneSca', 0, SmallChars, False, False, 0, 0, -1)) then
      begin
        try
          Result := StrToInt(Trim(GetTextAtEx(TextX + 65, TextY, 0, SmallChars, True,
                            False, 0, 0, -1, 3, False, tr_AllChars)));
        except
          Result := -1;
          WriteLn('Could not get Current World.');
        end;
      end else
      begin
        Result := -1;
        WriteLn('Could not get Current World.');
      end;
    end;

    Yup; you are stupid.

    Haha; jokes. It was in GameTab.scar.

    Nava2
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  3. #3
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Okay, I am stupid, thanks a lot.
    (any mod/admin, feel free to decrease my postcount by 2 if you like, this was probably the most stupid thread ever from an srl member... :S)
    There is nothing right in my left brain and there is nothing left in my right brain.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Stupid Me...
    By nate o in forum News and General
    Replies: 9
    Last Post: 05-03-2007, 12:01 PM

Posting Permissions

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