Advertisement
Kiel1956

VendeLoot.lua

Feb 17th, 2020
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. -------------------------------------------------------------------------- Vender loot no npc --------------------------------------------------------------
  2.  
  3.  
  4. local ST = true
  5. local ItensVenda =
  6. {
  7. Itens = {"Amber Staff",
  8. --"Axe of destruction",
  9. --"Boots of Haste",
  10. --"Bonebreaker",
  11. "Butcher's Axe",
  12. "blazing bone",
  13. "black pearl",
  14. "cat's paw",
  15. "Chaos mace",
  16. --"Crown armor",
  17. --"Crown helmet",
  18. --"Crystalline armor",
  19. --"Daramian waraxe",
  20. "demonrage sword",
  21. "Demon shield",
  22. "demon horn",
  23. "demonic essence",
  24. "Devil helmet",
  25. "Dreaded Cleaver",
  26. --"Diamond sceptre",
  27. --"Draken sulphur",
  28. --"Drakinata",
  29. "Elite draken mail",
  30. "Epee",
  31. "fire sword",
  32. --"Focus cape",
  33. "fire axe",
  34. "Glacier Mask",
  35. "Giant sword",
  36. "Glacier Kilt",
  37. --"Glacier amulet",
  38. --"Glorious axe",
  39. "Golden armor",
  40. "Golden legs",
  41. "gold ingot",
  42. "gold ring",
  43. "green gem",
  44. "Hailstorm rod",
  45. --"Haunted blade",
  46. "Heavy mace",
  47. "Ice Rapier",
  48. "Knight Armor",
  49. "Knight Legs",
  50. "Knight Axe",
  51. "Magic plate armor",
  52. "magma boots",
  53. "Magma coat",
  54. "magma monocle",
  55. "mastermind shield",
  56. "magma legs",
  57. "Mystical hourglass",
  58. --"Medusa shield",
  59. --"Mercenary sword",
  60. "Nightmare blade",
  61. --"Northwind rod",
  62. "Onix flail",
  63. --"Royal helmet",
  64. --"Scythe leg",
  65. --"Sapphire Hammer",
  66. --"Shadow sceptre",
  67. "Platinum Amulet",
  68. "red gem",
  69. --"Relic Sword",
  70. "ruthless axe",
  71. "Small amethyst",
  72. "Small emerald",
  73. "Small diamond",
  74. "Small emerald",
  75. "Small ruby",
  76. "Small sapphire",
  77. "Small topaz",
  78. "Steel boots",
  79. "spiked squelcher",
  80. --"Skull helmet",
  81. "Skullcracker armor",
  82. --"Terra hood",
  83. --"Terra legs",
  84. --"Thunder hammer",
  85. "Titan axe",
  86. --"Tower shield",
  87. --"Twiceslicer",
  88. "underworld rod",
  89. "Vile axe",
  90. "Violet gem",
  91. "wand of inferno",
  92. "wand of cosmic energy",
  93. "War axe",
  94. "Warrior helmet",
  95. "White pearl",
  96. "Yellow gem",
  97. --"Zaoan armor",
  98. --"Zaoan helmet",
  99. --"Zaoan legs",
  100. --"Zaoan robe",
  101. --"Zaoan shoes",
  102. },
  103. }
  104.  
  105. function Vender(VendeLoot)
  106.  
  107.  
  108. Self.SayToNpc({"hi","trade"}, 65)
  109. sleep(math.random(700, 1400))
  110.  
  111. for i = 1, #ItensVenda.Itens do
  112.  
  113. if (Self.ShopGetItemSaleCount(ItensVenda.Itens[i]:lower()) >= 1) then
  114. Self.ShopSellAllItems(ItensVenda.Itens[i])
  115. wait(300, 500)
  116. end
  117. end
  118. ST = false
  119. Self.SayToNpc("Bye")
  120. end
  121.  
  122. while(ST == true) do
  123. Vender()
  124. wait(500,1000)
  125. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement