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

Lua Exp Scroll TFS 0.3.6.pl1

Aradz

New Member
Joined
Sep 19, 2013
Messages
51
Reaction score
1
Hello guys,

Could anyone of you share with me the code of exp scroll which gives you 1000lvl not more and you can use it only when you have level 8 ? and then scroll disappear and you cannot use it anymore ?

Kind Regards.
Aradz.
 
heree

create a new file in actions/scripts and name it scroll.lua
Code:
local itemID = your item id
local xp = 16566945600
local level = 8
function onUse(cid, item, frompos, item2, topos)
if item.itemid == itemID and getPlayerLevel(cid) <= level then
doPlayerAddExp(cid, xp)
doRemoveItem(cid, item.uid, 1)
else
doPlayerSendCancel(cid, "You need to be level 8 to use this item!")
end
return true
end

and in actions.xml add
Code:
    <action itemid="your item id" event="script" value="scroll.lua"/>
 
Last edited:
anyway to make this scroll for any level? i cant seem to get it working if someone could help me out that would be greatly appreciated
 
Remove the if statement and the else part.
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
   doPlayerAddExp(cid, 10000)
   doRemoveItem(item.uid, 1)
   return true
end
 
Back
Top