Lava Titan
Developer
Lua:
function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) > 1 then
doPlayerAddLevel(cid,-800000)
doCreatureAddHealth(cid,-(getCreatureHealth(cid))+150)
setCreatureMaxHealth(cid,150)
doCreatureAddMana(cid,-(getCreatureMana(cid)))
setCreatureMaxMana(cid,0)
doCreatureSay(cid, "You are now level: ".. getPlayerLevel(cid) .."!!!" ,19)
doSendMagicEffect(getPlayerPosition(cid), 40)
end
end
I need help becuz idk where to add:
Lua:
setCreatureMagLevel(cid, 1)
This script will turn a player into level 1 , health into 150, mana into 0 and i wanted it to turn player magic level 1
can any1 help me fixing?
Regards
Lava Titan!
Last edited: