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

[Request] War Team Balance - Help Please -

Demonder

New Member
Joined
May 22, 2009
Messages
8
Reaction score
0
Hello Guys!
I really need this script for my War Server!

I already tried take this script from others servers version, but don't work.
-----------
What i want?
1° - I want a script that balance the team.
For example.

If Team1 have 10 players, and Team2 have 11 players, the next player that login in account, will join in Team1, because Team2 have more players.

2° - I must with this script too, when balance the teams, change their positions/temples.
For example.

When one player join in Team1, he will login on position: x100, y100, z7.
If the player join in Team2, he will login on position x200, y200, z7.

Or...

When one player join in Team1, he will login on temple 1.
If the player join in Team2, he will login on temple 2.

-----------

Well, i must this script for the version:
The Forgotten Server (TFS) V0.3.4 (Crying Damson)

I thank for everyone for attention, and i wait for reply.

No More~
Xina~
 
I suggest downloading a War server because in there functions they have functions made this. Heres an example

Code:
doPlayerSetTeam = {
	login = function (cid)
--		print("getSmallestTeam(): "..getSmallestTeam())
		if  getSmallestTeam() == FALSE then
			return FALSE
		end

		if getPlayerAccess(cid) < 3 then
			local team = getSmallestTeam()
			if team > 0 then
				local teamColor = TEAM_COLOR[team]
				playerTeam.set(cid, GLOBAL_STORAGE.TEAMS[team])
				doCreatureChangeOutfit(cid, {lookType = getCreatureOutfit(cid).lookType, lookHead = teamColor, lookBody = teamColor, lookLegs = teamColor, lookFeet = teamColor, lookTypeEx = color, lookAddons = 3})
				local temple = TEMPLES[playerTeam.get(cid)][areaId.get()]
				doPlayerSetTown(cid, temple)
				doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
				teamCount.add(team, 1)
				doPlayerAddSoul(cid, -getPlayerSoul(cid))
				doSendMagicEffect(getCreaturePosition(cid), 37)
			end
		end

But you need the other functions to properly make that work.
 
Back
Top