GraWork 852 Posted October 14, 2023 Share Posted October 14, 2023 Spoiler ActorInstanceBattle.cpp Add hozzá az importokhoz: #include <unordered_set> Keress rá: bool CActorInstance::CanAttack() {} Add hozzá bool BOSS_NO_MOVE_WHEN_ATTACK(unsigned int vnum) { const std::unordered_set<unsigned int> BOSS_VNUMS = { 191, 192, 193, 194, 491, 492, 493, 494, 591, 691 }; return BOSS_VNUMS.find(vnum) != BOSS_VNUMS.end(); } Keress rá: bool CActorInstance::__CanPushDestActor(CActorInstance& rkActorDst) { Add hozzá: if (NO_MOVE_WHEN_ATTACK(rkActorDst.GetRace())) return false; 1 Quote Link to post Share on other sites
Pisti95 3,550 Posted January 6 Share Posted January 6 Aki nem szeretné vnum alapján beírni az összes Boss-t, itt a megoldás a mob_protoban lévő Rank oszlop lekérdezésére. ActorInstanceBattle.cpp Spoiler Fájl elején meghívjuk a fájlt. Hidden Content Give reaction to this post to see the hidden content. Rákeresel erre: Hidden Content Give reaction to this post to see the hidden content. Alá írod ezt: Hidden Content Give reaction to this post to see the hidden content. Pisti95 10 2 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.