hamiltonstar 0 Posted August 29, 2019 Boas cyber-gamers eu queria saber como adiconar, não ao PVP dentro do MAPA VIP. Exemplo para jogadores dos três reinos não atacar um ao outro. Agradeço a todos Obrigado <3 Share this post Link to post Share on other sites
0 Karbust 1,143 Posted August 29, 2019 Ficheiro battle.cpp Na função: bool battle_is_attackable(LPCHARACTER ch, LPCHARACTER victim) Adicionar isto no início: switch(ch->GetMapIndex()) { case <map_id>: { if (victim->IsPC() && ch->IsPC()) return false; } } Share this post Link to post Share on other sites
0 hamiltonstar 0 Posted August 29, 2019 @Karbust onde eu boto o index do mapa que eu quero bloquear o pvp? switch(ch->GetMapIndex()) { case <map_id>:101 (Exemplo) ? { if (victim->IsPC() && ch->IsPC()) return false; } } Share this post Link to post Share on other sites
0 Karbust 1,143 Posted August 29, 2019 Hmmm, talvez onde eu pus <map_id>, não achas? Share this post Link to post Share on other sites
0 hamiltonstar 0 Posted August 29, 2019 (edited) 4 horas atrás, Karbust disse: Hmmm, talvez onde eu pus <map_id>, não achas? Boas deu error aqui. https://ibb.co/dmcWgZ6 Edited August 29, 2019 by hamiltonstar (see edit history) Share this post Link to post Share on other sites
0 Dynamic Things 963 Posted August 30, 2019 Não querendo ser mau nem nada do género.. mas há limites... bool battle_is_attackable(LPCHARACTER ch, LPCHARACTER victim) { switch(ch->GetMapIndex()) { case 200: { if (victim->IsPC() && ch->IsPC()) return false; } } [...] } Share this post Link to post Share on other sites
Boas cyber-gamers
eu queria saber como adiconar, não ao PVP dentro do MAPA VIP.
Exemplo para jogadores dos três reinos não atacar um ao outro.
Agradeço a todos Obrigado <3
Share this post
Link to post
Share on other sites