Results 1 to 6 of 6

Thread: Where am i going wrong?

  1. #1
    Join Date
    Dec 2011
    Posts
    88
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Where am i going wrong?

    Simba Code:
    program new;
    {$i srl/srl/misc/smart.scar}
    {$i srl/srl.scar}

    Var
      x, y: Integer;

    Procedure DeclarePlayer;

     Begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;
      Players[0].Name :='';
      Players[0].Pass :='';
      Players[0].Nick :='';
      Players[0].Active:=True;

     End;

    Procedure Coaltobag;

     Begin
      Mouse(620, 232, 7, 7, True);
      MMouse(577, 228, 2, 2);
      Wait(200+random(100));
      Mouse(x, y, 0, 0,True);

       End;


    Begin
      Smart_Server := 8;
      Smart_Members := False;
      Smart_Signed := True;
      Smart_SuperDetail := False;
      ClearDebug;
      SetupSrl;
      DeclarePlayer;
      LoginPlayer;
      Coaltobag;
    end.

    After Running it Clicks The Coal And Moves To Coal Bag And then Goes Of to top Corner ?

  2. #2
    Join Date
    Dec 2011
    Posts
    484
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You need to use bitmaps or DTM's. No one else will ever be able to use this unless they have everything in their bank in the same spots as you. At least as far as I know.

  3. #3
    Join Date
    Dec 2011
    Posts
    88
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Iv moved on from that This is for Space 1 and space 2 in the inventory ?

  4. #4
    Join Date
    Dec 2011
    Posts
    484
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  5. #5
    Join Date
    Nov 2006
    Posts
    1,103
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Mouse(x, y, 0, 0,True);<--- you have never defined a value for x and y, so they are at the default values 0 (which would mean it will click the topleft corner of your screen)
    Infractions, reputation, reflection, the dark side of scripting, they are.

  6. #6
    Join Date
    Dec 2011
    Posts
    88
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Haha :P fixed now thanks i guess i was thinking of something else

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
  •