Results 1 to 7 of 7

Thread: How to use Creature Variables?

  1. #1
    Normal User AcidAlchamy's Avatar
    Join Date
    Jul 2012
    Location
    The Labratory
    Posts
    749
    Mentioned
    16 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    180
    Rep Power
    7

    Cool How to use Creature Variables?

    Whats a valid way of using these?
    Like if I want to find the Creatures XYZ, what do I put infront of ".posx" ".posy" ".posz" ?
    Cant seem to figure it out..
    Maybe someone can shed some light on the situation?


    target [pointer]: Returns the creature data structure of the creature you have attacked.
    follow [pointer]: Returns the creature data structure of the creature you have followed.
    .id [int]: Returns the unique id of the creature.
    .name [string]: Returns the creature's name.
    .posx [int]: Returns the creature's x coordinate.
    .posy [int]: Returns the creature's y coordinate.
    .posz [int]: Returns the creature's z coordinate.
    .hppc [int]: Returns the creature's health percentage.
    .speed [int]: Returns the creature's speed.
    .dist [int]: Returns the biggest distance in either x or y between the creature and your character.
    .isshootable [boolean]: Returns true can be shot from your position, false otherwise.
    .isreachable [boolean]: Returns true can be reach from your position, false otherwise.
    .skull [int]: Returns the creature's skull type id.
    .party [int]: Returns the creature's party type id.
    .warbanner [int]: Returns the creature's warbanner type id.
    .ignored [boolean]: Returns true if creature is being ignored by the targeting system (if ignorecreature() was used on it), false otherwise.
    .isattackme [boolean]: Returns true if creature is attacking, false otherwise.
    .ismonster [boolean]: Returns true if creature is a monster, false otherwise.
    .isplayer [boolean]: Returns true if creature is a player, false otherwise.

    Follow my Activity on Facebook?
    https://www.facebook.com/AcidAlchamyPage
    Download iBot : iBot v2.3.6 - Released
    My Free Scripts :
    ★Free Scripts★ By Acid Alchamy
    Acid Alchamy Updates :
    Updates About Acid Alchamy
    All Scripts by Acid Alchamy :
    All My Posted Scripts
    Latest Thread by Acid Alchamy:
    [Tutorial] Sellers - Avoid Getting Scammed

    +Rep Everyone That Helps You, I'll ALWAYS Return A +Rep.





  2. #2
    Normal User AcidAlchamy's Avatar
    Join Date
    Jul 2012
    Location
    The Labratory
    Posts
    749
    Mentioned
    16 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    180
    Rep Power
    7
    ignorecreature(int id, bool ignore) [void]: Set the creature with id creature id to be ignored by bot actions.
    getcreatures(string filter) [pointer]: A special type of loop iterator that cycles through all creatures and lets you script various operations on each one of them.
    As filter you can pass a combination of conditions defined as follows:
    p: creature must be a player.
    m: creature must be a monster.
    f: creature must be on the same floor as you.
    s: creature must be on the same floor as you and on the visible portion of the screen.
    You can use pointers as follows down:
    .id [int]: Returns the unique id of the creature.
    .name [string]: Returns the creature's name.
    .x [int]: Returns the creature's x coordinate.
    .y [int]: Returns the creature's y coordinate.
    .z [int]: Returns the creature's z coordinate.
    .hppc [int]: Returns the creature's health percentage.
    .speed [int]: Returns the creature's speed.
    .dist [int]: Returns the biggest distance in either x or y between the creature and your character.
    .isshootable [boolean]: Returns true can be shot from your position, false otherwise.
    .isreachable [boolean]: Returns true can be reach from your position, false otherwise.
    .skull [int]: Returns the creature's skull type id.
    .party [int]: Returns the creature's party type id.
    .warbanner [int]: Returns the creature's warbanner type id.
    .ignored [boolean]: Returns true if creature is being ignored by the targeting system (if ignorecreature() was used on it), false otherwise.
    .isattackme [boolean]: Returns true if creature is attacking, false otherwise.
    .ismonster [boolean]: Returns true if creature is a monster, false otherwise.
    .isplayer [boolean]: Returns true if creature is a player, false otherwise.



    +Rep to whomever can solve of course
    Last edited by AcidAlchamy; 09-04-2012 at 09:00 PM.

    Follow my Activity on Facebook?
    https://www.facebook.com/AcidAlchamyPage
    Download iBot : iBot v2.3.6 - Released
    My Free Scripts :
    ★Free Scripts★ By Acid Alchamy
    Acid Alchamy Updates :
    Updates About Acid Alchamy
    All Scripts by Acid Alchamy :
    All My Posted Scripts
    Latest Thread by Acid Alchamy:
    [Tutorial] Sellers - Avoid Getting Scammed

    +Rep Everyone That Helps You, I'll ALWAYS Return A +Rep.





  3. #3
    Normal User blakw's Avatar
    Join Date
    Mar 2012
    Location
    www.blakw.com
    Posts
    815
    Mentioned
    221 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    344 Post(s)
    Reputation
    462
    Rep Power
    10
    Quote Originally Posted by AcidAlchamy View Post
    Whats a valid way of using these?
    Like if I want to find the Creatures XYZ, what do I put infront of ".posx" ".posy" ".posz" ?
    PHP Code:
    target.posx == 12345
    target
    .posy == 12345
    target
    .posz == 


    ------------------------------------Latest Releases:------------------------------------
    Vocations:
    Darashia Lions Rock
    Oramond Seacrest Serpents X1

    For a better iBot!

    (◣_◢)

  4. #4
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Example to use exori vis only when attacking monster(target got an id greater than 0)
    Code:
    if target.id > 0 and cancast("exori vis") then
    cast("exori vis")
    end

  5. #5
    Normal User AcidAlchamy's Avatar
    Join Date
    Jul 2012
    Location
    The Labratory
    Posts
    749
    Mentioned
    16 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    180
    Rep Power
    7
    Hmm thank you both; +Rep for both.

    Ima try a few things then get back at you guys; working on something little, but sweet right now something that should be a universal helper when function-able

    Follow my Activity on Facebook?
    https://www.facebook.com/AcidAlchamyPage
    Download iBot : iBot v2.3.6 - Released
    My Free Scripts :
    ★Free Scripts★ By Acid Alchamy
    Acid Alchamy Updates :
    Updates About Acid Alchamy
    All Scripts by Acid Alchamy :
    All My Posted Scripts
    Latest Thread by Acid Alchamy:
    [Tutorial] Sellers - Avoid Getting Scammed

    +Rep Everyone That Helps You, I'll ALWAYS Return A +Rep.





  6. #6
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Alright. You must spread some Reputation around before giving it to AcidAlchamy again.

  7. #7
    Normal User AcidAlchamy's Avatar
    Join Date
    Jul 2012
    Location
    The Labratory
    Posts
    749
    Mentioned
    16 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    180
    Rep Power
    7
    But does it have to be a target?
    I cant find the XYZ of a monster without targetting it?

    Follow my Activity on Facebook?
    https://www.facebook.com/AcidAlchamyPage
    Download iBot : iBot v2.3.6 - Released
    My Free Scripts :
    ★Free Scripts★ By Acid Alchamy
    Acid Alchamy Updates :
    Updates About Acid Alchamy
    All Scripts by Acid Alchamy :
    All My Posted Scripts
    Latest Thread by Acid Alchamy:
    [Tutorial] Sellers - Avoid Getting Scammed

    +Rep Everyone That Helps You, I'll ALWAYS Return A +Rep.





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •