Jump to content

Főuralkodók elütésének a letíltása


Recommended Posts

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;

 

  • Like 1
Link to post
Share on other sites
  • GraWork changed the title to Főuralkodók elütésének a letíltása
  • 2 months later...

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

 

  • Like 10
  • Thanks 2
  • Haha 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...