Fala galera entao faz tempo que n mecho com scripting e queria saber como eu crio um Config.lua Novo ai do Rep++ quem ajuda vlw a todos que ajudar......
♥ ..::.. ♥
Fala galera entao faz tempo que n mecho com scripting e queria saber como eu crio um Config.lua Novo ai do Rep++ quem ajuda vlw a todos que ajudar......
♥ ..::.. ♥
Cara eu recomendo você pegar um config.lua de um servidor pronto e dependendo do q seja(presumo q seja de um servidor de pokemon de acordo com sua foto)
vc pega o config.lua de um servidor e muda para o seu e edita conforme as configuraçoes do seu servidor abaixo vou lhe recomendar o config.lua do PDA do Slicer pois esta muito organizado e compacto
-- The Forgotten Server Config-- Account manageraccountManager = truenamelockManager = truenewPlayerChooseVoc = falsenewPlayerSpawnPosX = 49newPlayerSpawnPosY = 73 --pos inicial no mapa do Stigal!newPlayerSpawnPosZ = 7newPlayerTownId = 1newPlayerLevel = 5newPlayerMagicLevel = 0generateAccountNumber = falselightInterval = 7500-- a cada "lightInterval" ms vai passar 1 minutolightChange = 1-- quanto de light ira alterar durante passagem de dia/noitestartupTime = 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 = 40-- quanto de light vai estar ao ligar o serverlimitPokeballs = 6 -- deprecatedhappyDropTime = 12 -- a cada "happyDropTime" segundos o pokemon vai perder HAPPINESSminHappinessEffectDelay = 25 -- a cada min de "happinessEffectDelay" segundos o pokemon vai mostrar a felicidademaxHappinessEffectDelay = 40 -- a cada min de "happinessEffectDelay" segundos o pokemon vai mostrar a felicidadePokemonStageVeryHappy = 215 -- com quanto de happy o poke precisa pra estar muito felizPokemonStageHappy = 160 -- ... pra estar felizPokemonStageOK = 110 -- ... pra estar normalPokemonStageSad = 50 -- ... pra estar tristePokemonStageMad = 0 -- ... pra estar bravomaximumHunger = 120 -- maior fome possivelstateHunger = 100 -- 19estagio que precisa estar pra ficar com fomeincreaseHunger = 7 -- 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 fomeuseTeleportWithFly = falsedropHappyDuringBattles = true -- HAPPINESS vai cair enquanto estiver batalhando ? true / falseallowBlockSpawn = 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 * 60blackSkullLength = 45 * 24 * 60 * 60dailyFragsToRedSkull = 3weeklyFragsToRedSkull = 5monthlyFragsToRedSkull = 10dailyFragsToBlackSkull = dailyFragsToRedSkullweeklyFragsToBlackSkull = weeklyFragsToRedSkullmonthlyFragsToBlackSkull = monthlyFragsToRedSkulldailyFragsToBanishment = dailyFragsToRedSkullweeklyFragsToBanishment = weeklyFragsToRedSkullmonthlyFragsToBanishment = monthlyFragsToRedSkullblackSkulledDeathHealth = 40blackSkulledDeathMana = 0useBlackSkull = trueuseFragHandler = trueadvancedFragList = false-- Banishments-- violationNameReportActionType 1 = just a report, 2 = name lock, 3 = player banishment-- killsBanLength works only if useBlackSkull option is disabled.notationsToBan = 3warningsToFinalBan = 4warningsToDeletion = 5banLength = 7 * 24 * 60 * 60killsBanLength = 7 * 24 * 60 * 60finalBanLength = 30 * 24 * 60 * 60ipBanishmentLength = 1 * 24 * 60 * 60broadcastBanishments = truemaxViolationCommentSize = 200violationNameReportActionType = 2autoBanishUnknownBytes = 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 = 1000pvpTileIgnoreLevelAndVocationProtection = truepzLocked = 18 * 1000huntingDuration = 60 * 1000criticalHitChance = 7criticalHitMultiplier = 1displayCriticalHitNotify = falseremoveWeaponAmmunition = trueremoveWeaponCharges = trueremoveRuneCharges = truewhiteSkullTime = 15 * 60 * 1000noDamageToSameLookfeet = falseshowHealingDamage = falseshowHealingDamageForMonsters = falsefieldOwnershipDuration = 5 * 1000stopAttackingAtExit = falseoldConditionAccuracy = falseloginProtectionPeriod = 10 * 1000deathLostPercent = 1stairhopDelay = 0 * 1000pushCreatureDelay = 1 * 1000deathContainerId = 0gainExperienceColor = 215addManaSpentInPvPZone = truesquareColor = 0allowFightback = true-- Connection configworldId = 0ip = "25.133.68.31"bindOnlyConfiguredIpAddress = falseloginPort = 7171gamePort = 7172adminPort = 7171statusPort = 7171loginTries = 10retryTimeout = 5 * 1000loginTimeout = 60 * 1000maxPlayers = 50 -- codificado e limitado para 7motd = "Welcome to pokemon dash!"displayOnOrOffAtCharlist = falseonePlayerOnlinePerAccount = falseallowClones = trueserverName = "Pokemon Dash"loginMessage = "Welcome to pokemon dash server!"statusTimeout = 5 * 60 * 1000replaceKickOnLogin = trueforceSlowConnectionsToDisconnect = falseloginOnlyWithLoginServer = falsepremiumPlayerSkipWaitList = 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 = 3306sqlUser = "root"sqlPass = ""sqlDatabase = "theforgottenserver"sqlFile = "forgottenserver.s3db"sqlKeepAlive = 0mysqlReadTimeout = 10mysqlWriteTimeout = 10encryptionType = "plain"-- DeathlistdeathListEnabled = truedeathListRequiredTime = 1 * 60 * 1000deathAssistCount = 19maxDeathRecords = 10-- GuildsingameGuildManagement = truelevelToFormGuild = 40premiumDaysToFormGuild = 0guildNameMinLength = 2guildNameMaxLength = 25-- HighscoreshighscoreDisplayPlayers = 15updateHighscoresAfterMinutes = 60-- HousesbuyableAndSellableHouses = truehouseNeedPremium = truebedsRequirePremium = truelevelToBuyHouse = 1housesPerAccount = 0houseRentAsPrice = falsehousePriceAsRent = falsehousePriceEachSquare = 2975houseRentPeriod = "never"houseCleanOld = 0guildHalls = false-- Item usagetimeBetweenActions = 500timeBetweenExActions = 500hotkeyAimbotEnabled = true-- Map-- NOTE: storeTrash costs more memory, but will perform alot faster cleaning.mapName = "mastermap"mapAuthor = "brun123"randomizeTiles = truestoreTrash = falsecleanProtectedZones = truemailboxDisabledTowns = "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 = 5coresUsed = "-1"-- StartupoptimizeDatabaseAtStartup = trueremovePremiumOnInit = trueconfirmOutdatedVersion = false-- SpellsformulaLevel = 5.0formulaMagic = 1.0bufferMutedOnSpellFailure = falsespellNameInsteadOfWords = falseemoteSpells = false-- OutfitsallowChangeOutfit = trueallowChangeColors = trueallowChangeAddons = truedisableOutfitsForPrivilegedPlayers = falseaddonsOnlyPremium = false-- Miscellaneous-- NOTE: promptExceptionTracerErrorBox works only with precompiled support feature,-- called "exception tracer" (__EXCEPTION_TRACER__ flag).dataDirectory = "data/"bankSystem = truedisplaySkillLevelOnAdvance = truepromptExceptionTracerErrorBox = trueseparateViplistPerCharacter = falsemaximumDoorLevel = 500maxMessageBuffer = 4-- Saving-related-- useHouseDataStorage usage may be found at README.saveGlobalStorage = falseuseHouseDataStorage = falsestorePlayerDirection = false-- Loot-- monsterLootMessage 0 to disable, 1 - only party, 2 - only player, 3 - party or player (like Tibia's)checkCorpseOwner = truemonsterLootMessage = 3monsterLootMessageType = 22-- Ghost modeghostModeInvisibleEffect = falseghostModeSpellEffects = false-- LimitsidleWarningTime = 14 * 60 * 1000idleKickTime = 15 * 60 * 1000expireReportsAfterReads = 1playerQueryDeepness = 2maxItemsPerPZTile = 0maxItemsPerHouseTile = 0-- Premium-relatedfreePremium = falsepremiumForPromotion = true-- Blessings-- NOTE: blessingReduction* regards items/containers loss.-- eachBlessReduction is how much each bless reduces the experience/magic/skills loss.blessingOnlyPremium = trueblessingReductionBase = 30blessingReductionDecreament = 5eachBlessReduction = 8-- Rates-- NOTE: experienceStages configuration is located in data/XML/stages.xml.-- rateExperienceFromPlayers 0 to disable.experienceStages = falserateExperience = 0rateExperienceFromPlayers = 0rateSkill = 1rateMagic = 1.0rateLoot = 1rateSpawn = 1-- Monster ratesrateMonsterHealth = 1.0rateMonsterMana = 1.0rateMonsterAttack = 1.0rateMonsterDefense = 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.9maxLevelThresholdForKilledPlayer = 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 = 1rateStaminaGain = 3rateStaminaThresholdGain = 12staminaRatingLimitTop = 41 * 60staminaRatingLimitBottom = 14 * 60rateStaminaAboveNormal = 1.0rateStaminaUnderNormal = 1.0staminaThresholdOnlyPremium = true-- Party-- NOTE: experienceShareLevelDifference is float number.-- experienceShareLevelDifference is highestLevel * valueexperienceShareRadiusX = 30experienceShareRadiusY = 30experienceShareRadiusZ = 1experienceShareLevelDifference = 200 * 200extraPartyExperienceLimit = 20extraPartyExperiencePercent = 20experienceShareActivity = 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 = falseglobalSaveHour = 8shutdownAtGlobalSave = truecleanMapAtGlobalSave = false-- SpawnsdeSpawnRange = 2deSpawnRadius = 25-- SummonsmaxPlayerSummons = 1teleportAllSummons = trueteleportPlayerSummons = true-- StatusownerName = "Pokemon Dash Online [Advanced]"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 = falsedisplayPlayersLogging = trueprefixChannelLogs = ""runFile = ""outLogName = ""errorLogName = ""truncateLogsOnStartup = false
Vlw + eu ja tinha conseguido rep + ai como prometido....
Duvida Sanada,Reportado.
Tópico movido para a seção de dúvidas e pedidos resolvidos.
Fabio Augustus - Infraestrutura
Skype: guhsvasc
"O fracasso é a oportunidade de se começar de novo inteligentemente"