vejsa
Banned User
- Joined
- Nov 3, 2007
- Messages
- 434
- Reaction score
- 0
Hello. Im trying to make so the manarune in my servers upgrade's when you reach level 200.. So it gives more mana. If any one knows how to fix this. Please help me out.
This is my manarune script atm.
Code:
local t = {
min = 295,
max = 560,
text = "Aaaah...",
effect = CONST_ME_MAGICLUE
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(itemEx.uid) then
doPlayerAddMana(itemEx.uid, math.random(t.min, t.max))
doCreatureSay(itemEx.uid, t.text, TALKTYPE_ORANGE_1)
doSendMagicEffect(getPlayerPosition(cid), 49)
else
doPlayerSendCancel(cid, "You can only use this rune on players.")
end
return true
end
This is my manarune script atm.