I want this script to give levels, mag levels and skills. It works when I set it to give exp, but not level or skills.. help?
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 29050 and getPlayerStorageValue(cid,29051) == 2 then
doCreatureSay(cid, "You have already recieved this power!", TALKTYPE_ORANGE_1)
else
setPlayerStorageValue(cid,29051,2)
doCreatureSay(cid, "You Gained 10 Levels!", TALKTYPE_ORANGE_1)
doPlayerAddExp(cid,1500000)
doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
end
end