• 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!

Request Exp scroll PLox =D

THaxix

OOH?
Joined
Aug 28, 2008
Messages
66
Reaction score
0
Location
Sweden =D
Hello i wonder if somen got a scrit that for for 8.31 TFS

a scrolls that gives ike 1 lvl and can stack

Thx
 
You may do something like this~
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if doPlayerRemoveItem(cid, item.itemid, 1) == TRUE then
        local newexp = (getExperienceForLevel(getPlayerLevel(cid) + 1)) - getPlayerExperience(cid)
        doPlayerAddExp(cid, newexp)
    end
end
 
It should be, did you define it on an item which is removable?

EDIT: Added an animated text above the user.
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if doPlayerRemoveItem(cid, item.itemid, 1) == TRUE then
        local newexp = (getExperienceForLevel(getPlayerLevel(cid) + 1)) - getPlayerExperience(cid)
        doPlayerAddExp(cid, newexp)
        doSendAnimatedText(getCreaturePosition(cid), "+" .. newexp, TEXTCOLOR_WHITE_EXP)
    end
end
 
Here is my, not tested.

PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local exp = 200000 -- how much exp do you want
local pos = getPlayerPosition(cid)

if getPlayerLevel(cid) >= 10 then
doPlayerAddExp(cid, exp)
doSendMagicEffect(pos, 37)
doRemoveItem(item.uid)
doCreatureSay(cid, "You Gained Exp", TALKTYPE_ORANGE_1)
else
doCreatureSay(cid, You are not level 10, TALKTYPE_ORANGE_1)
end
return TRUE
end
 
Last edited:
tested and works :p

function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) >= 8 then
doCreatureSay(cid, "You Gained 100000 Experience!", TALKTYPE_ORANGE_1)
doPlayerAddExp(cid, 100000)
doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
doRemoveItem(item.uid)
return TRUE
else
doCreatureSay(cid, "You must be level 8 or above to use this ticket.", TALKTYPE_ORANGE_1)
end
end
 
Back
Top