Results 1 to 5 of 5

Thread: Error: Identifier Expected.... first script, Monster&Me game

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

    Default Error: Identifier Expected.... first script, Monster&Me game

    K, well, yea I am new to SCAR scripting, but I have used other peoples scripts for a long time, back before I quit runescape...
    I was a member at Kaitnieks, made me sad when it was shut down
    after it shut down, I kinda lost my zest for RS and drifted away from it, as a lvl 81 member with almost every quest beaten, i eventually sold my accound to a friend for $25

    Anyway, back on topic, I know its probably a simple problem I am looking over, but I cant seem to find it...
    i get the error

    [Error] (219:1): Identifier expected in script F:\Monster and Me Autofighter.scar

    in the last line of the script, it directs me to the "end."
    any ideas on whats wrong?
    it was working fine, but i changed something, and I'm not sure what it was...

    it is an autofighter/healer (not complete)
    I still have to add in pet healing too, but I dont want to continue until i fix it
    What its supposed to be doing is:

    Start a battle 'C' times
    after B=C (b is set to 0, and is +1 each repeat) start procedure 'Heal'
    if A=0, use stanching grass, A=1, healing powder, etc
    Repeat script

    EDIT no jutsu: also, i know its not very efficient, but it started as a simple fight-only script, and i kinda built off of it, and it eventually got here
    im gonna make a V2 sometime that tells how many battles you fought, how many levels you gain, and maybe set it to automatically use stat points




    Also, I'm not using SRL, since, if i remember right, most of it is for runescape anyway, and probably wouldnt work for Monster&Me
    heres the script:


    SCAR Code:
    program AutoFight;
    var a,b,c,t,x,y,fight,itembag,istancher,healpowder,paindew,amrita,iX,human,ok: integer;
    //Must be set to the Ferocious Skin or script will not function!!
    //Click System(S), move down to Skin, and click Ferocious

    procedure load;
    Begin
    t :=10000 //This is the time it takes before you win a Battle
    //Time yourself/your party fighting about three enemies, and round up by
    //about three seconds
    //add a 000 to the end of that, and put it in place of 10000
    //example:  t :=10000 is 10 seconds, 8000 is 8 seconds


    a :=0; //this is the type of healing item you wish to use
    //0=Stanching Grass
    //1=Healing Powder
    //2=Pain-Easing Dew
    //3=Amrita Wine

    c :=5;//this is the ammount of rounds before you want to heal

    //Edit nothing below here

    b :=0
      fight := BitmapFromString(27, 14, 'z78DAED54CB0A03210CFCA5A' +
           'D8F261E63DCFCFF27150C0B165144ED524A2F3984714C66740C1A' +
           'B1C9FCEB4F57A2E4455AB5C6ACF0F7917060240C91CD89730CEB0' +
           'ACC2147185A18DD972CB338488123F7F52F5522480FA1FAD49C83' +
           '35269808296A072D39F665A7C5AF9827E0112E64DE6E5CC3F12D5' +
           '4811147C6BDDBEBF227EEDD3CE1D76B38F70EEF9C70EE2FF7394B' +
           '86200CE7B99472D965554F3B3E81C58BBF4ADDFB2B4070D1AA7A6' +
           'F799267D33CD975D70B90D91363');
      itembag := BitmapFromString(18, 15, '27584238775A36765B3877' +
           '5A14131136615039604E2758423A765C37785A38775C131315376' +
           '04E385D4B2C3A2367643B5B592688833F2758423A765C38745830' +
           '351E332518375E493A614F27573F38775C3A765A314B3222190A3' +
           '5342024220B94915CE3DD89A9A34FA4A24D27584236775931543E' +
           '4C4D253A301523161037594826554135745724322134331466633' +
           '05043216B6737DADC88BAB15489843358562327584238775C4244' +
           '2C81804098965B4D4D291507001401000501022C2A119F9D52B8B' +
           '568999555958E46B2AD517D7626302C0724180C27584238775842' +
           '593D7A743A9E9D5AD6D88F807E4B3F3921352D165450218E8645C' +
           '8C26CCCC86FA49D42776F1A292C0F1D2A201B392D27584237775C' +
           '3A7257575A2BABA35BE3DE8DD3D17CA4A1527974306863214F491' +
           '5626224AAA74A888631302E071424191A3127192F23275842377A' +
           '5936765B315D444C4D23918E4B98984E85853D635D213E3C0B474' +
           '6186C6A3164612C5150182E2B0C182315142B21162D2527584239' +
           '755C39785B377357100F0D1A24191B1E1317190E13190F0507066' +
           '5622DDDDB84A9A55C68601F39370E1F170019291E1B3027275842' +
           '3A765D36765B36755A1212122C4C3D253D30142920131A1216130' +
           '2414012918C4A86813F514B19272405221D091E18081C27172758' +
           '4238775A37775C3A765C11110F31554B2948380F19101E1C07686' +
           '6297F7A382425051D190027260A3C3A143A38114745151E1B0C27' +
           '58423A765C37765939785D1214133659451D221B3D3D19726E2EC' +
           '2BD6B9D9950322C082C290852501D6E69296761257D7B3187833A' +
           '27584238775A37775C38775A15151722231349441A8D8C3ACAC77' +
           'AD5CE7E716E292A25053C370F78742D8A8533A09A509F9C4BADA8' +
           '5427584236775936785C3B70522115075E5B24A5A045C8C576E5E' +
           '09CC2BD615A581D434017827D3BB8B3578C862EA49D59D3CE7AB1' +
           'AE5127584237775C3B735A282C136D6B32BAB65BCAC373E3DFA2D' +
           'BD78DBBB4666260236A6730CECA6FC7C25C958E3DBBB76DDAD584' +
           'CDC7712758423A765A2C3820645E2ABDBC62C3BC6BE0DC9CE0DD9' +
           'AD7D485C8C578ACAA5786813DC2BD61B1AC50B9B172D7D38AD8D2' +
           '86D5CF81');
      istancher := BitmapFromString(18, 7, 'z78DACD91C10E84300844' +
           '7F89A154E1D8A8FFFF4B3B14B327D7DD785A929A46983714449E0' +
           '4A41904DE77B862090DD3A3F5A158A17116B9E6C1DAF9C7D5C4BF' +
           '405D9D4C313249EE0ABAF0260E6AD34BC90E6D30DD092D2624551' +
           'AA7CB76E3C22C2BB1B2DB86318CA4585AB0FFF262367B985EE0BB' +
           '8259B0521BC920B95CCAF18A7FD6205571901C4E8FA2D5342EBBB' +
           '254F9982A7AB19E8733B60F93DFB237676F73F278BFDA7FDC9DD7' +
           '84F37BAFAA2DCBDC813C0D93BF8B1767159383');
      Healpowder := BitmapFromString(11, 11, 'z78DA65515BB243' +
           '2108DB9220207E8A8FFD2FE9463D6D6FA77C64986842508BD6D62' +
           'AD1F35A2E3D0EAEB59A2E30A10B4C1BBBBF4C261DCA29254F4F79' +
           '1FE0ABCC8303DADA37B60DDBE130FBB4E498DDC873E29AFED53DC' +
           '5FD78DDBF8889E5E619539ACFDAF94EF7D43FF377596E70C616E5' +
           '620C8BB050613717AE362C33996A83839EFC92BE8A6BA9161B0B6' +
           'E16454F5755E8E9F7A9964C2E24FC16C227D7DC33E1804BE4EAD3' +
           '3BB079C760AE820CB30A18F38E2470FE3F5D18DA4A4E1DEF423BE' +
           'DDBE1F18196CAC01664843C7B16325A55F6EE6CF96A5F5BECCC79' +
           '6F1150212D18A8286D15322267D36A25AF3222D4059BE6AF87704' +
           'E7073C6BCF438D3FD6DB01678436EA34E17655569BF2F0995D007' +
           '8FF620FA174F8913FC0F9B7ECBE9E8BE509E7E6783160ED8E5E17' +
           'FEA0F5DD29B8E');
      paindew := BitmapFromString(1, 12, '00000000000000000000000' +
           '0000000000000102818739263D6BE5294C3AD94DBFF6BBACE');
      amrita := BitmapFromString(5, 7, '313842C6C7D64A494A0808080' +
           '0040063657B8C92A59496A5636573313839949AA5C6C3CEE7EBEF' +
           'EFEFF7B5B6C69CA2ADCECFD6FFFFFFFFFBFFBDC3C69C9AA5C6C7C' +
           'EFFFFFFF7F7FFB5B6BD9C9AA5C6C7CEFFFFFFF7F7FFB5B6BD9C9E' +
           'A5C6CBCEFFFFFFFFF7FFBDBABD');
      iX := BitmapFromString(14, 20, 'z78DAED934B8EE5200C45B7E42F' +
           'D8439BCFFE97D44E52AFF4927AB3568FAA41B29081937B8D03080' +
           'DA82600D7D45A31381860AD8F2835AFDDD799634AEDE0D71A2B2F' +
           '7516A091D1E609408DE67E1B4024342A76DAA0C292E00A6A283DA' +
           'CA19AB9C1327486DEC1B8084221A2D8F29B096437E63590890384' +
           '9734488D26087DDBBC9DD156EC2238E5F13D1F6F3A0762DD82DBF' +
           '96B944A55C0D6BBDC76474F1BA5B3592F02D178304B39B4BA55BB' +
           'EC423FC9EF19C4BA1B5581F40DB34FA74BD5834964D05BF684AA8' +
           '92650552F3F54639ABA233B86A3BBC5846DE1EB647EF29E86B6AA' +
           '3ED415F810FD9389CD293A0EDFA984D1074058065E4EEFCCE3658' +
           '9BC9797E31DEF4EB93CDEDE0577D840EA4923C0FB76B93AE7C154' +
           '455C2E010FA72BA4B4CD145CC5B9D599467D8A007B75D6C97CEA9' +
           'CAFEABD9EC446306AD1AC54E5E072BA8793A7CDC70BB67DF69296' +
           'CD77A6563BAC2F5F559D8CD357B20C9E93E7184B44A6ACC57BEA1' +
           'AB74E031DAD7DF28E71FC7438CEE8786412D77726CEF5227A65EA' +
           '1F91A3AE67CC335FF19D69CB3DF6DFC78B59FAB0BAFD1F0C42458' +
           'EFFF1B7C53F45C3682E');
      human := BitmapFromString(43, 15, 'z78DA333030B630363718254' +
           '7C951124C3A3ABA98BAB951AE663404465A08E0D2855F25848D4B' +
           '0D7E9720AB21C67662CCA46708902A4E0BBB880F5B5C24E569801' +
           '2715AD845FF5C40B938B5E265688500EDEC1ABA213018D200ED52' +
           '26317651370D8C92A3E4C8240191572A1B');
      ok := BitmapFromString(27, 3, 'z78DA333030B6303637C04B3A3AB' +
           'A98BAB92193F85512631A797A29378D3CF753D734FC6AA86517B2' +
           '08004993678A');

    end;

    procedure heal;
    begin
    if(FindBitmap(itembag,x,y)) then

            begin
                MoveMouseSmoothEx(x,y+random(0),20,40,45,25,20);
                Wait(100)
                ClickMouse(x,y,true);
                Wait(300)
            end;


            Begin


                 if(a=0) then
                 if(FindBitmap(istancher,x,y)) then

                    begin
                    MoveMouseSmoothEx(x,y+random(0),20,40,45,25,20);
                    Wait(100)
                    Clickmouse(x,y,true);
                    end;

                 if(a=1) then
                 if(FindBitmap(Healpowder,x,y)) then

                     begin
                     MoveMouseSmoothEx(x,y+random(0),20,40,45,25,20);
                     Wait(100)
                     Clickmouse(x,y,true);
                     end;

                 if(a=2) then
                 if(FindBitmap(paindew,x,y)) then

                    Begin
                    MoveMouseSmoothEx(x,y+random(0),20,40,45,25,20);
                    Wait(100)
                    Clickmouse(x,y,true);
                    end;

                 if(a=3) then
                 if(findbitmap(amrita,x,y)) then

                    Begin
                    MoveMouseSmoothEx(x,y+random(0),20,40,45,25,20);
                    Wait(100)
                    Clickmouse(x,y,true);
                    end;

            if(findbitmap(human,x,y)) then

            begin
                 MoveMouseSmoothEx(x,y+random(0),20,40,45,25,20);
                 wait(100)
                 Clickmouse(x,y,true);
            end;
            if(findbitmap(ok,x,y)) then
            begin
                 MoveMouseSmoothEx(x,y+random(0),20,40,45,25,20);
                 wait(100)
                 Clickmouse(x,y,true);
            end;
            if(FindBitmap(iX,x,y)) then
            begin
                 MoveMouseSmoothEx(x,y+random(0),20,40,45,25,20);
                 wait(100)
                 Clickmouse(x,y,true);
            end;
    end;



    //this is the actual script

    Begin
    load;
    wait(500)
    repeat
    if(FindBitmap(fight,x,y)) then


            Begin
              repeat
                    repeat
                    MoveMouseSmoothEx(x,y+random(0),20,40,45,25,20);
                    Wait(100)
                    ClickMouse(x,y,true);
                    wait(t)
                    b := b + 1;
                    until(b >=c)
                    Heal;
                    B :=0
              until(false)
            end;
    //it directs me to this line when i get an error, the error is:
    //Line 219: [Error] (219:1): Identifier expected in script F:\Monster and Me Autofighter.scar
    end.

  2. #2
    Join Date
    Jan 2007
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm not by any means what you would call a "l33t script0r"...
    but it seems as though that script might lag, with all of those large bmp's of course.

    Edit: I think I know....you never closed that repeat before the "if"...
    Just specify with an until(whatever you wanna put in here) before the end.

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

    Default

    wow, that was a quick post
    yea, i know, i edited and said i realize it isnt very efficient, and I plan to fix that in my next version, probably will be done in a week
    im gonna try to set it to only load the bmps required by the script in V2, like, if you only use amrita wine, it wont load the stanching grass, healing powder, etc bmps

  4. #4
    Join Date
    Jul 2006
    Location
    NY
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Here it is, fixed. An identifier is usually a begin or an end, or an until, the bold letters to make it clearer. You were missing more then 1 identifier. Look inside my script and see what i said.
    SCAR Code:
    program AutoFight;
    var a,b,c,t,x,y,fight,itembag,istancher,healpowder,paindew,amrita,iX,human,ok: integer;
    //Must be set to the Ferocious Skin or script will not function!!
    //Click System(S), move down to Skin, and click Ferocious

    procedure load;
    Begin
    t :=10000 //This is the time it takes before you win a Battle
    //Time yourself/your party fighting about three enemies, and round up by
    //about three seconds
    //add a 000 to the end of that, and put it in place of 10000
    //example:  t :=10000 is 10 seconds, 8000 is 8 seconds


    a :=0; //this is the type of healing item you wish to use
    //0=Stanching Grass
    //1=Healing Powder
    //2=Pain-Easing Dew
    //3=Amrita Wine

    c :=5;//this is the ammount of rounds before you want to heal

    //Edit nothing below here

    b :=0
      fight := BitmapFromString(27, 14, 'z78DAED54CB0A03210CFCA5A' +
           'D8F261E63DCFCFF27150C0B165144ED524A2F3984714C66740C1A' +
           'B1C9FCEB4F57A2E4455AB5C6ACF0F7917060240C91CD89730CEB0' +
           'ACC2147185A18DD972CB338488123F7F52F5522480FA1FAD49C83' +
           '35269808296A072D39F665A7C5AF9827E0112E64DE6E5CC3F12D5' +
           '4811147C6BDDBEBF227EEDD3CE1D76B38F70EEF9C70EE2FF7394B' +
           '86200CE7B99472D965554F3B3E81C58BBF4ADDFB2B4070D1AA7A6' +
           'F799267D33CD975D70B90D91363');
      itembag := BitmapFromString(18, 15, '27584238775A36765B3877' +
           '5A14131136615039604E2758423A765C37785A38775C131315376' +
           '04E385D4B2C3A2367643B5B592688833F2758423A765C38745830' +
           '351E332518375E493A614F27573F38775C3A765A314B3222190A3' +
           '5342024220B94915CE3DD89A9A34FA4A24D27584236775931543E' +
           '4C4D253A301523161037594826554135745724322134331466633' +
           '05043216B6737DADC88BAB15489843358562327584238775C4244' +
           '2C81804098965B4D4D291507001401000501022C2A119F9D52B8B' +
           '568999555958E46B2AD517D7626302C0724180C27584238775842' +
           '593D7A743A9E9D5AD6D88F807E4B3F3921352D165450218E8645C' +
           '8C26CCCC86FA49D42776F1A292C0F1D2A201B392D27584237775C' +
           '3A7257575A2BABA35BE3DE8DD3D17CA4A1527974306863214F491' +
           '5626224AAA74A888631302E071424191A3127192F23275842377A' +
           '5936765B315D444C4D23918E4B98984E85853D635D213E3C0B474' +
           '6186C6A3164612C5150182E2B0C182315142B21162D2527584239' +
           '755C39785B377357100F0D1A24191B1E1317190E13190F0507066' +
           '5622DDDDB84A9A55C68601F39370E1F170019291E1B3027275842' +
           '3A765D36765B36755A1212122C4C3D253D30142920131A1216130' +
           '2414012918C4A86813F514B19272405221D091E18081C27172758' +
           '4238775A37775C3A765C11110F31554B2948380F19101E1C07686' +
           '6297F7A382425051D190027260A3C3A143A38114745151E1B0C27' +
           '58423A765C37765939785D1214133659451D221B3D3D19726E2EC' +
           '2BD6B9D9950322C082C290852501D6E69296761257D7B3187833A' +
           '27584238775A37775C38775A15151722231349441A8D8C3ACAC77' +
           'AD5CE7E716E292A25053C370F78742D8A8533A09A509F9C4BADA8' +
           '5427584236775936785C3B70522115075E5B24A5A045C8C576E5E' +
           '09CC2BD615A581D434017827D3BB8B3578C862EA49D59D3CE7AB1' +
           'AE5127584237775C3B735A282C136D6B32BAB65BCAC373E3DFA2D' +
           'BD78DBBB4666260236A6730CECA6FC7C25C958E3DBBB76DDAD584' +
           'CDC7712758423A765A2C3820645E2ABDBC62C3BC6BE0DC9CE0DD9' +
           'AD7D485C8C578ACAA5786813DC2BD61B1AC50B9B172D7D38AD8D2' +
           '86D5CF81');
      istancher := BitmapFromString(18, 7, 'z78DACD91C10E84300844' +
           '7F89A154E1D8A8FFFF4B3B14B327D7DD785A929A46983714449E0' +
           '4A41904DE77B862090DD3A3F5A158A17116B9E6C1DAF9C7D5C4BF' +
           '405D9D4C313249EE0ABAF0260E6AD34BC90E6D30DD092D2624551' +
           'AA7CB76E3C22C2BB1B2DB86318CA4585AB0FFF262367B985EE0BB' +
           '8259B0521BC920B95CCAF18A7FD6205571901C4E8FA2D5342EBBB' +
           '254F9982A7AB19E8733B60F93DFB237676F73F278BFDA7FDC9DD7' +
           '84F37BAFAA2DCBDC813C0D93BF8B1767159383');
      Healpowder := BitmapFromString(11, 11, 'z78DA65515BB243' +
           '2108DB9220207E8A8FFD2FE9463D6D6FA77C64986842508BD6D62' +
           'AD1F35A2E3D0EAEB59A2E30A10B4C1BBBBF4C261DCA29254F4F79' +
           '1FE0ABCC8303DADA37B60DDBE130FBB4E498DDC873E29AFED53DC' +
           '5FD78DDBF8889E5E619539ACFDAF94EF7D43FF377596E70C616E5' +
           '620C8BB050613717AE362C33996A83839EFC92BE8A6BA9161B0B6' +
           'E16454F5755E8E9F7A9964C2E24FC16C227D7DC33E1804BE4EAD3' +
           '3BB079C760AE820CB30A18F38E2470FE3F5D18DA4A4E1DEF423BE' +
           'DDBE1F18196CAC01664843C7B16325A55F6EE6CF96A5F5BECCC79' +
           '6F1150212D18A8286D15322267D36A25AF3222D4059BE6AF87704' +
           'E7073C6BCF438D3FD6DB01678436EA34E17655569BF2F0995D007' +
           '8FF620FA174F8913FC0F9B7ECBE9E8BE509E7E6783160ED8E5E17' +
           'FEA0F5DD29B8E');
      paindew := BitmapFromString(1, 12, '00000000000000000000000' +
           '0000000000000102818739263D6BE5294C3AD94DBFF6BBACE');
      amrita := BitmapFromString(5, 7, '313842C6C7D64A494A0808080' +
           '0040063657B8C92A59496A5636573313839949AA5C6C3CEE7EBEF' +
           'EFEFF7B5B6C69CA2ADCECFD6FFFFFFFFFBFFBDC3C69C9AA5C6C7C' +
           'EFFFFFFF7F7FFB5B6BD9C9AA5C6C7CEFFFFFFF7F7FFB5B6BD9C9E' +
           'A5C6CBCEFFFFFFFFF7FFBDBABD');
      iX := BitmapFromString(14, 20, 'z78DAED934B8EE5200C45B7E42F' +
           'D8439BCFFE97D44E52AFF4927AB3568FAA41B29081937B8D03080' +
           'DA82600D7D45A31381860AD8F2835AFDDD799634AEDE0D71A2B2F' +
           '7516A091D1E609408DE67E1B4024342A76DAA0C292E00A6A283DA' +
           'CA19AB9C1327486DEC1B8084221A2D8F29B096437E63590890384' +
           '9734488D26087DDBBC9DD156EC2238E5F13D1F6F3A0762DD82DBF' +
           '96B944A55C0D6BBDC76474F1BA5B3592F02D178304B39B4BA55BB' +
           'EC423FC9EF19C4BA1B5581F40DB34FA74BD5834964D05BF684AA8' +
           '92650552F3F54639ABA233B86A3BBC5846DE1EB647EF29E86B6AA' +
           '3ED415F810FD9389CD293A0EDFA984D1074058065E4EEFCCE3658' +
           '9BC9797E31DEF4EB93CDEDE0577D840EA4923C0FB76B93AE7C154' +
           '455C2E010FA72BA4B4CD145CC5B9D599467D8A007B75D6C97CEA9' +
           'CAFEABD9EC446306AD1AC54E5E072BA8793A7CDC70BB67DF69296' +
           'CD77A6563BAC2F5F559D8CD357B20C9E93E7184B44A6ACC57BEA1' +
           'AB74E031DAD7DF28E71FC7438CEE8786412D77726CEF5227A65EA' +
           '1F91A3AE67CC335FF19D69CB3DF6DFC78B59FAB0BAFD1F0C42458' +
           'EFFF1B7C53F45C3682E');
      human := BitmapFromString(43, 15, 'z78DA333030B630363718254' +
           '7C951124C3A3ABA98BAB951AE663404465A08E0D2855F25848D4B' +
           '0D7E9720AB21C67662CCA46708902A4E0BBB880F5B5C24E569801' +
           '2715AD845FF5C40B938B5E265688500EDEC1ABA213018D200ED52' +
           '26317651370D8C92A3E4C8240191572A1B');
      ok := BitmapFromString(27, 3, 'z78DA333030B6303637C04B3A3AB' +
           'A98BAB92193F85512631A797A29378D3CF753D734FC6AA86517B2' +
           '08004993678A');

    end;

    procedure heal;
    begin
    if(FindBitmap(itembag,x,y)) then

            begin
                MoveMouseSmoothEx(x,y+random(0),20,40,45,25,20);
                Wait(100)
                ClickMouse(x,y,true);
                Wait(300)
            end;


            Begin


                 if(a=0) then
                 if(FindBitmap(istancher,x,y)) then

                    begin
                    MoveMouseSmoothEx(x,y+random(0),20,40,45,25,20);
                    Wait(100)
                    Clickmouse(x,y,true);
                    end;

                 if(a=1) then
                 if(FindBitmap(Healpowder,x,y)) then

                     begin
                     MoveMouseSmoothEx(x,y+random(0),20,40,45,25,20);
                     Wait(100)
                     Clickmouse(x,y,true);
                     end;

                 if(a=2) then
                 if(FindBitmap(paindew,x,y)) then

                    Begin
                    MoveMouseSmoothEx(x,y+random(0),20,40,45,25,20);
                    Wait(100)
                    Clickmouse(x,y,true);
                    end;

                 if(a=3) then
                 if(findbitmap(amrita,x,y)) then

                    Begin
                    MoveMouseSmoothEx(x,y+random(0),20,40,45,25,20);
                    Wait(100)
                    Clickmouse(x,y,true);
                    end;

            if(findbitmap(human,x,y)) then

            begin
                 MoveMouseSmoothEx(x,y+random(0),20,40,45,25,20);
                 wait(100)
                 Clickmouse(x,y,true);
            end;
            if(findbitmap(ok,x,y)) then
            begin
                 MoveMouseSmoothEx(x,y+random(0),20,40,45,25,20);
                 wait(100)
                 Clickmouse(x,y,true);
            end;
            if(FindBitmap(iX,x,y)) then
            begin
                 MoveMouseSmoothEx(x,y+random(0),20,40,45,25,20);
                 wait(100)
                 Clickmouse(x,y,true);
            end;
            end; // needed this end for the begin on line 134.
    end;



    //this is the actual script

    Begin
    load;
    wait(500)
    repeat
    if(FindBitmap(fight,x,y)) then


            Begin
              repeat
                    repeat
                      MoveMouseSmoothEx(x,y+random(0),20,40,45,25,20);
                      Wait(100)
                      ClickMouse(x,y,true);
                      wait(t)
                      b := b + 1;
                    until(b >=c)
                    begin
                      Heal;
                      B :=0
                    end;
              until(false)
            end;
    until (isfkeydown(8)) // you needed another until, because of the repeat
    //you have on line 201. will stop when you push the F8 key.
    end.

  5. #5
    Join Date
    Feb 2007
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    wow, compiled and everything, thanks!
    i just found that missing until about 2 minutes ago, but it still messed up, and i was about to post that here
    thanks for the help!
    also, that F8 key trick is cool, i didnt know that command!
    now i can finish it

    I missed most of the superbowl because of this stupid script :P

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 11-02-2008, 12:39 PM
  2. Replies: 2
    Last Post: 08-25-2008, 01:32 AM
  3. Replies: 10
    Last Post: 06-01-2008, 02:15 PM
  4. Replies: 8
    Last Post: 02-03-2008, 01:58 AM
  5. [error] (17795:1) : Identifier expected in script
    By yorkshireknight in forum OSR Help
    Replies: 15
    Last Post: 02-20-2007, 10:17 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
  •