Wsup again ppls,
TFS 0.4 rev 3884
I tried to create some items as rune but i couldn't use them
I don't really know how to fix if someone got any idea maybe you can help
Healing & Mana
Uh script
Another Question is that possible to create Perecent regeneration in Boots?
TFS 0.4 rev 3884
I tried to create some items as rune but i couldn't use them
I don't really know how to fix if someone got any idea maybe you can help
Healing & Mana
Uh script
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, 29)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
function onCastSpell(cid, var)
local allowedvocations = {4,8}
if not (isInArray(allowedvocations, getPlayerVocation(cid))) then
doPlayerSendCancel(cid, "Only Knight are allowed to use.")
return false
end
if getPlayerStorageValue(cid, 41902) > 0 then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
doPlayerSendCancel(cid, "You cannot use healing spells/runes during the event.")
return false
end
local formule = (getCreatureMaxHealth(cid) / 100) * math.random(35, 50)
doCreatureAddHealth(cid, formule)
return doCombat(cid, combat, var)
end