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

[TFS 8.6]Pay + rep + HELP

Zool

Banned User
Joined
Jun 9, 2009
Messages
742
Reaction score
5
Location
Poland/St Wola
I HAVE STUPID ERROR ;/
I CAN PAY FOR SAY HOW FIX IT.

(POLAND)
Nie dziala m.in :
*Kickidle/Warning Kickidle (config.lua)
Niezaleznie co ustawie gdy ktos da exit (kicka po 1min)
*Exauset
Actions gdy zmieniam potion exauset nie idzie
spells.xml gdy zmieniam exauset run nie idize

(ENGLISH)
*Dont work :
*Kickidle/warning kickidle (config.lua)
all time when i click exit after 1 minutes player kicked.
*Exauset
When i change potions in actions exauset dont work ;/
Spells.xml when i give 1000 or 9000 i dont see it changed...


THIS PROBLEM IS NOT IN FOLDER DATA !
I UPLOAD ORGINAL TFS DATA AND ITS DONT WORK TOO..

HELP
 
@up i say it not error in data....

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
 
Back
Top