Results 1 to 5 of 5

Thread: (Action) If bot see X monster then back to depot.

  1. #1
    Normal User
    Join Date
    May 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    10
    Rep Power
    4

    (Action) If bot see X monster then back to depot.

    Hello, i need help with create this action, I mean "if spawn X monster on screen, then bot automaticlly stop targetig and go to label "depot".

    Anyone can do this for me?
    Sorry for my bad english.
    Cheers.

  2. #2
    iBot User
    Join Date
    Aug 2012
    Posts
    805
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    180
    Rep Power
    7
    Lua Code:
    if maround(7, false) > 3 then
    settargeting("no")
    gotolabel("depot")
    end

  3. #3
    Normal User
    Join Date
    May 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    10
    Rep Power
    4
    Hmm.. I mean "X" was a monster name (like "dragon", "dragon lord"), not amount monsters..
    Thanks anyway.

  4. #4
    Normal User
    Join Date
    May 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    10
    Rep Power
    4
    I found something on forum and remake it, hope it will be good:

    PHP Code:
    local CREATURES = {"dragon","demon"}

    if (
    maround(7,false,unpack(CREATURES)) > 0then
        settargeting
    ("no")
        
    stopattack()
        
    gotolabel("depot")
    end 

  5. #5
    iBot User walukasz's Avatar
    Join Date
    Feb 2012
    Location
    Poland
    Posts
    312
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    67
    Rep Power
    5
    yes, it looks good ;p

Posting Permissions

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