Results 1 to 6 of 6

Thread: help plz

  1. #1
    Join Date
    Jun 2006
    Posts
    69
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Exclamation help plz

    hey this my first script and i was wondering what i am doing wrong because i set the monsters color and name and it doesn't click on the monster it just laggs here the script anyhelp will be very greatly apprechiated(soz can't spell that)



    program monsterkiller;
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Skill/Fighting.scar}


    var
    tol,monsterColor1,monsterColor2,monsterColor3:inte ger;
    MonsterName :string;

    procedure setup;
    begin
    MonsterColor1:=1188253;//monster color
    MonsterColor2:=1188250;//monster color
    MonsterColor3:=3033954;//monster color
    tol:=10;//tolarence for finding monster
    MonsterName:='Guard';
    end;


    procedure FindRandoms;
    begin
    FindNormalRandoms;
    end;

    procedure ownMonster;
    begin
    wait(2000)random(200)
    KAttackMonster(monsterColor1, MonsterColor2, MonsterColor3, Tol, 'MonsterName');
    end;





    begin
    setupsrl;
    Findrandoms
    repeat
    ownMonster;

    until false

    end.

  2. #2
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hmm...well you should fix inte ger to integer in the variables seciton. Aslo, you didnt put setup in your main loop. otherwixe, it should work. if it doenst, then... post agian i guess?

  3. #3
    Join Date
    Feb 2006
    Location
    L.A, USA
    Posts
    1,632
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Code:
    program monsterkiller;
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Skill/Fighting.scar}
    
    
    var
      Tol, MonsterColor1, MonsterColor2, MonsterColor3 : Integer;//Integer;
      MonsterName : String;
    
    procedure Setup;
    begin
      MonsterColor1:=1188253;//monster color
      MonsterColor2:=1188250;//monster color
      MonsterColor3:=3033954;//monster color
      tol:=10;//tolarence for finding monster
      MonsterName:='Guard';
    end;
    
    
    procedure FindRandoms;
    begin
      FindNormalRandoms;
    end;
    
    procedure OwnMonster;
    begin
      wait(2000)random(200)
      KAttackMonster(monsterColor1, MonsterColor2, MonsterColor3, Tol, MonsterName);//!!Not 'MonsterName' but MonsterName
    end;
    
    
    begin
      setupsrl;
      Findrandoms
      repeat
        ownMonster;
      until false
    end.
    The main reason was because you put it to look for 'MonsterName', which means it tries to find that in the top left hand corner. It's Monstername. So it's just the string variable not the string. Btw, your doing good.

  4. #4
    Join Date
    Jun 2006
    Posts
    69
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    o i see thanks

  5. #5
    Join Date
    Feb 2006
    Location
    Aussie
    Posts
    937
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    also you don't need that randoms procedure until you are going to look for more random things at once.

    but for now, instead of that proc, you cld just call FindNormalRandoms;

  6. #6
    Join Date
    Feb 2006
    Location
    L.A, USA
    Posts
    1,632
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Jagex_Fagex
    also you don't need that randoms procedure until you are going to look for more random things at once.

    but for now, instead of that proc, you cld just call FindNormalRandoms;
    Yea it's redundent, but some people just like doing that. They can't cope with names they don't like.

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
  •