Results 1 to 2 of 2

Thread: Need script to switch between ornate shield and prismatic shield, if x amount of monsters around

  1. #1
    iBot User
    Join Date
    Apr 2013
    Posts
    18
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    10
    Rep Power
    4

    Post Need script to switch between ornate shield and prismatic shield, if x amount of monsters around

    i need a script that will equip ornate shield if there are 3-4 enemies and equip prismatic when there are 1-2 enemies. thanks

  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
    @steviej54ent
    Lua Code:
     
    local NormalShield = 'Prismatic Shield'
    local ChangeToShield = 'Ornate Shield'
     
    if maround(1) > 2 then
       if shield ~= ChangeToShield then
          moveitems(ChangeToShield, 'shield', 1)
          wait(200,400)
          updateworld()
       end
    else
       if shield ~= NormalShield then
          moveitems(NormalShield, 'shield', 1)
          wait(200,400)
          updateworld()
       end
    end

Posting Permissions

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