Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [22:10:35.827] [Error - GlobalEvent Interface]
- [22:10:35.827] In a timer event called from:
- [22:10:35.827] domodlib('buffs')
- [22:10:35.827] function onThink(interval, lastExecution, thinkInterval)
- [22:10:35.827] local online = getPlayersOnline()
- [22:10:35.827] local Online = {}
- [22:10:35.827] local playersOnline = {}
- [22:10:35.827] for _, kid in pairs(online) do
- [22:10:35.827] if(isPlayer(kid)) then
- [22:10:35.827] table.insert(Online, kid)
- [22:10:35.827] end
- [22:10:35.827] end
- [22:10:35.827] if #Online > 0 then
- [22:10:35.827] for _, cid in ipairs(getPlayersOnline()) do
- [22:10:35.827] local wear = {}
- [22:10:35.827] local items = {}
- [22:10:35.827] local cur = {}
- [22:10:35.827] if not isPlayer(cid) then
- [22:10:35.827] return true
- [22:10:35.827] end
- [22:10:35.827] for i = 1, #config.storage_items do
- [22:10:35.827] if getPlayerStorageValue(cid, co nfig.storage_items[i]) == 1 then
- [22:10:35.827] table.insert(wear, confi g.storage_items[i])
- [22:10:35.828] table.insert(items, conf ig.storage_IDs[i])
- [22:10:35.828] else
- [22:10:35.828] table.insert(wear, 0)
- [22:10:35.828] table.insert(items, 0)
- [22:10:35.828] end
- [22:10:35.828] if getPlayerSlotItem(cid, CONST_ SLOT_RING).itemid == config.rings[1] and i == 1 then
- [22:10:35.828] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_RING).itemid)
- [22:10:35.828] elseif getPlayerSlotItem(cid, CO NST_SLOT_RING).itemid ~= config.rings[1] and i == 1 then
- [22:10:35.828] table.insert(cur, 0)
- [22:10:35.828] end
- [22:10:35.828] if getPlayerSlotItem(cid, CONST_ SLOT_RING).itemid == config.rings[2] and i == 2 then
- [22:10:35.828] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_RING).itemid)
- [22:10:35.828] elseif getPlayerSlotItem(cid, CO NST_SLOT_RING).itemid ~= config.rings[2] and i == 2 then
- [22:10:35.828] table.insert(cur, 0)
- [22:10:35.828] end
- [22:10:35.828] if getPlayerSlotItem(cid, CONST_ SLOT_RING).itemid == config.rings[3] and i == 4 then
- [22:10:35.828] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_RING).itemid)
- [22:10:35.828] elseif getPlayerSlotItem(cid, CO NST_SLOT_RING).itemid ~= config.rings[3] and i == 4 then
- [22:10:35.828] table.insert(cur, 0)
- [22:10:35.828] end
- [22:10:35.828] if getPlayerSlotItem(cid, CONST_ SLOT_FEET).itemid == config.boots[1] and i == 3 then
- [22:10:35.828] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_FEET).itemid)
- [22:10:35.828] elseif getPlayerSlotItem(cid, CO NST_SLOT_FEET).itemid ~= config.boots[1] and i == 3 then
- [22:10:35.828] table.insert(cur, 0)
- [22:10:35.828] end
- [22:10:35.828] if getPlayerSlotItem(cid, CONST_ SLOT_FEET).itemid == config.boots[2] and i == 5 then
- [22:10:35.828] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_FEET).itemid)
- [22:10:35.828] elseif getPlayerSlotItem(cid, CO NST_SLOT_FEET).itemid ~= config.boots[2] and i == 5 then
- [22:10:35.828] table.insert(cur, 0)
- [22:10:35.828] end
- [22:10:35.828] if getPlayerSlotItem(cid, CONST_ SLOT_FEET).itemid == config.boots[3] and i == 6 then
- [22:10:35.828] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_FEET).itemid)
- [22:10:35.828] elseif getPlayerSlotItem(cid, CO NST_SLOT_FEET).itemid ~= config.boots[3] and i == 6 then
- [22:10:35.829] table.insert(cur, 0)
- [22:10:35.829] end
- [22:10:35.829] end
- [22:10:35.829] local slot_2 = ""
- [22:10:35.829] for a = 1, #wear do
- [22:10:35.829] if a == 1 or a == 2 or a == 4 th en
- [22:10:35.829] slot_2 = CONST_SLOT_RING
- [22:10:35.829] elseif a == 3 or a == 5 or a == 6 then
- [22:10:35.829] slot_2 = CONST_SLOT_FEET
- [22:10:35.829] end
- [22:10:35.829] if wear[a] ~= 0 then
- [22:10:35.829] if wear[a] > 0 and items [a] > 0 then
- [22:10:35.829] if getPlayerSlot Item(cid, slot_2).itemid ~= items[a] then
- [22:10:35.829] local it em = items[a]
- [22:10:35.829] setPlaye rStorageValue(cid, config[item].storage_mana, 0)
- [22:10:35.829] setPlaye rStorageValue(cid, config[item].storage_hp, 0)
- [22:10:35.829] setCreat ureMaxMana(cid, getCreatureMaxMana(cid) - (getPlayerStorageValue(cid, config[ite m].storage_mana + 1)))
- [22:10:35.829] setCreat ureMaxHealth(cid, getCreatureMaxHealth(cid) - (getPlayerStorageValue(cid, config [item].storage_hp + 1)))
- [22:10:35.829] setPlaye rStorageValue(cid, config[item].storage_mana + 1, 0)
- [22:10:35.829] setPlaye rStorageValue(cid, config[item].storage_hp + 1, 0)
- [22:10:35.829] doSendMa gicEffect(getCreaturePosition(cid), CONST_ME_POFF)
- [22:10:35.829] doSendAn imatedText(getCreaturePosition(cid), "EXTRAS", TEXTCOLOR_RED)
- [22:10:35.829] addEvent (function() doSendAnimatedText(getCreaturePosition(cid), "DEACTIVE", TEXTCOLOR_R ED) end, 300)
- [22:10:35.829] table.re move(wear, a)
- [22:10:35.829] table.in sert(wear, a, 0)
- [22:10:35.829] table.re move(items, a)
- [22:10:35.829] table.in sert(items, a, 0)
- [22:10:35.829] table.re move(cur, a)
- [22:10:35.829] table.in sert(cur, a, 0)
- [22:10:35.829] end
- [22:10:35.829] end
- [22:10:35.829] end
- [22:10:35.829] end
- [22:10:35.830] local slot = ""
- [22:10:35.830] local c = ""
- [22:10:35.830] for z = 1, #items do
- [22:10:35.830] if items[z] ~= cur[z] then
- [22:10:35.830] if z == 1 or z == 2 or z == 4 then
- [22:10:35.830] slot = CONST_SLO T_RING
- [22:10:35.830] c = config.rings
- [22:10:35.830] elseif z == 3 or z == 5 or z == 6 then
- [22:10:35.830] slot = CONST_SLO T_FEET
- [22:10:35.830] c = config.boots
- [22:10:35.830] end
- [22:10:35.830] if table.contains(c, get PlayerSlotItem(cid, slot).itemid) == TRUE then
- [22:10:35.830] local item = get PlayerSlotItem(cid, slot).itemid
- [22:10:35.830] setCreatureMaxMa na(cid, getCreatureMaxMana(cid) + (getStandartMANA(cid) * (config[item].percent_ mana / 100)))
- [22:10:35.830] setCreatureMaxHe alth(cid, getCreatureMaxHealth(cid) + (getStandartHP(cid) * (config[item].percen t_hp / 100)))
- [22:10:35.830] setPlayerStorage Value(cid, config[item].storage_mana, 1)
- [22:10:35.830] setPlayerStorage Value(cid, config[item].storage_hp, 1)
- [22:10:35.830] setPlayerStorage Value(cid, config[item].storage_mana + 1, getStandartMANA(cid) * (config[item].p ercent_mana / 100))
- [22:10:35.830] setPlayerStorage Value(cid, config[item].storage_hp + 1, getStandartHP(cid) * (config[item].perce nt_hp / 100))
- [22:10:35.830] doSendMagicEffec t(getCreaturePosition(cid), CONST_ME_FIREWORK_YELLOW)
- [22:10:35.830] doSendAnimatedTe xt(getCreaturePosition(cid), "EXTRAS", TEXTCOLOR_YELLOW)
- [22:10:35.830] addEvent(functio n() doSendAnimatedText(getCreaturePosition(cid), "ACTIVE", TEXTCOLOR_YELLOW) end , 300)
- [22:10:35.830] end
- [22:10:35.830] end
- [22:10:35.830] end
- [22:10:35.830] end
- [22:10:35.830] end
- [22:10:35.830] return true
- [22:10:35.830] end
- [22:10:35.830] :onThink
- [22:10:35.830] Description:
- [22:10:35.830] (luaGetThingPosition) Thing not found
- [22:10:35.831] [Error - GlobalEvent Interface]
- [22:10:35.831] In a timer event called from:
- [22:10:35.831] domodlib('buffs')
- [22:10:35.831] function onThink(interval, lastExecution, thinkInterval)
- [22:10:35.831] local online = getPlayersOnline()
- [22:10:35.831] local Online = {}
- [22:10:35.831] local playersOnline = {}
- [22:10:35.831] for _, kid in pairs(online) do
- [22:10:35.831] if(isPlayer(kid)) then
- [22:10:35.831] table.insert(Online, kid)
- [22:10:35.831] end
- [22:10:35.831] end
- [22:10:35.831] if #Online > 0 then
- [22:10:35.831] for _, cid in ipairs(getPlayersOnline()) do
- [22:10:35.831] local wear = {}
- [22:10:35.831] local items = {}
- [22:10:35.831] local cur = {}
- [22:10:35.831] if not isPlayer(cid) then
- [22:10:35.831] return true
- [22:10:35.831] end
- [22:10:35.831] for i = 1, #config.storage_items do
- [22:10:35.831] if getPlayerStorageValue(cid, co nfig.storage_items[i]) == 1 then
- [22:10:35.831] table.insert(wear, confi g.storage_items[i])
- [22:10:35.831] table.insert(items, conf ig.storage_IDs[i])
- [22:10:35.831] else
- [22:10:35.831] table.insert(wear, 0)
- [22:10:35.832] table.insert(items, 0)
- [22:10:35.832] end
- [22:10:35.832] if getPlayerSlotItem(cid, CONST_ SLOT_RING).itemid == config.rings[1] and i == 1 then
- [22:10:35.832] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_RING).itemid)
- [22:10:35.832] elseif getPlayerSlotItem(cid, CO NST_SLOT_RING).itemid ~= config.rings[1] and i == 1 then
- [22:10:35.832] table.insert(cur, 0)
- [22:10:35.832] end
- [22:10:35.832] if getPlayerSlotItem(cid, CONST_ SLOT_RING).itemid == config.rings[2] and i == 2 then
- [22:10:35.832] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_RING).itemid)
- [22:10:35.832] elseif getPlayerSlotItem(cid, CO NST_SLOT_RING).itemid ~= config.rings[2] and i == 2 then
- [22:10:35.832] table.insert(cur, 0)
- [22:10:35.832] end
- [22:10:35.832] if getPlayerSlotItem(cid, CONST_ SLOT_RING).itemid == config.rings[3] and i == 4 then
- [22:10:35.832] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_RING).itemid)
- [22:10:35.832] elseif getPlayerSlotItem(cid, CO NST_SLOT_RING).itemid ~= config.rings[3] and i == 4 then
- [22:10:35.832] table.insert(cur, 0)
- [22:10:35.832] end
- [22:10:35.832] if getPlayerSlotItem(cid, CONST_ SLOT_FEET).itemid == config.boots[1] and i == 3 then
- [22:10:35.832] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_FEET).itemid)
- [22:10:35.832] elseif getPlayerSlotItem(cid, CO NST_SLOT_FEET).itemid ~= config.boots[1] and i == 3 then
- [22:10:35.832] table.insert(cur, 0)
- [22:10:35.832] end
- [22:10:35.832] if getPlayerSlotItem(cid, CONST_ SLOT_FEET).itemid == config.boots[2] and i == 5 then
- [22:10:35.832] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_FEET).itemid)
- [22:10:35.832] elseif getPlayerSlotItem(cid, CO NST_SLOT_FEET).itemid ~= config.boots[2] and i == 5 then
- [22:10:35.832] table.insert(cur, 0)
- [22:10:35.832] end
- [22:10:35.832] if getPlayerSlotItem(cid, CONST_ SLOT_FEET).itemid == config.boots[3] and i == 6 then
- [22:10:35.832] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_FEET).itemid)
- [22:10:35.832] elseif getPlayerSlotItem(cid, CO NST_SLOT_FEET).itemid ~= config.boots[3] and i == 6 then
- [22:10:35.832] table.insert(cur, 0)
- [22:10:35.832] end
- [22:10:35.832] end
- [22:10:35.832] local slot_2 = ""
- [22:10:35.832] for a = 1, #wear do
- [22:10:35.833] if a == 1 or a == 2 or a == 4 th en
- [22:10:35.833] slot_2 = CONST_SLOT_RING
- [22:10:35.833] elseif a == 3 or a == 5 or a == 6 then
- [22:10:35.833] slot_2 = CONST_SLOT_FEET
- [22:10:35.833] end
- [22:10:35.833] if wear[a] ~= 0 then
- [22:10:35.833] if wear[a] > 0 and items [a] > 0 then
- [22:10:35.833] if getPlayerSlot Item(cid, slot_2).itemid ~= items[a] then
- [22:10:35.833] local it em = items[a]
- [22:10:35.833] setPlaye rStorageValue(cid, config[item].storage_mana, 0)
- [22:10:35.833] setPlaye rStorageValue(cid, config[item].storage_hp, 0)
- [22:10:35.833] setCreat ureMaxMana(cid, getCreatureMaxMana(cid) - (getPlayerStorageValue(cid, config[ite m].storage_mana + 1)))
- [22:10:35.833] setCreat ureMaxHealth(cid, getCreatureMaxHealth(cid) - (getPlayerStorageValue(cid, config [item].storage_hp + 1)))
- [22:10:35.833] setPlaye rStorageValue(cid, config[item].storage_mana + 1, 0)
- [22:10:35.833] setPlaye rStorageValue(cid, config[item].storage_hp + 1, 0)
- [22:10:35.833] doSendMa gicEffect(getCreaturePosition(cid), CONST_ME_POFF)
- [22:10:35.833] doSendAn imatedText(getCreaturePosition(cid), "EXTRAS", TEXTCOLOR_RED)
- [22:10:35.833] addEvent (function() doSendAnimatedText(getCreaturePosition(cid), "DEACTIVE", TEXTCOLOR_R ED) end, 300)
- [22:10:35.833] table.re move(wear, a)
- [22:10:35.833] table.in sert(wear, a, 0)
- [22:10:35.833] table.re move(items, a)
- [22:10:35.833] table.in sert(items, a, 0)
- [22:10:35.833] table.re move(cur, a)
- [22:10:35.833] table.in sert(cur, a, 0)
- [22:10:35.833] end
- [22:10:35.833] end
- [22:10:35.833] end
- [22:10:35.833] end
- [22:10:35.833] local slot = ""
- [22:10:35.833] local c = ""
- [22:10:35.833] for z = 1, #items do
- [22:10:35.833] if items[z] ~= cur[z] then
- [22:10:35.834] if z == 1 or z == 2 or z == 4 then
- [22:10:35.834] slot = CONST_SLO T_RING
- [22:10:35.834] c = config.rings
- [22:10:35.834] elseif z == 3 or z == 5 or z == 6 then
- [22:10:35.834] slot = CONST_SLO T_FEET
- [22:10:35.834] c = config.boots
- [22:10:35.834] end
- [22:10:35.834] if table.contains(c, get PlayerSlotItem(cid, slot).itemid) == TRUE then
- [22:10:35.834] local item = get PlayerSlotItem(cid, slot).itemid
- [22:10:35.834] setCreatureMaxMa na(cid, getCreatureMaxMana(cid) + (getStandartMANA(cid) * (config[item].percent_ mana / 100)))
- [22:10:35.834] setCreatureMaxHe alth(cid, getCreatureMaxHealth(cid) + (getStandartHP(cid) * (config[item].percen t_hp / 100)))
- [22:10:35.834] setPlayerStorage Value(cid, config[item].storage_mana, 1)
- [22:10:35.834] setPlayerStorage Value(cid, config[item].storage_hp, 1)
- [22:10:35.834] setPlayerStorage Value(cid, config[item].storage_mana + 1, getStandartMANA(cid) * (config[item].p ercent_mana / 100))
- [22:10:35.834] setPlayerStorage Value(cid, config[item].storage_hp + 1, getStandartHP(cid) * (config[item].perce nt_hp / 100))
- [22:10:35.834] doSendMagicEffec t(getCreaturePosition(cid), CONST_ME_FIREWORK_YELLOW)
- [22:10:35.834] doSendAnimatedTe xt(getCreaturePosition(cid), "EXTRAS", TEXTCOLOR_YELLOW)
- [22:10:35.834] addEvent(functio n() doSendAnimatedText(getCreaturePosition(cid), "ACTIVE", TEXTCOLOR_YELLOW) end , 300)
- [22:10:35.834] end
- [22:10:35.834] end
- [22:10:35.834] end
- [22:10:35.834] end
- [22:10:35.834] end
- [22:10:35.834] return true
- [22:10:35.834] end
- [22:10:35.834] :onThink
- [22:10:35.834] Description:
- [22:10:35.834] (luaGetThingPosition) Thing not found
- [22:10:35.835] [Error - GlobalEvent Interface]
- [22:10:35.835] In a timer event called from:
- [22:10:35.835] domodlib('buffs')
- [22:10:35.835] function onThink(interval, lastExecution, thinkInterval)
- [22:10:35.835] local online = getPlayersOnline()
- [22:10:35.835] local Online = {}
- [22:10:35.835] local playersOnline = {}
- [22:10:35.835] for _, kid in pairs(online) do
- [22:10:35.835] if(isPlayer(kid)) then
- [22:10:35.835] table.insert(Online, kid)
- [22:10:35.835] end
- [22:10:35.835] end
- [22:10:35.835] if #Online > 0 then
- [22:10:35.835] for _, cid in ipairs(getPlayersOnline()) do
- [22:10:35.835] local wear = {}
- [22:10:35.835] local items = {}
- [22:10:35.835] local cur = {}
- [22:10:35.835] if not isPlayer(cid) then
- [22:10:35.835] return true
- [22:10:35.835] end
- [22:10:35.835] for i = 1, #config.storage_items do
- [22:10:35.835] if getPlayerStorageValue(cid, co nfig.storage_items[i]) == 1 then
- [22:10:35.835] table.insert(wear, confi g.storage_items[i])
- [22:10:35.835] table.insert(items, conf ig.storage_IDs[i])
- [22:10:35.836] else
- [22:10:35.836] table.insert(wear, 0)
- [22:10:35.836] table.insert(items, 0)
- [22:10:35.836] end
- [22:10:35.836] if getPlayerSlotItem(cid, CONST_ SLOT_RING).itemid == config.rings[1] and i == 1 then
- [22:10:35.836] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_RING).itemid)
- [22:10:35.836] elseif getPlayerSlotItem(cid, CO NST_SLOT_RING).itemid ~= config.rings[1] and i == 1 then
- [22:10:35.836] table.insert(cur, 0)
- [22:10:35.836] end
- [22:10:35.836] if getPlayerSlotItem(cid, CONST_ SLOT_RING).itemid == config.rings[2] and i == 2 then
- [22:10:35.836] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_RING).itemid)
- [22:10:35.836] elseif getPlayerSlotItem(cid, CO NST_SLOT_RING).itemid ~= config.rings[2] and i == 2 then
- [22:10:35.836] table.insert(cur, 0)
- [22:10:35.836] end
- [22:10:35.836] if getPlayerSlotItem(cid, CONST_ SLOT_RING).itemid == config.rings[3] and i == 4 then
- [22:10:35.836] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_RING).itemid)
- [22:10:35.836] elseif getPlayerSlotItem(cid, CO NST_SLOT_RING).itemid ~= config.rings[3] and i == 4 then
- [22:10:35.836] table.insert(cur, 0)
- [22:10:35.836] end
- [22:10:35.836] if getPlayerSlotItem(cid, CONST_ SLOT_FEET).itemid == config.boots[1] and i == 3 then
- [22:10:35.836] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_FEET).itemid)
- [22:10:35.836] elseif getPlayerSlotItem(cid, CO NST_SLOT_FEET).itemid ~= config.boots[1] and i == 3 then
- [22:10:35.836] table.insert(cur, 0)
- [22:10:35.836] end
- [22:10:35.836] if getPlayerSlotItem(cid, CONST_ SLOT_FEET).itemid == config.boots[2] and i == 5 then
- [22:10:35.836] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_FEET).itemid)
- [22:10:35.836] elseif getPlayerSlotItem(cid, CO NST_SLOT_FEET).itemid ~= config.boots[2] and i == 5 then
- [22:10:35.836] table.insert(cur, 0)
- [22:10:35.836] end
- [22:10:35.836] if getPlayerSlotItem(cid, CONST_ SLOT_FEET).itemid == config.boots[3] and i == 6 then
- [22:10:35.836] table.insert(cur, getPla yerSlotItem(cid, CONST_SLOT_FEET).itemid)
- [22:10:35.836] elseif getPlayerSlotItem(cid, CO NST_SLOT_FEET).itemid ~= config.boots[3] and i == 6 then
- [22:10:35.837] table.insert(cur, 0)
- [22:10:35.837] end
- [22:10:35.837] end
- [22:10:35.837] local slot_2 = ""
- [22:10:35.837] for a = 1, #wear do
- [22:10:35.837] if a == 1 or a == 2 or a == 4 th en
- [22:10:35.837] slot_2 = CONST_SLOT_RING
- [22:10:35.837] elseif a == 3 or a == 5 or a == 6 then
- [22:10:35.837] slot_2 = CONST_SLOT_FEET
- [22:10:35.837] end
- [22:10:35.837] if wear[a] ~= 0 then
- [22:10:35.837] if wear[a] > 0 and items [a] > 0 then
- [22:10:35.837] if getPlayerSlot Item(cid, slot_2).itemid ~= items[a] then
- [22:10:35.837] local it em = items[a]
- [22:10:35.837] setPlaye rStorageValue(cid, config[item].storage_mana, 0)
- [22:10:35.837] setPlaye rStorageValue(cid, config[item].storage_hp, 0)
- [22:10:35.837] setCreat ureMaxMana(cid, getCreatureMaxMana(cid) - (getPlayerStorageValue(cid, config[ite m].storage_mana + 1)))
- [22:10:35.837] setCreat ureMaxHealth(cid, getCreatureMaxHealth(cid) - (getPlayerStorageValue(cid, config [item].storage_hp + 1)))
- [22:10:35.837] setPlaye rStorageValue(cid, config[item].storage_mana + 1, 0)
- [22:10:35.837] setPlaye rStorageValue(cid, config[item].storage_hp + 1, 0)
- [22:10:35.837] doSendMa gicEffect(getCreaturePosition(cid), CONST_ME_POFF)
- [22:10:35.837] doSendAn imatedText(getCreaturePosition(cid), "EXTRAS", TEXTCOLOR_RED)
- [22:10:35.837] addEvent (function() doSendAnimatedText(getCreaturePosition(cid), "DEACTIVE", TEXTCOLOR_R ED) end, 300)
- [22:10:35.837] table.re move(wear, a)
- [22:10:35.837] table.in sert(wear, a, 0)
- [22:10:35.837] table.re move(items, a)
- [22:10:35.838] table.in sert(items, a, 0)
- [22:10:35.838] table.re move(cur, a)
- [22:10:35.838] table.in sert(cur, a, 0)
- [22:10:35.838] end
- [22:10:35.838] end
- [22:10:35.838] end
- [22:10:35.838] end
- [22:10:35.838] local slot = ""
- [22:10:35.838] local c = ""
- [22:10:35.838] for z = 1, #items do
- [22:10:35.838] if items[z] ~= cur[z] then
- [22:10:35.838] if z == 1 or z == 2 or z == 4 then
- [22:10:35.838] slot = CONST_SLO T_RING
- [22:10:35.838] c = config.rings
- [22:10:35.838] elseif z == 3 or z == 5 or z == 6 then
- [22:10:35.838] slot = CONST_SLO T_FEET
- [22:10:35.838] c = config.boots
- [22:10:35.838] end
- [22:10:35.838] if table.contains(c, get PlayerSlotItem(cid, slot).itemid) == TRUE then
- [22:10:35.838] local item = get PlayerSlotItem(cid, slot).itemid
- [22:10:35.838] setCreatureMaxMa na(cid, getCreatureMaxMana(cid) + (getStandartMANA(cid) * (config[item].percent_ mana / 100)))
- [22:10:35.838] setCreatureMaxHe alth(cid, getCreatureMaxHealth(cid) + (getStandartHP(cid) * (config[item].percen t_hp / 100)))
- [22:10:35.838] setPlayerStorage Value(cid, config[item].storage_mana, 1)
- [22:10:35.838] setPlayerStorage Value(cid, config[item].storage_hp, 1)
- [22:10:35.838] setPlayerStorage Value(cid, config[item].storage_mana + 1, getStandartMANA(cid) * (config[item].p ercent_mana / 100))
- [22:10:35.838] setPlayerStorage Value(cid, config[item].storage_hp + 1, getStandartHP(cid) * (config[item].perce nt_hp / 100))
- [22:10:35.838] doSendMagicEffec t(getCreaturePosition(cid), CONST_ME_FIREWORK_YELLOW)
- [22:10:35.838] doSendAnimatedTe xt(getCreaturePosition(cid), "EXTRAS", TEXTCOLOR_YELLOW)
- [22:10:35.838] addEvent(functio n() doSendAnimatedText(getCreaturePosition(cid), "ACTIVE", TEXTCOLOR_YELLOW) end , 300)
- [22:10:35.838] end
- [22:10:35.839] end
- [22:10:35.839] end
- [22:10:35.839] end
- [22:10:35.839] end
- [22:10:35.839] return true
- [22:10:35.839] end
- [22:10:35.839] :onThink
- [22:10:35.839] Description:
- [22:10:35.839] (luaGetThingPosition) Thing not found
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement