- Joined
- May 23, 2010
- Messages
- 185
- Reaction score
- 23
Hi guys, how are you?
I having problems with a script:
The problem is, my magic has a exausted of 4 seconds but everytime thet a click on the action i lost mana, i want do lost mana every 4 seconds not everytime that i click.
Someone?
I having problems with a script:
Code:
function onUse(cid, item, frompos, item2, topos)
if getPlayerMana(cid) >= 30 then
doPlayerAddMana(cid, -30)
doPlayerCastSpell(cid, "ef1")
end
end
The problem is, my magic has a exausted of 4 seconds but everytime thet a click on the action i lost mana, i want do lost mana every 4 seconds not everytime that i click.
Someone?