Results 1 to 4 of 4

Thread: Action big problem.

  1. #1
    Normal User
    Join Date
    Aug 2012
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    9
    Rep Power
    0

    Action big problem.

    Code:
    if (maround(7,false,"Deepling Guard") >= 1 and maround(7,false,"Deepling Spellsinger") == 0 and not strengthened and cancast("utito tempo")) then
        cast("utito tempo")
    end
    Well, I made this action for hunting on deeplings but there is a problem as Im hunting using utura gran, so the bot thinks all the time that im strengthened as it has the same icon and therefore it doesnt ever cast utito tempo. So is there any way to make the action work?

    Was serching on the variables for another to reemplace "maround(7,false,"Deepling Guard")" for something that returns me what is attacking me. Found this one "target [userdata]: Returns the creature data structure of the creature you have attacked." but I dont know the structure to make it work.

    So if someone knows please let me know!

  2. #2
    Normal User Tswift's Avatar
    Join Date
    Aug 2012
    Location
    USA
    Posts
    114
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    13
    Rep Power
    5
    You just edit the target. to your needs.

    [userdata] means you have to put more information, which is what the list from .id to .isreachable is on Ropiderz's list Here

    [int] is a number. An example would be .hppc
    Code:
    if target.hppc < 10 then...
    [string] is a string of text. Such as .name
    Code:
    if target.name == "Deepling Guard" then...
    [boolean] is a true/false statement. Such as .isreachable
    Code:
    if target.isreachable == true then...

  3. #3
    Banned
    Join Date
    Dec 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    0
    if target.name == "Deepling Guard" then...

  4. #4
    Normal User
    Join Date
    Aug 2012
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    9
    Rep Power
    0
    Big thanks Tswift! Just began with this bot and had no idea what those things meant. Thanks

Posting Permissions

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