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

Lua help me with this script

warhawk

New Member
Joined
Jan 13, 2009
Messages
44
Reaction score
0
Location
Sweden
what the script should do:

when the Chars takes lvl 50 it´s the adds money to the Char


function onAdvance(cid, skill, oldlevel, newlevel)
if skill == 50 then
doPlayerAddItem(cid, 2160, 5)
doSendMagicEffect(position, CONST_ME_HITBYFIRE)
end
return TRUE
end

plz help me!
 
Code:
function onAdvance(cid, skill, oldlevel, newlevel)
	if skill == SKILL_LEVEL and newlevel == 50 then
		doPlayerAddItem(cid, 2160, 5)
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HITBYFIRE)
	end
	return true
end
 
Back
Top