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

Windows Outfit (Q)

3mR

Mapper
Joined
May 29, 2012
Messages
322
Reaction score
42
Hello Otland..
I want TO know how to make my outfit when i get Lv.(**), Chnaged To Lion Outfit Anything like this
 
create a new lua file called leveloutfit.lua in creaturescripts:

Code:
function onAdvance(cid, skill, oldLevel, newLevel)
	if newLevel <= oldLevel then
		return true
	end

	if skill == SKILL__LEVEL then
		if getCreatureStorage(cid, 54323) == EMPTY_STORAGE and newLevel == 600 then
			doSetOutfit(cid, 44)
			setPlayerStorageValue(cid,54323,1)
		end
	end

	return true
end

In 44 put the number of the outfit, and in new level = 600 put the level of the level that u want to advance and add x outfit.

also add to login.lua this:

Code:
registerCreatureEvent(cid, 'leveloutfit')

and this in creaturescripts.xml

Code:
<event type="advance" name="leveloutfit" event="script" value="leveloutfit.lua"/>
 
Back
Top