Results 1 to 13 of 13

Thread: script help missing semicolon?

  1. #1
    Join Date
    Feb 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default script help missing semicolon?

    idk wats wrong

    Procedure Eat_Food;
    Begin
    Repeat
    If (HPPercent <10) then
    P07_FindObjcustom(x,y ['rout'], [7238283], 2) then
    Clickmouse(mouse_left);
    End;

    says missing semi colon on line 37

  2. #2
    Join Date
    Sep 2007
    Location
    Australia, NSW
    Posts
    934
    Mentioned
    6 Post(s)
    Quoted
    145 Post(s)

    Default

    Quote Originally Posted by pcap View Post
    idk wats wrong

    Simba Code:
    Procedure Eat_Food;
      Begin
        Repeat
         If (HPPercent <10) then
          P07_FindObjcustom(x,y ['rout'], [7238283], 2) then
            Clickmouse(mouse_left);
    End;

    says missing semi colon on line 37
    Please post simba code in simba tags as I have done above What script are you using? If it is an anti-leech, I cannot help you.

    INACTIVE
    How-to: Make S.M.A.R.T. less laggy

    Sell me your Maple Shieldbows (u)! Up to 95gp ea!

    My Scripts:
    Ivy Chopper Ultra [RS3] | Fantastic Fletcher [RS3]
    99 x78 | 99 x10 | 99 x2 | 99 x12


    Use the REPORT tags when posting progress reports to make life easier (:
    [REPORT]Put progress report in here![/REPORT]

    Super Savvy Smither V1.06Cool Classy Cooker V1.02 [EoC]

  3. #3
    Join Date
    Feb 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    i m trying to make a cow killer script idk what i m doing wrong ill post script that eats when low

    program Cow_Killer;

    {$I SRL/SRL.Simba}
    {$I SRL/SRL/Misc/Debug.Simba}
    {$I P07Include.Simba}

    var
    x, y: Integer;
    Test: Tstringarray;


    procedure DeclarePlayers;
    Begin
    HowManyPlayers := 1;
    NumberOfPlayers(HowManyPlayers);
    CurrentPlayer := 0;

    Players[0].Name :='';
    Players[0].Pass :='';
    Players[0].Nick :='';
    Players[0].Active:=True;
    End;

    procedure Kill_Cow;
    Begin
    repeat
    If P07_FindObjCustom (x,y, ['ow'], [1848381, 11975615],3) then
    ClickMouse2(Mouse_left);
    Wait(4500)
    until(HPPercent <10);
    End;

    Procedure Eat_Food;
    Begin
    Repeat
    If (HPPercent <10) then
    P07_FindObjcustom(x,y ['rout'], [7238283], 2) then
    Clickmouse(mouse_left);
    End;

    begin
    SetupP07Include;
    DeclarePlayers;
    P07_LoginPlayer;
    Repeat
    Kill_Cow;
    Until(false);

    end.

    i do not know how to post in simba tags sorry
    Last edited by pcap; 03-02-2013 at 12:06 AM.

  4. #4
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    Use SIMBA tags man....he already said that, but try this? I don't have the include soooo

    Simba Code:
    program Cow_Killer;

    {$I SRL/SRL.Simba}
    {$I SRL/SRL/Misc/Debug.Simba}
    //{$I P07Include.Simba}

    var
    x, y: Integer;
    Test: Tstringarray;


    procedure DeclarePlayers;
    Begin
    HowManyPlayers := 1;
    NumberOfPlayers(HowManyPlayers);
    CurrentPlayer := 0;

    Players[0].Name :='pcapp5';
    Players[0].Pass :='paul5';
    Players[0].Nick :='capp';
    Players[0].Active:=True;
    End;

    procedure Kill_Cow;
    Begin
    repeat
    //If P07_FindObjCustom (x,y, ['ow'], [1848381, 11975615],3) then
    ClickMouse2(Mouse_left);
    Wait(4500)
    until(HPPercent <10);
    End;

    Procedure Eat_Food;
    Begin
    Repeat
    If (HPPercent <10) then
    P07_FindObjcustom(x,y ['rout'], [7238283], 2)
    Clickmouse2(True);
    End;

    begin
    SetupP07Include;
    DeclarePlayers;
    P07_LoginPlayer;
    Repeat
    Kill_Cow;
    Until(false);

    end.

    Also you had a random then somewhere which shouldn't be. Just remove the //
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

  5. #5
    Join Date
    Jan 2013
    Posts
    146
    Mentioned
    0 Post(s)
    Quoted
    56 Post(s)

    Default

    you do it like this
    Simba Code:
    [(Simba)]
      your code here
    [(/)simba]

    but without the parenthesis

    look at the 4th 5th and 6th lines of code from your first post
    think about how if... then statements work
    Last edited by Saint//+; 03-01-2013 at 11:59 PM.

  6. #6
    Join Date
    Feb 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    .... i cant get it i changed some things but still same thing about semicolon

  7. #7
    Join Date
    Feb 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    how do i put in simba tag? so i m can post it better

  8. #8
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by pcap View Post
    how do i put in simba tag? so i m can post it better
    Click "go advanced", then click the picture of Simba above the chatbox. Then click "ok" if a window pops up. Then put your text inside the tags (between "]" and "[/" )

  9. #9
    Join Date
    Sep 2007
    Location
    Australia, NSW
    Posts
    934
    Mentioned
    6 Post(s)
    Quoted
    145 Post(s)

    Default

    Your EatFood procedure was screwed ahah Replace it with this, and it will compile:
    Simba Code:
    Procedure Eat_Food;
    Begin
      Repeat
        If (HPPercent <10) then
          if PO7_FindObjcustom(x,y, ['rout'], [7238283], 2) then
            Clickmouse2(mouse_left);
      until(HPPercent > 50)
    End;

    However, you should not use FindObjcustom(); for objects in your inventory. Try looking up a tutorial on DTM's in the beginner section

    E: You mistakes in the procedure:
    • Repeat with no closing Until()
    • No comma between y and ['rout']
    Last edited by Press Play; 03-02-2013 at 12:19 AM.

    INACTIVE
    How-to: Make S.M.A.R.T. less laggy

    Sell me your Maple Shieldbows (u)! Up to 95gp ea!

    My Scripts:
    Ivy Chopper Ultra [RS3] | Fantastic Fletcher [RS3]
    99 x78 | 99 x10 | 99 x2 | 99 x12


    Use the REPORT tags when posting progress reports to make life easier (:
    [REPORT]Put progress report in here![/REPORT]

    Super Savvy Smither V1.06Cool Classy Cooker V1.02 [EoC]

  10. #10
    Join Date
    Feb 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default Cowkiller in progress semicolon missing

    edit
    Last edited by pcap; 03-02-2013 at 12:23 AM.

  11. #11
    Join Date
    Feb 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by -daazndagger- View Post
    Your EatFood procedure was screwed ahah Replace it with this, and it will compile:
    Simba Code:
    Procedure Eat_Food;
    Begin
      Repeat
        If (HPPercent <10) then
          if PO7_FindObjcustom(x,y, ['rout'], [7238283], 2) then
            Clickmouse2(mouse_left);
      until(HPPercent > 50)
    End;

    However, you should not use FindObjcustom(); for objects in your inventory. Try looking up a tutorial on DTM's in the beginner section

    E: You mistakes in the procedure:
    • Repeat with no closing Until()
    • No comma between y and ['rout']
    yea i think i gotta look up a new DTM cus now its saying unkown identifier for the P07_findobjcustom

  12. #12
    Join Date
    Sep 2007
    Location
    Australia, NSW
    Posts
    934
    Mentioned
    6 Post(s)
    Quoted
    145 Post(s)

    Default

    Quote Originally Posted by pcap View Post
    yea i think i gotta look up a new DTM cus now its saying unkown identifier for the P07_findobjcustom
    Yes, make sure {$I P07Include.Simba} is still defined at the top. And don't double post please, just edit your previous post

    INACTIVE
    How-to: Make S.M.A.R.T. less laggy

    Sell me your Maple Shieldbows (u)! Up to 95gp ea!

    My Scripts:
    Ivy Chopper Ultra [RS3] | Fantastic Fletcher [RS3]
    99 x78 | 99 x10 | 99 x2 | 99 x12


    Use the REPORT tags when posting progress reports to make life easier (:
    [REPORT]Put progress report in here![/REPORT]

    Super Savvy Smither V1.06Cool Classy Cooker V1.02 [EoC]

  13. #13
    Join Date
    Feb 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    it is anything else that would make that unkown? btw thank you very much for help i m new to scripting

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
  •