Eu gostaria de saber como faço pra deixar as potions em stack quando usadas, pq no meu OT as potions estão configuradas pra acabar, mas as "vials" vazias não estão ficando em stack. Isso realmente está causando uma bagunça no ot, se puderem ajudar agradeço ;D
O script é extremamente grande, mas aí está o Potions.lua:
local config = {
removeOnUse = "no",
usableOnTarget = "yes", -- can be used on target? (fe. healing friend)
splashable = "no",
range = -1,
realAnimation = "no", -- make text effect visible only for players in range 1x1
if(((potion.level and getPlayerLevel(cid) < potion.level) or (potion.vocations and not isInArray(potion.vocations, getPlayerVocation(cid)))) and
not getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES))
then
doCreatureSay(itemEx.uid, "Only " .. potion.vocStr .. (potion.level and (" of level " .. potion.level) or "") .. " or above may drink this fluid.", TALKTYPE_ORANGE_1)
return true
end
if(config.range > 0 and cid ~= itemEx.uid and getDistanceBetween(getCreaturePosition(cid), getCreaturePosition(itemEx.uid)) > config.range) then
return false
end
local health = potion.health
if(health and not doCreatureAddHealth(itemEx.uid, math.ceil(math.random(health[1], health[2]) * config.multiplier.health))) then
return false
end
local mana = potion.mana
if(mana and not doPlayerAddMana(itemEx.uid, math.ceil(math.random(mana[1], mana[2]) * config.multiplier.mana))) then
info
Grupo: Campones
Registrado: 25/09/10
Posts: 2
Reputação: 0
Char no Tibia: Peperonni
Olá galera,
Eu gostaria de saber como faço pra deixar as potions em stack quando usadas, pq no meu OT as potions estão configuradas pra acabar, mas as "vials" vazias não estão ficando em stack. Isso realmente está causando uma bagunça no ot, se puderem ajudar agradeço ;D
O script é extremamente grande, mas aí está o Potions.lua: