Results 1 to 4 of 4

Thread: UsePlate

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

    Default UsePlate

    ok, Fakawi said he wanted a procedure thing that what play with spinning plates (i think) anyway, here it is
    Code:
    {*******************************************************************************
    Function CheckPlate(ispot:Integer) :boolean;
    By: Jagex_Fagex
    Description: Checks to see if Plate is in inventory space defined by ispot.
    *******************************************************************************}
    Function CheckPlate(ispot:Integer) :boolean;
    begin
      MMouseItem(ispot);
      if(ExistsItem(ispot))and
        (Option2('Spin'))then
      result:=true else result:=false;
    end;
    also, uses the plate:

    Code:
    {*******************************************************************************
    Procedure UsePlate(ispot:Integer);
    By: Jagex_Fagex
    Description: Checks to see if Plate is in inventory space defined by ispot. Then Uses It.
    *******************************************************************************}
    Procedure UsePlate(ispot:Integer);
    begin
      if(CheckPlate(ispot))then
      MouseItem(ispot, true);
    end;
    These could be used as anti-ban maybe?? i dunno. I just saw Fakawi request it, and i made it. I'm currently working on finding it in the screen if you drop it. About 50% done. So check back soon. ANd be sure to post all comment's, suggestion's, flames and anything else on-topic.

  2. #2
    Join Date
    Feb 2006
    Location
    Las Vegas, NV
    Posts
    939
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    get rid of the false.. cuz boolean is always false unless otherwise stated..

    Code:
    {*******************************************************************************
    Function CheckPlate(ispot:Integer) :boolean;
    By: Jagex_Fagex
    Description: Checks to see if Plate is in inventory space defined by ispot.
    *******************************************************************************}
    Function CheckPlate(ispot:Integer) :boolean;
    begin
      MMouseItem(ispot);
      if(ExistsItem(ispot))and
        (Option2('Spin'))then
      result:=true
    end;
    the other looks good..
    Busy with real life. I'll still be around occasionally.
    Current Mood:


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

    Default

    nah, the other procedures wouldn't work without it,i dunno why, because i wroteit like that, and then trid to compile. i added it and it worked

  4. #4
    Join Date
    Feb 2006
    Posts
    1,022
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sometimes you get errors if you don't set it to the default yourself.

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
  •