A sua runa não funciona? Tente pelo menos colocar o erro que aparece no console, assim eu posso tentar te ajudar.
Obrigado, sem mais.
A sua runa não funciona? Tente pelo menos colocar o erro que aparece no console, assim eu posso tentar te ajudar.
Obrigado, sem mais.
Não sei se voce quer a runa por action mas se quiser aqui tem...
heal.lua
local MIN = 3000 -- minimo que cura
local MAX = 3000 -- Maximo que cura
local LEVEL = 50 -- level do player
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(itemEx.uid) == FALSE then
return FALSE
end
if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then
doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
return TRUE
end
if(getPlayerLevel(itemEx.uid) < LEVEL and getPlayerCustomFlagValue(itemEx.uid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then
doCreatureSay(itemEx.uid, "Only player above level "..LEVEL.." can drink this fluid.", TALKTYPE_ORANGE_1)
return TRUE
end
if doCreatureAddHealth(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then
return FALSE
end
doAddCondition(cid, exhaust)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "Aaah...", TALKTYPE_ORANGE_1)
return TRUE
end
<action itemid="2273" script="heal.lua" allowfaruse="1"/>
info
Grupo: Campones
Registrado: 20/08/08
Posts: 3
Reputação: 0
Char no Tibia: Victor Ox
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_WATERSPLASH)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
function onCastSpell(cid, var)
doPlayerAddHealh(cid, 3000)
return doCombat(cid, combat, var)
end