Advertisement
Guest User

Untitled

a guest
May 29th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.48 KB | None | 0 0
  1. [22:10:35.827] [Error - GlobalEvent Interface]
  2. [22:10:35.827] In a timer event called from:
  3. [22:10:35.827] domodlib('buffs')
  4. [22:10:35.827] function onThink(interval, lastExecution, thinkInterval)
  5. [22:10:35.827] local online = getPlayersOnline()
  6. [22:10:35.827] local Online = {}
  7. [22:10:35.827] local playersOnline = {}
  8. [22:10:35.827] for _, kid in pairs(online) do
  9. [22:10:35.827] if(isPlayer(kid)) then
  10. [22:10:35.827] table.insert(Online, kid)
  11. [22:10:35.827] end
  12. [22:10:35.827] end
  13. [22:10:35.827] if #Online > 0 then
  14. [22:10:35.827] for _, cid in ipairs(getPlayersOnline()) do
  15. [22:10:35.827] local wear = {}
  16. [22:10:35.827] local items = {}
  17. [22:10:35.827] local cur = {}
  18. [22:10:35.827] if not isPlayer(cid) then
  19. [22:10:35.827] return true
  20. [22:10:35.827] end
  21. [22:10:35.827] for i = 1, #config.storage_items do
  22. [22:10:35.827] if getPlayerStorageValue(cid, co nfig.storage_items[i]) == 1 then
  23. [22:10:35.827] table.insert(wear, confi g.storage_items[i])
  24. [22:10:35.828] table.insert(items, conf ig.storage_IDs[i])
  25. [22:10:35.828] else
  26. [22:10:35.828] table.insert(wear, 0)
  27. [22:10:35.828] table.insert(items, 0)
  28. [22:10:35.828] end
  29. [22:10:35.828] if getPlayerSlotItem(cid, CONST_ SLOT_RING).itemid == config.rings[1] and i == 1 then
  30. [22:10:35.828] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_RING).itemid)
  31. [22:10:35.828] elseif getPlayerSlotItem(cid, CO NST_SLOT_RING).itemid ~= config.rings[1] and i == 1 then
  32. [22:10:35.828] table.insert(cur, 0)
  33. [22:10:35.828] end
  34. [22:10:35.828] if getPlayerSlotItem(cid, CONST_ SLOT_RING).itemid == config.rings[2] and i == 2 then
  35. [22:10:35.828] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_RING).itemid)
  36. [22:10:35.828] elseif getPlayerSlotItem(cid, CO NST_SLOT_RING).itemid ~= config.rings[2] and i == 2 then
  37. [22:10:35.828] table.insert(cur, 0)
  38. [22:10:35.828] end
  39. [22:10:35.828] if getPlayerSlotItem(cid, CONST_ SLOT_RING).itemid == config.rings[3] and i == 4 then
  40. [22:10:35.828] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_RING).itemid)
  41. [22:10:35.828] elseif getPlayerSlotItem(cid, CO NST_SLOT_RING).itemid ~= config.rings[3] and i == 4 then
  42. [22:10:35.828] table.insert(cur, 0)
  43. [22:10:35.828] end
  44. [22:10:35.828] if getPlayerSlotItem(cid, CONST_ SLOT_FEET).itemid == config.boots[1] and i == 3 then
  45. [22:10:35.828] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_FEET).itemid)
  46. [22:10:35.828] elseif getPlayerSlotItem(cid, CO NST_SLOT_FEET).itemid ~= config.boots[1] and i == 3 then
  47. [22:10:35.828] table.insert(cur, 0)
  48. [22:10:35.828] end
  49. [22:10:35.828] if getPlayerSlotItem(cid, CONST_ SLOT_FEET).itemid == config.boots[2] and i == 5 then
  50. [22:10:35.828] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_FEET).itemid)
  51. [22:10:35.828] elseif getPlayerSlotItem(cid, CO NST_SLOT_FEET).itemid ~= config.boots[2] and i == 5 then
  52. [22:10:35.828] table.insert(cur, 0)
  53. [22:10:35.828] end
  54. [22:10:35.828] if getPlayerSlotItem(cid, CONST_ SLOT_FEET).itemid == config.boots[3] and i == 6 then
  55. [22:10:35.828] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_FEET).itemid)
  56. [22:10:35.828] elseif getPlayerSlotItem(cid, CO NST_SLOT_FEET).itemid ~= config.boots[3] and i == 6 then
  57. [22:10:35.829] table.insert(cur, 0)
  58. [22:10:35.829] end
  59. [22:10:35.829] end
  60. [22:10:35.829] local slot_2 = ""
  61. [22:10:35.829] for a = 1, #wear do
  62. [22:10:35.829] if a == 1 or a == 2 or a == 4 th en
  63. [22:10:35.829] slot_2 = CONST_SLOT_RING
  64. [22:10:35.829] elseif a == 3 or a == 5 or a == 6 then
  65. [22:10:35.829] slot_2 = CONST_SLOT_FEET
  66. [22:10:35.829] end
  67. [22:10:35.829] if wear[a] ~= 0 then
  68. [22:10:35.829] if wear[a] > 0 and items [a] > 0 then
  69. [22:10:35.829] if getPlayerSlot Item(cid, slot_2).itemid ~= items[a] then
  70. [22:10:35.829] local it em = items[a]
  71. [22:10:35.829] setPlaye rStorageValue(cid, config[item].storage_mana, 0)
  72. [22:10:35.829] setPlaye rStorageValue(cid, config[item].storage_hp, 0)
  73. [22:10:35.829] setCreat ureMaxMana(cid, getCreatureMaxMana(cid) - (getPlayerStorageValue(cid, config[ite m].storage_mana + 1)))
  74. [22:10:35.829] setCreat ureMaxHealth(cid, getCreatureMaxHealth(cid) - (getPlayerStorageValue(cid, config [item].storage_hp + 1)))
  75. [22:10:35.829] setPlaye rStorageValue(cid, config[item].storage_mana + 1, 0)
  76. [22:10:35.829] setPlaye rStorageValue(cid, config[item].storage_hp + 1, 0)
  77. [22:10:35.829] doSendMa gicEffect(getCreaturePosition(cid), CONST_ME_POFF)
  78. [22:10:35.829] doSendAn imatedText(getCreaturePosition(cid), "EXTRAS", TEXTCOLOR_RED)
  79. [22:10:35.829] addEvent (function() doSendAnimatedText(getCreaturePosition(cid), "DEACTIVE", TEXTCOLOR_R ED) end, 300)
  80. [22:10:35.829] table.re move(wear, a)
  81. [22:10:35.829] table.in sert(wear, a, 0)
  82. [22:10:35.829] table.re move(items, a)
  83. [22:10:35.829] table.in sert(items, a, 0)
  84. [22:10:35.829] table.re move(cur, a)
  85. [22:10:35.829] table.in sert(cur, a, 0)
  86. [22:10:35.829] end
  87. [22:10:35.829] end
  88. [22:10:35.829] end
  89. [22:10:35.829] end
  90. [22:10:35.830] local slot = ""
  91. [22:10:35.830] local c = ""
  92. [22:10:35.830] for z = 1, #items do
  93. [22:10:35.830] if items[z] ~= cur[z] then
  94. [22:10:35.830] if z == 1 or z == 2 or z == 4 then
  95. [22:10:35.830] slot = CONST_SLO T_RING
  96. [22:10:35.830] c = config.rings
  97. [22:10:35.830] elseif z == 3 or z == 5 or z == 6 then
  98. [22:10:35.830] slot = CONST_SLO T_FEET
  99. [22:10:35.830] c = config.boots
  100. [22:10:35.830] end
  101. [22:10:35.830] if table.contains(c, get PlayerSlotItem(cid, slot).itemid) == TRUE then
  102. [22:10:35.830] local item = get PlayerSlotItem(cid, slot).itemid
  103. [22:10:35.830] setCreatureMaxMa na(cid, getCreatureMaxMana(cid) + (getStandartMANA(cid) * (config[item].percent_ mana / 100)))
  104. [22:10:35.830] setCreatureMaxHe alth(cid, getCreatureMaxHealth(cid) + (getStandartHP(cid) * (config[item].percen t_hp / 100)))
  105. [22:10:35.830] setPlayerStorage Value(cid, config[item].storage_mana, 1)
  106. [22:10:35.830] setPlayerStorage Value(cid, config[item].storage_hp, 1)
  107. [22:10:35.830] setPlayerStorage Value(cid, config[item].storage_mana + 1, getStandartMANA(cid) * (config[item].p ercent_mana / 100))
  108. [22:10:35.830] setPlayerStorage Value(cid, config[item].storage_hp + 1, getStandartHP(cid) * (config[item].perce nt_hp / 100))
  109. [22:10:35.830] doSendMagicEffec t(getCreaturePosition(cid), CONST_ME_FIREWORK_YELLOW)
  110. [22:10:35.830] doSendAnimatedTe xt(getCreaturePosition(cid), "EXTRAS", TEXTCOLOR_YELLOW)
  111. [22:10:35.830] addEvent(functio n() doSendAnimatedText(getCreaturePosition(cid), "ACTIVE", TEXTCOLOR_YELLOW) end , 300)
  112. [22:10:35.830] end
  113. [22:10:35.830] end
  114. [22:10:35.830] end
  115. [22:10:35.830] end
  116. [22:10:35.830] end
  117. [22:10:35.830] return true
  118. [22:10:35.830] end
  119. [22:10:35.830] :onThink
  120. [22:10:35.830] Description:
  121. [22:10:35.830] (luaGetThingPosition) Thing not found
  122.  
  123. [22:10:35.831] [Error - GlobalEvent Interface]
  124. [22:10:35.831] In a timer event called from:
  125. [22:10:35.831] domodlib('buffs')
  126. [22:10:35.831] function onThink(interval, lastExecution, thinkInterval)
  127. [22:10:35.831] local online = getPlayersOnline()
  128. [22:10:35.831] local Online = {}
  129. [22:10:35.831] local playersOnline = {}
  130. [22:10:35.831] for _, kid in pairs(online) do
  131. [22:10:35.831] if(isPlayer(kid)) then
  132. [22:10:35.831] table.insert(Online, kid)
  133. [22:10:35.831] end
  134. [22:10:35.831] end
  135. [22:10:35.831] if #Online > 0 then
  136. [22:10:35.831] for _, cid in ipairs(getPlayersOnline()) do
  137. [22:10:35.831] local wear = {}
  138. [22:10:35.831] local items = {}
  139. [22:10:35.831] local cur = {}
  140. [22:10:35.831] if not isPlayer(cid) then
  141. [22:10:35.831] return true
  142. [22:10:35.831] end
  143. [22:10:35.831] for i = 1, #config.storage_items do
  144. [22:10:35.831] if getPlayerStorageValue(cid, co nfig.storage_items[i]) == 1 then
  145. [22:10:35.831] table.insert(wear, confi g.storage_items[i])
  146. [22:10:35.831] table.insert(items, conf ig.storage_IDs[i])
  147. [22:10:35.831] else
  148. [22:10:35.831] table.insert(wear, 0)
  149. [22:10:35.832] table.insert(items, 0)
  150. [22:10:35.832] end
  151. [22:10:35.832] if getPlayerSlotItem(cid, CONST_ SLOT_RING).itemid == config.rings[1] and i == 1 then
  152. [22:10:35.832] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_RING).itemid)
  153. [22:10:35.832] elseif getPlayerSlotItem(cid, CO NST_SLOT_RING).itemid ~= config.rings[1] and i == 1 then
  154. [22:10:35.832] table.insert(cur, 0)
  155. [22:10:35.832] end
  156. [22:10:35.832] if getPlayerSlotItem(cid, CONST_ SLOT_RING).itemid == config.rings[2] and i == 2 then
  157. [22:10:35.832] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_RING).itemid)
  158. [22:10:35.832] elseif getPlayerSlotItem(cid, CO NST_SLOT_RING).itemid ~= config.rings[2] and i == 2 then
  159. [22:10:35.832] table.insert(cur, 0)
  160. [22:10:35.832] end
  161. [22:10:35.832] if getPlayerSlotItem(cid, CONST_ SLOT_RING).itemid == config.rings[3] and i == 4 then
  162. [22:10:35.832] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_RING).itemid)
  163. [22:10:35.832] elseif getPlayerSlotItem(cid, CO NST_SLOT_RING).itemid ~= config.rings[3] and i == 4 then
  164. [22:10:35.832] table.insert(cur, 0)
  165. [22:10:35.832] end
  166. [22:10:35.832] if getPlayerSlotItem(cid, CONST_ SLOT_FEET).itemid == config.boots[1] and i == 3 then
  167. [22:10:35.832] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_FEET).itemid)
  168. [22:10:35.832] elseif getPlayerSlotItem(cid, CO NST_SLOT_FEET).itemid ~= config.boots[1] and i == 3 then
  169. [22:10:35.832] table.insert(cur, 0)
  170. [22:10:35.832] end
  171. [22:10:35.832] if getPlayerSlotItem(cid, CONST_ SLOT_FEET).itemid == config.boots[2] and i == 5 then
  172. [22:10:35.832] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_FEET).itemid)
  173. [22:10:35.832] elseif getPlayerSlotItem(cid, CO NST_SLOT_FEET).itemid ~= config.boots[2] and i == 5 then
  174. [22:10:35.832] table.insert(cur, 0)
  175. [22:10:35.832] end
  176. [22:10:35.832] if getPlayerSlotItem(cid, CONST_ SLOT_FEET).itemid == config.boots[3] and i == 6 then
  177. [22:10:35.832] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_FEET).itemid)
  178. [22:10:35.832] elseif getPlayerSlotItem(cid, CO NST_SLOT_FEET).itemid ~= config.boots[3] and i == 6 then
  179. [22:10:35.832] table.insert(cur, 0)
  180. [22:10:35.832] end
  181. [22:10:35.832] end
  182. [22:10:35.832] local slot_2 = ""
  183. [22:10:35.832] for a = 1, #wear do
  184. [22:10:35.833] if a == 1 or a == 2 or a == 4 th en
  185. [22:10:35.833] slot_2 = CONST_SLOT_RING
  186. [22:10:35.833] elseif a == 3 or a == 5 or a == 6 then
  187. [22:10:35.833] slot_2 = CONST_SLOT_FEET
  188. [22:10:35.833] end
  189. [22:10:35.833] if wear[a] ~= 0 then
  190. [22:10:35.833] if wear[a] > 0 and items [a] > 0 then
  191. [22:10:35.833] if getPlayerSlot Item(cid, slot_2).itemid ~= items[a] then
  192. [22:10:35.833] local it em = items[a]
  193. [22:10:35.833] setPlaye rStorageValue(cid, config[item].storage_mana, 0)
  194. [22:10:35.833] setPlaye rStorageValue(cid, config[item].storage_hp, 0)
  195. [22:10:35.833] setCreat ureMaxMana(cid, getCreatureMaxMana(cid) - (getPlayerStorageValue(cid, config[ite m].storage_mana + 1)))
  196. [22:10:35.833] setCreat ureMaxHealth(cid, getCreatureMaxHealth(cid) - (getPlayerStorageValue(cid, config [item].storage_hp + 1)))
  197. [22:10:35.833] setPlaye rStorageValue(cid, config[item].storage_mana + 1, 0)
  198. [22:10:35.833] setPlaye rStorageValue(cid, config[item].storage_hp + 1, 0)
  199. [22:10:35.833] doSendMa gicEffect(getCreaturePosition(cid), CONST_ME_POFF)
  200. [22:10:35.833] doSendAn imatedText(getCreaturePosition(cid), "EXTRAS", TEXTCOLOR_RED)
  201. [22:10:35.833] addEvent (function() doSendAnimatedText(getCreaturePosition(cid), "DEACTIVE", TEXTCOLOR_R ED) end, 300)
  202. [22:10:35.833] table.re move(wear, a)
  203. [22:10:35.833] table.in sert(wear, a, 0)
  204. [22:10:35.833] table.re move(items, a)
  205. [22:10:35.833] table.in sert(items, a, 0)
  206. [22:10:35.833] table.re move(cur, a)
  207. [22:10:35.833] table.in sert(cur, a, 0)
  208. [22:10:35.833] end
  209. [22:10:35.833] end
  210. [22:10:35.833] end
  211. [22:10:35.833] end
  212. [22:10:35.833] local slot = ""
  213. [22:10:35.833] local c = ""
  214. [22:10:35.833] for z = 1, #items do
  215. [22:10:35.833] if items[z] ~= cur[z] then
  216. [22:10:35.834] if z == 1 or z == 2 or z == 4 then
  217. [22:10:35.834] slot = CONST_SLO T_RING
  218. [22:10:35.834] c = config.rings
  219. [22:10:35.834] elseif z == 3 or z == 5 or z == 6 then
  220. [22:10:35.834] slot = CONST_SLO T_FEET
  221. [22:10:35.834] c = config.boots
  222. [22:10:35.834] end
  223. [22:10:35.834] if table.contains(c, get PlayerSlotItem(cid, slot).itemid) == TRUE then
  224. [22:10:35.834] local item = get PlayerSlotItem(cid, slot).itemid
  225. [22:10:35.834] setCreatureMaxMa na(cid, getCreatureMaxMana(cid) + (getStandartMANA(cid) * (config[item].percent_ mana / 100)))
  226. [22:10:35.834] setCreatureMaxHe alth(cid, getCreatureMaxHealth(cid) + (getStandartHP(cid) * (config[item].percen t_hp / 100)))
  227. [22:10:35.834] setPlayerStorage Value(cid, config[item].storage_mana, 1)
  228. [22:10:35.834] setPlayerStorage Value(cid, config[item].storage_hp, 1)
  229. [22:10:35.834] setPlayerStorage Value(cid, config[item].storage_mana + 1, getStandartMANA(cid) * (config[item].p ercent_mana / 100))
  230. [22:10:35.834] setPlayerStorage Value(cid, config[item].storage_hp + 1, getStandartHP(cid) * (config[item].perce nt_hp / 100))
  231. [22:10:35.834] doSendMagicEffec t(getCreaturePosition(cid), CONST_ME_FIREWORK_YELLOW)
  232. [22:10:35.834] doSendAnimatedTe xt(getCreaturePosition(cid), "EXTRAS", TEXTCOLOR_YELLOW)
  233. [22:10:35.834] addEvent(functio n() doSendAnimatedText(getCreaturePosition(cid), "ACTIVE", TEXTCOLOR_YELLOW) end , 300)
  234. [22:10:35.834] end
  235. [22:10:35.834] end
  236. [22:10:35.834] end
  237. [22:10:35.834] end
  238. [22:10:35.834] end
  239. [22:10:35.834] return true
  240. [22:10:35.834] end
  241. [22:10:35.834] :onThink
  242. [22:10:35.834] Description:
  243. [22:10:35.834] (luaGetThingPosition) Thing not found
  244.  
  245. [22:10:35.835] [Error - GlobalEvent Interface]
  246. [22:10:35.835] In a timer event called from:
  247. [22:10:35.835] domodlib('buffs')
  248. [22:10:35.835] function onThink(interval, lastExecution, thinkInterval)
  249. [22:10:35.835] local online = getPlayersOnline()
  250. [22:10:35.835] local Online = {}
  251. [22:10:35.835] local playersOnline = {}
  252. [22:10:35.835] for _, kid in pairs(online) do
  253. [22:10:35.835] if(isPlayer(kid)) then
  254. [22:10:35.835] table.insert(Online, kid)
  255. [22:10:35.835] end
  256. [22:10:35.835] end
  257. [22:10:35.835] if #Online > 0 then
  258. [22:10:35.835] for _, cid in ipairs(getPlayersOnline()) do
  259. [22:10:35.835] local wear = {}
  260. [22:10:35.835] local items = {}
  261. [22:10:35.835] local cur = {}
  262. [22:10:35.835] if not isPlayer(cid) then
  263. [22:10:35.835] return true
  264. [22:10:35.835] end
  265. [22:10:35.835] for i = 1, #config.storage_items do
  266. [22:10:35.835] if getPlayerStorageValue(cid, co nfig.storage_items[i]) == 1 then
  267. [22:10:35.835] table.insert(wear, confi g.storage_items[i])
  268. [22:10:35.835] table.insert(items, conf ig.storage_IDs[i])
  269. [22:10:35.836] else
  270. [22:10:35.836] table.insert(wear, 0)
  271. [22:10:35.836] table.insert(items, 0)
  272. [22:10:35.836] end
  273. [22:10:35.836] if getPlayerSlotItem(cid, CONST_ SLOT_RING).itemid == config.rings[1] and i == 1 then
  274. [22:10:35.836] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_RING).itemid)
  275. [22:10:35.836] elseif getPlayerSlotItem(cid, CO NST_SLOT_RING).itemid ~= config.rings[1] and i == 1 then
  276. [22:10:35.836] table.insert(cur, 0)
  277. [22:10:35.836] end
  278. [22:10:35.836] if getPlayerSlotItem(cid, CONST_ SLOT_RING).itemid == config.rings[2] and i == 2 then
  279. [22:10:35.836] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_RING).itemid)
  280. [22:10:35.836] elseif getPlayerSlotItem(cid, CO NST_SLOT_RING).itemid ~= config.rings[2] and i == 2 then
  281. [22:10:35.836] table.insert(cur, 0)
  282. [22:10:35.836] end
  283. [22:10:35.836] if getPlayerSlotItem(cid, CONST_ SLOT_RING).itemid == config.rings[3] and i == 4 then
  284. [22:10:35.836] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_RING).itemid)
  285. [22:10:35.836] elseif getPlayerSlotItem(cid, CO NST_SLOT_RING).itemid ~= config.rings[3] and i == 4 then
  286. [22:10:35.836] table.insert(cur, 0)
  287. [22:10:35.836] end
  288. [22:10:35.836] if getPlayerSlotItem(cid, CONST_ SLOT_FEET).itemid == config.boots[1] and i == 3 then
  289. [22:10:35.836] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_FEET).itemid)
  290. [22:10:35.836] elseif getPlayerSlotItem(cid, CO NST_SLOT_FEET).itemid ~= config.boots[1] and i == 3 then
  291. [22:10:35.836] table.insert(cur, 0)
  292. [22:10:35.836] end
  293. [22:10:35.836] if getPlayerSlotItem(cid, CONST_ SLOT_FEET).itemid == config.boots[2] and i == 5 then
  294. [22:10:35.836] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_FEET).itemid)
  295. [22:10:35.836] elseif getPlayerSlotItem(cid, CO NST_SLOT_FEET).itemid ~= config.boots[2] and i == 5 then
  296. [22:10:35.836] table.insert(cur, 0)
  297. [22:10:35.836] end
  298. [22:10:35.836] if getPlayerSlotItem(cid, CONST_ SLOT_FEET).itemid == config.boots[3] and i == 6 then
  299. [22:10:35.836] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_FEET).itemid)
  300. [22:10:35.836] elseif getPlayerSlotItem(cid, CO NST_SLOT_FEET).itemid ~= config.boots[3] and i == 6 then
  301. [22:10:35.837] table.insert(cur, 0)
  302. [22:10:35.837] end
  303. [22:10:35.837] end
  304. [22:10:35.837] local slot_2 = ""
  305. [22:10:35.837] for a = 1, #wear do
  306. [22:10:35.837] if a == 1 or a == 2 or a == 4 th en
  307. [22:10:35.837] slot_2 = CONST_SLOT_RING
  308. [22:10:35.837] elseif a == 3 or a == 5 or a == 6 then
  309. [22:10:35.837] slot_2 = CONST_SLOT_FEET
  310. [22:10:35.837] end
  311. [22:10:35.837] if wear[a] ~= 0 then
  312. [22:10:35.837] if wear[a] > 0 and items [a] > 0 then
  313. [22:10:35.837] if getPlayerSlot Item(cid, slot_2).itemid ~= items[a] then
  314. [22:10:35.837] local it em = items[a]
  315. [22:10:35.837] setPlaye rStorageValue(cid, config[item].storage_mana, 0)
  316. [22:10:35.837] setPlaye rStorageValue(cid, config[item].storage_hp, 0)
  317. [22:10:35.837] setCreat ureMaxMana(cid, getCreatureMaxMana(cid) - (getPlayerStorageValue(cid, config[ite m].storage_mana + 1)))
  318. [22:10:35.837] setCreat ureMaxHealth(cid, getCreatureMaxHealth(cid) - (getPlayerStorageValue(cid, config [item].storage_hp + 1)))
  319. [22:10:35.837] setPlaye rStorageValue(cid, config[item].storage_mana + 1, 0)
  320. [22:10:35.837] setPlaye rStorageValue(cid, config[item].storage_hp + 1, 0)
  321. [22:10:35.837] doSendMa gicEffect(getCreaturePosition(cid), CONST_ME_POFF)
  322. [22:10:35.837] doSendAn imatedText(getCreaturePosition(cid), "EXTRAS", TEXTCOLOR_RED)
  323. [22:10:35.837] addEvent (function() doSendAnimatedText(getCreaturePosition(cid), "DEACTIVE", TEXTCOLOR_R ED) end, 300)
  324. [22:10:35.837] table.re move(wear, a)
  325. [22:10:35.837] table.in sert(wear, a, 0)
  326. [22:10:35.837] table.re move(items, a)
  327. [22:10:35.838] table.in sert(items, a, 0)
  328. [22:10:35.838] table.re move(cur, a)
  329. [22:10:35.838] table.in sert(cur, a, 0)
  330. [22:10:35.838] end
  331. [22:10:35.838] end
  332. [22:10:35.838] end
  333. [22:10:35.838] end
  334. [22:10:35.838] local slot = ""
  335. [22:10:35.838] local c = ""
  336. [22:10:35.838] for z = 1, #items do
  337. [22:10:35.838] if items[z] ~= cur[z] then
  338. [22:10:35.838] if z == 1 or z == 2 or z == 4 then
  339. [22:10:35.838] slot = CONST_SLO T_RING
  340. [22:10:35.838] c = config.rings
  341. [22:10:35.838] elseif z == 3 or z == 5 or z == 6 then
  342. [22:10:35.838] slot = CONST_SLO T_FEET
  343. [22:10:35.838] c = config.boots
  344. [22:10:35.838] end
  345. [22:10:35.838] if table.contains(c, get PlayerSlotItem(cid, slot).itemid) == TRUE then
  346. [22:10:35.838] local item = get PlayerSlotItem(cid, slot).itemid
  347. [22:10:35.838] setCreatureMaxMa na(cid, getCreatureMaxMana(cid) + (getStandartMANA(cid) * (config[item].percent_ mana / 100)))
  348. [22:10:35.838] setCreatureMaxHe alth(cid, getCreatureMaxHealth(cid) + (getStandartHP(cid) * (config[item].percen t_hp / 100)))
  349. [22:10:35.838] setPlayerStorage Value(cid, config[item].storage_mana, 1)
  350. [22:10:35.838] setPlayerStorage Value(cid, config[item].storage_hp, 1)
  351. [22:10:35.838] setPlayerStorage Value(cid, config[item].storage_mana + 1, getStandartMANA(cid) * (config[item].p ercent_mana / 100))
  352. [22:10:35.838] setPlayerStorage Value(cid, config[item].storage_hp + 1, getStandartHP(cid) * (config[item].perce nt_hp / 100))
  353. [22:10:35.838] doSendMagicEffec t(getCreaturePosition(cid), CONST_ME_FIREWORK_YELLOW)
  354. [22:10:35.838] doSendAnimatedTe xt(getCreaturePosition(cid), "EXTRAS", TEXTCOLOR_YELLOW)
  355. [22:10:35.838] addEvent(functio n() doSendAnimatedText(getCreaturePosition(cid), "ACTIVE", TEXTCOLOR_YELLOW) end , 300)
  356. [22:10:35.838] end
  357. [22:10:35.839] end
  358. [22:10:35.839] end
  359. [22:10:35.839] end
  360. [22:10:35.839] end
  361. [22:10:35.839] return true
  362. [22:10:35.839] end
  363. [22:10:35.839] :onThink
  364. [22:10:35.839] Description:
  365. [22:10:35.839] (luaGetThingPosition) Thing not found
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement