Ir para conteúdo

Mechainy

Campones
  • Total de itens

    31
  • Registro em

  • Última visita

Tudo que Mechainy postou

  1. Da para fazer algumas coisas bem legais com ele =D Rep+
  2. Ficou legal ai o tutorial + poderia postar um screenshot do resultado =)
  3. Muito bom cara, ja tinha visto alguns mais eram todos bugados vlw =D
  4. Ja usei o ip changer aqui, é bom mais não tem muitas funções. Só que ve se traduz isso ai =D
  5. Po cara finalmente saiu =DD Vou trabalhar muito ai com o We Do =P Atenciosamente, Cykotitan.
  6. Ficou muito massa, o porto ficou daora =D
  7. Mechainy

    Death

    Valeu cara, eu achei o efeito, é o 65 =D Rep+ -- Podem fechar o tópico.
  8. Deve estar usando GUI Tenta usar CONSOLE.
  9. O tópico dizia que o script era para 8.5/4... function onTargetTile(cid, position) position.stackpos = 255 local corpse = getThingFromPos(position) if(corpse.uid == 0 or not isCorpse(corpse.uid) or not isMoveable(corpse.uid) or getCreatureSkullType(cid) == SKULL_BLACK) then return false end doRemoveItem(corpse.uid) doConvinceCreature(cid, doCreateMonster("Summoned Betrayed Wraith", position, false)) doSendMagicEffect(position, CONST_ME_MAGIC_BLUE) return true end local area, combat = createCombatArea(AREA_SQUARE1X1), createCombatObject() setCombatArea(combat, area) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile") function onCastSpell(cid, var) return doCombat(cid, combat, var) end <instant name="Summon Betrayed Wraith" words="sumonar betrayed wraith" lvl="120" mana="500" prem="0" exhaustion="4000" needlearn="0" event="script" value="Betrayed Wraith.lua"> <vocation id="9"/> <vocation id="10"/> </instant>
  10. Mechainy

    Chest Q Teleporta

    Só mudar a POS, storagevalue, item que vai dar e o nome. config = { pos = {x=1000, y=500, z=7}, itemid = 1000, storagevalue = 500, itemname = "magic plate armor" } function onUse(cid, item, frompos, item2, topos) if item.uid == config.storagevalue then queststatus = getPlayerStorageValue(cid,config.storagevalue) if queststatus == -1 then doPlayerSendTextMessage(cid,22,"You have found a " .. config.itemname .. ".") doPlayerAddItem(cid,config.itemid,1) setPlayerStorageValue(cid,config.storagevalue,1) doTeleportThing(cid,config.pos) else doPlayerSendTextMessage(cid,22,"It is empty.") end else return 0 end return 1 end Se não pegar testa esse aqui: local pos = {x=1000, y=500, z=7} function onUse(cid, item, frompos, item2, topos) if item.uid == 500 then queststatus = getPlayerStorageValue(cid,500) if queststatus == -1 then doPlayerSendTextMessage(cid,22,"You have found a magic plate armor.") doPlayerAddItem(cid,1000,1) setPlayerStorageValue(cid,500,1) doTeleportThing(cid, pos) else doPlayerSendTextMessage(cid,22,"It is empty.") end else return 0 end return 1 end
  11. É só mudar: doRemoveItem(item.uid) Para: doRemoveItem(item.uid,2) local evo = { ["Seel"] = "Dewgong", } function onUse(cid, item, fromPosition, itemEx, toPosition) if isMonster(itemEx.uid) and getCreatureMaster(itemEx.uid) == cid then local monster = getCreatureName(itemEx.uid) if evo[monster] then local health, maxHealth = getCreatureHealth(itemEx.uid), getCreatureMaxHealth(itemEx.uid) doRemoveCreature(itemEx.uid) doRemoveItem(item.uid,2) local summon = doCreateMonster(evo[monster], toPosition) doConvinceCreature(cid, summon) doCreatureAddHealth(summon, health-maxHealth) return TRUE end end return TRUE end
  12. Mechainy

    Pbot

    Boa Man tb concordo com vc Cara se isso fosse 'ripping' a CipSoft ja tinha feito alguma coisa. Só não é probidio OTServers pois tem só as ideias da CipSoft, os programas, arquivos, etc... são tudo próprios. -- É apenas um mapa sim mais, mais está nas regras, então é ripping. Tem os créditos mais você não teve a autorização de postar o mapa.
  13. Não precisa, eu uso este config.lua -- The Forgotten Server Config -- Account manager accountManager = "yes" namelockManager = "yes" newPlayerChooseVoc = "no" newPlayerSpawnPosX = 95 newPlayerSpawnPosY = 117 newPlayerSpawnPosZ = 7 newPlayerTownId = 1 newPlayerLevel = 1 newPlayerMagicLevel = 0 generateAccountNumber = "no" -- Banishments notationsToBan = 3 warningsToFinalBan = 4 warningsToDeletion = 5 banLength = 7 * 24 * 60 * 60 finalBanLength = 30 * 24 * 60 * 60 ipBanishmentLength = 1 * 24 * 60 * 60 broadcastBanishments = "yes" killsToBan = 5 maxViolationCommentSize = 200 autoBanishUnknownBytes = "no" -- Battle -- NOTE: loginProtectionPeriod is the famous Tibia anti-magebomb system. -- deathLostPercent set to nil enables manual mode. -- showHealingDamageForMonsters inheritates from showHealingDamage. worldType = "pvp" protectionLevel = 1 pvpTileIgnoreLevelAndVocationProtection = "yes" killsToRedSkull = 3 pzLocked = 60 * 1000 criticalHitChance = 7 criticalHitMultiplier = 1 displayCriticalHitNotify = "no" removeWeaponAmmunition = "yes" removeWeaponCharges = "yes" removeRuneCharges = "yes" timeToDecreaseFrags = 24 * 60 * 60 * 1000 whiteSkullTime = 15 * 60 * 1000 noDamageToSameLookfeet = "no" experienceByKillingPlayers = "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 -- Connection config worldId = 0 ip = "127.0.0.1" loginPort = 7171 gamePort = 7172 adminPort = 7171 statusPort = 7171 loginTries = 10 retryTimeout = 5 * 1000 loginTimeout = 60 * 1000 maxPlayers = 1000 motd = "Welcome to the Forgotten Server!" displayOnOrOffAtCharlist = "no" onePlayerOnlinePerAccount = "yes" allowClones = 0 serverName = "Forgotten" loginMessage = "Welcome to the Forgotten Server!" statusTimeout = 5 * 60 * 1000 replaceKickOnLogin = "yes" forceSlowConnectionsToDisconnect = "no" loginOnlyWithLoginServer = "no" premiumPlayerSkipWaitList = "no" -- 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 = "theforgottenserver" sqlFile = "forgottenserver.s3db" sqlKeepAlive = 0 mysqlReadTimeout = 10 mysqlWriteTImeout = 10 passwordType = "plain" -- Deathlist deathListEnabled = "yes" maxDeathRecords = 5 -- Guilds ingameGuildManagement = "yes" levelToFormGuild = 8 premiumDaysToFormGuild = 0 guildNameMinLength = 4 guildNameMaxLength = 20 -- Highscores highscoreDisplayPlayers = 15 updateHighscoresAfterMinutes = 60 -- Houses buyableAndSellableHouses = "yes" houseNeedPremium = "yes" bedsRequirePremium = "yes" levelToBuyHouse = 1 housesPerAccount = 0 houseRentAsPrice = "no" housePriceAsRent = "no" housePriceEachSquare = 1000 houseRentPeriod = "never" -- Item usage timeBetweenActions = 200 timeBetweenExActions = 1000 checkCorpseOwner = "yes" hotkeyAimbotEnabled = "yes" maximumDoorLevel = 500 -- Map -- NOTE: storeTrash costs more memory, but will perform alot faster cleaning. -- useHouseDataStorage usage may be found at README. mapName = "forgotten" mapAuthor = "Komic" randomizeTiles = "yes" useHouseDataStorage = "no" storeTrash = "yes" cleanProtectedZones = "yes" -- Startup defaultPriority = "high" niceLevel = 5 coresUsed = "-1" optimizeDatabaseAtStartup = "yes" removePremiumOnInit = "yes" confirmOutdatedVersion = "yes" -- Muted buffer maxMessageBuffer = 4 bufferMutedOnSpellFailure = "no" -- Miscellaneous dataDirectory = "data/" kickIdlePlayerAfterMinutes = 15 allowChangeOutfit = "yes" allowChangeColors = "yes" allowChangeAddons = "yes" disableOutfitsForPrivilegedPlayers = "no" bankSystem = "yes" saveGlobalStorage = "yes" ghostModeInvisibleEffect = "no" displaySkillLevelOnAdvance = "no" spellNameInsteadOfWords = "no" emoteSpells = "no" expireReportsAfterReads = 1 promptExceptionTracerErrorBox = "yes" storePlayerDirection = "no" playerQueryDeepness = 2 -- Premium-related freePremium = "no" premiumForPromotion = "yes" -- Blessings -- NOTE: blessingReduction* regards items/containers loss. -- eachBlessReduction is how much each bless reduces the experience/magic/skills loss. blessingsOnlyPremium = "yes" blessingReductionBase = 30 blessingReductionDecreament = 5 eachBlessReduction = 8 -- Rates -- NOTE: experienceStages configuration is located in data/XML/stages.xml. experienceStages = "no" rateExperience = 5.0 rateSkill = 3.0 rateMagic = 3.0 rateLoot = 2.0 rateSpawn = 1 -- Stamina rateStaminaLoss = 1 rateStaminaGain = 1000 / 3 rateStaminaThresholdGain = 4 staminaRatingLimitTop = 41 * 60 staminaRatingLimitBottom = 14 * 60 rateStaminaAboveNormal = 1.5 rateStaminaUnderNormal = 0.5 staminaThresholdOnlyPremium = "yes" -- Party -- NOTE: experienceShareLevelDifference is float number. -- experienceShareLevelDifference is highestLevel * value experienceShareRadiusX = 30 experienceShareRadiusY = 30 experienceShareRadiusZ = 1 experienceShareLevelDifference = 2 / 3 extraPartyExperienceLimit = 20 extraPartyExperiencePercent = 5 -- 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 = "no" globalSaveHour = 8 shutdownAtGlobalSave = "yes" cleanMapAtGlobalSave = "no" -- Spawns deSpawnRange = 2 deSpawnRadius = 50 -- Summons maxPlayerSummons = 2 teleportAllSummons = "no" teleportPlayerSummons = "no" -- Status ownerName = "" ownerEmail = "@otland.net" url = "http://otland.net/" location = "Europe" displayGamemastersWithOnlineCommand = "no" -- Logs -- NOTE: This kind of logging does not work in GUI version. adminLogsEnabled = "no" displayPlayersLogging = "yes" prefixChannelLogs = "" runeFile = "" outLogName = "" errorLogName = "" truncateLogsOnStartup = "no"
  14. Deve ter algo assim: doPlayerRemoveItem ou doRemoveItem Se tiver remova essa linha
  15. Cara os NPCs estão bugados mesmo, eu ja arrumei alguns bugs no meu server, talvez eu posto aqui no XTibia.
  16. As janelas ficaram boas, só não gostei do caixão de múmia :S
  17. Mechainy

    Death

    Tipo do script: Death Protocolo (versão do Tibia): 8.60 Servidor utilizado: The Forgotten Server Nível de experiência: inciante Adicionais/Informações: Queria que quando o player morresse iria aparecer aquele espirito verde (se não souber não precisa por, só deixe a função) e que não aparecesse o corpo do player.
  18. Underwater não tem muito oque colocar =D Ficou bom.
  19. Vá em data/globalevents/globalevents.xml e exclui essa linha: <globalevent name="info" interval="900" script="info.lua"/>
  20. Mechainy

    Guild Balance

    Tipo do script: Guild Balance Protocolo (versão do Tibia): 8.60 ou 8.54 (é tudo igual) Servidor utilizado: The Forgotten Server Nível de experiência: Iniciante? Adicionais/Informações: Criei uma tabela em guilds chamada balance e tentei usar isso: (SELECT `balance` FROM `guilds` WHERE `id` = " .. id .. "") Mais não funcionou =X É como se fosse o comando !q só que invés de mostrar o dinheiro do player mostrar o da guild. Rep+ para quem ajudar. Tentei usar esse script: config = { db = db.getResult("SELECT `balance` FROM `guilds` WHERE `id` = " .. id .. "") } function onSay(cid, words, param, channel) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your guild have " .. config.db .. "gps.") return true end
  21. A internet nunca pode cair, se cair você tem que atualizar o ip la no programa do no-ip. Coloque o global save (config.lua) e coloque um re-starter (não sei se chama isso mesmo). Dai o server irá cair e salvará as contas e etc... e o re-starter irá iniciar de volta. Acho que assim deve funcionar '-' No config.lua deve estar escrito assim: -- 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 = 8 globalSaveMinute = 0 shutdownAtGlobalSave = true cleanMapAtGlobalSave = false Mude: globalSaveEnabled = false Para: globalSaveEnabled = true É a única solução que eu sei =/ Deve ter outras melhores mais eu desconheço.
  22. Colocando ip fixo. Tutorial: http://www.xtibia.com/forum/topic/132503-atualizado-criando-otserv-ip-fixo-sqlitestudio-e-colocando-otserv-online/ Leia só a parte do ip fixo.
  • Quem Está Navegando   0 membros estão online

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