Results 1 to 2 of 2

Thread: Procedure plz help!

  1. #1
    Join Date
    Sep 2006
    Posts
    457
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Procedure plz help!

    Ok so i'm trying to get this function to work in my script. I think i'm doing something wrong when i fill it out.

    Original function from SRL:
    SCAR Code:
    function CastOn(Spell, Monster: string; MonsterColor: Integer; Tolerance:
      Integer): Boolean;

    How i filled it out:
    SCAR Code:
    function CastOn('curse','dummy': string; 10848112: Integer; 8:Integer): Result;
    var
      x, y:Integer;
    begin
      if (not Cast(Spell)) then Exit;
      if (FindObj(x, y, Monster, MonsterColor, Tolerance)) then
      begin
        Mouse(x, y, 2, 2, True);
        Result := True;
      end;
    end;

    What am i doing wrong?
    Finished my curser ---> it's in mage section.

  2. #2
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Quote Originally Posted by jesus45 View Post
    SCAR Code:
    function CastOn('curse', 'dummy', 10848112, 8);
    var
      x, y:Integer;
    begin
      if (not Cast(Spell)) then Exit;
      if (FindObj(x, y, Monster, MonsterColor, Tolerance)) then
      begin
        Mouse(x, y, 2, 2, True);
        Result := True;
      end;
    end;
    That should do it

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Procedure?
    By shadowrec0n in forum OSR Help
    Replies: 3
    Last Post: 02-11-2008, 09:04 PM
  2. Procedure TypeSendRandom & Procedure AutoResponder!
    By Ultra in forum Research & Development Lounge
    Replies: 12
    Last Post: 01-08-2008, 07:04 PM
  3. Help with Procedure
    By Esteban in forum OSR Help
    Replies: 8
    Last Post: 07-06-2007, 03:45 AM
  4. Replies: 8
    Last Post: 05-24-2007, 11:57 PM
  5. Procedure that calls random procedure?
    By Secet in forum OSR Help
    Replies: 2
    Last Post: 03-03-2007, 03:56 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
  •