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

Reward at level

undead mage

Active Member
Joined
Mar 25, 2012
Messages
364
Solutions
2
Reaction score
47
Location
Amsterdam
Does anyone have a script that gives u rewards at some levels like: lvl 90 (5 cc), lvl 120 (10cc). lvl 150 (15cc)??
For a 8.0 Evolutions server!
I can only find for the latest clients can't find any script for 8.0 ;/
 
Lua:
local levels = {
	[20] = {amount = 5},
	[90] = {amount = 10},
	[150] = {amount = 25}
}

function onAdvance(cid, skill, oldlevel, newlevel)
	if(skill == SKILL__LEVEL)then
		if(levels[newLevel]) then
			doPlayerAddItem(cid, 2160, levels[newLevel].amount)
			doPlayerSendTextMessage(cid, 22, "Congratulations, you reached level ".. newLevel ..", you gained ".. levels[newLevel].amount .."cc")
		end
	end
	return true
end

Just edit variable levels.
If you want to add a new level then just add a new line like "[90] = {amount = 10}"
 
Back
Top