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

Solved How should i add new spells effects and shoot types?

shass

Banned User
Joined
Dec 3, 2017
Messages
67
Reaction score
6
Hello Otland


Well im stuck into this. I know that i need to edit const.h and tools.cpp
at const.h i have more spells than in the alphabet how do i break this limit?
this is a problem for me at tools.cpp i have no trouble

Code:
enum MagicEffectClasses {
    NM_ME_DRAW_BLOOD       = 0x00,
    NM_ME_LOSE_ENERGY      = 0x01,
    NM_ME_PUFF             = 0x02,
    NM_ME_BLOCKHIT         = 0x03,
    NM_ME_EXPLOSION_AREA   = 0x04,
    NM_ME_EXPLOSION_DAMAGE = 0x05,
    NM_ME_FIRE_AREA        = 0x06,
    NM_ME_YELLOW_RINGS     = 0x07,
    NM_ME_POISON_RINGS     = 0x08,
    NM_ME_HIT_AREA         = 0x09,
    NM_ME_TELEPORT         = 0x0A, //10
    NM_ME_ENERGY_DAMAGE    = 0x0B, //11
    NM_ME_MAGIC_ENERGY     = 0x0C, //12
    NM_ME_MAGIC_BLOOD      = 0x0D, //13
    NM_ME_MAGIC_POISON     = 0x0E, //14
    NM_ME_HITBY_FIRE       = 0x0F, //15
    NM_ME_POISON           = 0x10, //16
    NM_ME_MORT_AREA        = 0x11, //17
    NM_ME_SOUND_GREEN      = 0x12, //18
    NM_ME_SOUND_RED        = 0x13, //19
    NM_ME_POISON_AREA      = 0x14, //20
    NM_ME_SOUND_YELLOW     = 0x15, //21
    NM_ME_SOUND_PURPLE     = 0x16, //22
    NM_ME_SOUND_BLUE       = 0x17, //23
    NM_ME_SOUND_WHITE      = 0x18, //24
    NM_ME_ICEATTACK        = 0x19,
    NM_ME_HOLYDAMAGE       = 0x20,
    NM_ME_GROUNDSHAKER     = 0x21,
    NM_ME_ICEAREA          = 0x22,
    NM_ME_ICETORNADO       = 0x23,
    NM_ME_STONES           = 0x24,
    NM_ME_SMALLPLANTS      = 0x25,
    NM_ME_CARNIPHILA       = 0x26,
    NM_ME_HOLYAREA         = 0x27,
    NM_ME_BIGPLANTS        = 0x28,
    NM_ME_PLANTATTACK      = 0x29,
    NM_ME_PURPLEATTACK     = 0x30,
    NM_ME_GREENENERGY      = 0x31,
    NM_ME_BIGCLOUDS        = 0x32,

    //for internal use, dont send to client
    NM_ME_NONE             = 0xFF,
    NM_ME_UNK              = 0xFFFF
};

enum ShootType_t {
    NM_SHOOT_SPEAR          = 0x00,
    NM_SHOOT_BOLT           = 0x01,
    NM_SHOOT_ARROW          = 0x02,
    NM_SHOOT_FIRE           = 0x03,
    NM_SHOOT_ENERGY         = 0x04,
    NM_SHOOT_POISONARROW    = 0x05,
    NM_SHOOT_BURSTARROW     = 0x06,
    NM_SHOOT_THROWINGSTAR   = 0x07,
    NM_SHOOT_THROWINGKNIFE  = 0x08,
    NM_SHOOT_SMALLSTONE     = 0x09,
    NM_SHOOT_DEATH          = 0x0A, //10
    NM_SHOOT_LARGEROCK      = 0x0B, //11
    NM_SHOOT_SNOWBALL       = 0x0C, //12
    NM_SHOOT_POWERBOLT      = 0x0D, //13
    NM_SHOOT_POISONFIELD    = 0x0E, //14
    NM_SHOOT_POISONFIELD    = 0x0F,
    NM_SHOOT_BLESSEDARROW   = 0x0G,
    NM_SHOOT_DEMONICARROW   = 0x0H,
    NM_SHOOT_ENERGYARROW    = 0x0I,
    NM_SHOOT_BLESSEDBOLT    = 0x0J,
    NM_SHOOT_ZAOANSPEAR     = 0x0k,
    NM_SHOOT_NORDICSPEAR    = 0x0L,
    NM_SHOOT_PATINAARROW    = 0x0M,
    NM_SHOOT_SPINALARROW    = 0x0N,
    NM_SHOOT_PATINABOLT     = 0x0P,
    NM_SHOOT_CALCOCITABOLT  = 0x0Q,
    NM_SHOOT_SMALLHOLY      = 0x0R,
    NM_SHOOT_SMALLICE       = 0x0S,
    NM_SHOOT_ICE            = 0x0T,
    NM_SHOOT_INFERNALBOLT   = 0x0U,
    NM_SHOOT_HUNTINGSPEAR   = 0x0V,
    NM_SHOOT_ENCHANTEDSPEAR = 30,
    NM_SHOOT_ROYALSPEAR     = 31,
    NM_SHOOT_ETHEREALSPEAR  = 32,
    NM_SHOOT_WHIRLWINDSWORD = 33,
    NM_SHOOT_WHIRLWINDAXE   = 34,
    NM_SHOOT_WHIRLWINDCLUB  = 35,


help me pls and thanks in advance
 
xd you cannot do it in this way.

Usable letters are from A to F

so if you have 0x0F the next one will be 0x11 to 0x1F.
then for 2... 0x21 to 0x2F etc
 
@Peonso ? any idea about how to to add holy damage (color yellow) how do i do that?
i've added holy effect i need to add the yellow damage now help pls
 
@Peonso ? any idea about how to to add holy damage (color yellow) how do i do that?
i've added holy effect i need to add the yellow damage now help pls
You will need to create the whole new holy damage thing in sources, I have no idea of everything needed, but the color of the damage numbers would be defined here TwistedScorpio/OTHire
 
Back
Top