tibera
Active Member
need help to inject eternal winter base sabrehaven "exevo gran mas frigo"
i inject in Tools.cpp
MagicEffectNames magicEffectNames[] = {
{"redspark", CONST_ME_DRAWBLOOD},
{"bluebubble", CONST_ME_LOSEENERGY},
{"poff", CONST_ME_POFF},
{"yellowspark", CONST_ME_BLOCKHIT},
{"explosionarea", CONST_ME_EXPLOSIONAREA},
{"explosion", CONST_ME_EXPLOSIONHIT},
{"firearea", CONST_ME_FIREAREA},
{"yellowbubble", CONST_ME_YELLOW_RINGS},
{"greenbubble", CONST_ME_GREEN_RINGS},
{"blackspark", CONST_ME_HITAREA},
{"teleport", CONST_ME_TELEPORT},
{"energy", CONST_ME_ENERGYHIT},
{"blueshimmer", CONST_ME_MAGIC_BLUE},
{"redshimmer", CONST_ME_MAGIC_RED},
{"greenshimmer", CONST_ME_MAGIC_GREEN},
{"fire", CONST_ME_HITBYFIRE},
{"greenspark", CONST_ME_HITBYPOISON},
{"mortarea", CONST_ME_MORTAREA},
{"greennote", CONST_ME_SOUND_GREEN},
{"rednote", CONST_ME_SOUND_RED},
{"poison", CONST_ME_POISONAREA},
{"yellownote", CONST_ME_SOUND_YELLOW},
{"purplenote", CONST_ME_SOUND_PURPLE},
{"bluenote", CONST_ME_SOUND_BLUE},
{"whitenote", CONST_ME_SOUND_WHITE},
{"bubbles", CONST_ME_BUBBLES},
{"dice", CONST_ME_CRAPS},
{"giftwraps", CONST_ME_GIFT_WRAPS},
{"yellowfirework", CONST_ME_FIREWORK_YELLOW},
{"redfirework", CONST_ME_FIREWORK_RED},
{"bluefirework", CONST_ME_FIREWORK_BLUE},
{"stun", CONST_ME_STUN},
{"sleep", CONST_ME_SLEEP},
{"watercreature", CONST_ME_WATERCREATURE},
{"groundshaker", CONST_ME_GROUNDSHAKER},
{"icetornado", CONST_ME_ICETORNADO},
};
CombatTypeNames combatTypeNames[] = {
{"physical", COMBAT_PHYSICALDAMAGE},
{"energy", COMBAT_ENERGYDAMAGE},
{"drown", COMBAT_DROWNDAMAGE},
{"earth", COMBAT_EARTHDAMAGE},
{"poison", COMBAT_EARTHDAMAGE},
{"fire", COMBAT_FIREDAMAGE},
{"undefined", COMBAT_UNDEFINEDDAMAGE},
{"lifedrain", COMBAT_LIFEDRAIN},
{"manadrain", COMBAT_MANADRAIN},
{"healing", COMBAT_HEALING},
{"icedamage", COMBAT_ICEDAMAGE},
};
in const.h
enum MagicEffectClasses : uint8_t {
CONST_ME_NONE,
CONST_ME_ICETORNADO = 36,
};
but i got error in compiling
[ 74%] Building CXX object CMakeFiles/tfs.dir/src/tools.cpp.o
/home/pro/sabre/src/tools.cpp:728:17: error: ‘COMBAT_ICEDAMAGE’ was not declared in this scope; did you mean ‘COMBAT_FIREDAMAGE’?
728 | {"icedamage", COMBAT_ICEDAMAGE},
| ^~~~~~~~~~~~~~~~
| COMBAT_FIREDAMAGE
make[2]: * [CMakeFiles/tfs.dir/build.make:1029: CMakeFiles/tfs.dir/src/tools.cpp.o] Erro 1
make[1]: * [CMakeFiles/Makefile2:180: CMakeFiles/tfs.dir/all] Erro 2
make: * [Makefile:84: all] Erro 2
i inject in Tools.cpp
MagicEffectNames magicEffectNames[] = {
{"redspark", CONST_ME_DRAWBLOOD},
{"bluebubble", CONST_ME_LOSEENERGY},
{"poff", CONST_ME_POFF},
{"yellowspark", CONST_ME_BLOCKHIT},
{"explosionarea", CONST_ME_EXPLOSIONAREA},
{"explosion", CONST_ME_EXPLOSIONHIT},
{"firearea", CONST_ME_FIREAREA},
{"yellowbubble", CONST_ME_YELLOW_RINGS},
{"greenbubble", CONST_ME_GREEN_RINGS},
{"blackspark", CONST_ME_HITAREA},
{"teleport", CONST_ME_TELEPORT},
{"energy", CONST_ME_ENERGYHIT},
{"blueshimmer", CONST_ME_MAGIC_BLUE},
{"redshimmer", CONST_ME_MAGIC_RED},
{"greenshimmer", CONST_ME_MAGIC_GREEN},
{"fire", CONST_ME_HITBYFIRE},
{"greenspark", CONST_ME_HITBYPOISON},
{"mortarea", CONST_ME_MORTAREA},
{"greennote", CONST_ME_SOUND_GREEN},
{"rednote", CONST_ME_SOUND_RED},
{"poison", CONST_ME_POISONAREA},
{"yellownote", CONST_ME_SOUND_YELLOW},
{"purplenote", CONST_ME_SOUND_PURPLE},
{"bluenote", CONST_ME_SOUND_BLUE},
{"whitenote", CONST_ME_SOUND_WHITE},
{"bubbles", CONST_ME_BUBBLES},
{"dice", CONST_ME_CRAPS},
{"giftwraps", CONST_ME_GIFT_WRAPS},
{"yellowfirework", CONST_ME_FIREWORK_YELLOW},
{"redfirework", CONST_ME_FIREWORK_RED},
{"bluefirework", CONST_ME_FIREWORK_BLUE},
{"stun", CONST_ME_STUN},
{"sleep", CONST_ME_SLEEP},
{"watercreature", CONST_ME_WATERCREATURE},
{"groundshaker", CONST_ME_GROUNDSHAKER},
{"icetornado", CONST_ME_ICETORNADO},
};
CombatTypeNames combatTypeNames[] = {
{"physical", COMBAT_PHYSICALDAMAGE},
{"energy", COMBAT_ENERGYDAMAGE},
{"drown", COMBAT_DROWNDAMAGE},
{"earth", COMBAT_EARTHDAMAGE},
{"poison", COMBAT_EARTHDAMAGE},
{"fire", COMBAT_FIREDAMAGE},
{"undefined", COMBAT_UNDEFINEDDAMAGE},
{"lifedrain", COMBAT_LIFEDRAIN},
{"manadrain", COMBAT_MANADRAIN},
{"healing", COMBAT_HEALING},
{"icedamage", COMBAT_ICEDAMAGE},
};
in const.h
enum MagicEffectClasses : uint8_t {
CONST_ME_NONE,
CONST_ME_ICETORNADO = 36,
};
but i got error in compiling
[ 74%] Building CXX object CMakeFiles/tfs.dir/src/tools.cpp.o
/home/pro/sabre/src/tools.cpp:728:17: error: ‘COMBAT_ICEDAMAGE’ was not declared in this scope; did you mean ‘COMBAT_FIREDAMAGE’?
728 | {"icedamage", COMBAT_ICEDAMAGE},
| ^~~~~~~~~~~~~~~~
| COMBAT_FIREDAMAGE
make[2]: * [CMakeFiles/tfs.dir/build.make:1029: CMakeFiles/tfs.dir/src/tools.cpp.o] Erro 1
make[1]: * [CMakeFiles/Makefile2:180: CMakeFiles/tfs.dir/all] Erro 2
make: * [Makefile:84: all] Erro 2