Postado Junho 30, 2018 6 anos Olá pessoal, tenho um global full OTX 10.75. Base: Tfs 1.3 O Erro que está acontecendo é o seguinte, o char não desloga nem por um raio no trainer! O sistema de kick está funcionando, se você estiver em uma hunt e ficar sem se mecher por 15 min ele te desloga e dentro do pz também. Porém no trainer ele não desloga por nada. Tem o Idle no creaturescripts.xml: <event type="think" name="Idle" event="script" value="idle.lua"/> tem o arquivo idle.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 Tem no login.lua do creaturescripts: local events = { 'ElementalSpheresOverlords', 'BigfootBurdenVersperoth', 'Razzagorn', 'Shatterer', 'Zamulosh', 'The Hunger', 'The Rage', 'Eradicator', 'Eradicator1', 'Rupture', 'World Devourer', 'Tarbaz', 'Shulgrax', 'Ragiaz', 'Plagirath', 'Mazoran', 'Destabilized', 'BigfootBurdenWiggler', 'SvargrondArenaKill', 'NewFrontierShardOfCorruption', 'NewFrontierTirecz', 'ServiceOfYalaharDiseasedTrio', 'ServiceOfYalaharAzerus', 'ServiceOfYalaharQuaraLeaders', 'InquisitionBosses', 'InquisitionUngreez', 'KillingInTheNameOfKills', 'KillingInTheNameOfKillss', 'KillingInTheNameOfKillsss', 'MastersVoiceServants', 'SecretServiceBlackKnight', 'ThievesGuildNomad', 'WotELizardMagistratus', 'WotELizardNoble', 'WotEKeeper', 'Maxxed', 'WotEBosses', 'WotEZalamon', 'WarzoneThree', 'PlayerDeath', 'AdvanceSave', 'bossesWarzone', 'AdvanceRookgaard', 'PythiusTheRotten', 'DropLoot', 'Yielothax', 'BossParticipation', 'Energized Raging Mage', 'Raging Mage', 'modalMD1', 'VibrantEgg', 'DeathCounter', 'KillCounter', 'bless1', 'lowerRoshamuul', 'SpikeTaskQuestCrystal', 'SpikeTaskQuestDrillworm', 'petlogin', 'Idle', 'petthink', 'UpperSpikeKill', 'MiddleSpikeKill', 'LowerSpikeKill' } Tem no config.lua: kickIdlePlayerAfterMinutes = 15 idleWarningTime = 10 * 60 * 1000 idleKickTime = 15 * 60 * 1000 E mesmo assim o char não desloga do trainer se der exit só fora do treiner! Não tem tile no logout, não tem movements de no logout '-' tem esse script de movements no tile dos trainers que é de encher a stamina:] function onStepIn(creature, item, position, fromPosition) if creature:isPlayer() then creature:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'Attack the Monk and you will win 1 of stamina every 2 minutes training here.') creature:stopLiveCast() end return true end Porém eu já tirei ele para testar e continuou a mesma coisa, sem deslogar!
Postado Julho 1, 2018 6 anos vai no rmes e clica em no logou area aperta ctrl e clica na area aonde o players n desloga HospedaBR Já pensou em ter seu site, com dominio .com .club .org ...e hospedagem por apenas 15 reais ao ano? é isso mesmo 15 reais ao ano. https://hospedabr.com/
Postado Agosto 22, 2018 6 anos Em 30/06/2018 em 19:15, vine96 disse: Olá pessoal, tenho um global full OTX 10.75. Base: Tfs 1.3 O Erro que está acontecendo é o seguinte, o char não desloga nem por um raio no trainer! O sistema de kick está funcionando, se você estiver em uma hunt e ficar sem se mecher por 15 min ele te desloga e dentro do pz também. Porém no trainer ele não desloga por nada. Tem o Idle no creaturescripts.xml: <event type="think" name="Idle" event="script" value="idle.lua"/> tem o arquivo idle.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 Tem no login.lua do creaturescripts: local events = { 'ElementalSpheresOverlords', 'BigfootBurdenVersperoth', 'Razzagorn', 'Shatterer', 'Zamulosh', 'The Hunger', 'The Rage', 'Eradicator', 'Eradicator1', 'Rupture', 'World Devourer', 'Tarbaz', 'Shulgrax', 'Ragiaz', 'Plagirath', 'Mazoran', 'Destabilized', 'BigfootBurdenWiggler', 'SvargrondArenaKill', 'NewFrontierShardOfCorruption', 'NewFrontierTirecz', 'ServiceOfYalaharDiseasedTrio', 'ServiceOfYalaharAzerus', 'ServiceOfYalaharQuaraLeaders', 'InquisitionBosses', 'InquisitionUngreez', 'KillingInTheNameOfKills', 'KillingInTheNameOfKillss', 'KillingInTheNameOfKillsss', 'MastersVoiceServants', 'SecretServiceBlackKnight', 'ThievesGuildNomad', 'WotELizardMagistratus', 'WotELizardNoble', 'WotEKeeper', 'Maxxed', 'WotEBosses', 'WotEZalamon', 'WarzoneThree', 'PlayerDeath', 'AdvanceSave', 'bossesWarzone', 'AdvanceRookgaard', 'PythiusTheRotten', 'DropLoot', 'Yielothax', 'BossParticipation', 'Energized Raging Mage', 'Raging Mage', 'modalMD1', 'VibrantEgg', 'DeathCounter', 'KillCounter', 'bless1', 'lowerRoshamuul', 'SpikeTaskQuestCrystal', 'SpikeTaskQuestDrillworm', 'petlogin', 'Idle', 'petthink', 'UpperSpikeKill', 'MiddleSpikeKill', 'LowerSpikeKill' } Tem no config.lua: kickIdlePlayerAfterMinutes = 15 idleWarningTime = 10 * 60 * 1000 idleKickTime = 15 * 60 * 1000 E mesmo assim o char não desloga do trainer se der exit só fora do treiner! Não tem tile no logout, não tem movements de no logout '-' tem esse script de movements no tile dos trainers que é de encher a stamina:] function onStepIn(creature, item, position, fromPosition) if creature:isPlayer() then creature:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'Attack the Monk and you will win 1 of stamina every 2 minutes training here.') creature:stopLiveCast() end return true end Porém eu já tirei ele para testar e continuou a mesma coisa, sem deslogar! Troca o Script, coloca o do Vodkart.
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.