Ir para conteúdo

poko360

Membro
  • Registro em

  • Última visita

Tudo que poko360 postou

  1. ou amigo, n teria como fazer que nem eu coloquei a foto que eu botei? é porque tipo, no meu ot nao é 1 ponto = 1 real, 1 ponto é outro preço.... dai se eu colocasse selecionando os pontos eu escolheria tipo 4 preços pra comprar tlgd? :s
  2. Eu só achei a alavanca que remove 1 item e adiciona 1 item, nao to conseguindo adicionar pra remover 2 items, alguem ajuda pf?
  3. dai se eu botar o meu email o pagamento vai set direcionado pra minha conta do pagseguro/paypal?
  4. Eu tenho uma potion que multiplica exp, queria saber se alguem pode adicionar uma linha que configure o level que o player pode usar a potion, obrigado desde ja function onUse(cid, item, frompos, item2, topos) local pausa = 30*60*1000 -- (1000 = 1 segundos) Tempo que o script durará local texto = "Você dobrou sua Experiencia por 30 minutos" -- Texto que irá receber ao usar a potion. textofinal = "Acabou o potion de Experiencia." -- Texto que irá receber quando o efeito da potion acabar. local exp = 2 -- O quanto que você quer que dobre sua experiencia, por exemplo 2 é 2x as rates do seu server. expfinal = 1 --Não mude, isso é para a experiencia voltar ao normal. local limitedeuso = 49015 local tempo = 30*60*1000 -- 1000 = 1s então 1000 vezes 60 vezes 30 = 30 minutos local textofinal1 = "Você já esta sob efeito da pot de experiência espere o efeito acabar." local seuitem = 12505 -- seu item que dará double exp local efeito1 = 53 -- efeito que ficara com o char por meia hora local efeito2 = 14 -- efeito que acontecera no momento que usar a pot --fim da parte configuravel não mecha se nao tiver conhecimento de scripting local timeEffect = 1801 -- tempo em segundos que o efeito vai apareceer no player, 31 = 30 segundos. sempre coloque 1 segundo a mais. function effect() if isPlayer(cid) then local pos = getCreaturePosition(cid) doSendMagicEffect(pos, efeito1) end end if item.itemid == seuitem and (getPlayerStorageValue(cid, limitedeuso) - os.time() <= 0) then doRemoveItem(item.uid,1) doPlayerSetExperienceRate(cid,exp) doSendMagicEffect(frompos,efeito2) setPlayerStorageValue(cid, limitedeuso, os.time() + 1800) doPlayerSendTextMessage(cid,22,texto) addEvent(potion,pausa,cid) a = 1 while a ~= timeEffect do addEvent(effect, a * 1000) a = a + 1 end elseif item.itemid == seuitem and (getPlayerStorageValue(cid, limitedeuso) - os.time() > 0) then doPlayerSendTextMessage(cid,22,textofinal1) end return true end function potion(cid) doPlayerSetExperienceRate(cid,expfinal) doPlayerSendTextMessage(cid,22,textofinal) end
  5. nao amigo, voce nao entendeu, meu ot nao é mysql, ele é Sqlite, só que eu vendo a vip no meu ot manualmente tlgd? ai quando o cara preenche o nome dele no pagseguro exemplo: "eduardo nascimento" ai como eu vo saber quem é eduardo nascimento no meu server? ai eu queria muda esse campo pra o cara preenche o nick do char dele no server pra ficar mais facil a entrega de pontos tlgd?
  6. Como criar um botão no pagseguro onde se bota o nome do char no botão e seleciona a quantidade (tudo no site do ot) (eu vi isso em outro otserver, queria saber se alguem pode ensinar) pagseguro botao.bmp
  7. tipo, no meu ot o comando "/start" ele inicia o evento do trono (tudo configuravel) só que tem um problema, eu tenho que ta on pra executar o comando queria saber se tem algum globalevent que executa um comando desse ( no meu server tem 3 eventos executado pelo ADM) dai eu botaria tipo: evento do trono as 10h da manha, ai 10h da manha o global event dava o comando "/start" sozinho se alguem souber pf ajuda, aquele REP+
  8. @Absolute, VPS 3GB RAM (LGV Host) Windows 2008 @lucasmacaca, Ja abri com 4 diferentes, acredito que nao seja o distro =/ @Natanael Beckman, - - Include the Advanced NPC System dofile(getDataDir() .. 'npc/lib/npcsystem/npcsystem.lua') function selfIdle() following = false attacking = false selfAttackCreature(0) target = 0 end function selfSayChannel(cid, message) return selfSay(message, cid, false) end function selfMoveToCreature(id) if(not id or id == 0) then return end local t = getCreaturePosition(id) if(not t.x or t.x == nil) then return end selfMoveTo(t.x, t.y, t.z) return end function getNpcDistanceToCreature(id) if(not id or id == 0) then selfIdle() return nil end local c = getCreaturePosition(id) if(not c.x or c.x == 0) then return nil end local s = getCreaturePosition(getNpcId()) if(not s.x or s.x == 0 or s.z ~= c.z) then return nil end return math.max(math.abs(s.x - c.x), math.abs(s.y - c.y)) end function doMessageCheck(message, keyword) if(type(keyword) == "table") then return table.isStrIn(keyword, message) end local a, b = message:lower():find(keyword:lower()) if(a ~= nil and b ~= nil) then return true end return false end function doNpcSellItem(cid, itemid, amount, subType, ignoreCap, inBackpacks, backpack) local amount = amount or 1 local subType = subType or 1 local ignoreCap = ignoreCap and true or false local item = 0 if(isItemStackable(itemid)) then item = doCreateItemEx(itemid, amount) if(doPlayerAddItemEx(cid, item, ignoreCap) ~= RETURNVALUE_NOERROR) then return 0, 0 end return amount, 0 end local a = 0 if(inBackpacks) then local container = doCreateItemEx(backpack, 1) local b = 1 for i = 1, amount do item = doAddContainerItem(container, itemid, subType) if(itemid == ITEM_PARCEL) then doAddContainerItem(item, ITEM_LABEL) end if(isInArray({(getContainerCapById(backpack) * b), amount}, i)) then if(doPlayerAddItemEx(cid, container, ignoreCap) ~= RETURNVALUE_NOERROR) then b = b - 1 break end a = i if(amount > i) then container = doCreateItemEx(backpack, 1) b = b + 1 end end end return a, b end for i = 1, amount do item = doCreateItemEx(itemid, subType) if(itemid == ITEM_PARCEL) then doAddContainerItem(item, ITEM_LABEL) end if(doPlayerAddItemEx(cid, item, ignoreCap) ~= RETURNVALUE_NOERROR) then break end a = i end return a, 0 end function doRemoveItemIdFromPos (id, n, position) local thing = getThingFromPos({x = position.x, y = position.y, z = position.z, stackpos = 1}) if(thing.itemid == id) then doRemoveItem(thing.uid, n) return true end return false end function getNpcName() return getCreatureName(getNpcId()) end function getNpcPos() return getCreaturePosition(getNpcId()) end function selfGetPosition() local t = getNpcPos() return t.x, t.y, t.z end msgcontains = doMessageCheck moveToPosition = selfMoveTo moveToCreature = selfMoveToCreature selfMoveToPosition = selfMoveTo selfGotoIdle = selfIdle isPlayerPremiumCallback = isPremium doPosRemoveItem = doRemoveItemIdFromPos doNpcBuyItem = doPlayerRemoveItem doNpcSetCreatureFocus = selfFocus getNpcCid = getNpcId getDistanceTo = getNpcDistanceTo getDistanceToCreature = getNpcDistanceToCreature Config - The Forgotten Server Config -- Account manager accountManager = "yes" namelockManager = "no" newPlayerChooseVoc = "yes" newPlayerSpawnPosX = 63 newPlayerSpawnPosY = 198 newPlayerSpawnPosZ = 7 newPlayerTownId = 1 newPlayerLevel = 10 newPlayerMagicLevel = 0 generateAccountNumber = "no" -- 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 = 2 * 24 * 60 * 60 blackSkullLength = 3 * 24 * 60 * 60 dailyFragsToRedSkull = 10 weeklyFragsToRedSkull = 10000 monthlyFragsToRedSkull = 100000 dailyFragsToBlackSkull = dailyFragsToRedSkull weeklyFragsToBlackSkull = weeklyFragsToRedSkull monthlyFragsToBlackSkull = monthlyFragsToRedSkull dailyFragsToBanishment = dailyFragsToRedSkull weeklyFragsToBanishment = weeklyFragsToRedSkull monthlyFragsToBanishment = monthlyFragsToRedSkull blackSkulledDeathHealth = 100 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 = 3 warningsToFinalBan = 4 warningsToDeletion = 5 banLength = 30 * 24 * 60 * 60 killsBanLength = 1 * 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 = 1 pvpTileIgnoreLevelAndVocationProtection = true pzLocked = 30 * 1000 huntingDuration = 60 * 1000 criticalHitChance = 100 criticalHitMultiplier = 1 displayCriticalHitNotify = true removeWeaponAmmunition = false removeWeaponCharges = false removeRuneCharges = "no" whiteSkullTime = 1 * 60 * 1000 noDamageToSameLookfeet = false showHealingDamage = true showHealingDamageForMonsters = false fieldOwnershipDuration = 5 * 1000 stopAttackingAtExit = false oldConditionAccuracy = false loginProtectionPeriod = 10 * 1000 deathLostPercent = 10 stairhopDelay = 0 * 0 pushCreatureDelay = 1 * 1000 deathContainerId = 1987 gainExperienceColor = 215 addManaSpentInPvPZone = true squareColor = 0 allowFightback = true healthHealingColor = 35 manaHealingColor = 191 -- Connection config worldId = 0 ip = "holiday-sv1.servegame.com" bindOnlyConfiguredIpAddress = false loginPort = 7171 gamePort = 7172 adminPort = 7171 statusPort = 7171 loginTries = 8 retryTimeout = 1 * 1000 loginTimeout = 60 * 1000 maxPlayers = 200 motd = "Bem vindo" displayOnOrOffAtCharlist = false onePlayerOnlinePerAccount = true allowClones = false serverName = "24h" loginMessage = "bem vindo." statusTimeout = 1 * 60 * 1000 replaceKickOnLogin = true forceSlowConnectionsToDisconnect = false loginOnlyWithLoginServer = false premiumPlayerSkipWaitList = false -- 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 = "Alissow" sqlFile = "schemas+Database/Alissow.s3db" sqlKeepAlive = 0 mysqlReadTimeout = 10 mysqlWriteTimeout = 10 encryptionType = "plain" -- Deathlist deathListEnabled = true deathListRequiredTime = 1 * 60 * 1000 deathAssistCount = 19 maxDeathRecords = 5 -- Guilds ingameGuildManagement = true levelToFormGuild = 8 premiumDaysToFormGuild = 0 guildNameMinLength = 4 guildNameMaxLength = 20 -- Highscores highscoreDisplayPlayers = 100 updateHighscoresAfterMinutes = 2 -- Houses buyableAndSellableHouses = true houseNeedPremium = false bedsRequirePremium = false levelToBuyHouse = 1 housesPerAccount = 0 houseRentAsPrice = false housePriceAsRent = false housePriceEachSquare = 100000 houseRentPeriod = "never" houseCleanOld = 0 guildHalls = false -- Item usage timeBetweenActions = 200 timeBetweenExActions = 1000 checkCorpseOwner = true hotkeyAimbotEnabled = true maximumDoorLevel = 40000 -- Map -- NOTE: storeTrash costs more memory, but will perform alot faster cleaning. -- useHouseDataStorage usage may be found at README. mapName = "Baiak Yurots" mapAuthor = "Baiak Lula" randomizeTiles = true useHouseDataStorage = false storeTrash = true cleanProtectedZones = true mailboxDisabledTowns = "-1" -- Startup -- 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" optimizeDatabaseAtStartup = true removePremiumOnInit = true confirmOutdatedVersion = false -- Muted buffer maxMessageBuffer = 10 bufferMutedOnSpellFailure = false -- Miscellaneous -- NOTE: promptExceptionTracerErrorBox works only with precompiled support feature, -- called "exception tracer" (__EXCEPTION_TRACER__ flag). -- monsterLootMessage 0 to disable, 1 - only party, 2 - only player, 3 - party or player (like Tibia's) dataDirectory = "data/" allowChangeOutfit = true allowChangeColors = true allowChangeAddons = true disableOutfitsForPrivilegedPlayers = false bankSystem = true saveGlobalStorage = true displaySkillLevelOnAdvance = false spellNameInsteadOfWords = false emoteSpells = true promptExceptionTracerErrorBox = true storePlayerDirection = false monsterLootMessage = 2 monsterLootMessageType = 25 separateViplistPerCharacter = false addonsOnlyPremium = false -- Ghost mode ghostModeInvisibleEffect = true ghostModeSpellEffects = true -- Limits idleWarningTime = 559 * 60 * 1000 idleKickTime = 600 * 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 = false blessingReductionBase = 30 blessingReductionDecreament = 5 eachBlessReduction = 8 -- Rates -- NOTE: experienceStages configuration is located in data/XML/stages.xml. -- rateExperienceFromPlayers 0 to disable. experienceStages = "yes" rateExperience = 5000 rateExperienceFromPlayers = 0 rateSkill = 500 rateMagic = 300 rateLoot = 10 rateSpawn = 4 -- Monster rates rateMonsterHealth = 1.2 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 = 0 rateStaminaGain = 3000 rateStaminaThresholdGain = 12000 staminaRatingLimitTop = 40 * 60 staminaRatingLimitBottom = 14 * 60 rateStaminaAboveNormal = 2.0 rateStaminaUnderNormal = 0.5 staminaThresholdOnlyPremium = true -- Party -- NOTE: experienceShareLevelDifference is float number. -- experienceShareLevelDifference is highestLevel * value experienceShareRadiusX = 30 experienceShareRadiusY = 30 experienceShareRadiusZ = 1 experienceShareLevelDifference = 2 / 3 extraPartyExperienceLimit = 20 extraPartyExperiencePercent = 5 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 = 8 shutdownAtGlobalSave = true cleanMapAtGlobalSave = false -- Spawns deSpawnRange = 2 deSpawnRadius = 50 -- Summons maxPlayerSummons = 1 teleportAllSummons = true teleportPlayerSummons = false -- Status ownerName = "{GOD} Bryan" ownerEmail = "@otland.net" url = "http://otland.net/" location = "Europe" 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
  9. eu abro meu ot de boa e depois de um tempo ele trava mt que desloga o char ( mas o distro nao fecha e nem da relatorio de erros ) ja tentei tirar o npc das backpacks ( pra nao dar aqueles lags quando compram muitas) ja revisei as actions do meu ot ja revisei os movements js revisei os creaturescript e nada... continua caindo o incrivel eh que quando dei /closeserver ( durante 3 horas ) o server nao caiu, dai quando dei /openserver depois de 15 min o ot caiu, eu acho que tem a ver com algum player bugado ou alguma coisa que ele faz que caia o ot. alguem que ja passou por isso pode ajudar? ( nao aparece nada no distro, apenas trava o server )
  10. é só colocar NO-PVP tile no mapa editor, onde fica o zombie event, dai quem usar magic wall qualquer monstro ou player passa por cima, espero ter ajudado =D
  11. Tenho um VPS windows 2008 abrindo um baiak, só que da relatorio de erros todos os dias eu nunca mexi no linux unbutu , se eu mudar meu sistema operacional para unbutu e passar os arquivos do otserver ele irá funcionar? obrigado desde ja (quero mudar pra unbutu pra parar de cair o server, da relatorio de erros toda hora)
  12. obrigado amigo, mas meu sistema operacional do VPS é windows 2008, esta opção só encontrei no meu Windows XP =/ edit: aparece isso no error (não aparece nada no distro) Assinatura do problema: Nome do Evento de Problema: BEX Nome do Aplicativo: Servidor.exe Versão do Aplicativo: 3.1.0.0 Carimbo de Data/Hora do Aplicativo: 4c48bd52 Nome do Módulo de Falhas: StackHash_0a9e Versão do Módulo de Falhas: 0.0.0.0 Carimbo de Data/Hora do Módulo de Falhas: 00000000 Deslocamento de Exceção: 00000400 Código de Exceção: c0000005 Dados de Exceção: 00000008 Versão do sistema operacional: 6.1.7601.2.1.0.274.10 Identificação da Localidade: 1046 Informações Adicionais 1: 0a9e Informações Adicionais 2: 0a9e372d3b4ad19135b953a78882e789 Informações Adicionais 3: 0a9e Informações Adicionais 4: 0a9e372d3b4ad19135b953a78882e789
  13. tenho um dedicado de 3GB na lgv host e meu server continua dando relatorio de erros, (64 bits) ajuda pf
  14. tem como gastar soul points ? tipo eu gasto 100 soul points e fica ativada por 10 minutos, tem como?
  15. http://www.tibiaking.com/forum/topic/33509-staff-que-ataca-por-magic-level-script-pf/
  16. Segue o link abaixo do distro de porcentagem http://www.4shared.com/rar/cjrL3FjZba/TheForgottenServer-console__2_.html?cau2=403tNull&ua=WINDOWS 1 - baixe 2 - exatraia 3 - copie pra sua pasta 4 - abra com esse distro =]
  17. no meu ot, as rates são altas, um player com skill 180 da utito tempo ela vai pra 7 (depois do skill 255 ela zera) onde fica essa parte na source? pode ser editavel pra mostrar o skill real? tipo 255+7 = 263 <- queria que mostrasse essa skill, eu tenho a souce comigo mas nao sei configurar quase 95% dela , só queria saber se tem como configurar essa parte, obrigado
  18. movements.xml <movevent type="StepIn" actionid="9999" event="script" value="premium tile.lua"/> premium tile.lua function onStepIn(cid, item, position, fromPosition) local Denied = "Voce nao é Premium" -- mensagem que deseja que aparece quando não for premiun local Welcome = "Bem vindo a uma area Premium." if isPremium(cid) == false then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, Denied) doTeleportThing(cid, fromPosition, true) doSendMagicEffect(position,13) return TRUE end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, Welcome) doSendMagicEffect(position,14) return TRUE end
  19. ae , funcionou perfeito! obrigado mano xD
  20. no caso, eu com ml 156 pra passar pro 157 vai ser tipo 130% (nao sei se voce me entendeu) ex: 1 % = 1 de mana gasta eu uso exura aumenta 25% certo? com 4 exura eu upo de ML pro 156 ai do 156 pro 157 precisa de tipo 5 exuras que no caso seria 125% (130% pra passar pro proximo nivel) seria isso?

Informação Importante

Confirmação de Termo