yanger
Banned User
Hey,
How to make quest that gives experience?
How to make quest that gives experience?
Then make an Lvl Limit on the exp scroll so they cant use it if they are to high![]()
(Rep++ If I Helped:thumbup![]()
function onUse (cid, item, fromPos ,item2 ,itemEx, toPos)
if item.uid == 6000
else
doPlayerAddExperience (cid,1000)
doPlayerSetStorageValue (cid,2222)
else
doPlayerSendTextMessage(cid,25, "You have gained 1000 experience"
else
return 0
end
return 1
end
function onUse(cid,item,fromPosition,itemEx,toPosition)
local t,v = {s=[COLOR="Red"]5102[/COLOR],xp=[COLOR="Red"]1500[/COLOR]},getThingPos(cid) -- first one is [COLOR="Red"]storageValue[/COLOR], second one is [COLOR="Red"]experience [/COLOR]gained.
if getPlayerStorageValue(cid,t.s) < 1 then
doPlayerAddExperience(cid,t.xp)
doSendMagicEffect(v,12)
setPlayerStorageValue(cid,t.s,1)
else
doPlayerSendCancel(cid,'This chest is empty.')
end
return true
end
unknown@
Did u test it?
btw, rep++