Results 1 to 2 of 2

Thread: Change Glacial Rod on Underworld rod if atk Frost drag

  1. #1
    iBot User
    Join Date
    Oct 2012
    Posts
    109
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    14 Post(s)
    Reputation
    13
    Rep Power
    5

    Change Glacial Rod on Underworld rod if atk Frost drag

    Hello,
    I need an action when bot will change my glacial rod for underworld rod when my charatcer is attacking Frost dragon or frost dragon Hatchling else it attack dragon lords so I would use Glacial.

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    CONFIG = {
    ICE_MONSTERS = {"frost dragon","frost dragon hatchling"},
    FIRE_MONSTERS = {"dragon lord","dragon lord hatchling"},

    ICE_ROD = "underworld rod",
    FIRE_ROD = "glacial rod",
    }

    table.lower(CONFIG.ICE_MONSTERS)
    table.lower(CONFIG.FIRE_MONSTERS)

    if (table.find(CONFIG.ICE_MONSTERS,target.name:lower()) and weapon ~= itemid(CONFIG.ICE_ROD)) then
    moveitems(CONFIG.ICE_ROD,"all","weapon",1)
    elseif (table.find(CONFIG.FIRE_MONSTERS,target.name:lower()) and weapon ~= itemid(CONFIG.FIRE_ROD)) then
    moveitems(CONFIG.FIRE_ROD,"all","weapon",1)
    end
    Last edited by soder; 04-17-2013 at 01:19 PM.

Posting Permissions

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