Results 1 to 3 of 3

Thread: ring change (depending the number and the name of the creature)

  1. #1
    iBot User
    Join Date
    Jan 2014
    Posts
    118
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    30 Post(s)
    Reputation
    14
    Rep Power
    3

    ring change (depending the number and the name of the creature)

    i need an action who change the ring depending the number and the name of the creature.

    like:

    - if appear 3 hydras use 'ring of healing'
    - if appear 1 hydra use 'life ring'
    - if appear 1 medusa use 'axe ring'
    - if appear 2 medusas use 'ring of healing'
    - if no monster around - don't will use any ring

  2. #2
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    Lua Code:
    if maround(7, "Hydra") >= 3 then
    moveitems("ring of healing", "ring", 1)
    wait(500,750)
    elseif maround(7, "Hydra") >= 1 and maround(7, "Hydra") < 3 then
    moveitems("life ring", "ring", 1)
    wait(500,750)
    elseif maround(7, "Medusa") == 1 then
    moveitems("axe ring", "ring", 1)
    wait(500,750)
    elseif maround(7, "Medusa") >= 2 then
    moveitems("ring of healing", "ring", 1)
    wait(500,750)
    else
    moveitems("crystal ring", "ring", 1)
    wait(500,750)
    end

  3. #3
    iBot User
    Join Date
    Jan 2014
    Posts
    118
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    30 Post(s)
    Reputation
    14
    Rep Power
    3
    didn't work.

Posting Permissions

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