Sp0tl3ss
Nestalia.org
- Joined
- Jul 19, 2014
- Messages
- 279
- Reaction score
- 12
why is this script not working? cant get it to work :S for tfs 1.2
Lua:
local exhaust = createConditionObject(CONDITION_EXHAUST_HEAL)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 900))
function onUse(cid, item, fromPosition, itemEx, toPosition)
local level = getPlayerLevel(cid)
local mlevel = getPlayerMagLevel(cid)
local mana_minimum = (level * 5) + (mlevel * 3) - 50
local mana_maximum = (level * 6) + (mlevel * 4)
local mana_add = math.random(mana_minimum, mana_maximum)
doPlayerAddMana(cid, mana_add)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "mana...", TALKTYPE_ORANGE_1)
return TRUE
end
Last edited by a moderator: