Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. --[[
  2. VENDA DE ITENS
  3. BY
  4. BORGES
  5. --]]
  6.  
  7. local toBackpack = "golden backpack" -- nome da backpack em que vai jogar os itens
  8.  
  9. ----------------------
  10. -- NÃO MECHA DAQUI----
  11. -----PARA BAIXO-------
  12. ----------------------
  13.  
  14. local itemsToSell = {'guardian axe',
  15. 'ornate crossbow',
  16. 'deepling staff',
  17. "warrior's shield",
  18. "spellsinger's seal",
  19. "warrior's axe",
  20. 'necklace of the deep',
  21. 'eye of a deepling',
  22. 'deepling warts',
  23. 'deeptags',
  24. 'deepling claw',
  25. 'deepling breaktime snack',
  26. 'deepling guard belt buckle',
  27. 'deepling ridge',
  28. 'deepling squelcher'
  29. }
  30.  
  31. local contfrom = Container.New('Your Inbox')
  32.  
  33.  
  34.  
  35.  
  36. registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
  37.  
  38.  
  39. function onWalkerSelectLabel(labelName)
  40.  
  41. if (labelName == 'Sell') then
  42. if (Self.ItemCount(itemsToSell[i])) then
  43. print("*Vendendo*")
  44. Walker.Stop()
  45. Self.SayToNpc({'hi', 'trade'}, 65)
  46. wait(Self.Ping() + 40, Self.Ping() + 70)
  47.  
  48. for i = 1, #itemsToSell do
  49.  
  50. wait(150, 200)
  51.  
  52. Self.ShopSellAllItems(itemsToSell[i])
  53.  
  54. end
  55.  
  56. end
  57.  
  58. Walker.Start()
  59.  
  60. elseif(labelName == "Depositar") then
  61. if(Self.MaxMana() > 0 ) then
  62. Walker.Stop()
  63. print("*Depositando*")
  64. Self.SayToNpc({"hi", "deposit all", "yes"}, 65)
  65. else
  66. print("")
  67. end
  68. Walker.Start()
  69.  
  70. end
  71. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement