Tony Araujo 282 Postado Abril 12, 2015 Share Postado Abril 12, 2015 (editado) [C++] Pokemon Ghost System Fala galera da Eks, hoje eu venho postar pra vocês um conteúdo que particularmente eu acho muito bom. Esse sistema faz com que o pokemon cuja o nome seja "Gastly, Haunter ou Gengar" (é possível adicionar mais pokemons), passe por dentro das paredes. Instalação: Vá em creature.cpp, e procure por void Creature::getPathSearchParams(const Creature* creature, FindPathParams& fpp) const { fpp.fullPathSearch = !hasFollowPath; E abaixo adicione: if(creature->isPlayerSummon()) { if(!creature->getMaster()->hasCondition(CONDITION_INFIGHT)) { if(creature->getName() == "Gengar") fpp.clearSight = false; if(creature->getName() == "Haunter") fpp.clearSight = false; if(creature->getName() == "Gastly") fpp.clearSight = false; } } Espero que façam bom uso Créditos: Tony Araújo (OrochiElf) Editado Abril 12, 2015 por OrochiElf Link para o comentário https://xtibia.com/forum/topic/232980-c-pokemon-ghost-system/ Compartilhar em outros sites More sharing options...
Krono 128 Postado Abril 12, 2015 Share Postado Abril 12, 2015 Muito bom! Gostaria de saber se está se especializando em pokemons? Tem muitos bons scripts. Mais uma vez obrigado pelo conteudo, espero muito+ de voce pois ja conheço o seu potencial de outros foruns. Link para o comentário https://xtibia.com/forum/topic/232980-c-pokemon-ghost-system/#findComment-1645547 Compartilhar em outros sites More sharing options...
Tony Araujo 282 Postado Abril 12, 2015 Autor Share Postado Abril 12, 2015 Eu estou desenvolvendo um servidor, que a ideologia principal é trazer o antigo svke de volta Logo mais eu faço um tópico sobre ele Link para o comentário https://xtibia.com/forum/topic/232980-c-pokemon-ghost-system/#findComment-1645584 Compartilhar em outros sites More sharing options...
alanmtd 14 Postado Agosto 25, 2015 Share Postado Agosto 25, 2015 (editado) Desculpe reviver o tópico. Oi orochi queria pedir sua ajuda. Você criou um código pra sourcer para Pokemon. Eu queria saber se é possível trocar isso para um player de tal vocation estiver usando um x item. Ele possa passar pela parede. em paredes configuraveis. Queria que tivesse um código pra adicionar na sourcer mais que seja configurado em um script. Mais se não der pode ser pela sourcer msm. Não entendo muito de sourcer to tentando aprender. Mais isso daria certo? if(creature->getVocation()) { if(!creature->getMaster()->hasCondition(CONDITION_INFIGHT)) { if(creature->getVocation() == "Obito") fpp.clearSight = false; } } Pode me ajudar? Editado Agosto 25, 2015 por alanmtd1 Link para o comentário https://xtibia.com/forum/topic/232980-c-pokemon-ghost-system/#findComment-1666521 Compartilhar em outros sites More sharing options...
zipter98 1102 Postado Agosto 25, 2015 Share Postado Agosto 25, 2015 if(Player* player = static_cast<Player*>(creature)) { if(player->getVocationId() == VOCATION_ID && !hasCondition(CONDITION_INFIGHT)) // Troque VOCATION_ID pela vocação do Obito. fpp.clearSight = false; } Link para o comentário https://xtibia.com/forum/topic/232980-c-pokemon-ghost-system/#findComment-1666551 Compartilhar em outros sites More sharing options...
alanmtd 14 Postado Agosto 26, 2015 Share Postado Agosto 26, 2015 (editado) Isso se a vocação óbito estiver em infight ele pode atravessar qualquer parede? Eu queria colocar somente algumas para serem atravessadas.se não fica ruim. Queria que fosse configurada em uma script normal e que só da pra ele fazer isso se ele tiver um item com ele configurável. É possível? Editado Agosto 26, 2015 por alanmtd1 Link para o comentário https://xtibia.com/forum/topic/232980-c-pokemon-ghost-system/#findComment-1666611 Compartilhar em outros sites More sharing options...
lucashgas 53 Postado Janeiro 9, 2016 Share Postado Janeiro 9, 2016 Desculpa reviver o tópico, mas como ficaria ao invés de usar o nome usar o outfit do player/monstro atravessar as paredes? Link para o comentário https://xtibia.com/forum/topic/232980-c-pokemon-ghost-system/#findComment-1680548 Compartilhar em outros sites More sharing options...
Luga03 333 Postado Janeiro 20, 2016 Share Postado Janeiro 20, 2016 (editado) if(Player* player = static_cast<Player*>(creature)) { if(player->getVocationId() == VOCATION_ID && !hasCondition(CONDITION_INFIGHT)) // Troque VOCATION_ID pela vocação do Obito. fpp.clearSight = false; } Iai gambada, estou com uma dúvida, quando usei está função acima que o zipeter adaptou, ela deu este erro: https://gyazo.com/b11c08c2ac032d7bb75ffe411b68a314 Ta ai a função com a modificação do Zipter: void Creature::getPathSearchParams(const Creature*, FindPathParams& fpp) const { fpp.fullPathSearch = !hasFollowPath; if(Player* player = static_cast<Player*>(creature)) { if(player->getVocationId() == 1 && !hasCondition(CONDITION_INFIGHT)) // Troque VOCATION_ID pela vocação do Obito. fpp.clearSight = false; } fpp.clearSight = true; fpp.maxSearchDist = 12; fpp.minTargetDist = fpp.maxTargetDist = 1; } Teria também como fazer para tipo, eu configurar as vocações que poderam passar pela parede, no config.lua? Ex: GhostVocations = {1, 2, 3, 4...} Editado Janeiro 20, 2016 por Drazyn1291 Link para o comentário https://xtibia.com/forum/topic/232980-c-pokemon-ghost-system/#findComment-1682480 Compartilhar em outros sites More sharing options...
KaboFlow 54 Postado Março 12, 2021 Share Postado Março 12, 2021 Em 11/04/2015 em 22:09, Tony Araujo disse: [C++] Pokemon Ghost System Fala galera da Eks, hoje eu venho postar pra vocês um conteúdo que particularmente eu acho muito bom. Esse sistema faz com que o pokemon cuja o nome seja "Gastly, Haunter ou Gengar" (é possível adicionar mais pokemons), passe por dentro das paredes. Instalação: Vá em creature.cpp, e procure por void Creature::getPathSearchParams(const Creature* creature, FindPathParams& fpp) const { fpp.fullPathSearch = !hasFollowPath; E abaixo adicione: if(creature->isPlayerSummon()) { if(!creature->getMaster()->hasCondition(CONDITION_INFIGHT)) { if(creature->getName() == "Gengar") fpp.clearSight = false; if(creature->getName() == "Haunter") fpp.clearSight = false; if(creature->getName() == "Gastly") fpp.clearSight = false; } } Espero que façam bom uso http://www.tibiaking.com/forum/public/style_emoticons/default/smile.png Créditos: Tony Araújo (OrochiElf) tentando em base PokeXtibia e nao da Link para o comentário https://xtibia.com/forum/topic/232980-c-pokemon-ghost-system/#findComment-1764697 Compartilhar em outros sites More sharing options...
Posts Recomendados