Jump to content

Effect Exp Pet


Recommended Posts

  • Premium

Open
char_battle.cpp

to->PointChange(POINT_EXP, iExp, true);


    from->CreateFly(FLY_EXP, to);



Under

for (CPetSystem::TPetActorMap::iterator iter = to->GetPetSystem()->m_petActorMap.begin();iter != to->GetPetSystem()->m_petActorMap.end(); ++iter)


            if(CPetActor* petActor = iter->second)
                if(petActor->IsSummoned())
                    from->CreateFly(FLY_SP_MEDIUM, petActor->GetCharacter())


Open
PetSystem.h

private:



    TPetActorMap    m_petActorMap;


Change to

public

:
    TPetActorMap    m_petActorMap;
private:


FLY_SP_MEDIUM Can change effects

List Effects

    FLY_NONE,

    FLY_EXP,

    FLY_HP_MEDIUM,

    FLY_HP_BIG,

    FLY_SP_SMALL,

    FLY_SP_MEDIUM,

    FLY_SP_BIG,

    FLY_FIREWORK1,

    FLY_FIREWORK2,

    FLY_FIREWORK3,

    FLY_FIREWORK4,

    FLY_FIREWORK5,

    FLY_FIREWORK6,

    FLY_FIREWORK_CHRISTMAS,

    FLY_CHAIN_LIGHTNING,

    FLY_HP_SMALL,

    FLY_SKILL_MUYEONG,

eb0df652d4cb2c2egen.png


It is not my job.
I just share

.T4Ump <3

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 2


 

Link to comment
Share on other sites

  • 3 months later...



-----------------------------

Got the error, sometimes I'm wondering about my own stupidness! :D



char_battle.cpp :
1902947d14.png

 

PetSystem.h :

49e75a3f05.png

Putty :

char_battle.cpp: In member function 'void CHARACTER::Reward(bool)':
char_battle.cpp:775: warning: suggest explicit braces to avoid ambiguous 'else'
compile char_horse.cpp
char_battle.cpp: In function 'void GiveExp(CHARACTER*, CHARACTER*, int)':
char_battle.cpp:2504: error: 'struct CPetSystem::TPetActorMap' has not been declared
char_battle.cpp:2504: error: expected `;' before 'iter'
char_battle.cpp:2504: error: 'iter' was not declared in this scope
char_battle.cpp:2504: error: invalid use of incomplete type 'struct CPetSystem'
char.h:18: error: forward declaration of 'struct CPetSystem'
char_battle.cpp:2506: error: 'CPetActor' was not declared in this scope
char_battle.cpp:2506: error: 'petActor' was not declared in this scope
char_battle.cpp:2510: error: expected `;' before '{' token
char_battle.cpp:3657: error: expected `}' at end of input
../../../Extern/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePairs::GetValue(const char*, T&) const [with T = std::string]':
../../../Extern/include/cryptopp/cryptlib.h:277:   instantiated from here
../../../Extern/include/cryptopp/cryptlib.h:264: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../../Extern/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePairs::GetValue(const char*, T&) const [with T = int]':
../../../Extern/include/cryptopp/cryptlib.h:283:   instantiated from here
../../../Extern/include/cryptopp/cryptlib.h:264: warning: dereferencing type-punned pointer will break strict-aliasing rules
char_battle.cpp: At global scope:
char_battle.cpp:2338: warning: 'void GiveExp(CHARACTER*, CHARACTER*, int)' defined but not used
Makefile:119: recipe for target 'OBJDIR/char_battle.o' failed
gmake[1]: *** [OBJDIR/char_battle.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: Leaving directory '/root/workspace/Server/game/src'
Makefile:60: recipe for target 'all' failed
gmake: *** [all] Error 2

 

 

When I put "#include PetSystem.h" to the file "char_battle.cpp" the Error with " 'CPetActor' was not declared " is fixed.

But the second 1 I don't know how to fix.

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 4 months later...

help pls

 

compile char_battle.cpp
char_battle.cpp: In function 'void GiveExp(CHARACTER*, CHARACTER*, int)':
char_battle.cpp:2512: error: 'struct CPetSystem::TPetActorMap' has not been declared
char_battle.cpp:2512: error: expected `;' before 'iter'
char_battle.cpp:2512: error: 'iter' was not declared in this scope
char_battle.cpp:2512: error: invalid use of incomplete type 'struct CPetSystem'
char.h:18: error: forward declaration of 'struct CPetSystem'
char_battle.cpp:2513: error: 'CPetActor' was not declared in this scope
char_battle.cpp:2513: error: 'petActor' was not declared in this scope
gmake: *** [OBJDIR/char_battle.o] Error 1

 

Link to comment
Share on other sites

  • 2 years later...

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.