Ir para conteúdo

tataboy67

Membro
  • Registro em

  • Última visita

Tudo que tataboy67 postou

  1. Tibia 8.60 (OLD) (upei no 4shared pois ele faz scan sozinho !) Se não funcionar me avise...
  2. @carlos thiago Existem diversos tipos de vídeo-aulas e tutoriais por ai de como se abrir um servidor. [Windows] Montando OTserver (10.x/1.x) Siga esse tutorial e veja se consegue montar o seu servidor ! Se não conseguir volte e crie um novo tópico para que possamos ajudar !
  3. Olha, isso já aconteceu diversas vezes comigo... Se eu não estou enganado isso é causado por algumas sprites que não estão configuradas no items.otb e no obj biulder ! ( não é certeza, mas é quase certeza ! )
  4. Adicione em (data/creaturescripts/Death_Effect.lua) local effect = { -- EFFECT's que irá causar. 31, 30, 29, } local msg = { -- MSG's em cima do player que morrer. "Lixo", "Owned", "Morreu", } function onKill(cid, target, lastHit) if isPlayer(target) == true then Game.broadcastMessage("[".. getCreatureName(cid) .."] acabou de matar o [" .. getCreatureName(target) .. "]", MESSAGE_EVENT_ADVANCE) target:say(msg[math.random(#msg)], TALKTYPE_ORANGE_1) target:getPosition():sendMagicEffect(effect[math.random(#effect)]) Position(target:getPosition().x, target:getPosition().y + 1, target:getPosition().z):sendMagicEffect(effect[math.random(#effect)]) Position(target:getPosition().x, target:getPosition().y - 1, target:getPosition().z):sendMagicEffect(effect[math.random(#effect)]) Position(target:getPosition().x + 1, target:getPosition().y, target:getPosition().z):sendMagicEffect(effect[math.random(#effect)]) Position(target:getPosition().x - 1, target:getPosition().y, target:getPosition().z):sendMagicEffect(effect[math.random(#effect)]) end return true end Adicione a tag em (data/creaturescripts/creaturescripts.xml) <!-- Death Lua --> <event type="kill" name="Killed" script="Death_Effect.lua"/> Adicione a linha em (data/creaturescripts/others/login.lua) -- vá na linha antes do ultimo return true (Penúltima linha) e adicione a linha: player:registerEvent("Killed") Espero ter respondido !
  5. @Theuszinho Você está seguindo tutoriais? Eu tenho um muito bom: Veja se fez algo errado, qualquer coisa volte aqui que tento te ajudar
  6. Bom amigo, eu vejo aqui que parece que você está adicionando o pokemon errado :x Tente seguir esse tutorial:
  7. Amigo, mande por favor o script de dentro da pasta de Talkactions !
  8. https://github.com/mattyx14/otxserver/blob/otxserv3/path_8_6/data/talkactions/talkactions.xml Opa tudo bem? Então irmão, tem como você baixar 1 OTX desse e tentar começar 1 projeto do 0. Esses OTX's ai possuem scripts basicos para que você possa começar seu projeto do 0. Terá de fazer 1 mapa do 0 e scripts tb !
  9. Tente mudar de : function onTimer() -- para function onTime()
  10. @Maniaco local config = { items = { [1] = {2160, 10}, [2] = {2159, 10} }, level = 100, days = 1 } function onUse(player, item, fromPosition, itemEx, toPosition) check = false if player:getLevel() < config.level then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Voce nao tem level "..config.level..".") return true end local query = db.storeQuery("SELECT `player_ip`, `date` FROM `reward_daily` WHERE `player_ip` = "..player:getIp()) if query ~= false then if result.getDataInt(query, "date") <= os.time() then check = true db:query("UPDATE `reward_daily` SET `date` = ".. os.time()+config.days*24*60*60 .." WHERE `player_ip` = "..player:getIp()) else player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Desculpe, mas voce deve aguardar ate "..os.date("%d %B %Y %X ", result.getDataInt(query, "date")).." para pegar o bau novamente.") return true end else check = true db:query("INSERT INTO `reward_daily` (`player_ip`, `date`) VALUES ('".. player:getIp() .."','".. os.time()+config.days*24*60*60 .."');") -- adiciona na query end if check then for _, table in pairs(config.items) do for i=1, #config.items do player:addItem(table[i]) end end end return true end executa no banco de dados CREATE TABLE reward_daily ( id INT NOT NULL AUTO_INCREMENT, player_ip INTEGER NOT NULL, date INTEGER NOT NULL, PRIMARY KEY ( id ) ); Creditos totais ao @Vodkart ! Parabens ? Pena que ainda não sei fazer nada em database
  11. Opa @Kevin Araujo tudo bem? estou aqui para tentar te dar uma força na parte do site ! Criar site em 6 minutos otserv tibia 8.6 HD Tente seguir o vídeo e ver se consegue arrumar um site legal para você ! Caso não consiga, me marque aqui para que eu possa tentar te ajudar.
  12. tataboy67 postou uma resposta no tópico em Suporte Tibia OTServer
    Olha aqui está batendo 65.535 Distance level. (O máximo) @WaifuThings
  13. marca como melhor resposta para fechar o tópico @DevMorgan
  14. @DevMorgan Funções de interface: Actions function onUse(player, item, fromPosition, target, toPosition, isHotkey) Chatchannels function canJoin(player) function onSpeak(player, type, message) Creaturescripts function onLogin(player) function onLogout(player) function onThink(creature, interval) function onPrepareDeath(creature, killer) function onDeath(creature, corpse, killer, mostDamageKiller, lastHitUnjustified) function onKill(creature, target) function onAdvance(player, skill, oldLevel, newLevel) function onModalWindow(player, modalWindowId, buttonId, choiceId) function onTextEdit(player, item, text) function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) function onManaChange(creature, attacker, manaChange, origin) function onExtendedOpcode(player, opcode, buffer) Globalevents function onThink(interval, lastExecution) function onStartup() function onShutdown() function onRecord(current, old) function onTime() Movements function onStepIn(creature, item, toPosition, fromPosition) function onStepOut(creature, item, toPosition, fromPosition) function onEquip(player, item, slot) function onDeEquip(player, item, slot) function onAddItem(moveitem, tileitem, pos) function onRemoveItem(moveitem, tileitem, pos) Npc function onCreatureAppear(cid) function onCreatureDisappear(cid) function onCreatureSay(cid, type, msg) function onThink(interval, lastExecution) Spells function onCastSpell(creature, variant) Talkactions function onSay(player, words, param) Weapons function onUseWeapon(player, variant) Funções TFS 1.2 (Funciona para o OTX 10.99) TFS 1.2 Functions Espero ter ajudado... Creditos: cbrm (otland) vulcan_ (otland)
  15. tataboy67 postou uma resposta no tópico em Suporte Tibia OTServer
    Ele não consegue conectar com o seu mysql... Recomendo que use o UniServerZ Ele é muito bom e nunca tive problemas com isso.@cadeico Delete todo o seu xampp e instale esse ai ! Funciona igual, e você vai entender como usa logo que abrir pois é facinho !
  16. Eu fiz o teste aqui @Snowsz Mas obrigado pela dica Ele ta funcionando mesmo com o table, mas vou trocar nos próximos scripts !!
  17. ah não sabia kasdaskdaskdas @ADM Mayk on BaiakME mybad '-' eq 0.4 eu n manjo das funções
  18. Irei aderir a ideia e fazer o que o outro amigo lá disse... Verificar se o player com o mesmo IP pegou o bau, se não vai ficar abusivo ! Só espera que estou meio ocupado aqui hehe
  19. Opa galera beleza? Eu vi um cidadão aqui do forum pedindo, e para não reviver o tópico resolvi desenvolver 1 e postar @ADM Mayk on BaiakME Ta ai o script que tu pediu. Crie um arquivo com o nome de Bau_Diario.lua local config = { items = { [1] = {2160, 10}, [2] = {2159, 10} }, level = 100, tempo = 24*60*60, -- 24 horas stoTime = 31402 } function onUse(player, item, fromPosition, itemEx, toPosition) if player:getLevel() >= config.level then if player:getStorageValue(config.stoTime) - os.time() < 0 then player:setStorageValue(config.stoTime, os.time() + config.tempo) for _, table in pairs(config.items) do for i=1, #config.items do player:addItem(table[i]) end end else player:getStorageValue(config.stoTime, 0) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, string.format("Wait: %s.", string.diff(player:getStorageValue(config.stoTime)-os.time()))) end else player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Voce nao tem level "..config.level..".") end end Adicione a TAG em actions.xml <action actionid="22164" script="Bau_Diario.lua"/> Créditos: Eu
  20. Essa parte do player:say não é problema, só não sei qual é o parâmetro de texto que deixa na coloração amarela ! Atualizado o script la em cima, testa.
  21. Opa rapaz beleza? Acabei de montar aqui pra você mas eu não sei qual o nome do parâmetro de mensagem amarela Então resolvi fazer só com as skills ok? local config = { msg_levelup_level = true, msg_levelup_magic = true, msg_levelup_first = true, msg_levelup_club = true, msg_levelup_sword = true, msg_levelup_axe = true, heal = true, save = true, effect = true } function onAdvance(player, skill, oldLevel, newLevel) if skill ~= SKILL_LEVEL and newLevel <= oldLevel and config.msg_levelup_level then if config.effect then player:getPosition():sendMagicEffect(math.random(CONST_ME_FIREWORK_YELLOW, CONST_ME_FIREWORK_BLUE)) player:say('LEVEL UP!', TALKTYPE_MONSTER_SAY) end if config.heal then player:addHealth(player:getMaxHealth()) end if config.save then player:save() end elseif skill ~= SKILL_MAGLEVEL and newLevel <= oldLevel and config.msg_levelup_magic then if config.effect then player:getPosition():sendMagicEffect(math.random(CONST_ME_FIREWORK_YELLOW, CONST_ME_FIREWORK_BLUE)) player:say('+1 Magic!', TALKTYPE_MONSTER_SAY) end if config.heal then player:addHealth(player:getMaxHealth()) end if config.save then player:save() end elseif skill ~= SKILL_FIST and newLevel <= oldLevel and config.msg_levelup_first then if config.effect then player:getPosition():sendMagicEffect(math.random(CONST_ME_FIREWORK_YELLOW, CONST_ME_FIREWORK_BLUE)) player:say('+1 Fist!', TALKTYPE_MONSTER_SAY) end if config.heal then player:addHealth(player:getMaxHealth()) end if config.save then player:save() end elseif skill ~= SKILL_CLUB and newLevel <= oldLevel and config.msg_levelup_club then if config.effect then player:getPosition():sendMagicEffect(math.random(CONST_ME_FIREWORK_YELLOW, CONST_ME_FIREWORK_BLUE)) player:say('+1 Club!', TALKTYPE_MONSTER_SAY) end if config.heal then player:addHealth(player:getMaxHealth()) end if config.save then player:save() end elseif skill ~= SKILL_SWORD and newLevel <= oldLevel and config.msg_levelup_sword then if config.effect then player:getPosition():sendMagicEffect(math.random(CONST_ME_FIREWORK_YELLOW, CONST_ME_FIREWORK_BLUE)) player:say('+1 Sword!', TALKTYPE_MONSTER_SAY) end if config.heal then player:addHealth(player:getMaxHealth()) end if config.save then player:save() end elseif skill ~= SKILL_AXE and newLevel <= oldLevel and config.msg_levelup_axe then if config.effect then player:getPosition():sendMagicEffect(math.random(CONST_ME_FIREWORK_YELLOW, CONST_ME_FIREWORK_BLUE)) player:say('+1 Axe!', TALKTYPE_MONSTER_SAY) end if config.heal then player:addHealth(player:getMaxHealth()) end if config.save then player:save() end end return true end Bom a configuração ali eu adicionei 6, são as 5 skills e mais o levelup normal. Acho que deu pra entender kk OBs: Não testei, por favor faça o teste !
  22. Crie um arquivo em Globalevents/scripts/Texto_TP.lua local config = { positions = { ["ArenaBoss"] = {x = 997, y = 1041, z = 7}, } } function onThink(cid, interval, lastExecution) for text, pos in pairs(config.positions) do doSendAnimatedText(pos, text, math.random(211,212)) end return TRUE end Adicione a TAG em Globalevents: <globalevent name="tpsprincipais" interval="3100" event="script" value="Texto_TP.lua"/> Explicando: local config = { positions = { ["ArenaBoss"] = {x = 997, y = 1041, z = 7}, ["Events"] = {x = 1030, y = 1400, z = 7}, ["Templo"] = {x = 2030, y = 1790, z = 7}, ["DP"] = {x = 4030, y = 1020, z = 7}, ["PVP"] = {x = 2997, y = 1101, z = 7}, ["World"] = {x = 9597, y = 10541, z = 7}, } } -- Só você ir adicionando varias e varias coordenadas aonde quer que fique essa mensagem ! Creditos: @FidelixMonte Link:
  23. Opa boa ideia ! Vou colocar aqui quando eu estiver com um tempinho ^^ . @DevMorgan @Vodkart Script Atualizado !
  24. Opa boa noite rapaziada, tudo bom? Eu estou treinando um pouco scripts e acabei que tendo a ideia de fazer algo relacionado com as Guilds. Então resolvi trazer 1 sistema de Guild Dungeon Lever para mim treinar Estou em fase de treinamento, então por favor, deem dicas e criticas ao sistema ! Obrigado ... Como o sistema funciona? Terá uma alavanca com local para os jogadores de sua Guild ficarem... O jogador que estiver na posição principal e próxima a alavanca irá clicar na alavanca que fará com que todos entrem na Dungeon. Os jogadores terão um tempo "x" para terminar, porém se o tempo acabar, o jogador será teleportado de volta para a posição principal da alavanca (Aonde o jogador clicou). Como configurar o script? local config = { time = 10, -- 1 Second. (1*60 To Minutes) level = 100, -- Level Necessary. dungeonPos = Position(1454, 909, 7), -- Dungeon Pos. needPos = { [1] = Position(1447, 915, 7), -- Position (where the player will click on the lever) and back position. [2] = Position(1449, 914, 7) }, fromPos = {x = 1449, y = 904, z = 7}, -- Position /\ < from the dungeon toPos = {x = 1456, y = 911, z = 7}, -- Position \/ > from the dungeon Storagetime = 39320, -- Storage Time. StorageDay = 39321, -- Storage Day. Timer = 24*60*60 -- To re-enter in the dungeon. (24hours) } time ------------------ Tempo que os jogadores ficarão dentro da Dungeon. level ----------------- Nível que todos precisam ser para entrar. dungeonPos ------ Posição que todos os jogadores serão teleportados. needPos ------------ Posição que os jogadores devem estar para serem teleportados. fromPos ------------- Posição SUPERIOR ESQUERDO da sala. toPos ----------------- Posição INFERIOR DIREITO da sala. Storagetime -------- Não mexer se não souber. StorageDay ----------- Não mexer se não souber. Timer ------------------ Tempo que o jogador terá que esperar para entrar novamente na Dungeon. Sem mais delongas, vamos ao script: Adicione a linha em: (data/actions/actions.xml) <!-- Script GUILD --> <action actionid="29305" script="Dungeon_Guild.lua" /> Adicione a linha em: (data/actions/scripts/Dungeon_Guild.lua) local config = { time = 5, -- 1 Second. (1*60 To Minutes) inside the dungeon. level = 100, -- Level Necessary. dungeonPos = Position(1454, 909, 7), -- Dungeon Pos. needPos = { [1] = Position(1447, 915, 7), -- Position (where the player will click on the lever) and back position. [2] = Position(1449, 914, 7) }, fromPos = {x = 1449, y = 904, z = 7}, -- Position /\ < from the dungeon toPos = {x = 1456, y = 911, z = 7}, -- Position \/ > from the dungeon Storagetime = 39320, -- Storage Time. StorageDay = 39321, -- Storage Day. Timer = 24*60*60 -- To re-enter in the dungeon. (24hrs) } function onUse(player, item, fromPosition, itemEx, toPosition, isHotkey) local guild = player:getGuild() for i = 1, #config.needPos do local playerTile = Tile(config.needPos[i]):getTopCreature() if not playerTile or not playerTile:isPlayer() then player:getPosition():sendMagicEffect(CONST_ME_POFF) player:sendTextMessage(MESSAGE_STATUS_DEFAULT, "You need 2 players and stay on the orange floor.") return true end if not playerTile:getGuild() and not player:getGuild() then player:getPosition():sendMagicEffect(CONST_ME_POFF) return player:sendTextMessage(MESSAGE_STATUS_SMALL, "One of the members does not have guild.") end if playerTile:getLevel() < config.level then player:getPosition():sendMagicEffect(CONST_ME_POFF) return player:sendTextMessage(MESSAGE_STATUS_SMALL, "All the players need to be level "..config.level.." or higher.") end if player:getGuild():getId() ~= playerTile:getGuild():getId() then player:getPosition():sendMagicEffect(CONST_ME_POFF) return player:sendTextMessage(MESSAGE_STATUS_SMALL, "Only players in your guild can join you.") end if player:getStorageValue(config.Storagetime) - os.time() > 0 and playerTile:getStorageValue(config.Storagetime) - os.time() > 0 then player:getPosition():sendMagicEffect(CONST_ME_POFF) return false end if player:getStorageValue(config.StorageDay) - os.time() > 0 and playerTile:getStorageValue(config.StorageDay) - os.time() > 0 then player:getPosition():sendMagicEffect(CONST_ME_POFF) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, string.format("You're in cooldown to enter in a dungeon again. Cooldown: %s.", string.diff(player:getStorageValue(config.StorageDay)-os.time()))) return false end local players = {} for x = config.fromPos.x, config.toPos.x do for y = config.fromPos.y, config.toPos.y do for z = config.fromPos.z, config.toPos.z do local tile = Tile(x, y, z) local creature = tile:getTopCreature() if creature and creature:isPlayer() then players[#players+1] = creature end end end end if #players > 0 then player:getPosition():sendMagicEffect(CONST_ME_POFF) return player:sendTextMessage(MESSAGE_STATUS_SMALL, "Already has a guild inside.") end player:teleportTo(config.dungeonPos) playerTile:teleportTo(config.dungeonPos) playerTile:getPosition():sendMagicEffect(50) addEvent(function() player:teleportTo(config.needPos[i]) playerTile:teleportTo(config.needPos[i]) player:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE) playerTile:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE) player:setStorageValue(config.StorageDay, os.time() + config.Timer) playerTile:setStorageValue(config.StorageDay, os.time() + config.Timer) end, config.time*1000) return false end return true end Créditos: @KotZletY E eu Espero que gostem ? ... Edit* Adicionado Tempo para que você possa entrar novamente na Dungeon: Rep+
  25. -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-Edit* Resolução editada lá em cima ! @Vodkart Obrigado pelo apoio.

Informação Importante

Confirmação de Termo