Results 1 to 3 of 3

Thread: Need action when npc on screen cast spell and go to x postion

  1. #1
    iBot User
    Join Date
    Jun 2012
    Posts
    27
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5

    Need action when npc on screen cast spell and go to x postion

    Hi guys this is a quite important action, so I need this action that when x Npc on screen the char casts utani hur and runs to X waypoint. This action must work while the char is cavebotting. Lets say I die and then it relogs in thais temple and i want it to cast utani hur and run Dp

    ty

  2. #2
    Administrator Tamapumper's Avatar
    Join Date
    Apr 2012
    Posts
    480
    Mentioned
    214 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    167 Post(s)
    Reputation
    177
    Rep Power
    10
    Quote Originally Posted by Chimerians View Post
    Hi guys this is a quite important action, so I need this action that when x Npc on screen the char casts utani hur and runs to X waypoint. This action must work while the char is cavebotting. Lets say I die and then it relogs in thais temple and i want it to cast utani hur and run Dp

    ty
    create the variable "travel" as false in Actions Setup

    travel = false


    Create the action checkNPC


    local creatures = getcreatures("ms")
    local n = creatures.count - 1

    for i = 0, n, 1 do
    if creatures[i].name == "Quentin" and getsettings("Settings/CaveBot/Enabled") == "yes" then
    gotolabel("Depot") -- Name of the waypoint you want to go
    travel = true
    end
    if hasted ~= true and travel == true then
    cast("utani hur")
    end
    end


    And create a waypoint after "Depot" as action and set the variable "travel" as false


    travel = false

  3. #3
    iBot User
    Join Date
    Jun 2012
    Posts
    27
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5
    thanks alot this is really useful one ;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
  •