Results 1 to 6 of 6

Thread: if standtime...

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

    if standtime...

    Hello

    I need one action that changing all monsters attack mode to reach, if standtime > 30000

    But, i need stay "reach" just by 30 seconds, and after back do chase/offensive.

  2. #2
    Moderator Drakke's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,898
    Mentioned
    216 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    390 Post(s)
    Reputation
    366
    Rep Power
    10
    @kisae

    Lua Code:
    local MonstersToChange = {'Monster1', 'Monster2'}
     
    if standtime > 5000 then 
    	for i=1,#MonstersToChange do
    		setsettings('Settings\\Targeting\\Monsters\\'.. MonstersToChange[i] ..'\\ListSettings\\Setting1\\Stance','Reach')
    	end
    	wait(30000)
    else
    	for i=1,#MonstersToChange do
    		setsettings('Settings\\Targeting\\Monsters\\'.. MonstersToChange[i] ..'\\ListSettings\\Setting1\\Stance','No movement')
    	end
    end
    Last edited by pink_panther; 09-14-2014 at 05:29 AM.

  3. #3
    iBot User
    Join Date
    May 2012
    Posts
    49
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5
    Perfect, thanks @Drakke

  4. #4
    iBot User
    Join Date
    Sep 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    5
    Hello, and if standtime x.. go to wpt x and if it still doesn't move, select other wpt?
    Is that possible? @Drakke @pink_panther
    Thanks, im trying to learn =D
    Last edited by Awikiledio; 09-14-2014 at 01:06 PM.

  5. #5
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Lua Code:
    local standtimeMinutes = 1
     
    if standtime > standtimeMinutes*1000*60 then
    	gotolabel("Waypoint_Name")
    else
    	gotolabel("Waypoint_Name_2")
    end

  6. #6
    iBot User
    Join Date
    Sep 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    5
    Thanks you @pink_panther, i'm gonna check it, and try to do a good script by myself. =)

Posting Permissions

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