Witam Mam Pewien Problem Na Swoim Otsie.Chodzi O to ?e Jak Palek si? manasuje manarun? to nie zadaje uderze? z Vip Stara ani z Procy.Je?li ktos wie w czym tkwi problem Niech Napisze.. G?ry Dziekuje za Pomoc Dam Reputa
Follow along with the video below to see how to install our site as a web app on your home screen.
Notka: This feature may not be available in some browsers.
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) ---- what the color of the effect. you can do like RED/BLUE
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
function onCastSpell(cid, var)
doPlayerAddMana(cid, 1000) ---- how much it heal .
return doCombat(cid, combat, var)
end
| Notka moderatorska: |
| U?ywaj code. |
local exhausted_storagevalue = 50000
local exhausted_seconds = 2
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) ---- what the color of the effect. you can do like RED/BLUE
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
function onCastSpell(cid, var)
if os.time() > getPlayerStorageValue(cid, exhausted_storagevalue) then
doPlayerAddMana(cid, 1000) ---- how much it heal .
doPlayerSetStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds)
return doCombat(cid, combat, var)
else
doPlayerSendCancel(cid, "You are exhausted.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
return false
end
end
| Notka moderatorska: |
| +1 OT Expert |