Results 1 to 3 of 3

Thread: Edit Action

  1. #1
    Normal User takijestem's Avatar
    Join Date
    Jul 2014
    Posts
    18
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3

    Edit Action

    Hello, I use that action

    shootarearune("great fireball rune", 3, "ancient scarab") < I want the bot to attack all monsters with gfb if there are more than 5,how change it? (Translator)

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

    Lua Code:
     
    local targetmonsters = {'Ancient Scarab', 'Monster2', 'Monster3'}
    local targetamount = 5
     
    for i=1,#targetmonsters do 
    if target.name == targetmonsters[i] and maroundshootable(7, unpack(targetmonsters)) >= targetamount and cancast('exori flam') then
    shootarearune("great fireball rune", targetamount, unpack(targetmonsters))
    else
    if target.name == targetmonsters[i] and cancast('exori flam') then
    cast('exori flam')
    end
    end
    end


    something like this maybe? Or just want it to shoot GFB? Then use this

    Lua Code:
     
    local targetmonsters = {'Ancient Scarab', 'Monster2', 'Monster3'}
    local targetamount = 5
     
    shootarearune("great fireball rune", targetamount, unpack(targetmonsters))

  3. #3
    Normal User takijestem's Avatar
    Join Date
    Jul 2014
    Posts
    18
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3
    thanks 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
  •