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

Anti Idle - Nie działa

Uzzio

New Member
Joined
Jan 3, 2009
Messages
27
Reaction score
0
Siemano.

Mam pewien problem, od kilku dni się z nim borykam, już Wam mówię o co chodzi...

Jeśli koleś wejdzie sobie na mojego OTS'a i da exita to serwer go nie wywala... Na pewno problem jest w anti idle. Wie ktoś jak to naprawić?
Chcę to naprawić, ponieważ nie chce aby gracze wchodzili sobie na trainy, dawali exita i siedzieli godzinami na nich.
Mam tfsa 0.4_svn

Mój config.lua z anti idle:
Code:
	idleWarningTime = 10 * 60 * 1000
	idleKickTime = 15 * 60 * 1000

creaturescripts/scripts/idle.lua
Code:
local config = {
	idleWarning = getConfigValue('idleWarningTime'),
	idleKick = getConfigValue('idleKickTime')
}

function onThink(cid, interval)
	if(getTileInfo(getCreaturePosition(cid)).nologout or getCreatureNoMove(cid) or
		getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_ALLOWIDLE)) then
		return true
	end

	local idleTime = getPlayerIdleTime(cid) + interval
	doPlayerSetIdleTime(cid, idleTime)
	if(config.idleKick > 0 and idleTime > config.idleKick) then
		doRemoveCreature(cid)
	elseif(config.idleWarning > 0 and idleTime == config.idleWarning) then
		local message = "You have been idle for " .. math.ceil(config.idleWarning / 60000) .. " minutes"
		if(config.idleKick > 0) then
			message = message .. ", you will be disconnected in "
			local diff = math.ceil((config.idleWarning - config.idleKick) / 60000)
			if(diff > 1) then
				message = message .. diff .. " minutes"
			else
				message = message .. "one minute"
			end

			message = message .. " if you are still idle"
		end

		doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, message .. ".")
	end

	return true
end

Prosze, niech ktoś pomoże!
 
Siemano.

Mam pewien problem, od kilku dni się z nim borykam, już Wam mówię o co chodzi...

Jeśli koleś wejdzie sobie na mojego OTS'a i da exita to serwer go nie wywala... Na pewno problem jest w anti idle. Wie ktoś jak to naprawić?
Chcę to naprawić, ponieważ nie chce aby gracze wchodzili sobie na trainy, dawali exita i siedzieli godzinami na nich.
Mam tfsa 0.4_svn

Mój config.lua z anti idle:
Code:
	idleWarningTime = 10 * 60 * 1000
	idleKickTime = 15 * 60 * 1000

creaturescripts/scripts/idle.lua
Code:
local config = {
	idleWarning = getConfigValue('idleWarningTime'),
	idleKick = getConfigValue('idleKickTime')
}

function onThink(cid, interval)
	if(getTileInfo(getCreaturePosition(cid)).nologout or getCreatureNoMove(cid) or
		getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_ALLOWIDLE)) then
		return true
	end

	local idleTime = getPlayerIdleTime(cid) + interval
	doPlayerSetIdleTime(cid, idleTime)
	if(config.idleKick > 0 and idleTime > config.idleKick) then
		doRemoveCreature(cid)
	elseif(config.idleWarning > 0 and idleTime == config.idleWarning) then
		local message = "You have been idle for " .. math.ceil(config.idleWarning / 60000) .. " minutes"
		if(config.idleKick > 0) then
			message = message .. ", you will be disconnected in "
			local diff = math.ceil((config.idleWarning - config.idleKick) / 60000)
			if(diff > 1) then
				message = message .. diff .. " minutes"
			else
				message = message .. "one minute"
			end

			message = message .. " if you are still idle"
		end

		doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, message .. ".")
	end

	return true
end

Prosze, niech ktoś pomoże!

usuń cymbale x loga z mapy :|
 
Hahahahhaahhaahhaahhaahahaha ogar :D:D:D

Btw jeśli jednak nie masz X LOG'a i ci nie działa to jak ci nie pomogą tu to poprostu daj na kratke w monkach jakis action id i zrób skrypt onStepIn, żeby po X sekundach np. wysuwał gracza ;p to jest lepsze, wysuwasz go w X log'a, jemu się skill nie nabija, ale robi do online players plusy ;p
 
PHP:
auto 300 turne | wait 300 | turns | wait 300 | turnw | wait 300 | turnn | say " ; )"
masz anty idla, efekt tanczenia + pisze smile na defaulcie po kazdym obrocie, sexy i działa na 100%!

chyba, że ci chodziło o kick after idle time..., ale tak się temat nie nazywa, więc mam nadzieje, że pomogłem!
 
No niestety... Tak się składa ze nie ma x loga na mapie. Jakieś inne propozycje?
 
To zrób skrypt co Ci będzie pushal ludzi po X czasie kratke w tył, to nie będą nabijać skilla, a liczba ludzi onn nie spadnie (jak pociśniesz anty logiem)
 
Back
Top