Ir para conteúdo

Featured Replies

Postado

Ola estou com um erro o server abre ai ele fica salvando sem parar usando menssagens brodkast e nao da pra entrar ja troquei os global events ai buga o server todo como eu faço?

6nDV9wO.jpg

Resolvido por Eduardo Carvalho

Ir para solução
  • Respostas 12
  • Visualizações 1.9k
  • Created
  • Última resposta

Top Posters In This Topic

Postado
  • Autor

config lua

-- The Forgotten Server Config

accountManager = "yes"
namelockManager = "yes"
newPlayerChooseVoc = "yes"
newPlayerSpawnPosX = 0
newPlayerSpawnPosY = 0
newPlayerSpawnPosZ = 7
newPlayerTownId = 1
newPlayerLevel = 8
newPlayerMagicLevel = 0
generateAccountNumber = "no"

    
redSkullLength = 30 * 24 * 60 * 60
blackSkullLength = 45 * 24 * 60 * 60
dailyFragsToRedSkull = 6
weeklyFragsToRedSkull = 10
monthlyFragsToRedSkull = 15
dailyFragsToBlackSkull = dailyFragsToRedSkull
weeklyFragsToBlackSkull = weeklyFragsToRedSkull
monthlyFragsToBlackSkull = monthlyFragsToRedSkull
dailyFragsToBanishment = dailyFragsToRedSkull
weeklyFragsToBanishment = weeklyFragsToRedSkull
monthlyFragsToBanishment = monthlyFragsToRedSkull
blackSkulledDeathHealth = 40
blackSkulledDeathMana = 0
useBlackSkull = "yes"
advancedFragList = "no"

    
notationsToBan = 3
warningsToFinalBan = 4
warningsToDeletion = 5
banLength = 7 * 24 * 60 * 60
finalBanLength = 30 * 24 * 60 * 60
ipBanishmentLength = 1 * 24 * 60 * 60
broadcastBanishments = "yes"
maxViolationCommentSize = 200
violationNameReportActionType = 2
autoBanishUnknownBytes = "no"

worldType = "open"
protectionLevel = 40
pvpTileIgnoreLevelAndVocationProtection = "yes"
pzLocked = 30 * 500
huntingDuration = 60 * 1000
criticalHitChance = 7
criticalHitMultiplier = 1
displayCriticalHitNotify = "no"
removeWeaponAmmunition = "yes"
removeWeaponCharges = "yes"
removeRuneCharges = "yes"
whiteSkullTime = 15 * 60 * 1000
noDamageToSameLookfeet = "no"
showHealingDamage = "no"
showHealingDamageForMonsters = "no"
fieldOwnershipDuration = 5 * 1000
stopAttackingAtExit = "no"
oldConditionAccuracy = "no"
loginProtectionPeriod = 10 * 1000
deathLostPercent = 10
stairhopDelay = 2 * 1000
pushCreatureDelay = 2 * 1000
deathContainerId = 1987
gainExperienceColor = 215
addManaSpentInPvPZone = "yes"
squareColor = 0
allowFightback = "yes"


worldId = 0
ip = "oldtks.zapto.org"
bindOnlyConfiguredIpAddress = "no"
loginPort = 7171
gamePort = 7172
adminPort = 7171
statusPort = 7171
loginTries = 10
retryTimeout = 5 * 1000
loginTimeout = 60 * 1000
maxPlayers = 423
motd = "seja bem vindo ao oldEternia!"
displayOnOrOffAtCharlist = "no"
onePlayerOnlinePerAccount = "yes"
allowClones = "no"
serverName = "LawGame"
loginMessage = "Welcome to the LawGame OTServ! oldEterniaATS"
statusTimeout = 5 * 60 * 1000
replaceKickOnLogin = "yes"
forceSlowConnectionsToDisconnect = "no"
loginOnlyWithLoginServer = "no"
premiumPlayerSkipWaitList = "no"


sqlType = "sqlite"
sqlHost = "localhost"
sqlPort = 3306
sqlUser = "root"
sqlPass = "helinho"
sqlDatabase = "theforgottenserver"
sqlFile = "forgottenserver.s3db"
sqlKeepAlive = 0
mysqlReadTimeout = 10
mysqlWriteTimeout = 10
passwordType = "plain"

    
deathListEnabled = "yes"
deathListRequiredTime = 1 * 60 * 1000
deathAssistCount = 19
maxDeathRecords = 5

    
ingameGuildManagement = "yes"
levelToFormGuild = 80
premiumDaysToFormGuild = 0
guildNameMinLength = 4
guildNameMaxLength = 20

    
highscoreDisplayPlayers = 150
updateHighscoresAfterMinutes = 1

    
buyableAndSellableHouses = "yes"
houseNeedPremium = "yes"
bedsRequirePremium = "yes"
levelToBuyHouse = 100
housesPerAccount = 0
houseRentAsPrice = "no"
housePriceAsRent = "no"
housePriceEachSquare = 1000
houseRentPeriod = "never"
guildHalls = "no"

    
timeBetweenActions = 200
timeBetweenExActions = 1000
checkCorpseOwner = "yes"
hotkeyAimbotEnabled = "yes"
maximumDoorLevel = 500

mapName = "global.otbm"
mapAuthor = "gean riot"
randomizeTiles = "yes"
useHouseDataStorage = "no"
storeTrash = "yes"
cleanProtectedZones = "yes"
mailboxDisabledTowns = "-1"



defaultPriority = "high"
niceLevel = 5
coresUsed = "-1"
optimizeDatabaseAtStartup = "yes"
removePremiumOnInit = "yes"
confirmOutdatedVersion = "no"

    
maxMessageBuffer = 14
bufferMutedOnSpellFailure = "no"

dataDirectory = "data/"
allowChangeOutfit = "yes"
allowChangeColors = "yes"
allowChangeAddons = "yes"
disableOutfitsForPrivilegedPlayers = "no"
bankSystem = "yes"
saveGlobalStorage = "yes"
displaySkillLevelOnAdvance = "yes"
spellNameInsteadOfWords = "no"
emoteSpells = "no"
promptExceptionTracerErrorBox = "yes"
storePlayerDirection = "no"
monsterLootMessage = 3
monsterLootMessageType = 25

    
ghostModeInvisibleEffect = "no"
ghostModeSpellEffects = "yes"

    
idleWarningTime = 14 * 60 * 1000
idleKickTime = 15 * 60 * 1000
expireReportsAfterReads = 1
playerQueryDeepness = 2
maxItemsPerPZTile = 0
maxItemsPerHouseTile = 0

    
freePremium = "no"
premiumForPromotion = "yes"

    
blessingsOnlyPremium = "yes"
blessingReductionBase = 30
blessingReductionDecreament = 5
eachBlessReduction = 8

    
experienceStages = "yes"
rateExperience = 1000.0
rateExperienceFromPlayers = 1
rateSkill = 100.0
rateMagic = 80.0
rateLoot = 5.0
rateSpawn = 1

    
minLevelThresholdForKilledPlayer = 0
maxLevelThresholdForKilledPlayer = 0

    
rateStaminaLoss = 1
rateStaminaGain = 1000 / 3
rateStaminaThresholdGain = 4
staminaRatingLimitTop = 41 * 60
staminaRatingLimitBottom = 14 * 60
rateStaminaAboveNormal = 1.5
rateStaminaUnderNormal = 0.5
staminaThresholdOnlyPremium = "yes"

experienceShareRadiusX = 30
experienceShareRadiusY = 30
experienceShareRadiusZ = 1
experienceShareLevelDifference = 2 / 3
extraPartyExperienceLimit = 20
extraPartyExperiencePercent = 5
experienceShareActivity = 2 * 60 * 1000

    
globalSaveEnabled = "no"
globalSaveHour = 8
shutdownAtGlobalSave = "yes"
cleanMapAtGlobalSave = "no"

    
deSpawnRange = 2
deSpawnRadius = 50


maxPlayerSummons = 2
teleportAllSummons = "no"
teleportPlayerSummons = "no"

    
ownerName = "Subwat"
ownerEmail = "gean_riot@hotmail.com"
url = "www.tibiaking.com"
location = "Europe"
displayGamemastersWithOnlineCommand = "no"

    
adminLogsEnabled = "no"
displayPlayersLogging = "yes"
prefixChannelLogs = ""
runFile = ""
outLogName = ""
errorLogName = ""
truncateLogsOnStartup = "no"
 

 

global events xml

<?xml version="1.0" encoding="UTF-8"?>
<globalevents>
    <globalevent name="save" interval="1000" event="script" value="save.lua"/>
    <globalevent name="clean" interval="1000" event="script" value="clean.lua"/>
        <globalevent name="AutoBroadcast2" interval="700" script="AutoBroadcast2.lua"/>
    <globalevent name="serverstart" type="start" event="script" value="start.lua"/>
    <globalevent name="playersrecord" type="record" event="script" value="record.lua"/>
        <globalevent name="AutoBroadcast" interval="5000" script="AutoBroadcast.lua"/>
    <!-- <globalevent name="timer_example" time="21:35" event="script" value="my_script.lua"/> -->
</globalevents>
 

 

 

save

 

local config = {
    broadcast = "no"
}

config.broadcast = getBooleanFromString(config.broadcast)
local function executeSave(seconds)
    if(seconds == 0) then
        doSaveServer()
        return true
    end

    if(seconds == 120 or seconds == 30) then
        doBroadcastMessage("Full server save within " .. seconds .. " seconds, please stay in safe place!")
    end

    seconds = seconds - 30
    if(seconds >= 0) then
        addEvent(executeSave, 30 * 600, seconds)
    end
end

function onThink(interval, lastExecution, thinkInterval)
    if(not config.broadcast) then
        doSaveServer()
        return true
    end

    executeSave(120)
    return true
end
 

6nDV9wO.jpg

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo