• 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!

Creatures Advance

Hari Kari

New Member
Joined
Apr 18, 2011
Messages
47
Reaction score
1
What I was wondering was, is it possible to create a script so that creatures hit harder, the higher level you are. So for example if I was level 20 a dragon would do 100 damage to me, but if I was level 50 a dragon would do 200 damage. Don't think I've ever seen this done and what I'm thinking if it could be done it would most likely be through source editing.

I just want to know if this is possible or not.
 
you can use this
Lua:
function onStatsChange(cid, attacker, type, combat, value)
type options are
Code:
STATSCHANGE_HEALTHGAIN = 0
STATSCHANGE_HEALTHLOSS = 1
STATSCHANGE_MANAGAIN = 2
STATSCHANGE_MANALOSS = 3

and combat options are
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
 
Back
Top