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

Best Xp Scroll Script

Teddy

SweStream.se
Joined
Oct 2, 2008
Messages
3,797
Reaction score
10
Location
Sweden 172
i have found many xp scroll scripts out there but which on its the best ?
i wanna have 1 taht i can set mininum lvl and maxlvl and how much xp you will get ...
 
Lua:
local itemID = 7723 ---- Item ID you use.
local xp = 10000000 ---- How much exp it will give.
local level = 200 -------From this level and less he can use this item.
function onUse(cid, item, frompos, item2, topos)
if item.itemid == itemID and getPlayerLevel(cid) <= level then
doPlayerAddExp(cid, xp)
doCreatureSay(cid, words, 1)
doRemoveItem(cid, item.uid, 1)
doCreatureSay(cid, "CONGRATULATIONS! You gained 10,000,000 EXP from the EXP SCROLL!. ", TALKTYPE_ORANGE_1)
else
doPlayerSendCancel(cid, "Sorry but you are to high lvl to use this scroll")
end
return 1
end

Inside Actions.xml add line
Code:
<action itemid="7723" script="tools/expscroll.lua"/>

I use that one, and I love it. You cannot use it above, level 200 on this script, but however you can change that.


Zer0xe.
 
local level = 200 -------From this level and less he can use this item.

Read, it says it can only be used at that level or LESS.
 
Back
Top