Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.04 KB | None | 0 0
  1. Message: [string "script_helper = {..."]:156: attempt to call method 'enemyPlayerWithin' (a nil value)
  2. Time: Sat Nov 16 00:04:22 2019
  3. Count: 879
  4. Stack: [string "script_helper = {..."]:156: attempt to call method 'enemyPlayerWithin' (a nil value)
  5. [string "script_helper = {..."]:156: in function `ress'
  6. [string "-- Grinder by Logitech..."]:935: in function `grind'
  7. [string "-- Grinder by Logitech..."]:598: in function <[string "-- Grinder by Logitech..."]:569>
  8.  
  9. Locals: self = <table> {
  10. getHSCD = <function> defined script_helper = {
  11. water = {},
  12. numWater = 1,
  13. food = {},
  14. numFood = 1,
  15. myMounts = {},
  16. numMounts = 1,
  17. healthPotion = {},
  18. manaPotion = {},
  19. numHealthPotion = 1,
  20. numManaPotion = 1,
  21. isSafeSpot = false,
  22. sX = 0,
  23. sY = 0,
  24. sZ = 0,
  25. safeTimer = 1
  26. }
  27.  
  28. function script_helper:distance3D(x, y, z, xx, yy, zz)
  29. if x == nil or xx == nil then
  30. Log:Error('Helper: invalid coordinates to distance3D.')
  31. return 10000
  32. end
  33. return ((xx-x)^2 + (yy-y)^2 + (zz-z)^2)^(1/2);
  34. end
  35.  
  36. function script_helper:nrOfSellableSlots()
  37. local numSlot = 0
  38. for b = 0, 4 do
  39. for i = 1, GetContainerNumSlots(b) do
  40. if GetContainerItemLink(b, i) ~= nil then
  41. local itemName, itemLink, itemRarity, itemLevel, itemMinLevel, itemType, itemSubType,
  42. itemStackCount, itemEquipLoc, itemTexture = GetItemInfo(GetContainerItemLink(0, i));
  43. if itemType ~= "Quest" then
  44. if not script_vendor:keepItem(itemName) and not script_vendor:unsellableItem(itemName) then
  45. if itemName ~= script_vend sZ = 0
  46. addMount = <function> defined script_helper = {
  47. water = {},
  48. numWater = 1,
  49. food = {},
  50. numFood = 1,
  51. myMounts = {},
  52. numMounts = 1,
  53. healthPotion = {},
  54. manaPotion = {},
  55. numHealthPotion = 1,
  56. numManaPotion = 1,
  57. isSafeSpot = false,
  58. sX = 0,
  59. sY = 0,
  60. sZ = 0,
  61. safeTimer = 1
  62. }
  63.  
  64. function script_helper:distance3D(x, y, z, xx, yy, zz)
  65. if x == nil or xx == nil then
  66. Log:Error('Helper: invalid coordinates to distance3D.')
  67. return 10000
  68. end
  69. return ((xx-x)^2 + (yy-y)^2 + (zz-z)^2)^(1/2);
  70. end
  71.  
  72. function script_helper:nrOfSellableSlots()
  73. local numSlot = 0
  74. for b = 0, 4 do
  75. for i = 1, GetContainerNumSlots(b) do
  76. if GetContainerItemLink(b, i) ~= nil then
  77. local itemName, itemLink, itemRarity, itemLevel, itemMinLevel, itemType, itemSubType,
  78. itemStackCount, itemEquipLoc, itemTexture = GetItemInfo(GetContainerItemLink(0, i));
  79. if itemType ~= "Quest" then
  80. if not script_vendor:keepItem(itemName) and not script_vendor:unsellableItem(itemName) then
  81. if itemName ~= script_ven distance3D = <function> defined script_helper = {
  82. water = {},
  83. numWater = 1,
  84. food = {},
  85. numFood = 1,
  86. myMounts = {},
  87. numMounts = 1,
  88. healthPotion = {},
  89. manaPotion = {},
  90. numHealthPotion = 1,
  91. numManaPotion = 1,
  92. isSafeSpot = false,
  93. sX = 0,
  94. sY = 0,
  95. sZ = 0,
  96. safeTimer = 1
  97. }
  98.  
  99. function script_helper:distance3D(x, y, z, xx, yy, zz)
  100. if x == nil or xx == nil then
  101. Log:Error('Helper: invalid coordinates to distance3D.')
  102. return 10000
  103. end
  104. return ((xx-x)^2 + (yy-y)^2 + (zz-z)^2)^(1/2);
  105. end
  106.  
  107. function script_helper:nrOfSellableSlots()
  108. local numSlot = 0
  109. for b = 0, 4 do
  110. for i = 1, GetContainerNumSlots(b) do
  111. if GetContainerItemLink(b, i) ~= nil then
  112. local itemName, itemLink, itemRarity, itemLevel, itemMinLevel, itemType, itemSubType,
  113. itemStackCount, itemEquipLoc, itemTexture = GetItemInfo(GetContainerItemLink(0, i));
  114. if itemType ~= "Quest" then
  115. if not script_vendor:keepItem(itemName) and not script_vendor:unsellableItem(itemName) then
  116. if itemName ~= script_v numMounts = 64
  117. numManaPotion = 6
  118. water = <table> {
  119. }
  120. nrOfWater = <function> defined script_helper = {
  121. water = {},
  122. numWater = 1,
  123. food = {},
  124. numFood = 1,
  125. myMounts = {},
  126. numMounts = 1,
  127. healthPotion = {},
  128. manaPotion = {},
  129. numHealthPotion = 1,
  130. numManaPotion = 1,
  131. isSafeSpot = false,
  132. sX = 0,
  133. sY = 0,
  134. sZ = 0,
  135. safeTimer = 1
  136. }
  137.  
  138. function script_helper:distance3D(x, y, z, xx, yy, zz)
  139. if x == nil or xx == nil then
  140. Log:Error
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement