Results 1 to 4 of 4

Thread: L_WorldSelect not working properly

  1. #1
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default L_WorldSelect not working properly

    L_WorldSelect is not working properly.
    Used in
    Simba Code:
    function WorldScreen: Boolean;
    begin
      Result := (GetLobbyTab = L_WorldSelect);
    end;

    Returns false all the times.

    This is used multiple times in the world switcher and results in exiting all the world selecting. SelectWorld(53) for example does not work:

    Simba Code:
    function SelectWorld(W: integer): boolean;
    var
      x, y, xx, yy, T, CurW: integer;
      WRec: TWorld;
    begin
      if not InRange(W, 1, 200) then
      begin
        srl_Warn('SelectWorld', 'Invalid World', warn_AllVersions);
        Exit;
      end;
         
      if OpenWorldScreen then
      begin
        T := GetSystemTime + 60000;
        Repeat

    if OpenWorldScreen ->

    Simba Code:
    function OpenWorldScreen: Boolean;
    begin
     Result := LobbyTab(2);
    end;

    Everything caused by L_WorldSelect. Anyone knows where I can edit it, I couldn't find it myself.

    Script source code available here: Github

  2. #2
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Uhm...L_WorldSelect = 2 is a constant.
    If it doesn't work it means GetLobbyTab doesn't work, which means LoginPlayer won't work.
    Did you call SRL_ResetNavBar before calling this? Browser with safe mode?

  3. #3
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default

    Quote Originally Posted by riwu View Post
    Uhm...L_WorldSelect = 2 is a constant.
    If it doesn't work it means GetLobbyTab doesn't work, which means LoginPlayer won't work.
    Are you testing this in Smart or browser with safe mode?
    Using SMART. GetLobbyTab doesn't seem to work properly I guess. It doesn't recognize the world screen tab.

    Script source code available here: Github

  4. #4
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by J J View Post
    Using SMART. GetLobbyTab doesn't seem to work properly I guess. It doesn't recognize the world screen tab.
    It recognize everything but second tab? What did GetLobbyTab return?

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
  •