Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- init start
- local softequip,softunequip
- local softid = 6529 --Soft Boots ID
- local softuseid = 3549 --Soft Boots in use ID
- local wornsoftid = 6530 --Used Soft Boots ID
- local bootsid = 'boots of haste' --Boots to be weared ID or name
- local alertifnosoft = true --true or false. Do you want it to play a sound if no softs was found?
- local soundfile = 'nosoft.wav' --It is the file name
- if type(bootsid) ~= 'number' then bootsid = itemid(bootsid) end
- init end
- if softequip == nil then
- softequip = math.random(60,70) --Mana percent range to equip soft boots
- end
- if softunequip == nil then
- softunequip = math.random(75,85) --Mana percent range to equip boots of haste back
- end
- auto(100) listas('dontlist')
- if ($mppc <= softequip or ($feet.id == wornsoftid and itemcount(softid) > 0)) and not $pzone and $feet.id ~= softuseid then
- equipitem(softid,'feet','backpack')
- softequip = nil
- wait(500,1000)
- elseif ($mppc >= softunequip or ($feet.id == wornsoftid and itemcount(softid) == 0) or $pzone) and $feet.id ~= bootsid then
- equipitem(bootsid,'feet','backpack')
- softunequip = nil
- wait(500,1000)
- end
- if $feet.id ~= softuseid and itemcount(softid) == 0 and itemcount(wornsoftid) > 0 and alertifnosoft then
- playsound(so
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement