Forum
CS2D Scripts can i make on tibia max levelcan i make on tibia max level
4 replies 1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function addexp(id, exp) 	if exp + PLAYERS[id].Experience > CONFIG.MAXEXP then 		texp = CONFIG.MAXEXP - PLAYERS[id].Experience 	else 		texp = exp 	end	 	PLAYERS[id].Experience = PLAYERS[id].Experience + texp 	local prevlevel = PLAYERS[id].Level 	while PLAYERS[id].Experience >= EXPTABLE[PLAYERS[id].Level+1] do 		PLAYERS[id].Level = PLAYERS[id].Level + 1 	end 	if prevlevel ~= PLAYERS[id].Level then 		parse('effect "colorsmoke" ' .. player(id, 'x') .. ' ' .. player(id, 'y') .. ' 0 64 0 128 255') 		message(id, "You have leveled up to level " .. PLAYERS[id].Level .. "!") 		parse("sv_sound2 " .. id .. " fun/Victory_Fanfare.ogg") 	end 	updateHUD(id) 	return true end
1
MAXEXP = 22098, -- max level 30
If you want the max level of your choice, then take a look at my level chart in my tibia thread:
http://www.unrealsoftware.de/forum_posts.php?post=294172#jn
edited 1×, last 19.01.12 03:41:33 am
1