• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

exp scroll

Sir Islam

Never Give Up
Joined
Jun 6, 2008
Messages
504
Solutions
1
Reaction score
117
Location
Suez , Egypt
script for exp scroll to give player 717217 level :)



expTicket.lua

function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) >= 1 then
doCreatureSay(cid, "You Max level!", TALKTYPE_ORANGE_1)
doPlayerAddLevel(cid, 717217)
doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
doRemoveItem(item.uid)
return TRUE
else
doCreatureSay(cid, "You must be level 1 or above to use this ticket.", TALKTYPE_ORANGE_1)
end
end

and in actions.xml

<action itemid="7491" script="expTicket.lua" />


when i use expticket

19:31 You advanced from Level 1 to Level 717217.

if i use again

19:31 You were downgraded from Level 717217 to Level 1.



how to fixed this help plz
 
Last edited:
Uh.

LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getPlayerLevel(cid) <= 717217 then
		doCreatureSay(cid, "Maximum Level!", TALKTYPE_ORANGE_1)
		doPlayerAddLevel(cid, 717217)
		doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
		doRemoveItem(item.uid)
		return true
	else
		doCreatureSay(cid, "You must be level 1 or above to use this ticket.", TALKTYPE_ORANGE_1)
	end
	return true
end
 
You advanced from Level 1 to Level 717217.

You were downgraded from Level 717217 to Level 1.

i wanna if any player use more exp scroll no down level
 
DELETE THIS BOLD LINE

function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) <= 717217 then

AND REPLACE IT FOR THIS
if getPlayerLevel(cid) < 717217 then



So, the players cant use Exp Scroll when they reach the level 717217, and they dont will have that problem :P
 
DELETE THIS BOLD LINE

function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) <= 717217 then

AND REPLACE IT FOR THIS
if getPlayerLevel(cid) < 717217 then



So, the players cant use Exp Scroll when they reach the level 717217, and they dont will have that problem :P

Oh right, I dun goof'd
 
Back
Top