• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action Exp Scroll!

Bonnen888

Member
Joined
Oct 19, 2008
Messages
99
Reaction score
7
Location
Sweden
Here You Got A Working Exp Scroll. Hope You Like It. A Simple One.
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
		
if getPlayerStorageValue(cid,1302) == 2 then
			doCreatureSay(cid, "You can only use this scroll once!", TALKTYPE_ORANGE_1)

	else if getPlayerLevel(cid) >= 8 then
		doCreatureSay(cid, "You Gained 40 000 000 Experience Points!", TALKTYPE_ORANGE_1)
			doPlayerAddExp(cid, 40000000)
			doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
			doRemoveItem(item.uid)
			setPlayerStorageValue(cid,1302,2)
			return TRUE
		else
					doCreatureSay(cid, "You must be over level 8 to use this scroll", TALKTYPE_ORANGE_1)
		end
end
end



Place This One In Action.xml
Code:
<action itemid="7722" script="quests/exp scroll.lua"/>
 
Last edited:
nice script :) rep+

but you can make it in advance,
PHP:
local config = {expone = 40000000, expotwo = 10000000}

like "level stages"
PHP:
local lvl = getPlayerLevel(cid)
if lvl >= 8 and lvl <= 100 then
doPlayerAddExp(cid, config.expone)
elseif lvl >= 100 and lvl <= 200 then
doPlayerAddExp(cid, config.exptwo)

also use:

PHP:
end
return TRUE
end
 
@up
You will have to make a item wich works with this, and you write in the item where you put the script :O
 
Back
Top