Advertisement
Guest User

Untitled

a guest
Oct 15th, 2015
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. function JuvDrop() {
  2. let dropJuv = () => {
  3. let locations = [3, 6, 7]
  4.  
  5. locations.forEach(location => {
  6. let juvs = me.findItems(-1, 0, location)
  7. .filter(item => (item.classid == 515 || item.classid == 516))
  8.  
  9. juvs.forEach(juv => {
  10. if (location == 6 || location == 7) {
  11. Town.openStash()
  12. }
  13.  
  14. Packet.dropItem(juv)
  15. })
  16. })
  17. }
  18.  
  19. addEventListener("keyup", function (key) {
  20. if (key == 97) {
  21. me.overhead('Dropping juvs')
  22. drop = true
  23. }
  24. })
  25.  
  26. Town.goToTown(1)
  27.  
  28. let drop = false
  29.  
  30. while (true) {
  31. if (drop) {
  32. dropJuv()
  33. me.cancel()
  34. drop = false
  35. }
  36.  
  37. delay(1000)
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement