Results 1 to 6 of 6

Thread: can i do this?

  1. #1
    Join Date
    Dec 2007
    Location
    Malaysia
    Posts
    430
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default can i do this?

    hey guys ive been wondering if i can do this to my script in my declare players i use this

    SCAR Code:
    Players[0].Name := ''; //username
      Players[0].Pass := ''; //password
      Players[0].Nick := ''; //3-4 letters from your username
      Players[0].Strings[0] := '' //type of bars eg Steel, Iron, Bronze
      Players[0].Active := true;

    and then i use the string[0] to withdraw the ores from the bank like this

    SCAR Code:
    procedure withdrawores;
    Begin
      SetAngle(True);
      if not LoggedIn then Exit;
      OpenBankFast('fwb');
      if BankScreen then
      begin
        if LowerCase(Players[CurrentPlayer].Strings[0]) of
        'Steel' then
          Begin
           If FindDtm(IronDTM, x, y, MSX1, MSY1, MSX2, MSY2) Then
            Begin
             Mouse(x, y, 5, 5, False);
             ChooseOption('X');
             wait(1000+Random(2000));
             TypeSend('9');
             wait(1000+Random(2000));
             FindNormalRandoms;
           end;
             Begin
               If FindDtm(CoalDTM, x, y, MSX1, MSY1, MSX2, MSY2) Then
               begin
                 Mouse(x, y, 5, 5, False);
                 ChooseOption('X');
                 wait(1000+Random(2000));
                 TypeSend('18');
                 wait(1000+Random(2000));
                 CloseBank;
                 MakeCompass('N');
                 end;
               end;
             end;
           FTWait(2+Random(3));
           WriteLn('we have withdraw the ores to make steel bars!!');
         end else
         WriteLn('we have failed to withdraw the ores...');
       
       'iron' then
         Begin
           If FindDtm(IronDTM, x, y, MSX1, MSY1, MSX2, MSY2) Then
             Begin
               Mouse(x, y, 5, 5, False);
               ChooseOption('X');
               wait(1000+Random(2000));
               TypeSend('28');
               wait(1000+Random(2000));
             end;
           end;  //etc with all the rest of ores

    can u please help me and tell me if i can do this thx!!! im making a smelter btw

  2. #2
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    1,490
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yes you could
    you should do
    smelt bar currentplayer.Strings[0] (i forgot it exactelly.. but i bet you understand what i mean)
    it is a good way

  3. #3
    Join Date
    Dec 2007
    Location
    Malaysia
    Posts
    430
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    what do u mean by

    smelt bar currentplayer.Strings[0]

    i though it had to be

    if LowerCase(Players[CurrentPlayer].Strings[0]) of

  4. #4
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    1,490
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    wait.. i check my script for it.. lol
    i use: players[currentplayer].strings[1]
    but you can use that too

  5. #5
    Join Date
    Dec 2007
    Location
    Malaysia
    Posts
    430
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok i think ive added more to it can u pls check and see why its not working ill add the whole script

  6. #6
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    1,490
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    sure i can..
    you can also add me on msn (pvh@live.nl)
    so we can talk about it on msn.. = much faster
    i'll have a look at it now
    edit..
    im still looking in it..
    but this:
    SCAR Code:
    Players[CurrentPlayer].Active := False; // Set your player to false!!
          Players[CurrentPlayer].Loc := 'Walking to furnace';
    can be changed with:
    SCAR Code:
    nextplayer(false);

    EDIT:
    fixed your whole script
    pmed

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
  •