Results 1 to 3 of 3

Thread: Sword Ring and Bronze Amulet actions

  1. #1
    Normal User
    Join Date
    Jun 2012
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    11 Post(s)
    Reputation
    13
    Rep Power
    5

    Sword Ring and Bronze Amulet actions

    Equip Sword Ring if X monster is on screen, unequip it if monster is not on screen.

    Equip Bronze Amulet if no bronze amulet equipped.

    Would be nice with theese actions please, last thread did not give any results I hope this one will work better.


    Thanks in advance!
    HI CAN I USE THIS??????

  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
    Lua Code:
     
    local mobs, mobs_amount = {"hydra","medusa"}, 1
    local ring_ = "sword ring"
     
    if maround(7,false,unpack(mobs)) >= mobs_amount and ring == 0 then
        moveitems(ring_,"all","ring",1)
    elseif maround(7,false,unpack(mobs)) < mobs_amount and ring ~= 0 then
        moveitems(ring,"ring","all",1)
    end


    Lua Code:
     
    local amulet_ = "bronze amulet"
     
    if amulet ~= itemid(amulet_) then moveitems(amulet_,"all","amulet",1) end

  3. #3
    Normal User
    Join Date
    Jun 2012
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    11 Post(s)
    Reputation
    13
    Rep Power
    5
    Big love <3
    HI CAN I USE THIS??????

Posting Permissions

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