Estou com um problema na Great Mana Potion, Knight e Paladin está conseguindo usar a Great Mana Potion nos mages, e isso tá desequilibrando a war, aqui abaixo está a script de 'potions' que eu uso, já tentei de tudo e nada. Caso alguém já teve o problema ou sabe como resolver, me ajude! ;-)
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(itemEx.uid) < potion.level) or (potion.vocations and not isInArray(potion.vocations, getPlayerVocation(itemEx.uid)))) 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_MONSTER)
return true
end
if(config.range > 0 and cid ~= itemEx.uid and getDistanceBetween(getThingPosition(cid), getThingPosition(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
Pergunta
cyraxe 0
Estou com um problema na Great Mana Potion, Knight e Paladin está conseguindo usar a Great Mana Potion nos mages, e isso tá desequilibrando a war, aqui abaixo está a script de 'potions' que eu uso, já tentei de tudo e nada. Caso alguém já teve o problema ou sabe como resolver, me ajude! ;-)
Link para o comentário
Compartilhar em outros sites
1 resposta a esta questão
Posts Recomendados