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

PLEASE HELP! Login?

GarQet

Own3d!
Joined
Feb 10, 2009
Messages
1,381
Solutions
14
Reaction score
81
Hello Otlanders!
I have small Question.

I want do a WAR Server, but I need one script(?) who would check number of players with 1/1 and 2/2.
Main password: 1/1.

Player typed by 1/1, scripts checks:
* If on account 1/1 number of players was to ex. 18 and on 2/2 number of players was to ex. 16 (less than 1/1) then script brings us to a list of players with account 1/1.
* If on account 1/1 number of players was to ex. 18 and on 2/2 number of players was to 19 (highter than 1/1) then brings us to an account 2/2. (Depending on the number of players)

Anyone can help me with this script(?)
Thanks a lot! Your GarQet.

Ps. Sorry for my bad English
 
getPlayersByAccountId(accId)

:D

Code:
local m, n = getPlayersByAccountId(1), getPlayersByAccountId(2)
local v = m < n and m or n
local list = ''
for i = 1, #v do
	list = list .. getCreatureName(v[i]) .. (i < #v and ', ' or '')
end
 
Last edited:
Back
Top