Hashirama479
World of Ninja
- Joined
- Dec 19, 2016
- Messages
- 536
- Solutions
- 6
- Reaction score
- 74
Can someone make the script work so I can heal my friends with that manarune? Its a Action Script and im using tfs 0.4 xD thanks
Lua:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 750) -- time in seconds x1000
function onUse(cid, item, fromPosition, itemEx, toPosition)
local manamax = getPlayerMaxMana(cid)
local min = 15
local max = 15
local mana_add = math.random((manamax * (min/100)), (manamax * (max/100)))
if(hasCondition(cid, CONDITION_EXHAUST)) then
return true
end
local pos = getThingPos(cid)
local kolor = 210 -- kolor napisu
doPlayerAddMana(cid, mana_add)
doSendMagicEffect(getThingPos(cid), CONST_ME_HOLYAREA)
doSendAnimatedText(getPlayerPosition(cid),mana_add,kolor)
doAddCondition(cid, exhaust)
return true
end