Forum

> > CS2D > Scripts > can i make on tibia max level
Forums overviewCS2D overview Scripts overviewLog in to reply

English can i make on tibia max level

4 replies
To the start Previous 1 Next To the start

old Re: can i make on tibia max level

KenVo
User Off Offline

Quote
Replace this with your function addexp(id,exp) in your function.lua
1
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
Then add this to your configs.lua under MAXHEIGHT
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview