- Joined
- Jun 19, 2009
- Messages
- 1,852
- Reaction score
- 5
Code:
function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) >= 20 and getPlayerLevel(cid) <= 15999 then
doPlayerAddExperience(cid, getExperienceForLevel(getPlayerLevel(cid)+3000)-getPlayerExperience(cid))
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_BLUE)
doPlayerSendTextMessage(cid, 22, "You recieved 3000 levels!")
doRemoveItem(item.uid,1)
doCreatureSay(cid, "I GOT 3000 LEVELS AND NOW I AM LEVEL ".. getPlayerLevel(cid) .."!", TALKTYPE_ORANGE_1)
else
doSendCancel(cid "Only players above level 20 or below level 15999 can use this scroll.")
end
end
Can someone fix this script for TFS 0.3.6? Everytime I use it and when I'm higher than 15k it lags the server