Moin,
wenn ihr Skills mehr Damage an Monstern geben wollt (Stampfer z.B.), also einen Damage-Multiplier gegen Monster, dann folgt diesem Guide.
Server Source
Code: game/char_skill.cpp
- //search: if (pkChrVictim->IsNPC()) -> should just appear once in struct FuncSplashDamage
- //add:
- #ifdef ENABLE_MONSTER_SKILL_FLAG
- if (IS_SET(m_pkSk->dwFlag, SKILL_FLAG_MONSTER))
- {
- iDam = iDam * 3;
- }
- #endif
- //With this expression we tell the game to deal three times the beforehand calculated damage if the used skill has the flag SKILL_FLAG_MONSTER set, adjust it to your needs
Database
Extend the column setFlag with your new Monster Flag.
Important: the flag has to be set at the same position as defined in game/skill.h
As an example this is what my set looks like
Code
- 'ATTACK','USE_MELEE_DAMAGE','COMPUTE_ATTGRADE','SELFONLY','USE_MAGIC_DAMAGE','USE_HP_AS_COST','COMPUTE_MAGIC_DAMAGE','SPLASH','GIVE_PENALTY','USE_ARROW_DAMAGE','PENETRATE','IGNORE_TARGET_RATING','ATTACK_SLOW','ATTACK_STUN','HP_ABSORB','SP_ABSORB','ATTACK_FIRE_CONT','REMOVE_BAD_AFFECT','REMOVE_GOOD_AFFECT','CRUSH','ATTACK_POISON','TOGGLE','DISABLE_BY_POINT_UP','CRUSH_LONG','WIND','ELEC','FIRE','MONSTER'
Notice the last value.
Next select a skill that has to deal more damage and check the new flag in column setFlag.