Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. init start
  2. local softequip,softunequip
  3. local softid = 6529 --Soft Boots ID
  4. local softuseid = 3549 --Soft Boots in use ID
  5. local wornsoftid = 6530 --Used Soft Boots ID
  6. local bootsid = 'boots of haste' --Boots to be weared ID or name
  7. local alertifnosoft = true --true or false. Do you want it to play a sound if no softs was found?
  8. local soundfile = 'nosoft.wav' --It is the file name
  9. if type(bootsid) ~= 'number' then bootsid = itemid(bootsid) end
  10. init end
  11.  
  12. if softequip == nil then
  13. softequip = math.random(60,70) --Mana percent range to equip soft boots
  14. end
  15. if softunequip == nil then
  16. softunequip = math.random(75,85) --Mana percent range to equip boots of haste back
  17. end
  18.  
  19. auto(100) listas('dontlist')
  20. if ($mppc <= softequip or ($feet.id == wornsoftid and itemcount(softid) > 0)) and not $pzone and $feet.id ~= softuseid then
  21. equipitem(softid,'feet','backpack')
  22. softequip = nil
  23. wait(500,1000)
  24. elseif ($mppc >= softunequip or ($feet.id == wornsoftid and itemcount(softid) == 0) or $pzone) and $feet.id ~= bootsid then
  25. equipitem(bootsid,'feet','backpack')
  26. softunequip = nil
  27. wait(500,1000)
  28. end
  29. if $feet.id ~= softuseid and itemcount(softid) == 0 and itemcount(wornsoftid) > 0 and alertifnosoft then
  30. playsound(so
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement