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

Experience book! help help help!

Ates.tr

Im back
Joined
Nov 11, 2007
Messages
1,046
Reaction score
2
Location
Sweden
Will this work?

Code:
-- Script by Ates
function onUse(cid, item, fromPosition, itemEx, toPosition)

local item = 6388
local exp = 1000000

if item.itemid == item then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You gained 1000000 experience.")
doPlayerAddExp(cid, exp)
doRemoveItem(cid, item)
bye
bye
 
Will this work?

Code:
-- Script by Ates
function onUse(cid, item, fromPosition, itemEx, toPosition)

local item = 6388
local exp = 1000000

if item.itemid == item then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You gained 1000000 experience.")
doPlayerAddExp(cid, exp)
doRemoveItem(cid, item)
bye
bye

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)

local item = 6388
local exp = 1000000

if item.itemid == item then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You gained 1000000 experience.")
doPlayerAddExp(cid, exp)
doRemoveItem(cid, item)
end
end
 
here you are better script:

PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
		
if getPlayerStorageValue(cid,1800) == 2 then
			doCreatureSay(cid, "You have already recieved this power!", TALKTYPE_ORANGE_1)

	else if getPlayerLevel(cid) >= 200 then
		doCreatureSay(cid, "You Gained 35 000 000 Experience Points!", TALKTYPE_ORANGE_1)
			doPlayerAddExp(cid, 35000000)
			doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
			doRemoveItem(item.uid)
			setPlayerStorageValue(cid,1800,2)
			return TRUE
		else
					doCreatureSay(cid, "You must be over level 200 to use this scroll", TALKTYPE_ORANGE_1)
		end
end
end
 
Moved to Request and support.

Fastest way to get help - post in the correct section!
 
Back
Top