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

Nie ma kicka po exicie.

Spoof Destroyer

New Member
Joined
Apr 6, 2010
Messages
35
Reaction score
0
Cześć, mam problem.

Otóż..

Lua:
stopAttackingAtExit = true
idleWarningTime = 14 * 60 * 1000
idleKickTime = 15 * 60 * 1000

Nie ma NO-Logout ZONE, a po Exicie na trainach i tak postaci nie kickuje.
 
Nie masz donatora a masz 0.4 tfs ;o:>

Ale kij z tym, powiedz jaka versja/patch tego 0.4 silnika

Ja np uzywam 3671 i jest looz.
 
a masz zwykle battle czy moze masz jakiegos skulla ?(jak masz skulla np zabiles kogos nawet jak dasz exita wyloguje cie dopiero po 15 minutach.)
 
Konto z donatorem, banned do jutra.

@edit

3698.

Zrobiłem teścik, dokładnie o 13:00 zostawiłem na Exicie mojego noob chara. Po wyjściu przestał atakować, lecz dalej stoi. Zobaczę co będzie dalej.

@edit2

Trochę chu*owo, bo nie mam dostępu teraz do Donator Boarda, a ludzie już raportują mi OTS'y. Dostanę BANA i oczywiście nikt nie raczy mnie wysłuchać, a co dopiero odbanować.

@edit3

a masz zwykle battle czy moze masz jakiegos skulla ?(jak masz skulla np zabiles kogos nawet jak dasz exita wyloguje cie dopiero po 15 minutach.)

Nie, bez skull'a. Zwykłe krzyżyki od tego, że potwór mnie atakuje.
 
Last edited:
creaturescripts.xml

Lua:
<event type="think" name="Idle" event="script" value="idle.lua"/>

idle.lua

Lua:
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

login.lua

Lua:
registerCreatureEvent(cid, "Idle")
 
bump, jakieś inne pomysły? :O

bump

Tak sobie wertowałem gugle w poszukiwaniu pomocy i znalazłem TO.
Mam ten sam problem.. IP nie zmienia się w 0.0.0... i nie ma w ogóle kicka po 15 minutach. Skrypty wszystkie mam!
 
Last edited by a moderator:
Back
Top