Ir para conteúdo

Fir3element

Héroi
  • Registro em

  • Última visita

Tudo que Fir3element postou

  1. Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Aprendizagem OTServ > OTServ > Começando seu Servidor Para: Suporte OTServ > OTServ > Suporte de OTServ Geral
  2. Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Downloads OTServ > OTServ > Utilitários para OTServs Para: Suporte OTServ > OTServ > Suporte de OTServ Geral
  3. Parece certo.
  4. Porque o VIP no script ta configurado como premium. Você tem que mudar o isPremium para a função que checa VIP no seu otserver. if isPlayer(cid) and isPremium(cid) then
  5. É na source, remova essa linha em player.cpp addExhaust(ticks, EXHAUST_HEALING);
  6. local function getGuildMembers(guildName) local n = 0 local players = db.getResult("SELECT `name`, `rank_id` FROM `players` WHERE `rank_id` IN (SELECT `id` FROM `guild_ranks` WHERE `guild_id` = " .. getGuildId(guildName) .. ");") if(players:getID() ~= -1) then repeat n = n + 1 until not players:next() players:free() return n end end function onSay(cid, words, param, channel) local storage = 123456789 local exhaust = 1 -- em segundos local players = 10 -- quantidade de players if (os.time() - getPlayerStorageValue(cid, storage)) >= exhaust then if(getGuildMembers(getPlayerGuildName(cid)) >= players) then for _, pid in ipairs(getPlayersOnline()) do if(getPlayerGuildLevel(pid) == GUILDLEVEL_LEADER) then doPlayerSendTextMessage(pid, MESSAGE_EVENT_ADVANCE, getCreatureName(cid) .. ": " .. param) end end setPlayerStorageValue(cid, storage, os.time()) else doPlayerSendCancel(cid, "Your guild need more players (min: " .. players .. ").") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) end else doPlayerSendCancel(cid, "You need to wait " .. os.time() - getPlayerStorageValue(cid, storage) .. " seconds.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) end return true end
  7. Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Aprendizagem OTServ > OTServ > Começando seu Servidor Para: Suporte OTServ > OTServ > Suporte de OTServ Geral
  8. Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Programação OTServ > OTServ > Tutoriais de Programação Para: Suporte OTServ > OTServ > Suporte de Scripts
  9. function onSay(cid, words, param) local player = Player(cid) if not player:getGroup():getAccess() then return true end local lookType = tonumber(param) if not lookType then lookType = MonsterType(param) and MonsterType(param):getOutfit().lookType if not lookType then player:sendCancelMessage("A monster with that name does not exist.") return false end end if lookType >= 0 and lookType ~= 1 and lookType ~= 135 and lookType ~= 411 and lookType ~= 415 and lookType ~= 424 and (lookType <= 160 or lookType >= 192) and lookType ~= 439 and lookType ~= 440 and lookType ~= 468 and lookType ~= 469 and (lookType < 474 or lookType > 485) and lookType ~= 501 and lookType ~= 518 and lookType ~= 519 and lookType ~= 520 and lookType ~= 524 and lookType ~= 525 and lookType ~= 536 and lookType ~= 543 and lookType ~= 549 and lookType ~= 576 and lookType ~= 581 and lookType ~= 582 and lookType ~= 597 and lookType ~= 598 and lookType ~= 599 and lookType ~= 600 and lookType ~= 616 and lookType ~= 623 and lookType ~= 625 and lookType ~= 636 and lookType ~= 637 and lookType ~= 638 and lookType ~= 639 and lookType ~= 640 and lookType ~= 641 and lookType ~= 642 and lookType ~= 643 and lookType ~= 645 and lookType ~= 646 and lookType ~= 652 and lookType ~= 653 and lookType ~= 654 and lookType ~= 655 and lookType ~= 656 and lookType ~= 657 and lookType ~= 658 and lookType ~= 659 and lookType ~= 660 and lookType ~= 661 and lookType ~= 662 and lookType ~= 663 and lookType ~= 678 and lookType ~= 700 and lookType <= 701 then local playerOutfit = player:getOutfit() playerOutfit.lookType = lookType player:setOutfit(playerOutfit) else player:sendCancelMessage("A look type with that id does not exist.") end return false end
  10. Parabéns, seu tópico de conteúdo foi aprovado! Muito obrigado pela sua contribuição, nós do Tibia King agradecemos. Seu conteúdo com certeza ajudará à muitos outros, você recebeu +1 REP.
  11. http://www.tibiaking.com/forum/topic/55227-talkaction-sistema-de-reset-com-stages-sem-logout/
  12. Quando você clica no monstro e sai arrastando pelo mapa (o certo é colocar um por um) ele dá um bug no Spawntime, é só trocar para 60s nas properties do monstro.
  13. Isso é bug no comando !disband Se quiser o fix: http://www.tibiaking.com/forum/topic/33395-tfs-04-cast/?do=findComment&comment=380399 -- Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Scripting OTServ > OTServ > Sistemas e MODs Para: Suporte OTServ > OTServ > Suporte de Programação
  14. Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Aprendizagem OTServ > OTServ > Começando seu Servidor Para: Suporte OTServ > OTServ > Suporte de OTServ Geral
  15. Scan corrigido: https://www.virustotal.com/pt/file/fce86e78e2d12655ba85ae0eedba0f728ff342756948b90df23d6219f9a75a31/analysis/1452034737/
  16. Logo acima disso deve ter uma tabela ± assim: {"PlayerDeath", "DropLoot", "etc"} É só adicionar mais um: {"PlayerDeath", "DropLoot", "etc", "AutoLoot"} OBS.: se fizer isso não precisa fazer o que te disse no outro post!
  17. Fir3element respondeu ao post em um tópico de Ocrux em Formação de Equipe
    Interessante, mas teria que adicionar muita coisa pra não ficar enjoativo.
  18. hp/mana por % protocolgame.cpp, porcura por: void ProtocolGame::AddPlayerStats(NetworkMessage_ptr msg) { msg->AddByte(0xA0); msg->AddU16(player->getHealth()); msg->AddU16(player->getPlayerInfo(PLAYERINFO_MAXHEALTH)); msg->AddU32(uint32_t(player->getFreeCapacity() * 100)); uint64_t experience = player->getExperience(); if(experience > 0x7FFFFFFF) // client debugs after 2,147,483,647 exp msg->AddU32(0x7FFFFFFF); else msg->AddU32(experience); msg->AddU16(player->getPlayerInfo(PLAYERINFO_LEVEL)); msg->AddByte(player->getPlayerInfo(PLAYERINFO_LEVELPERCENT)); msg->AddU16(player->getPlayerInfo(PLAYERINFO_MANA)); msg->AddU16(player->getPlayerInfo(PLAYERINFO_MAXMANA)); msg->AddByte(player->getPlayerInfo(PLAYERINFO_MAGICLEVEL)); msg->AddByte(player->getPlayerInfo(PLAYERINFO_MAGICLEVELPERCENT)); msg->AddByte(player->getPlayerInfo(PLAYERINFO_SOUL)); msg->AddU16(player->getStaminaMinutes()); } Troca por: void ProtocolGame::AddPlayerStats(NetworkMessage_ptr msg) { msg->AddByte(0xA0); if (player->getPlayerInfo(PLAYERINFO_MAXHEALTH) > 0) { msg->AddU16(uint16_t(player->getHealth() * 100 / player->getPlayerInfo(PLAYERINFO_MAXHEALTH))); msg->AddU16(100); } else { msg->AddU16(0); msg->AddU16(0); } msg->AddU32(uint32_t(player->getFreeCapacity() * 100)); uint64_t experience = player->getExperience(); if(experience > 0x7FFFFFFF) // client debugs after 2,147,483,647 exp msg->AddU32(0x7FFFFFFF); else msg->AddU32(experience); msg->AddU16(player->getPlayerInfo(PLAYERINFO_LEVEL)); msg->AddByte(player->getPlayerInfo(PLAYERINFO_LEVELPERCENT)); if (player->getPlayerInfo(PLAYERINFO_MAXMANA) > 0) { msg->AddU16(player->getPlayerInfo(PLAYERINFO_MANA) * 100 / player->getPlayerInfo(PLAYERINFO_MAXMANA)); msg->AddU16(100); } else { msg->AddU16(0); msg->AddU16(0); } msg->AddByte(player->getPlayerInfo(PLAYERINFO_MAGICLEVEL)); msg->AddByte(player->getPlayerInfo(PLAYERINFO_MAGICLEVELPERCENT)); msg->AddByte(player->getPlayerInfo(PLAYERINFO_SOUL)); msg->AddU16(player->getStaminaMinutes()); }
  19. Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Scripting OTServ > OTServ > Actions e TalkActions Para: Suporte OTServ > OTServ > Suporte de Scripts
  20. Complementando a query do NewCore: ALTER TABLE `players` ADD `cast` TINYINT NOT NULL DEFAULT '0', ADD `castViewers` INT( 11 ) NOT NULL DEFAULT '0', ADD `castDescription` VARCHAR( 255 ) NOT NULL
  21. Ta tentando abrir qual versão? Esse ai ta escrito 780/760 mas é 8.6
  22. É bem chato mas n é impossível, vou tentar aqui.
  23. Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: OTServ > Notícias e OTServ Geral Para: Suporte OTServ > OTServ > Suporte de Mapping
  24. Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: OTServ > Notícias e OTServ Geral Para: Suporte OTServ > OTServ > Suporte de OTServ Geral

Informação Importante

Confirmação de Termo