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

Help with onAdvance

Joined
Apr 17, 2008
Messages
1,922
Solutions
1
Reaction score
188
Location
Venezuela
I made this scripts but.. don't work =(

advances/level.lua

Code:
--onAdvance system by 4220niller
--Script by Darkhaos

function onThink(cid, interval)
	dofile("./data/creaturescripts/scripts/onAdvance.lua")
	onAdvanceController(cid)
	return TRUE
end

function onAdvance(cid, oldlevel, newlevel)

local phealth = 999999999
local pmana = 999999999
local pps = getPlayerPosition(cid)

	if newlevel > oldlevel then

		doCreatureAddHealth(cid,phealth)
		doPlayerAddMana(cid,pmana)
		doSendAnimatedText(ppos, "Level Up", TEXTCOLOR_LIGHTGREEN)
	end
end

data/creaturescripts.xml
Code:
	<event type="think" name="PlayerThink" script="think.lua"/>

Help =(
 
Moved to request and support. Need help - post there

Lua & XML > Spells & CreatureEvents is for finished scripts that are being released. Not help or request or support. (Pretty obvious if you take a closer look at this forum) :p
 
Back
Top Bottom