Ir para conteúdo
  • 0

PVP Em todo servidor


Marcelo Junior

Pergunta

Bom dia a todos, meu servidor sempre que ligo fica em Modo PvP , ja olhei no config.lua e lá está tudo certo modo no-pvp, sempre que ligo tenho que ir na distro e colocar em modo no-pvp. 

 

Mesmo estando em modo no-pvp 

Se eu usar o psychic de um Alakazam não ranca life do Pokémon de outro player mais o Pokémon fica confuse.

Link para o comentário
Compartilhar em outros sites

6 respostass a esta questão

Posts Recomendados

  • 0
3 horas atrás, Yan18 disse:

Muito estranho, começou a ficar assim após configurar algo em específico? E posta o seu config.lua.

não simplismente começou isso.

 

Citar

-- The Forgotten Server Config

    -- Account manager
    accountManager = true
    namelockManager = true
    newPlayerChooseVoc = false
    newPlayerSpawnPosX = 1056
    newPlayerSpawnPosY = 1051
    newPlayerSpawnPosZ = 7
    newPlayerTownId = maxl
    newPlayerLevel = 20
    newPlayerMagicLevel = 0
    generateAccountNumber = false

    lightInterval = 7500
        -- a cada "lightInterval" ms vai passar 1 minuto
    lightChange = 1
        -- quanto de light ira alterar durante passagem de dia/noite
    startupTime = 351
        -- quantas horas serão ao ligar o server (360 = 6:00 a.m, 1080 = 6:00 p.m, varia de 0 a 1440)
    startupLight = 10
        -- quanto de light vai estar ao ligar o server

    limitPokeballs = 6        -- deprecated
    happyDropTime = 30        -- a cada "happyDropTime" segundos o pokemon vai perder HAPPINESS
    minHappinessEffectDelay = 10    -- a cada min de "happinessEffectDelay" segundos o pokemon vai mostrar a felicidade
    maxHappinessEffectDelay = 40    -- a cada min de "happinessEffectDelay" segundos o pokemon vai mostrar a felicidade
    PokemonStageVeryHappy = 215    -- com quanto de happy o poke precisa pra estar muito feliz
    PokemonStageHappy = 160        -- ... pra estar feliz
    PokemonStageOK = 110        -- ... pra estar normal
    PokemonStageSad = 50        -- ... pra estar triste
    PokemonStageMad = 0        -- ... pra estar bravo
    maximumHunger = 1200        -- maior fome possivel
    stateHunger = 100        -- 19estagio que precisa estar pra ficar com fome
    increaseHunger = 10        -- a cada X segundos (xml do monstro) aumenta o hunger em "increaseHunger"
    decreaseHappy = 1        -- HAPPINESS que o pokemon vai perder a cada "happyDropTime"
    decreaseHungryHappy = 4        -- 3HAPPINESS a mais que o pokemon vai perder se estiver com fome
    useTeleportWithFly = false
    dropHappyDuringBattles = true    -- HAPPINESS vai cair enquanto estiver batalhando ? true / false

    allowBlockSpawn = false

    -- Unjustified kills
    -- NOTE: *Banishment and *BlackSkull variables are >summed up<
    -- (dailyFragsToRedSkull + dailyFragsToBanishment) with their
    -- *RedSkull equivalents.
    -- Auto banishing works only if useBlackSkull set to negative.
    -- advancedFragList is not advised if you use huge frags
    -- requirements.
    redSkullLength = 30 * 24 * 60 * 60
    blackSkullLength = 45 * 24 * 60 * 60
    dailyFragsToRedSkull = 3
    weeklyFragsToRedSkull = 5
    monthlyFragsToRedSkull = 10
    dailyFragsToBlackSkull = dailyFragsToRedSkull
    weeklyFragsToBlackSkull = weeklyFragsToRedSkull
    monthlyFragsToBlackSkull = monthlyFragsToRedSkull
    dailyFragsToBanishment = dailyFragsToRedSkull
    weeklyFragsToBanishment = weeklyFragsToRedSkull
    monthlyFragsToBanishment = monthlyFragsToRedSkull
    blackSkulledDeathHealth = 40
    blackSkulledDeathMana = 0
    useBlackSkull = true
    useFragHandler = true
    advancedFragList = false

    -- Banishments
    -- violationNameReportActionType 1 = just a report, 2 = name lock, 3 = player banishment
    -- killsBanLength works only if useBlackSkull option is disabled.
    notationsToBan = 5
    warningsToFinalBan = 6
    warningsToDeletion = 7
    banLength = 7 * 24 * 60 * 60
    killsBanLength = 7 * 24 * 60 * 60
    finalBanLength = 30 * 24 * 60 * 60
    ipBanishmentLength = 1 * 24 * 60 * 60
    broadcastBanishments = false
    maxViolationCommentSize = 200
    violationNameReportActionType = 2
    autoBanishUnknownBytes = false

    -- Battle
    -- NOTE: showHealingDamageForMonsters inheritates from showHealingDamage.
    -- loginProtectionPeriod is the famous Tibia anti-magebomb system.
    -- deathLostPercent set to nil enables manual mode.
    worldType = "no-pvp"
    protectionLevel = 10000000
    pvpTileIgnoreLevelAndVocationProtection = true
    pzLocked = 18 * 1000
    huntingDuration = 60 * 1000
    criticalHitChance = 7
    criticalHitMultiplier = 1
    displayCriticalHitNotify = false
    removeWeaponAmmunition = true
    removeWeaponCharges = true
    removeRuneCharges = true
    whiteSkullTime = 15 * 60 * 1000
    noDamageToSameLookfeet = false
    showHealingDamage = false
    showHealingDamageForMonsters = false
    fieldOwnershipDuration = 5 * 1000
    stopAttackingAtExit = false
    oldConditionAccuracy = false
    loginProtectionPeriod = 10 * 1000
    deathLostPercent = 1
    stairhopDelay = 0 * 1000
    pushCreatureDelay = 1 * 1000
    deathContainerId = 0
    gainExperienceColor = 215
    addManaSpentInPvPZone = true
    squareColor = 0
    allowFightback = true

    -- Connection config
    worldId = 0
    ip = "127.0.0.1"
    bindOnlyConfiguredIpAddress = false
    loginPort = 7171
    gamePort = 7172
    adminPort = 7171
    statusPort = 7171
    loginTries = 10
    retryTimeout = 5 * 1000
    loginTimeout = 60 * 1000
    maxPlayers = 150    -- codificado e limitado para 7
    motd = "Seja Bem-Vindo ao PokeZot!!"
    displayOnOrOffAtCharlist = false
    onePlayerOnlinePerAccount = false
    allowClones = true
    serverName = "World"
    loginMessage = "Bem-vindo ao PokemonZOT!"
    statusTimeout = 5 * 60 * 1000
    replaceKickOnLogin = true
    forceSlowConnectionsToDisconnect = false
    loginOnlyWithLoginServer = false
    premiumPlayerSkipWaitList = true

    -- Database
    -- NOTE: sqlFile is used only by sqlite database, and sqlKeepAlive by mysql database.
    -- To disable sqlKeepAlive such as mysqlReadTimeout use 0 value.
    sqlType = "sqlite"
    sqlHost = "localhost"
    sqlPort = 3306
    sqlUser = "root"
    sqlPass = ""
    sqlDatabase = "forgottenserver"
    sqlFile = "forgottenserver.s3db"
    sqlKeepAlive = 0
    mysqlReadTimeout = 10
    mysqlWriteTimeout = 10
    encryptionType = "plain"

    -- Deathlist
    deathListEnabled = true
    deathListRequiredTime = 1 * 60 * 1000
    deathAssistCount = 19
    maxDeathRecords = 10

    -- Guilds
    ingameGuildManagement = true
    levelToFormGuild = 40
    premiumDaysToFormGuild = 0
    guildNameMinLength = 2
    guildNameMaxLength = 25

    -- Highscores
    highscoreDisplayPlayers = 10
    updateHighscoresAfterMinutes = 1

    -- Houses
    buyableAndSellableHouses = true
    houseNeedPremium = false
    bedsRequirePremium = false
    levelToBuyHouse = 85
    housesPerAccount = 0
    houseRentAsPrice = false
    housePriceAsRent = false
    housePriceEachSquare = 2975
    houseRentPeriod = "never"
    houseCleanOld = 0
    guildHalls = false

    -- Item usage
    timeBetweenActions = 500
    timeBetweenExActions = 500
    hotkeyAimbotEnabled = true

    -- Map
    -- NOTE: storeTrash costs more memory, but will perform alot faster cleaning.
    mapName = "mastermap"
    mapAuthor = "Bolz"
    randomizeTiles = true
    storeTrash = false
    cleanProtectedZones = true
    mailboxDisabledTowns = "1"

    -- Process
    -- NOTE: defaultPriority works only on Windows and niceLevel on *nix
    -- coresUsed are seperated by comma cores ids used by server process,
    -- default is -1, so it stays untouched (automaticaly assigned by OS).
    defaultPriority = "high"
    niceLevel = 5
    coresUsed = "-1"

    -- Startup
    optimizeDatabaseAtStartup = false
    removePremiumOnInit = true
    confirmOutdatedVersion = false

    -- Spells
    formulaLevel = 5.0
    formulaMagic = 1.0
    bufferMutedOnSpellFailure = false
    spellNameInsteadOfWords = false
    emoteSpells = false

    -- Outfits
    allowChangeOutfit = true
    allowChangeColors = true
    allowChangeAddons = true
    disableOutfitsForPrivilegedPlayers = false
    addonsOnlyPremium = false

    -- Miscellaneous
    -- NOTE: promptExceptionTracerErrorBox works only with precompiled support feature,
    -- called "exception tracer" (__EXCEPTION_TRACER__ flag).
    dataDirectory = "data/"
    bankSystem = true
    displaySkillLevelOnAdvance = true
    promptExceptionTracerErrorBox = true
    separateViplistPerCharacter = false
    maximumDoorLevel = 500
    maxMessageBuffer = 50

    -- Saving-related
    -- useHouseDataStorage usage may be found at README.
    saveGlobalStorage = false
    useHouseDataStorage = false
    storePlayerDirection = false

    -- Loot
    -- monsterLootMessage 0 to disable, 1 - only party, 2 - only player, 3 - party or player (like Tibia's)
    checkCorpseOwner = true
    monsterLootMessage = 3
    monsterLootMessageType = 22

    -- Ghost mode
    ghostModeInvisibleEffect = true
    ghostModeSpellEffects = true
    -- Limits
    idleWarningTime = 14 * 60 * 1000
    idleKickTime = 15 * 60 * 1000
    expireReportsAfterReads = 1
    playerQueryDeepness = 2
    maxItemsPerPZTile = 0
    maxItemsPerHouseTile = 0

    -- Premium-related
    freePremium = false
    premiumForPromotion = true

    -- Blessings
    -- NOTE: blessingReduction* regards items/containers loss.
    -- eachBlessReduction is how much each bless reduces the experience/magic/skills loss.
    blessingOnlyPremium = true
    blessingReductionBase = 30
    blessingReductionDecreament = 5
    eachBlessReduction = 8

    -- Rates
    -- NOTE: experienceStages configuration is located in data/XML/stages.xml.
    -- rateExperienceFromPlayers 0 to disable.
    experienceStages = true
    rateExperience = 1
    rateExperienceFromPlayers = 0
    rateSkill = 1
    rateMagic = 1.0
    rateLoot = 1
    rateSpawn = 1

    -- Monster rates
    rateMonsterHealth = 1.0
    rateMonsterMana = 1.0
    rateMonsterAttack = 1.0
    rateMonsterDefense = 1.0

    -- Experience from players
    -- NOTE: min~Threshold* set to 0 will disable the minimum threshold:
    -- player will gain experience from every lower leveled player.
    -- max~Threshold* set to 0 will disable the maximum threshold:
    -- player will gain experience from every higher leveled player.
    minLevelThresholdForKilledPlayer = 0.9
    maxLevelThresholdForKilledPlayer = 1.1

    -- Stamina
    -- NOTE: Stamina is stored in miliseconds, so seconds are multiplied by 1000.
    -- rateStaminaHits multiplies every hit done a creature, which are later
    -- multiplied by player attack speed.
    -- rateStaminaGain is divider of every logged out second, eg:
    -- 60000 / 3 = 20000 milliseconds, what gives 20 stamina seconds for 1 minute being logged off.
    -- rateStaminaThresholdGain is divider for the premium stamina.
    -- staminaRatingLimit* is in minutes.
    rateStaminaLoss = 1
    rateStaminaGain = 3
    rateStaminaThresholdGain = 12
    staminaRatingLimitTop = 41 * 60
    staminaRatingLimitBottom = 14 * 60
    rateStaminaAboveNormal = 1.0
    rateStaminaUnderNormal = 1.0
    staminaThresholdOnlyPremium = true

    -- Party
    -- NOTE: experienceShareLevelDifference is float number.
    -- experienceShareLevelDifference is highestLevel * value
    experienceShareRadiusX = 30
    experienceShareRadiusY = 30
    experienceShareRadiusZ = 1
    experienceShareLevelDifference = 200 * 200
    extraPartyExperienceLimit = 20
    extraPartyExperiencePercent = 20
    experienceShareActivity = 2 * 60 * 1000

    -- Global save
    -- NOTE: globalSaveHour means like 03:00, not that it will save every 3 hours,
    -- if you want such a system please check out data/globalevents/globalevents.xml.
    globalSaveEnabled = false
    globalSaveHour = 5
    shutdownAtGlobalSave = true
    cleanMapAtGlobalSave = false

    -- Spawns
    deSpawnRange = 2
    deSpawnRadius = 25

    -- Summons
    maxPlayerSummons = 1
    teleportAllSummons = true
    teleportPlayerSummons = true

    -- Status
    ownerName = "PokeZot (By Junior)"
    ownerEmail = ""
    url = ""
    location = "Brazil"
    displayGamemastersWithOnlineCommand = false

    -- Logs
    -- NOTE: This kind of logging does not work in GUI version.
    -- For such, please compile the software with __GUI_LOGS__ flag.
    adminLogsEnabled = false
    displayPlayersLogging = true
    prefixChannelLogs = ""
    runFile = ""
    outLogName = ""
    errorLogName = ""
    truncateLogsOnStartup = false
 

 

Link para o comentário
Compartilhar em outros sites

  • 0

Faz esse teste, apaga o que tem no seu config.lua e substitui por esse: 

 

-- The Forgotten Server Config

    -- Account manager
    accountManager = true
    namelockManager = true
    newPlayerChooseVoc = false
    newPlayerSpawnPosX = 1056
    newPlayerSpawnPosY = 1051
    newPlayerSpawnPosZ = 7
    newPlayerTownId = maxl
    newPlayerLevel = 20
    newPlayerMagicLevel = 0
    generateAccountNumber = false

    lightInterval = 7500
        -- a cada "lightInterval" ms vai passar 1 minuto
    lightChange = 1
        -- quanto de light ira alterar durante passagem de dia/noite
    startupTime = 351
        -- quantas horas serão ao ligar o server (360 = 6:00 a.m, 1080 = 6:00 p.m, varia de 0 a 1440)
    startupLight = 10
        -- quanto de light vai estar ao ligar o server

    limitPokeballs = 6        -- deprecated
    happyDropTime = 30        -- a cada "happyDropTime" segundos o pokemon vai perder HAPPINESS
    minHappinessEffectDelay = 10    -- a cada min de "happinessEffectDelay" segundos o pokemon vai mostrar a felicidade
    maxHappinessEffectDelay = 40    -- a cada min de "happinessEffectDelay" segundos o pokemon vai mostrar a felicidade
    PokemonStageVeryHappy = 215    -- com quanto de happy o poke precisa pra estar muito feliz
    PokemonStageHappy = 160        -- ... pra estar feliz
    PokemonStageOK = 110        -- ... pra estar normal
    PokemonStageSad = 50        -- ... pra estar triste
    PokemonStageMad = 0        -- ... pra estar bravo
    maximumHunger = 1200        -- maior fome possivel
    stateHunger = 100        -- 19estagio que precisa estar pra ficar com fome
    increaseHunger = 10        -- a cada X segundos (xml do monstro) aumenta o hunger em "increaseHunger"
    decreaseHappy = 1        -- HAPPINESS que o pokemon vai perder a cada "happyDropTime"
    decreaseHungryHappy = 4        -- 3HAPPINESS a mais que o pokemon vai perder se estiver com fome
    useTeleportWithFly = false
    dropHappyDuringBattles = true    -- HAPPINESS vai cair enquanto estiver batalhando ? true / false

    allowBlockSpawn = false

    -- Unjustified kills
    -- NOTE: *Banishment and *BlackSkull variables are >summed up<
    -- (dailyFragsToRedSkull + dailyFragsToBanishment) with their
    -- *RedSkull equivalents.
    -- Auto banishing works only if useBlackSkull set to negative.
    -- advancedFragList is not advised if you use huge frags
    -- requirements.
    redSkullLength = 30 * 24 * 60 * 60
    blackSkullLength = 45 * 24 * 60 * 60
    dailyFragsToRedSkull = 3
    weeklyFragsToRedSkull = 5
    monthlyFragsToRedSkull = 10
    dailyFragsToBlackSkull = dailyFragsToRedSkull
    weeklyFragsToBlackSkull = weeklyFragsToRedSkull
    monthlyFragsToBlackSkull = monthlyFragsToRedSkull
    dailyFragsToBanishment = dailyFragsToRedSkull
    weeklyFragsToBanishment = weeklyFragsToRedSkull
    monthlyFragsToBanishment = monthlyFragsToRedSkull
    blackSkulledDeathHealth = 40
    blackSkulledDeathMana = 0
    useBlackSkull = true
    useFragHandler = true
    advancedFragList = false

    -- Banishments
    -- violationNameReportActionType 1 = just a report, 2 = name lock, 3 = player banishment
    -- killsBanLength works only if useBlackSkull option is disabled.
    notationsToBan = 5
    warningsToFinalBan = 6
    warningsToDeletion = 7
    banLength = 7 * 24 * 60 * 60
    killsBanLength = 7 * 24 * 60 * 60
    finalBanLength = 30 * 24 * 60 * 60
    ipBanishmentLength = 1 * 24 * 60 * 60
    broadcastBanishments = false
    maxViolationCommentSize = 200
    violationNameReportActionType = 2
    autoBanishUnknownBytes = false

    -- Battle
    -- NOTE: showHealingDamageForMonsters inheritates from showHealingDamage.
    -- loginProtectionPeriod is the famous Tibia anti-magebomb system.
    -- deathLostPercent set to nil enables manual mode.
    worldType = "pvp"
    protectionLevel = 1000
    pvpTileIgnoreLevelAndVocationProtection = true
    pzLocked = 18 * 1000
    huntingDuration = 60 * 1000
    criticalHitChance = 7
    criticalHitMultiplier = 1
    displayCriticalHitNotify = false
    removeWeaponAmmunition = true
    removeWeaponCharges = true
    removeRuneCharges = true
    whiteSkullTime = 15 * 60 * 1000
    noDamageToSameLookfeet = false
    showHealingDamage = false
    showHealingDamageForMonsters = false
    fieldOwnershipDuration = 5 * 1000
    stopAttackingAtExit = false
    oldConditionAccuracy = false
    loginProtectionPeriod = 10 * 1000
    deathLostPercent = 1
    stairhopDelay = 0 * 1000
    pushCreatureDelay = 1 * 1000
    deathContainerId = 0
    gainExperienceColor = 215
    addManaSpentInPvPZone = true
    squareColor = 0
    allowFightback = true

    -- Connection config
    worldId = 0
    ip = "127.0.0.1"
    bindOnlyConfiguredIpAddress = false
    loginPort = 7171
    gamePort = 7172
    adminPort = 7171
    statusPort = 7171
    loginTries = 10
    retryTimeout = 5 * 1000
    loginTimeout = 60 * 1000
    maxPlayers = 150    -- codificado e limitado para 7
    motd = "Seja Bem-Vindo ao PokeZot!!"
    displayOnOrOffAtCharlist = false
    onePlayerOnlinePerAccount = false
    allowClones = true
    serverName = "World"
    loginMessage = "Bem-vindo ao PokemonZOT!"
    statusTimeout = 5 * 60 * 1000
    replaceKickOnLogin = true
    forceSlowConnectionsToDisconnect = false
    loginOnlyWithLoginServer = false
    premiumPlayerSkipWaitList = true

    -- Database
    -- NOTE: sqlFile is used only by sqlite database, and sqlKeepAlive by mysql database.
    -- To disable sqlKeepAlive such as mysqlReadTimeout use 0 value.
    sqlType = "sqlite"
    sqlHost = "localhost"
    sqlPort = 3306
    sqlUser = "root"
    sqlPass = ""
    sqlDatabase = "forgottenserver"
    sqlFile = "forgottenserver.s3db"
    sqlKeepAlive = 0
    mysqlReadTimeout = 10
    mysqlWriteTimeout = 10
    encryptionType = "plain"

    -- Deathlist
    deathListEnabled = true
    deathListRequiredTime = 1 * 60 * 1000
    deathAssistCount = 19
    maxDeathRecords = 10

    -- Guilds
    ingameGuildManagement = true
    levelToFormGuild = 40
    premiumDaysToFormGuild = 0
    guildNameMinLength = 2
    guildNameMaxLength = 25

    -- Highscores
    highscoreDisplayPlayers = 10
    updateHighscoresAfterMinutes = 1

    -- Houses
    buyableAndSellableHouses = true
    houseNeedPremium = false
    bedsRequirePremium = false
    levelToBuyHouse = 85
    housesPerAccount = 0
    houseRentAsPrice = false
    housePriceAsRent = false
    housePriceEachSquare = 2975
    houseRentPeriod = "never"
    houseCleanOld = 0
    guildHalls = false

    -- Item usage
    timeBetweenActions = 500
    timeBetweenExActions = 500
    hotkeyAimbotEnabled = true

    -- Map
    -- NOTE: storeTrash costs more memory, but will perform alot faster cleaning.
    mapName = "mastermap"
    mapAuthor = "Bolz"
    randomizeTiles = true
    storeTrash = false
    cleanProtectedZones = true
    mailboxDisabledTowns = "1"

    -- Process
    -- NOTE: defaultPriority works only on Windows and niceLevel on *nix
    -- coresUsed are seperated by comma cores ids used by server process,
    -- default is -1, so it stays untouched (automaticaly assigned by OS).
    defaultPriority = "high"
    niceLevel = 5
    coresUsed = "-1"

    -- Startup
    optimizeDatabaseAtStartup = false
    removePremiumOnInit = true
    confirmOutdatedVersion = false

    -- Spells
    formulaLevel = 5.0
    formulaMagic = 1.0
    bufferMutedOnSpellFailure = false
    spellNameInsteadOfWords = false
    emoteSpells = false

    -- Outfits
    allowChangeOutfit = true
    allowChangeColors = true
    allowChangeAddons = true
    disableOutfitsForPrivilegedPlayers = false
    addonsOnlyPremium = false

    -- Miscellaneous
    -- NOTE: promptExceptionTracerErrorBox works only with precompiled support feature,
    -- called "exception tracer" (__EXCEPTION_TRACER__ flag).
    dataDirectory = "data/"
    bankSystem = true
    displaySkillLevelOnAdvance = true
    promptExceptionTracerErrorBox = true
    separateViplistPerCharacter = false
    maximumDoorLevel = 500
    maxMessageBuffer = 50

    -- Saving-related
    -- useHouseDataStorage usage may be found at README.
    saveGlobalStorage = false
    useHouseDataStorage = false
    storePlayerDirection = false

    -- Loot
    -- monsterLootMessage 0 to disable, 1 - only party, 2 - only player, 3 - party or player (like Tibia's)
    checkCorpseOwner = true
    monsterLootMessage = 3
    monsterLootMessageType = 22

    -- Ghost mode
    ghostModeInvisibleEffect = true
    ghostModeSpellEffects = true
    -- Limits
    idleWarningTime = 14 * 60 * 1000
    idleKickTime = 15 * 60 * 1000
    expireReportsAfterReads = 1
    playerQueryDeepness = 2
    maxItemsPerPZTile = 0
    maxItemsPerHouseTile = 0

    -- Premium-related
    freePremium = false
    premiumForPromotion = true

    -- Blessings
    -- NOTE: blessingReduction* regards items/containers loss.
    -- eachBlessReduction is how much each bless reduces the experience/magic/skills loss.
    blessingOnlyPremium = true
    blessingReductionBase = 30
    blessingReductionDecreament = 5
    eachBlessReduction = 8

    -- Rates
    -- NOTE: experienceStages configuration is located in data/XML/stages.xml.
    -- rateExperienceFromPlayers 0 to disable.
    experienceStages = true
    rateExperience = 1
    rateExperienceFromPlayers = 0
    rateSkill = 1
    rateMagic = 1.0
    rateLoot = 1
    rateSpawn = 1

    -- Monster rates
    rateMonsterHealth = 1.0
    rateMonsterMana = 1.0
    rateMonsterAttack = 1.0
    rateMonsterDefense = 1.0

    -- Experience from players
    -- NOTE: min~Threshold* set to 0 will disable the minimum threshold:
    -- player will gain experience from every lower leveled player.
    -- max~Threshold* set to 0 will disable the maximum threshold:
    -- player will gain experience from every higher leveled player.
    minLevelThresholdForKilledPlayer = 0.9
    maxLevelThresholdForKilledPlayer = 1.1

    -- Stamina
    -- NOTE: Stamina is stored in miliseconds, so seconds are multiplied by 1000.
    -- rateStaminaHits multiplies every hit done a creature, which are later
    -- multiplied by player attack speed.
    -- rateStaminaGain is divider of every logged out second, eg:
    -- 60000 / 3 = 20000 milliseconds, what gives 20 stamina seconds for 1 minute being logged off.
    -- rateStaminaThresholdGain is divider for the premium stamina.
    -- staminaRatingLimit* is in minutes.
    rateStaminaLoss = 1
    rateStaminaGain = 3
    rateStaminaThresholdGain = 12
    staminaRatingLimitTop = 41 * 60
    staminaRatingLimitBottom = 14 * 60
    rateStaminaAboveNormal = 1.0
    rateStaminaUnderNormal = 1.0
    staminaThresholdOnlyPremium = true

    -- Party
    -- NOTE: experienceShareLevelDifference is float number.
    -- experienceShareLevelDifference is highestLevel * value
    experienceShareRadiusX = 30
    experienceShareRadiusY = 30
    experienceShareRadiusZ = 1
    experienceShareLevelDifference = 200 * 200
    extraPartyExperienceLimit = 20
    extraPartyExperiencePercent = 20
    experienceShareActivity = 2 * 60 * 1000

    -- Global save
    -- NOTE: globalSaveHour means like 03:00, not that it will save every 3 hours,
    -- if you want such a system please check out data/globalevents/globalevents.xml.
    globalSaveEnabled = false
    globalSaveHour = 5
    shutdownAtGlobalSave = true
    cleanMapAtGlobalSave = false

    -- Spawns
    deSpawnRange = 2
    deSpawnRadius = 25

    -- Summons
    maxPlayerSummons = 1
    teleportAllSummons = true
    teleportPlayerSummons = true

    -- Status
    ownerName = "PokeZot (By Junior)"
    ownerEmail = ""
    url = ""
    location = "Brazil"
    displayGamemastersWithOnlineCommand = false

    -- Logs
    -- NOTE: This kind of logging does not work in GUI version.
    -- For such, please compile the software with __GUI_LOGS__ flag.
    adminLogsEnabled = false
    displayPlayersLogging = true
    prefixChannelLogs = ""
    runFile = ""
    outLogName = ""
    errorLogName = ""
    truncateLogsOnStartup = false

 

Teste e me fala se continua a mesma coisa. Caso continue, vai na pasta creaturescripts e poste o arquivo playerattack.lua

Link para o comentário
Compartilhar em outros sites

  • 0
Em 28/06/2019 em 00:31, Yan18 disse:

Faz esse teste, apaga o que tem no seu config.lua e substitui por esse: 

 


-- The Forgotten Server Config

    -- Account manager
    accountManager = true
    namelockManager = true
    newPlayerChooseVoc = false
    newPlayerSpawnPosX = 1056
    newPlayerSpawnPosY = 1051
    newPlayerSpawnPosZ = 7
    newPlayerTownId = maxl
    newPlayerLevel = 20
    newPlayerMagicLevel = 0
    generateAccountNumber = false

    lightInterval = 7500
        -- a cada "lightInterval" ms vai passar 1 minuto
    lightChange = 1
        -- quanto de light ira alterar durante passagem de dia/noite
    startupTime = 351
        -- quantas horas serão ao ligar o server (360 = 6:00 a.m, 1080 = 6:00 p.m, varia de 0 a 1440)
    startupLight = 10
        -- quanto de light vai estar ao ligar o server

    limitPokeballs = 6        -- deprecated
    happyDropTime = 30        -- a cada "happyDropTime" segundos o pokemon vai perder HAPPINESS
    minHappinessEffectDelay = 10    -- a cada min de "happinessEffectDelay" segundos o pokemon vai mostrar a felicidade
    maxHappinessEffectDelay = 40    -- a cada min de "happinessEffectDelay" segundos o pokemon vai mostrar a felicidade
    PokemonStageVeryHappy = 215    -- com quanto de happy o poke precisa pra estar muito feliz
    PokemonStageHappy = 160        -- ... pra estar feliz
    PokemonStageOK = 110        -- ... pra estar normal
    PokemonStageSad = 50        -- ... pra estar triste
    PokemonStageMad = 0        -- ... pra estar bravo
    maximumHunger = 1200        -- maior fome possivel
    stateHunger = 100        -- 19estagio que precisa estar pra ficar com fome
    increaseHunger = 10        -- a cada X segundos (xml do monstro) aumenta o hunger em "increaseHunger"
    decreaseHappy = 1        -- HAPPINESS que o pokemon vai perder a cada "happyDropTime"
    decreaseHungryHappy = 4        -- 3HAPPINESS a mais que o pokemon vai perder se estiver com fome
    useTeleportWithFly = false
    dropHappyDuringBattles = true    -- HAPPINESS vai cair enquanto estiver batalhando ? true / false

    allowBlockSpawn = false

    -- Unjustified kills
    -- NOTE: *Banishment and *BlackSkull variables are >summed up<
    -- (dailyFragsToRedSkull + dailyFragsToBanishment) with their
    -- *RedSkull equivalents.
    -- Auto banishing works only if useBlackSkull set to negative.
    -- advancedFragList is not advised if you use huge frags
    -- requirements.
    redSkullLength = 30 * 24 * 60 * 60
    blackSkullLength = 45 * 24 * 60 * 60
    dailyFragsToRedSkull = 3
    weeklyFragsToRedSkull = 5
    monthlyFragsToRedSkull = 10
    dailyFragsToBlackSkull = dailyFragsToRedSkull
    weeklyFragsToBlackSkull = weeklyFragsToRedSkull
    monthlyFragsToBlackSkull = monthlyFragsToRedSkull
    dailyFragsToBanishment = dailyFragsToRedSkull
    weeklyFragsToBanishment = weeklyFragsToRedSkull
    monthlyFragsToBanishment = monthlyFragsToRedSkull
    blackSkulledDeathHealth = 40
    blackSkulledDeathMana = 0
    useBlackSkull = true
    useFragHandler = true
    advancedFragList = false

    -- Banishments
    -- violationNameReportActionType 1 = just a report, 2 = name lock, 3 = player banishment
    -- killsBanLength works only if useBlackSkull option is disabled.
    notationsToBan = 5
    warningsToFinalBan = 6
    warningsToDeletion = 7
    banLength = 7 * 24 * 60 * 60
    killsBanLength = 7 * 24 * 60 * 60
    finalBanLength = 30 * 24 * 60 * 60
    ipBanishmentLength = 1 * 24 * 60 * 60
    broadcastBanishments = false
    maxViolationCommentSize = 200
    violationNameReportActionType = 2
    autoBanishUnknownBytes = false

    -- Battle
    -- NOTE: showHealingDamageForMonsters inheritates from showHealingDamage.
    -- loginProtectionPeriod is the famous Tibia anti-magebomb system.
    -- deathLostPercent set to nil enables manual mode.
    worldType = "pvp"
    protectionLevel = 1000
    pvpTileIgnoreLevelAndVocationProtection = true
    pzLocked = 18 * 1000
    huntingDuration = 60 * 1000
    criticalHitChance = 7
    criticalHitMultiplier = 1
    displayCriticalHitNotify = false
    removeWeaponAmmunition = true
    removeWeaponCharges = true
    removeRuneCharges = true
    whiteSkullTime = 15 * 60 * 1000
    noDamageToSameLookfeet = false
    showHealingDamage = false
    showHealingDamageForMonsters = false
    fieldOwnershipDuration = 5 * 1000
    stopAttackingAtExit = false
    oldConditionAccuracy = false
    loginProtectionPeriod = 10 * 1000
    deathLostPercent = 1
    stairhopDelay = 0 * 1000
    pushCreatureDelay = 1 * 1000
    deathContainerId = 0
    gainExperienceColor = 215
    addManaSpentInPvPZone = true
    squareColor = 0
    allowFightback = true

    -- Connection config
    worldId = 0
    ip = "127.0.0.1"
    bindOnlyConfiguredIpAddress = false
    loginPort = 7171
    gamePort = 7172
    adminPort = 7171
    statusPort = 7171
    loginTries = 10
    retryTimeout = 5 * 1000
    loginTimeout = 60 * 1000
    maxPlayers = 150    -- codificado e limitado para 7
    motd = "Seja Bem-Vindo ao PokeZot!!"
    displayOnOrOffAtCharlist = false
    onePlayerOnlinePerAccount = false
    allowClones = true
    serverName = "World"
    loginMessage = "Bem-vindo ao PokemonZOT!"
    statusTimeout = 5 * 60 * 1000
    replaceKickOnLogin = true
    forceSlowConnectionsToDisconnect = false
    loginOnlyWithLoginServer = false
    premiumPlayerSkipWaitList = true

    -- Database
    -- NOTE: sqlFile is used only by sqlite database, and sqlKeepAlive by mysql database.
    -- To disable sqlKeepAlive such as mysqlReadTimeout use 0 value.
    sqlType = "sqlite"
    sqlHost = "localhost"
    sqlPort = 3306
    sqlUser = "root"
    sqlPass = ""
    sqlDatabase = "forgottenserver"
    sqlFile = "forgottenserver.s3db"
    sqlKeepAlive = 0
    mysqlReadTimeout = 10
    mysqlWriteTimeout = 10
    encryptionType = "plain"

    -- Deathlist
    deathListEnabled = true
    deathListRequiredTime = 1 * 60 * 1000
    deathAssistCount = 19
    maxDeathRecords = 10

    -- Guilds
    ingameGuildManagement = true
    levelToFormGuild = 40
    premiumDaysToFormGuild = 0
    guildNameMinLength = 2
    guildNameMaxLength = 25

    -- Highscores
    highscoreDisplayPlayers = 10
    updateHighscoresAfterMinutes = 1

    -- Houses
    buyableAndSellableHouses = true
    houseNeedPremium = false
    bedsRequirePremium = false
    levelToBuyHouse = 85
    housesPerAccount = 0
    houseRentAsPrice = false
    housePriceAsRent = false
    housePriceEachSquare = 2975
    houseRentPeriod = "never"
    houseCleanOld = 0
    guildHalls = false

    -- Item usage
    timeBetweenActions = 500
    timeBetweenExActions = 500
    hotkeyAimbotEnabled = true

    -- Map
    -- NOTE: storeTrash costs more memory, but will perform alot faster cleaning.
    mapName = "mastermap"
    mapAuthor = "Bolz"
    randomizeTiles = true
    storeTrash = false
    cleanProtectedZones = true
    mailboxDisabledTowns = "1"

    -- Process
    -- NOTE: defaultPriority works only on Windows and niceLevel on *nix
    -- coresUsed are seperated by comma cores ids used by server process,
    -- default is -1, so it stays untouched (automaticaly assigned by OS).
    defaultPriority = "high"
    niceLevel = 5
    coresUsed = "-1"

    -- Startup
    optimizeDatabaseAtStartup = false
    removePremiumOnInit = true
    confirmOutdatedVersion = false

    -- Spells
    formulaLevel = 5.0
    formulaMagic = 1.0
    bufferMutedOnSpellFailure = false
    spellNameInsteadOfWords = false
    emoteSpells = false

    -- Outfits
    allowChangeOutfit = true
    allowChangeColors = true
    allowChangeAddons = true
    disableOutfitsForPrivilegedPlayers = false
    addonsOnlyPremium = false

    -- Miscellaneous
    -- NOTE: promptExceptionTracerErrorBox works only with precompiled support feature,
    -- called "exception tracer" (__EXCEPTION_TRACER__ flag).
    dataDirectory = "data/"
    bankSystem = true
    displaySkillLevelOnAdvance = true
    promptExceptionTracerErrorBox = true
    separateViplistPerCharacter = false
    maximumDoorLevel = 500
    maxMessageBuffer = 50

    -- Saving-related
    -- useHouseDataStorage usage may be found at README.
    saveGlobalStorage = false
    useHouseDataStorage = false
    storePlayerDirection = false

    -- Loot
    -- monsterLootMessage 0 to disable, 1 - only party, 2 - only player, 3 - party or player (like Tibia's)
    checkCorpseOwner = true
    monsterLootMessage = 3
    monsterLootMessageType = 22

    -- Ghost mode
    ghostModeInvisibleEffect = true
    ghostModeSpellEffects = true
    -- Limits
    idleWarningTime = 14 * 60 * 1000
    idleKickTime = 15 * 60 * 1000
    expireReportsAfterReads = 1
    playerQueryDeepness = 2
    maxItemsPerPZTile = 0
    maxItemsPerHouseTile = 0

    -- Premium-related
    freePremium = false
    premiumForPromotion = true

    -- Blessings
    -- NOTE: blessingReduction* regards items/containers loss.
    -- eachBlessReduction is how much each bless reduces the experience/magic/skills loss.
    blessingOnlyPremium = true
    blessingReductionBase = 30
    blessingReductionDecreament = 5
    eachBlessReduction = 8

    -- Rates
    -- NOTE: experienceStages configuration is located in data/XML/stages.xml.
    -- rateExperienceFromPlayers 0 to disable.
    experienceStages = true
    rateExperience = 1
    rateExperienceFromPlayers = 0
    rateSkill = 1
    rateMagic = 1.0
    rateLoot = 1
    rateSpawn = 1

    -- Monster rates
    rateMonsterHealth = 1.0
    rateMonsterMana = 1.0
    rateMonsterAttack = 1.0
    rateMonsterDefense = 1.0

    -- Experience from players
    -- NOTE: min~Threshold* set to 0 will disable the minimum threshold:
    -- player will gain experience from every lower leveled player.
    -- max~Threshold* set to 0 will disable the maximum threshold:
    -- player will gain experience from every higher leveled player.
    minLevelThresholdForKilledPlayer = 0.9
    maxLevelThresholdForKilledPlayer = 1.1

    -- Stamina
    -- NOTE: Stamina is stored in miliseconds, so seconds are multiplied by 1000.
    -- rateStaminaHits multiplies every hit done a creature, which are later
    -- multiplied by player attack speed.
    -- rateStaminaGain is divider of every logged out second, eg:
    -- 60000 / 3 = 20000 milliseconds, what gives 20 stamina seconds for 1 minute being logged off.
    -- rateStaminaThresholdGain is divider for the premium stamina.
    -- staminaRatingLimit* is in minutes.
    rateStaminaLoss = 1
    rateStaminaGain = 3
    rateStaminaThresholdGain = 12
    staminaRatingLimitTop = 41 * 60
    staminaRatingLimitBottom = 14 * 60
    rateStaminaAboveNormal = 1.0
    rateStaminaUnderNormal = 1.0
    staminaThresholdOnlyPremium = true

    -- Party
    -- NOTE: experienceShareLevelDifference is float number.
    -- experienceShareLevelDifference is highestLevel * value
    experienceShareRadiusX = 30
    experienceShareRadiusY = 30
    experienceShareRadiusZ = 1
    experienceShareLevelDifference = 200 * 200
    extraPartyExperienceLimit = 20
    extraPartyExperiencePercent = 20
    experienceShareActivity = 2 * 60 * 1000

    -- Global save
    -- NOTE: globalSaveHour means like 03:00, not that it will save every 3 hours,
    -- if you want such a system please check out data/globalevents/globalevents.xml.
    globalSaveEnabled = false
    globalSaveHour = 5
    shutdownAtGlobalSave = true
    cleanMapAtGlobalSave = false

    -- Spawns
    deSpawnRange = 2
    deSpawnRadius = 25

    -- Summons
    maxPlayerSummons = 1
    teleportAllSummons = true
    teleportPlayerSummons = true

    -- Status
    ownerName = "PokeZot (By Junior)"
    ownerEmail = ""
    url = ""
    location = "Brazil"
    displayGamemastersWithOnlineCommand = false

    -- Logs
    -- NOTE: This kind of logging does not work in GUI version.
    -- For such, please compile the software with __GUI_LOGS__ flag.
    adminLogsEnabled = false
    displayPlayersLogging = true
    prefixChannelLogs = ""
    runFile = ""
    outLogName = ""
    errorLogName = ""
    truncateLogsOnStartup = false

 

Teste e me fala se continua a mesma coisa. Caso continue, vai na pasta creaturescripts e poste o arquivo playerattack.lua

Problema persiste.

 

Aqui esta o pedido.

 

Citar

local fightcondition = createConditionObject(CONDITION_INFIGHT)
setConditionParam(fightcondition, CONDITION_PARAM_TICKS, 12 * 1000)

function fightCondic(cid)
    if not isCreature(cid) then return true end
    if not isCreature(getCreatureTarget(cid)) then return true end
    doAddCondition(cid, fightcondition)
addEvent(fightCondic, 1000, cid)
end

function onTarget(cid, target)

if isPlayer(target) then
   if canAttackOther(cid, target) == "Cant" then            --edited PVP system
      return false 
   elseif isPlayer(target) and #getCreatureSummons(target) >= 1 and canAttackOther(cid, target) == "Can" then
      return false
   end
end

if getPlayerStorageValue(target, 201) ~= -1 then
for a, b in pairs(ginasios) do
if getPlayerStorageValue(target, ginasios[getPlayerStorageValue(target, 201)].storage) == 1 then
    if getPlayerStorageValue(cid, ginasios[getPlayerStorageValue(target, 201)].storage) ~= 1 then
    doPlayerSendCancel(cid, "You can't attack this pokemon.")
    return false
    end
end
end
end

if isSummon(target) then                             --edited PVP system
    if canAttackOther(cid, target) == "Cant" then
    return false
    end
end

if false then -- desativado

        if not isPlayerInAgressiveList(target, cid) then
        addPlayerToAgressiveList(target, cid)
        end

    if isPassive(target) then
               setAgressive(target)
            if #getCreatureSummons(cid) >= 1 then
                doMonsterSetTarget(target, getCreatureSummons(cid)[1])

            else
                    doMonsterSetTarget(target, cid)
            end

    else
        local histarget = getCreatureTarget(target)
        if isCreature(histarget) and isPlayer(getCreatureMaster(histarget)) and #getCreatureSummons(cid) >= 1 and #getCreatureSummons(getCreatureMaster(histarget)) <= 0 then
            doMonsterSetTarget(target, getCreatureSummons(cid)[1])
        end
    end
end

return TRUE
end

Desculpe a demora....

Link para o comentário
Compartilhar em outros sites

  • 0
Em 29/06/2019 em 22:47, Marcelo Junior disse:

Problema persiste.

 

Aqui esta o pedido.

 

Desculpe a demora....

Vi aqui e parece estar certo. O que após você alterar começou a dar esse problema?

Link para o comentário
Compartilhar em outros sites

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...