• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OnUse -> Give Level, Skills, Magic Level

Tufte

Active Member
Joined
Nov 19, 2007
Messages
652
Reaction score
25
Location
Norway
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
 
Back
Top