HisaoShou 3 Posted May 23, 2017 Share Posted May 23, 2017 I'd like to disable the attack of other empires. Like, players from an empire to not be able to attack you or those from a different empire. I want all empires to be peaceful. Link to comment Share on other sites More sharing options...
HisaoShou 3 Posted May 25, 2017 Author Share Posted May 25, 2017 Bump. Link to comment Share on other sites More sharing options...
HisaoShou 3 Posted May 28, 2017 Author Share Posted May 28, 2017 Bump. Link to comment Share on other sites More sharing options...
HisaoShou 3 Posted May 30, 2017 Author Share Posted May 30, 2017 Bump. I'm pretty sure that there are servers that already has this function (like Alaska Metin2) but I don't know how to do it. Link to comment Share on other sites More sharing options...
Ashok.N 4 Posted May 30, 2017 Share Posted May 30, 2017 Take a look at the NPC features. You can set the target as NPC if it is a different kingdom. Link to comment Share on other sites More sharing options...
HisaoShou 3 Posted May 31, 2017 Author Share Posted May 31, 2017 Acum 10 ore, Ashok.N a spus: Take a look at the NPC features. You can set the target as NPC if it is a different kingdom. NPC features from where? All I know is to edit some things in database and make quests. How can I make kingdoms unable to attack each other even if they're on other's territory? Link to comment Share on other sites More sharing options...
HisaoShou 3 Posted June 2, 2017 Author Share Posted June 2, 2017 Bump. Seriously guys is it that hard to do this? Link to comment Share on other sites More sharing options...
Premium V0iĐ 114 Posted June 2, 2017 Premium Share Posted June 2, 2017 Nope. Just nobody cares this. Learn C plus plus and do it yourself. 2 Link to comment Share on other sites More sharing options...
HisaoShou 3 Posted June 2, 2017 Author Share Posted June 2, 2017 Acum 4 ore, V0iĐ a spus: Nope. Just nobody cares this. Learn C plus plus and do it yourself. So this mean that eveyone who is having a little issue should learn a whole language just for it? I will pass. I'm just doing what everyone else is doing here, asking for help for what we don't know Link to comment Share on other sites More sharing options...
HisaoShou 3 Posted June 5, 2017 Author Share Posted June 5, 2017 Bump. Link to comment Share on other sites More sharing options...
HisaoShou 3 Posted June 8, 2017 Author Share Posted June 8, 2017 Bump. Link to comment Share on other sites More sharing options...
HisaoShou 3 Posted June 12, 2017 Author Share Posted June 12, 2017 Bump. Link to comment Share on other sites More sharing options...
HisaoShou 3 Posted June 16, 2017 Author Share Posted June 16, 2017 Bump. Link to comment Share on other sites More sharing options...
HisaoShou 3 Posted June 19, 2017 Author Share Posted June 19, 2017 Bump. Link to comment Share on other sites More sharing options...
HisaoShou 3 Posted June 23, 2017 Author Share Posted June 23, 2017 Bump. Link to comment Share on other sites More sharing options...
Mandi 2 Posted June 23, 2017 Share Posted June 23, 2017 Open char_battle.cpp and search: CHARACTER::Attack and in this bool function you can put a condition for what do you want. It's so simple, just try harder! This is for your own good. As you see no one doesn't give a sheet for what you want. Link to comment Share on other sites More sharing options...
HisaoShou 3 Posted June 23, 2017 Author Share Posted June 23, 2017 Acum 4 ore, Mandi a spus: Open char_battle.cpp and search: CHARACTER::Attack and in this bool function you can put a condition for what do you want. It's so simple, just try harder! This is for your own good. As you see no one doesn't give a sheet for what you want. This doesn't mean that I should simply give up. I don't know what to edit from there, I need more clues or something. Link to comment Share on other sites More sharing options...
Mandi 2 Posted June 23, 2017 Share Posted June 23, 2017 (edited) You are english? If you are, it's much more simple for you to do that, because it's about logic.. and it's in english language. For the people who doesn't know english it's much more harder. Take a look https://metin2.download/picture/EYQ4zo1To7cOmr1RjjGj268RAok51v3c/.png Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
HisaoShou 3 Posted June 27, 2017 Author Share Posted June 27, 2017 (edited) La 6/23/2017 la 23:01, Mandi a spus: You are english? If you are, it's much more simple for you to do that, because it's about logic.. and it's in english language. For the people who doesn't know english it's much more harder. Take a look https://metin2.download/picture/4877xpvT85q4mt4M47PqNXuL05v7rd28/.png I know english and I also know some C# and javascript, but not C++ Yes, they are alike, but I don't know how to write C++ code for server. And that code from the image should be put in... char.cpp , right? Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Anyone 15 Posted June 27, 2017 Share Posted June 27, 2017 (edited) Do you want that Player A (Shinsoo) can't attack Player B (Jinno) Right? This code looks ok if you are checking what I wrote: https://metin2.download/picture/4877xpvT85q4mt4M47PqNXuL05v7rd28/.png Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
thespeedy 20 Posted June 28, 2017 Share Posted June 28, 2017 (edited) vor 13 Stunden schrieb Anyone: Do you want that Player A (Shinsoo) can't attack Player B (Jinno) Right? This code looks ok if you are checking what I wrote: https://metin2.download/picture/4877xpvT85q4mt4M47PqNXuL05v7rd28/.png and now write in code not screenshot^^ Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Anyone 15 Posted June 28, 2017 Share Posted June 28, 2017 Just now, thespeedy said: and now write in code not screenshot^^ if (GetEmpire() != pkVictim->GetEmpire()) { ChatPacket(CHAT_TYPE_INFO,LC_TEXT("You can't attack player %s because is from another kingdom!"),pkVictim->GetName()); return false; } Link to comment Share on other sites More sharing options...
HisaoShou 3 Posted June 29, 2017 Author Share Posted June 29, 2017 Acum 23 ore, Anyone a spus: if (GetEmpire() != pkVictim->GetEmpire()) { ChatPacket(CHAT_TYPE_INFO,LC_TEXT("You can't attack player %s because is from another kingdom!"),pkVictim->GetName()); return false; } I have a question.... Won't this block attacks from empire war too? Link to comment Share on other sites More sharing options...
Anyone 15 Posted June 29, 2017 Share Posted June 29, 2017 23 minutes ago, HisaoShou said: I have a question.... Won't this block attacks from empire war too? Yes. Just add check of map index Link to comment Share on other sites More sharing options...
HisaoShou 3 Posted June 29, 2017 Author Share Posted June 29, 2017 Acum 1 oră, Anyone a spus: Yes. Just add check of map index I have no ideea how to do this in C++ something like: if (GetEmpire() != pkVictim->GetEmpire()) { ChatPacket(CHAT_TYPE_INFO,LC_TEXT("You can't attack player %s because is from another kingdom!"),pkVictim->GetName()); return false; if HowToCheckMap() == mapId('MapNumber') { return true; } } ? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now