• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Damage Types,onStatsChange,doTargetCombatHealth

komar17

New Member
Joined
Apr 7, 2010
Messages
4
Reaction score
0
Hello i need help with this functions. I wat know how add more damage types(COMBATS) because on tfs 0.3.6 i can add only 15 damage types but i need add 20+.:mad: So so its other way to add more damage types like GRASS_GAMAGE or WATER_GAMAGE? Its way to use onStatsChange and doTargetCobtatHealth to "make" more damage types? Or its way to dont use damage types to hit with like Water type spell or grass? :|
 
Need c++ edit for that, is hard

you can use "DROWN_DAMAGE" like water damage, and are other unnamed damage, i think you can use like grass
 
Last edited:
yes i know i can change this
Damage Types:
Lua Code:

COMBAT_NONE = 0
COMBAT_PHYSICALDAMAGE = 1
COMBAT_ENERGYDAMAGE = 2
COMBAT_EARTHDAMAGE = 4
COMBAT_POISONDAMAGE = 4
COMBAT_FIREDAMAGE = 8
COMBAT_UNDEFINEDDAMAGE = 16
COMBAT_LIFEDRAIN = 32
COMBAT_MANADRAIN = 64
COMBAT_HEALING = 128
COMBAT_DROWNDAMAGE = 256
COMBAT_ICEDAMAGE = 512
COMBAT_HOLYDAMAGE = 1024
COMBAT_DEATHDAMAGE = 2048

for other damage but i still need add 5 more :| and i know its hard c++ so i need help
 
PHP:
COMBAT_NONE = 0
COMBAT_PHYSICALDAMAGE = 1
COMBAT_ENERGYDAMAGE = 2
COMBAT_EARTHDAMAGE = 4
COMBAT_POISONDAMAGE = 4
COMBAT_FIREDAMAGE = 8
COMBAT_UNDEFINEDDAMAGE = 16
COMBAT_LIFEDRAIN = 32
COMBAT_MANADRAIN = 64
COMBAT_HEALING = 128
COMBAT_DROWNDAMAGE = 256
COMBAT_ICEDAMAGE = 512
COMBAT_HOLYDAMAGE = 1024
COMBAT_DEATHDAMAGE = 2048
COMBAT_WATERDAMAGE = 4096
COMBAT_GRASSDAMAGE = 8192
COMBAT_ANYDAMAGE = 16384

And in const.h, combat.cpp, creature.cpp, enums.h, game.cpp, items.cpp, monsters.cpp, tools.cpp and vocations.cpp and outfits.cpp add your new damage types.
 
Back
Top