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

Auto-Promote

Sherlok

Active Member
Joined
Aug 29, 2008
Messages
2,116
Reaction score
44
Location
Poland, Wrocław.
Hiho,
I need auto-promote script when I reach level 20, but my server is high exp, so advances will be like this one:
Code:
You advanced from Level 8 to Level 51.

I've tried this script and it is not working for me :(


Any good scripter please help me, I'll Rep++;
 
LUA:
local cost = 0

function onAdvance(cid, skill, oldLevel, newLevel)
	if skill == 8 and newLevel >= 20 then
		if doPlayerRemoveMoney(cid, cost) then
			doPlayerSetPromotionLevel(cid, 1)
		end
	end
	return true
end

You can change the cost, if you want x.x
 
Back
Top