Results 1 to 3 of 3

Thread: WearingItemCust simple function

  1. #1
    Join Date
    Nov 2007
    Posts
    48
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default WearingItemCust simple function

    I was kinda shocked this function isnt in SRL, so I just made my own then...

    It checks if there's an equiped item in the given slot -AND- it checks for its name. Handy when using jewelry with charges :-)

    SCAR Code:
    function WearingItemCust(i : integer; name : String) : Boolean;
    var
    x,y : integer;
    T: TPoint;
    begin
         if(WearingItem(i)) then
           begin
                T := EquipmentCoords(i);
                MMouse(T.x, T.y, 5, 5);
                Wait(100+random(50));
                if(IsUpText(name)) then
                Result := True;
           end else
           writeln('You dont have an item equiped in that slot');
    end;


    it's kinda untested, so tell me if it works hehe (also, its my first decent function I made)

  2. #2
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    i think u forgot

    T := ItemCoords(I);

    or w/e it is

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

  3. #3
    Join Date
    Nov 2007
    Posts
    48
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ah, thanks, you're right

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. First function (simple :P)
    By Floor66 in forum Research & Development Lounge
    Replies: 3
    Last Post: 02-28-2008, 05:03 AM
  2. Need help with simple counter function.
    By Floor66 in forum OSR Help
    Replies: 5
    Last Post: 02-23-2008, 08:51 AM
  3. Replies: 5
    Last Post: 03-26-2007, 07:57 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
  •