• TibiaFace

    Tibiaface | Una comunidad Open Tibia donde encontras : mapas, scripts, Otserver, npc y amigos etc ...

    .
    demo menumenu

    Afiliados



    Votar:

    Spells Effects

    Ver el tema anterior Ver el tema siguiente Ir abajo  Mensaje (Página 1 de 1.)

    1default Spells Effects el Sáb Mar 04, 2017 5:08 pm

    Mi Problema:
    Hola chic@! espero que esten bien.
    Segui estos pasos para crear un Effect
    *Agregue un Effect el cual quedo como "25".(en el dat editor)
    *Abri 000-Constant.lua y lo agregue CONST_ME_MANA_BLUE = 25
    *Luego abri Tools.cpp y agregue la siguiente linea MAGIC_EFFECT_MANA_BLUE
    *Hice lo mismo con conts.h MAGIC_EFFECT_MANA_BLUE = 0x19, //25
    El problema es este:
    Al decir el nombre de la spells, el efecto no sale, pero si hace daño en area.
    Si me salte un paso al agregar el efecto o falta algo por editar haganme saber por favor c:
    Desde luego gracias!
    000-constant:
    NORTH = 0
    EAST = 1
    SOUTH = 2
    WEST = 3
    SOUTHWEST = 4
    SOUTHEAST = 5
    NORTHWEST = 6
    NORTHEAST = 7

    COMBAT_FORMULA_UNDEFINED = 0
    COMBAT_FORMULA_LEVELMAGIC = 1
    COMBAT_FORMULA_SKILL = 2
    COMBAT_FORMULA_DAMAGE = 3

    CONDITION_PARAM_OWNER = 1
    CONDITION_PARAM_TICKS = 2
    CONDITION_PARAM_OUTFIT = 3
    CONDITION_PARAM_HEALTHGAIN = 4
    CONDITION_PARAM_HEALTHTICKS = 5
    CONDITION_PARAM_MANAGAIN = 6
    CONDITION_PARAM_MANATICKS = 7
    CONDITION_PARAM_DELAYED = 8
    CONDITION_PARAM_SPEED = 9
    CONDITION_PARAM_LIGHT_LEVEL = 10
    CONDITION_PARAM_LIGHT_COLOR = 11
    CONDITION_PARAM_SOULGAIN = 12
    CONDITION_PARAM_SOULTICKS = 13
    CONDITION_PARAM_MINVALUE = 14
    CONDITION_PARAM_MAXVALUE = 15
    CONDITION_PARAM_STARTVALUE = 16
    CONDITION_PARAM_TICKINTERVAL = 17
    CONDITION_PARAM_FORCEUPDATE = 18
    CONDITION_PARAM_SKILL_MELEE = 19
    CONDITION_PARAM_SKILL_FIST = 20
    CONDITION_PARAM_SKILL_CLUB = 21
    CONDITION_PARAM_SKILL_SWORD = 22
    CONDITION_PARAM_SKILL_AXE = 23
    CONDITION_PARAM_SKILL_DISTANCE = 24
    CONDITION_PARAM_SKILL_SHIELD = 25
    CONDITION_PARAM_SKILL_FISHING = 26
    CONDITION_PARAM_STAT_MAXHEALTH = 27
    CONDITION_PARAM_STAT_MAXMANA = 28
    CONDITION_PARAM_STAT_SOUL = 29
    CONDITION_PARAM_STAT_MAGICLEVEL = 30
    CONDITION_PARAM_STAT_MAXHEALTHPERCENT = 31
    CONDITION_PARAM_STAT_MAXMANAPERCENT = 32
    CONDITION_PARAM_STAT_SOULPERCENT = 33
    CONDITION_PARAM_STAT_MAGICLEVELPERCENT = 34
    CONDITION_PARAM_SKILL_MELEEPERCENT = 35
    CONDITION_PARAM_SKILL_FISTPERCENT = 36
    CONDITION_PARAM_SKILL_CLUBPERCENT = 37
    CONDITION_PARAM_SKILL_SWORDPERCENT = 38
    CONDITION_PARAM_SKILL_AXEPERCENT = 39
    CONDITION_PARAM_SKILL_DISTANCEPERCENT = 40
    CONDITION_PARAM_SKILL_SHIELDPERCENT = 41
    CONDITION_PARAM_SKILL_FISHINGPERCENT = 42
    CONDITION_PARAM_PERIODICDAMAGE = 43
    CONDITION_PARAM_BUFF = 44
    CONDITION_PARAM_SUBID = 45
    CONDITION_PARAM_FIELD = 46

    COMBAT_PARAM_TYPE = 1
    COMBAT_PARAM_EFFECT = 2
    COMBAT_PARAM_DISTANCEEFFECT = 3
    COMBAT_PARAM_BLOCKSHIELD = 4
    COMBAT_PARAM_BLOCKARMOR = 5
    COMBAT_PARAM_TARGETCASTERORTOPMOST = 6
    COMBAT_PARAM_CREATEITEM = 7
    COMBAT_PARAM_AGGRESSIVE = 8
    COMBAT_PARAM_DISPEL = 9
    COMBAT_PARAM_USECHARGES = 10
    COMBAT_PARAM_TARGETPLAYERSORSUMMONS = 11
    COMBAT_PARAM_DIFFERENTAREADAMAGE = 12
    COMBAT_PARAM_HITEFFECT = 13
    COMBAT_PARAM_HITCOLOR = 14
    COMBAT_PARAM_ELEMENTTYPE = 15
    COMBAT_PARAM_ELEMENTDAMAGE = 16

    CALLBACK_PARAM_LEVELMAGICVALUE = 1
    CALLBACK_PARAM_SKILLVALUE = 2
    CALLBACK_PARAM_TARGETTILE = 3
    CALLBACK_PARAM_TARGETCREATURE = 4

    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

    CONDITION_NONE = 0
    CONDITION_POISON = 1
    CONDITION_FIRE = 2
    CONDITION_ENERGY = 4
    CONDITION_BLEEDING = 8
    CONDITION_HASTE = 16
    CONDITION_PARALYZE = 32
    CONDITION_OUTFIT = 64
    CONDITION_INVISIBLE = 128
    CONDITION_LIGHT = 256
    CONDITION_MANASHIELD = 512
    CONDITION_INFIGHT = 1024
    CONDITION_DRUNK = 2048
    CONDITION_EXHAUST = 4096
    CONDITION_FOOD = 8192
    CONDITION_REGENERATION = 8192
    CONDITION_SOUL = 16384
    CONDITION_DROWN = 32768
    CONDITION_MUTED = 65536
    CONDITION_ATTRIBUTES = 131072
    CONDITION_FREEZING = 262144
    CONDITION_DAZZLED = 524288
    CONDITION_CURSED = 1048576
    CONDITION_PACIFIED = 2097152
    CONDITION_GAMEMASTER = 4194304
    CONDITION_HUNTING = 8388608
    CONDITION_SPELLCOOLDOWN = 16777216

    CONDITIONID_DEFAULT = -1
    CONDITIONID_COMBAT = 0
    CONDITIONID_HEAD = 1
    CONDITIONID_NECKLACE = 2
    CONDITIONID_BACKPACK = 3
    CONDITIONID_ARMOR = 4
    CONDITIONID_RIGHT = 5
    CONDITIONID_LEFT = 6
    CONDITIONID_LEGS = 7
    CONDITIONID_FEET = 8
    CONDITIONID_RING = 9
    CONDITIONID_AMMO = 10
    CONDITIONID_OUTFIT = 11

    EXHAUST_OTHER = 0
    EXHAUST_SPELLGROUP_NONE = 1
    EXHAUST_SPELLGROUP_ATTACK = 2
    EXHAUST_SPELLGROUP_HEALING = 3
    EXHAUST_SPELLGROUP_SUPPORT = 4
    EXHAUST_SPELLGROUP_SPECIAL = 5
    EXHAUST_MELEE = 6

    MUTED_BUFFER = 0
    MUTED_YELL = 1
    MUTED_MAIL = 2
    MUTED_TRADE = 3
    MUTED_TRADE_ROOK = 4

    GAMEMASTER_INVISIBLE = 0
    GAMEMASTER_IGNORE = 1
    GAMEMASTER_TELEPORT = 2

    CONST_SLOT_FIRST = 1
    CONST_SLOT_HEAD = CONST_SLOT_FIRST
    CONST_SLOT_NECKLACE = 2
    CONST_SLOT_BACKPACK = 3
    CONST_SLOT_ARMOR = 4
    CONST_SLOT_RIGHT = 5
    CONST_SLOT_LEFT = 6
    CONST_SLOT_LEGS = 7
    CONST_SLOT_FEET = 8
    CONST_SLOT_RING = 9
    CONST_SLOT_AMMO = 10
    CONST_SLOT_LAST = CONST_SLOT_AMMO

    CONST_ME_DRAWBLOOD = 0
    CONST_ME_LOSEENERGY = 1
    CONST_ME_POFF = 2
    CONST_ME_BLOCKHIT = 3
    CONST_ME_EXPLOSIONAREA = 4
    CONST_ME_EXPLOSIONHIT = 5
    CONST_ME_FIREAREA = 6
    CONST_ME_YELLOW_RINGS = 7
    CONST_ME_GREEN_RINGS = 8
    CONST_ME_HITAREA = 9
    CONST_ME_TELEPORT = 10
    CONST_ME_ENERGYAREA = CONST_ME_TELEPORT
    CONST_ME_ENERGYHIT = 11
    CONST_ME_MAGIC_BLUE = 12
    CONST_ME_MAGIC_RED = 13
    CONST_ME_MAGIC_GREEN = 14
    CONST_ME_HITBYFIRE = 15
    CONST_ME_HITBYPOISON = 16
    CONST_ME_MORTAREA = 17
    CONST_ME_SOUND_GREEN = 18
    CONST_ME_SOUND_RED = 19
    CONST_ME_POISONAREA = 20
    CONST_ME_SOUND_YELLOW = 21
    CONST_ME_SOUND_PURPLE = 22
    CONST_ME_SOUND_BLUE = 23
    CONST_ME_SOUND_WHITE = 24
    CONST_ME_MANABLUE = 25
    CONST_ME_MANAPURPLE = 26
    CONST_ME_MANAYELLOW = 27
    CONST_ME_ICEAREA = 28
    CONST_ME_EARTHAREA = 29
    CONST_ME_LIGHTAREA = 30
    CONST_ME_NONE = 255
    CONST_ME_LAST = CONST_ME_LIGHTAREA

    CONST_ANI_SPEAR = 0
    CONST_ANI_BOLT = 1
    CONST_ANI_ARROW = 2
    CONST_ANI_FIRE = 3
    CONST_ANI_ENERGY = 4
    CONST_ANI_POISONARROW = 5
    CONST_ANI_BURSTARROW = 6
    CONST_ANI_THROWINGSTAR = 7
    CONST_ANI_THROWINGKNIFE = 8
    CONST_ANI_SMALLSTONE = 9
    CONST_ANI_DEATH = 10
    CONST_ANI_SUDDENDEATH = CONST_ANI_DEATH
    CONST_ANI_LARGEROCK = 11
    CONST_ANI_SNOWBALL = 12
    CONST_ANI_POWERBOLT = 13
    CONST_ANI_POISON = 14
    CONST_ANI_ARROWSENTENCE = 15
    CONST_ANI_NONE = 255
    CONST_ANI_LAST = CONST_ANI_ARROWSENTENCE

    TALKTYPE_SAY = 1
    TALKTYPE_WHISPER = 2
    TALKTYPE_YELL = 3
    TALKTYPE_PRIVATE = 4
    TALKTYPE_CHANNEL = 5
    TALKTYPE_RVR_CHANNEL = 6
    TALKTYPE_RVR_ANSWER = 7
    TALKTYPE_RVR_CONTINUE = 8
    TALKTYPE_GAMEMASTER_BROADCAST = 11
    TALKTYPE_GAMEMASTER_CHANNEL = 10
    TALKTYPE_GAMEMASTER_PRIVATE = 11
    TALKTYPE_CHANNEL_HIGHLIGHT = 12
    TALKTYPE_CHANNEL_MANAGEMENT = 13
    TALKTYPE_GAMEMASTER_ANONYMOUS = 14
    TALKTYPE_MONSTER_SAY = 16
    TALKTYPE_MONSTER_YELL = 17

    TALKTYPE_FIRST = TALKTYPE_SAY
    TALKTYPE_LAST = TALKTYPE_GAMEMASTER_ANONYMOUS
    TALKTYPE_MONSTER_FIRST = TALKTYPE_MONSTER_SAY
    TALKTYPE_MONSTER_LAST = TALKTYPE_MONSTER_YELL

    TALKTYPE_TYPES = {
    ["say"] = TALKTYPE_SAY,
    ["whisper"] = TALKTYPE_WHISPER,
    ["yell"] = TALKTYPE_YELL,
    ["private"] = TALKTYPE_PRIVATE,
    ["channel-yellow"] = TALKTYPE_CHANNEL,
    ["rvr-channel"] = TALKTYPE_RVR_CHANNEL,
    ["rvr-answer"] = TALKTYPE_RVR_ANSWER,
    ["rvr-continue"] = TALKTYPE_RVR_CONTINUE,
    ["broadcast"] = TALKTYPE_GAMEMASTER_BROADCAST,
    ["channel-red"] = TALKTYPE_GAMEMASTER_CHANNEL,
    ["private-red"] = TALKTYPE_GAMEMASTER_PRIVATE,
    ["channel-orange"] = TALKTYPE_CHANNEL_HIGHLIGHT,
    ["channel-white"] = TALKTYPE_CHANNEL_MANAGEMENT,
    ["channel-redanonymous"] = TALKTYPE_GAMEMASTER_ANONYMOUS,
    ["monster"] = TALKTYPE_MONSTER_SAY,
    ["monster-yell"] = TALKTYPE_MONSTER_YELL
    }

    MESSAGE_EVENT_ORANGE = 16
    MESSAGE_STATUS_CONSOLE_ORANGE = 17
    MESSAGE_STATUS_WARNING = 18
    MESSAGE_EVENT_ADVANCE = 19
    MESSAGE_EVENT_DEFAULT = 20
    MESSAGE_STATUS_DEFAULT = 21
    MESSAGE_INFO_DESCR = 22
    MESSAGE_STATUS_SMALL = 23
    MESSAGE_STATUS_CONSOLE_BLUE = 24
    MESSAGE_STATUS_CONSOLE_RED = 25

    MESSAGE_FIRST = MESSAGE_EVENT_ORANGE
    MESSAGE_LAST = MESSAGE_STATUS_CONSOLE_RED

    MESSAGE_EVENT_GUILD = MESSAGE_INFO_DESCR
    MESSAGE_PARTY_MANAGEMENT = MESSAGE_INFO_DESCR
    MESSAGE_PARTY = MESSAGE_INFO_DESCR

    MESSAGE_TYPES = {
    ["advance"] = MESSAGE_EVENT_ADVANCE,
    ["event"] = MESSAGE_EVENT_DEFAULT,
    ["white"] = MESSAGE_EVENT_DEFAULT,
    ["orange"] = MESSAGE_STATUS_CONSOLE_ORANGE,
    ["info"] = MESSAGE_INFO_DESCR,
    ["green"] = MESSAGE_INFO_DESCR,
    ["small"] = MESSAGE_STATUS_SMALL,
    ["blue"] = MESSAGE_STATUS_CONSOLE_BLUE,
    ["red"] = MESSAGE_STATUS_CONSOLE_RED,
    ["warning"] = MESSAGE_STATUS_WARNING,
    ["status"] = MESSAGE_STATUS_DEFAULT
    }

    COLOR_BLACK = 0
    COLOR_BLUE = 5
    COLOR_GREEN = 18
    COLOR_LIGHTGREEN = 66
    COLOR_DARKBROWN = 78
    COLOR_LIGHTBLUE = 89
    COLOR_MAYABLUE = 95
    COLOR_DARKRED = 108
    COLOR_DARKPURPLE = 112
    COLOR_BROWN = 120
    COLOR_GREY = 129
    COLOR_TEAL = 143
    COLOR_DARKPINK = 152
    COLOR_PURPLE = 154
    COLOR_DARKORANGE = 156
    COLOR_RED = 180
    COLOR_PINK = 190
    COLOR_ORANGE = 192
    COLOR_DARKYELLOW = 205
    COLOR_YELLOW = 210
    COLOR_WHITE = 215
    COLOR_NONE = 255

    MAPMARK_TICK = 0
    MAPMARK_QUESTION = 1
    MAPMARK_EXCLAMATION = 2
    MAPMARK_STAR = 3
    MAPMARK_CROSS = 4
    MAPMARK_TEMPLE = 5
    MAPMARK_KISS = 6
    MAPMARK_SHOVEL = 7
    MAPMARK_SWORD = 8
    MAPMARK_FLAG = 9
    MAPMARK_LOCK = 10
    MAPMARK_BAG = 11
    MAPMARK_SKULL = 12
    MAPMARK_DOLLAR = 13
    MAPMARK_REDNORTH = 14
    MAPMARK_REDSOUTH = 15
    MAPMARK_REDEAST = 16
    MAPMARK_REDWEST = 17
    MAPMARK_GREENNORTH = 18
    MAPMARK_GREENSOUTH = 19

    ITEM_TYPE_NONE = 0
    ITEM_TYPE_DEPOT = 1
    ITEM_TYPE_MAILBOX = 2
    ITEM_TYPE_TRASHHOLDER = 3
    ITEM_TYPE_CONTAINER = 4
    ITEM_TYPE_DOOR = 5
    ITEM_TYPE_MAGICFIELD = 6
    ITEM_TYPE_TELEPORT = 7
    ITEM_TYPE_BED = 8
    ITEM_TYPE_KEY = 9
    ITEM_TYPE_RUNE = 10

    ITEM_GROUP_NONE = 0
    ITEM_GROUP_GROUND = 1
    ITEM_GROUP_CONTAINER = 2
    ITEM_GROUP_CHARGES = 6
    ITEM_GROUP_SPLASH = 11
    ITEM_GROUP_FLUID = 12

    CONST_PROP_BLOCKSOLID = 0
    CONST_PROP_HASHEIGHT = 1
    CONST_PROP_BLOCKPROJECTILE = 2
    CONST_PROP_BLOCKPATHFIND = 3
    CONST_PROP_ISVERTICAL = 4
    CONST_PROP_ISHORIZONTAL = 5
    CONST_PROP_MOVABLE = 6
    CONST_PROP_BLOCKINGANDNOTMOVABLE = 7
    CONST_PROP_SUPPORTHANGABLE = 8

    CHASEMODE_STANDSTILL = 0
    CHASEMODE_FOLLOW = 1

    FIGHTMODE_ATTACK = 0
    FIGHTMODE_BALANCED = 1
    FIGHTMODE_DEFENSE = 2

    SECUREMODE_ON = 0
    SECUREMODE_OFF = 1

    TRADE_NONE = 0
    TRADE_INITIATED = 1
    TRADE_ACCEPT = 2
    TRADE_ACKNOWLEDGE = 3
    TRADE_TRANSFER = 4

    MANAGER_NONE = 0
    MANAGER_NEW = 1
    MANAGER_ACCOUNT = 2
    MANAGER_NAMELOCK = 3

    PLAYERSEX_FEMALE = 0
    PLAYERSEX_MALE = 1

    PLAYERLOSS_EXPERIENCE = 0
    PLAYERLOSS_MANA = 1
    PLAYERLOSS_SKILLS = 2
    PLAYERLOSS_CONTAINERS = 3
    PLAYERLOSS_ITEMS = 4

    STATSCHANGE_HEALTHGAIN = 0
    STATSCHANGE_HEALTHLOSS = 1
    STATSCHANGE_MANAGAIN = 2
    STATSCHANGE_MANALOSS = 3

    SKILL_FIRST = 0
    SKILL_FIST = SKILL_FIRST
    SKILL_CLUB = 1
    SKILL_SWORD = 2
    SKILL_AXE = 3
    SKILL_DISTANCE = 4
    SKILL_SHIELD = 5
    SKILL_FISHING = 6
    SKILL__MAGLEVEL = 7
    SKILL__LEVEL = 8
    SKILL__EXPERIENCE = 9
    SKILL_LAST = SKILL_FISHING
    SKILL__PRE_LAST = SKILL__LEVEL
    SKILL__LAST = SKILL__EXPERIENCE

    SKILL_NAMES = {
    [SKILL_FIST] = "fist fighting",
    [SKILL_CLUB] = "club fighting",
    [SKILL_SWORD] = "sword fighting",
    [SKILL_AXE] = "axe fighting",
    [SKILL_DISTANCE] = "distance fighting",
    [SKILL_SHIELD] = "shielding",
    [SKILL_FISHING] = "fishing",
    [SKILL__LEVEL] = "level",
    [SKILL__MAGLEVEL] = "magic level"
    }

    SKILL_IDS = {
    ["fist"] = SKILL_FIST,
    ["club"] = SKILL_CLUB,
    ["sword"] = SKILL_SWORD,
    ["axe"] = SKILL_AXE,
    ["distance"] = SKILL_DISTANCE,
    ["dist"] = SKILL_DISTANCE,
    ["shielding"] = SKILL_SHIELD,
    ["shield"] = SKILL_SHIELD,
    ["fishing"] = SKILL_FISHING,
    ["fish"] = SKILL_FISHING,
    ["level"] = SKILL__LEVEL,
    ["magic"] = SKILL__MAGLEVEL
    }

    GUILD_MEMBER = 1
    GUILD_VICE = 2
    GUILD_LEADER = 3

    SKULL_NONE = 0
    SKULL_YELLOW = 1
    SKULL_GREEN = 2
    SKULL_WHITE = 3
    SKULL_RED = 4
    SKULL_BLACK = 5
    SKULL_LAST = SKULL_BLACK

    SHIELD_NONE = 0
    SHIELD_WHITEYELLOW = 1
    SHIELD_WHITEBLUE = 2
    SHIELD_BLUE = 3
    SHIELD_YELLOW = 4
    SHIELD_LAST = SHIELD_YELLOW

    WORLDTYPE_OPTIONAL = 1
    WORLDTYPE_OPEN = 2
    WORLDTYPE_HARDCORE = 3

    DATABASE_NONE = 0
    DATABASE_MYSQL = 1
    DATABASE_SQLITE = 2

    GAMESTATE_STARTUP = 1
    GAMESTATE_INIT = 2
    GAMESTATE_NORMAL = 3
    GAMESTATE_MAINTAIN = 4
    GAMESTATE_CLOSED = 5
    GAMESTATE_CLOSING = 6
    GAMESTATE_SHUTDOWN = 7

    RELOAD_ACTIONS = 1
    RELOAD_CHAT = 2
    RELOAD_CONFIG = 3
    RELOAD_CREATUREEVENTS = 4
    RELOAD_GAMESERVERS = 5
    RELOAD_GLOBALEVENTS = 6
    RELOAD_GROUPS = 7
    RELOAD_ITEMS = 8
    RELOAD_MONSTERS = 9
    RELOAD_MOVEEVENTS = 10
    RELOAD_NPCS = 11
    RELOAD_OUTFITS = 12
    RELOAD_RAIDS = 13
    RELOAD_SPELLS = 14
    RELOAD_STAGES = 15
    RELOAD_TALKACTIONS = 16
    RELOAD_VOCATIONS = 17
    RELOAD_WEAPONS = 18
    RELOAD_MODS = 19
    RELOAD_ALL = 20

    BAN_NONE = 0
    BAN_IP = 1
    BAN_PLAYER = 2
    BAN_ACCOUNT = 3
    BAN_NOTATION = 4

    PLAYERBAN_NONE = 0
    PLAYERBAN_REPORT = 1
    PLAYERBAN_LOCK = 2
    PLAYERBAN_BANISHMENT = 3

    CHANNEL_GUILD = 0
    CHANNEL_PARTY = 1
    CHANNEL_HELP = 7
    CHANNEL_DEFAULT = 0xFFFE
    CHANNEL_PRIVATE = 0xFFFF

    STACKPOS_GROUND = 0
    STACKPOS_TOP_CREATURE = 253
    STACKPOS_TOP_FIELD = 254
    STACKPOS_TOP_MOVABLE_ITEM_OR_CREATURE = 255

    WEAPON_NONE = 0
    WEAPON_SWORD = 1
    WEAPON_CLUB = 2
    WEAPON_AXE = 3
    WEAPON_DIST = 4
    WEAPON_SHIELD = 5
    WEAPON_FIST = 6
    WEAPON_WAND = 7
    WEAPON_AMMO = 8

    RECURSE_FIRST = -1
    RECURSE_NONE = 0
    RECURSE_ALL = 1

    ITEM_GOLD_COIN = 2148
    ITEM_PLATINUM_COIN = 2152
    ITEM_CRYSTAL_COIN = 2160
    ITEM_SCARAB_COIN = 2159
    ITEM_FISH = 2667
    ITEM_WORM = 3976
    ITEM_MECHANICAL_FISH = 10224
    ITEM_NAIL = 8309
    ITEM_MECHANICAL_FISHING_ROD = 10223
    ITEM_GREEN_PERCH = 7159
    ITEM_RAINBOW_TROUT = 7158
    ITEM_NORTHERN_PIKE = 2669
    ITEM_PARCEL = 2595
    ITEM_LABEL = 2599
    ITEM_ACTION_BOOK = 1977
    ITEM_MAGIC_WALL = 1497
    ITEM_WILD_GROWTH = 1499
    ITEM_BOOK = 1950

    ITEM_FOOD_MEAT = 2666
    ITEM_FOOD_HAM = 2671
    ITEM_FOOD_GRAPE = 2681
    ITEM_FOOD_APLE = 2674
    ITEM_FOOD_BREAD = 2689
    ITEM_FOOD_ROOL = 2690
    ITEM_FOOD_CHEESE = 2696

    RETURNVALUE_NOERROR = 0
    RETURNVALUE_NOTPOSSIBLE = 1
    RETURNVALUE_NOTENOUGHROOM = 2
    RETURNVALUE_PLAYERISPZLOCKED = 3
    RETURNVALUE_PLAYERISNOTINVITED = 4
    RETURNVALUE_CANNOTTHROW = 5
    RETURNVALUE_THEREISNOWAY = 6
    RETURNVALUE_DESTINATIONOUTOFREACH = 7
    RETURNVALUE_CREATUREBLOCK = 8
    RETURNVALUE_NOTMOVABLE = 9
    RETURNVALUE_DROPTWOHANDEDITEM = 10
    RETURNVALUE_BOTHHANDSNEEDTOBEFREE = 11
    RETURNVALUE_CANONLYUSEONEWEAPON = 12
    RETURNVALUE_NEEDEXCHANGE = 13
    RETURNVALUE_CANNOTBEDRESSED = 14
    RETURNVALUE_PUTTHISOBJECTINYOURHAND = 15
    RETURNVALUE_PUTTHISOBJECTINBOTHHANDS = 16
    RETURNVALUE_TOOFARAWAY = 17
    RETURNVALUE_FIRSTGODOWNSTAIRS = 18
    RETURNVALUE_FIRSTGOUPSTAIRS = 19
    RETURNVALUE_CONTAINERNOTENOUGHROOM = 20
    RETURNVALUE_NOTENOUGHCAPACITY = 21
    RETURNVALUE_CANNOTPICKUP = 22
    RETURNVALUE_THISISIMPOSSIBLE = 23
    RETURNVALUE_DEPOTISFULL = 24
    RETURNVALUE_CREATUREDOESNOTEXIST = 25
    RETURNVALUE_CANNOTUSETHISOBJECT = 26
    RETURNVALUE_PLAYERWITHTHISNAMEISNOTONLINE = 27
    RETURNVALUE_NOTREQUIREDLEVELTOUSERUNE = 28
    RETURNVALUE_YOUAREALREADYTRADING = 29
    RETURNVALUE_THISPLAYERISALREADYTRADING = 30
    RETURNVALUE_YOUMAYNOTLOGOUTDURINGAFIGHT = 31
    RETURNVALUE_DIRECTPLAYERSHOOT = 32
    RETURNVALUE_NOTENOUGHLEVEL = 33
    RETURNVALUE_NOTENOUGHMAGICLEVEL = 34
    RETURNVALUE_NOTENOUGHMANA = 35
    RETURNVALUE_NOTENOUGHSOUL = 36
    RETURNVALUE_YOUAREEXHAUSTED = 37
    RETURNVALUE_PLAYERISNOTREACHABLE = 38
    RETURNVALUE_CANONLYUSETHISRUNEONCREATURES = 39
    RETURNVALUE_ACTIONNOTPERMITTEDINPROTECTIONZONE = 40
    RETURNVALUE_YOUMAYNOTATTACKTHISPLAYER = 41
    RETURNVALUE_YOUMAYNOTATTACKAPERSONINPROTECTIONZONE = 42
    RETURNVALUE_YOUMAYNOTATTACKAPERSONWHILEINPROTECTIONZONE = 43
    RETURNVALUE_YOUMAYNOTATTACKTHISCREATURE = 44
    RETURNVALUE_YOUCANONLYUSEITONCREATURES = 45
    RETURNVALUE_CREATUREISNOTREACHABLE = 46
    RETURNVALUE_TURNSECUREMODETOATTACKUNMARKEDPLAYERS = 47
    RETURNVALUE_YOUNEEDPREMIUMACCOUNT = 48
    RETURNVALUE_YOUNEEDTOLEARNTHISSPELL = 49
    RETURNVALUE_YOURVOCATIONCANNOTUSETHISSPELL = 50
    RETURNVALUE_YOUNEEDAWEAPONTOUSETHISSPELL = 51
    RETURNVALUE_PLAYERISPZLOCKEDLEAVEPVPZONE = 52
    RETURNVALUE_PLAYERISPZLOCKEDENTERPVPZONE = 53
    RETURNVALUE_ACTIONNOTPERMITTEDINANOPVPZONE = 54
    RETURNVALUE_YOUCANNOTLOGOUTHERE = 55
    RETURNVALUE_YOUNEEDAMAGICITEMTOCASTSPELL = 56
    RETURNVALUE_CANNOTCONJUREITEMHERE = 57
    RETURNVALUE_TILEISFULL = 58
    RETURNVALUE_NAMEISTOOAMBIGUOUS = 59
    RETURNVALUE_CANONLYUSEONESHIELD = 60
    RETURNVALUE_YOUARENOTTHEOWNER = 61
    RETURNVALUE_YOUMAYNOTCASTAREAONBLACKSKULL = 62
    RETURNVALUE_NOTENOUGHSKILL = 63
    RETURNVALUE_YOUMAYNOTATTACKIMMEDIATELYAFTERLOGGINGIN = 64
    RETURNVALUE_YOUCANONLYTRADEUPTOX = 65

    CONTAINER_POSITION = 0xFFFF
    EMPTY_STORAGE = -1
    EMPTY_RESULT = -1
    ITEMCOUNT_MAX = 100

    WAR_GUILD = 0
    WAR_ENEMY = 1

    AUTOID_PLAYERS = 0x10000000
    AUTOID_MONSTERS = 0x40000000
    AUTOID_NPCS = 0x80000000

    CLIENTOS_LINUX = 1
    CLIENTOS_WINDOWS = 2
    CLIENTOS_FLASH = 3

    CLIENTOS_OTCLIENT_LINUX = 10
    CLIENTOS_OTCLIENT_WINDOWS = 11
    CLIENTOS_OTCLIENT_MAC = 12

    PLAYERFLAG_CANNOTUSECOMBAT = 0
    PLAYERFLAG_CANNOTATTACKPLAYER = 1
    PLAYERFLAG_CANNOTATTACKMONSTER = 2
    PLAYERFLAG_CANNOTBEATTACKED = 3
    PLAYERFLAG_CANCONVINCEALL = 4
    PLAYERFLAG_CANSUMMONALL = 5
    PLAYERFLAG_CANILLUSIONALL = 6
    PLAYERFLAG_CANSENSEINVISIBILITY = 7
    PLAYERFLAG_IGNOREDBYMONSTERS = 8
    PLAYERFLAG_NOTGAININFIGHT = 9
    PLAYERFLAG_HASINFINITEMANA = 10
    PLAYERFLAG_HASINFINITESOUL = 11
    PLAYERFLAG_HASNOEXHAUSTION = 12
    PLAYERFLAG_CANNOTUSESPELLS = 13
    PLAYERFLAG_CANNOTPICKUPITEM = 14
    PLAYERFLAG_CANALWAYSLOGIN = 15
    PLAYERFLAG_CANBROADCAST = 16
    PLAYERFLAG_CANEDITHOUSES = 17
    PLAYERFLAG_CANNOTBEBANNED = 18
    PLAYERFLAG_CANNOTBEPUSHED = 19
    PLAYERFLAG_HASINFINITECAPACITY = 20
    PLAYERFLAG_CANPUSHALLCREATURES = 21
    PLAYERFLAG_CANTALKREDPRIVATE = 22
    PLAYERFLAG_CANTALKREDCHANNEL = 23
    PLAYERFLAG_TALKORANGEHELPCHANNEL = 24
    PLAYERFLAG_NOTGAINEXPERIENCE = 25
    PLAYERFLAG_NOTGAINMANA = 26
    PLAYERFLAG_NOTGAINHEALTH = 27
    PLAYERFLAG_NOTGAINSKILL = 28
    PLAYERFLAG_SETMAXSPEED = 29
    PLAYERFLAG_SPECIALVIP = 30
    PLAYERFLAG_NOTGENERATELOOT = 31
    PLAYERFLAG_CANTALKREDCHANNELANONYMOUS = 32
    PLAYERFLAG_IGNOREPROTECTIONZONE = 33
    PLAYERFLAG_IGNORESPELLCHECK = 34
    PLAYERFLAG_IGNOREWEAPONCHECK = 35
    PLAYERFLAG_CANNOTBEMUTED = 36
    PLAYERFLAG_ISALWAYSPREMIUM = 37
    PLAYERFLAG_38 = 38 -- ignore
    PLAYERFLAG_39 = 39 -- ignore
    PLAYERFLAG_SHOWGROUPINSTEADOFVOCATION = 40
    PLAYERFLAG_HASINFINITESTAMINA = 41
    PLAYERFLAG_CANNOTMOVEITEMS = 42
    PLAYERFLAG_CANNOTMOVECREATURES = 43
    PLAYERFLAG_CANREPORTBUGS = 44
    PLAYERFLAG_45 = 45 -- ignore
    PLAYERFLAG_CANNOTBESEEN = 46
    PLAYERFLAG_HIDEHEALTH = 47
    PLAYERFLAG_CANPASSTHROUGHALLCREATURES = 48

    PLAYERCUSTOMFLAG_ALLOWIDLE = 0
    PLAYERCUSTOMFLAG_CANSEEPOSITION = 1
    PLAYERCUSTOMFLAG_CANSEEITEMDETAILS = 2
    PLAYERCUSTOMFLAG_CANSEECREATUREDETAILS = 3
    PLAYERCUSTOMFLAG_NOTSEARCHABLE = 4
    PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES = 5
    PLAYERCUSTOMFLAG_CANTHROWANYWHERE = 6
    PLAYERCUSTOMFLAG_CANPUSHALLITEMS = 7
    PLAYERCUSTOMFLAG_CANMOVEANYWHERE = 8
    PLAYERCUSTOMFLAG_CANMOVEFROMFAR = 9
    PLAYERCUSTOMFLAG_CANUSEFAR = 10
    PLAYERCUSTOMFLAG_CANLOGINMULTIPLECHARACTERS = 11
    PLAYERCUSTOMFLAG_CANLOGOUTANYTIME = 12
    PLAYERCUSTOMFLAG_HIDELEVEL = 13
    PLAYERCUSTOMFLAG_ISPROTECTED = 14
    PLAYERCUSTOMFLAG_ISIMMUNE = 15
    PLAYERCUSTOMFLAG_NOTGAINSKULL = 16
    PLAYERCUSTOMFLAG_NOTGAINUNJUSTIFIED = 17
    PLAYERCUSTOMFLAG_IGNOREPACIFICATION = 18
    PLAYERCUSTOMFLAG_IGNORELOGINDELAY = 19
    PLAYERCUSTOMFLAG_CANSTAIRHOP = 20
    PLAYERCUSTOMFLAG_CANTURNHOP = 21
    PLAYERCUSTOMFLAG_IGNOREHOUSERENT = 22
    PLAYERCUSTOMFLAG_CANWEARALLADDONS = 23
    PLAYERCUSTOMFLAG_ISWALKABLE = 24
    PLAYERCUSTOMFLAG_HASFULLLIGHT = 26

    maleOutfits = {128, 129, 130, 131, 132, 133, 134}
    femaleOutfits = {136, 137, 138, 139, 140, 141, 142}

    Config_meta =
    {
    __index = function(t, k)
    if(k == "type") then
    return function()
    return "Config"
    end
    end

    return getConfigValue(k)
    end,

    __newindex = function(t, k, v)
    return false
    end
    }

    CONFIG = {}
    setmetatable(CONFIG, Config_meta)

    Storage_meta =
    {
    __index = function(t, k)
    if(k == "type") then
    return function()
    return "Storage"
    end
    end

    return getStorage(k)
    end,

    __newindex = function(t, k, v)
    return doSetStorage(k, v)
    end
    }

    STORAGE = {}
    setmetatable(STORAGE, Storage_meta)
    constanh:
    ////////////////////////////////////////////////////////////////////////
    // OpenTibia - an opensource roleplaying game
    ////////////////////////////////////////////////////////////////////////
    // This program is free software: you can redistribute it and/or modify
    // it under the terms of the GNU General Public License as published by
    // the Free Software Foundation, either version 3 of the License, or
    // (at your option) any later version.
    //
    // This program is distributed in the hope that it will be useful,
    // but WITHOUT ANY WARRANTY; without even the implied warranty of
    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    // GNU General Public License for more details.
    //
    // You should have received a copy of the GNU General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    ////////////////////////////////////////////////////////////////////////

    #ifndef __CONST__
    #define __CONST__
    #include "definitions.h"

    enum OperatingSystem_t
    {
    CLIENTOS_LINUX = 0x01,
    CLIENTOS_WINDOWS = 0x02,

    CLIENTOS_OTCLIENT_LINUX = 0x0A,
    CLIENTOS_OTCLIENT_WINDOWS = 0x0B,
    CLIENTOS_OTCLIENT_MAC = 0x0C
    };

    enum ReportType_t
    {
    REPORT_NAME = 0x00,
    REPORT_STATEMENT = 0x01,
    REPORT_BOT = 0x02
    };

    enum MagicEffect_t
    {
    MAGIC_EFFECT_DRAW_BLOOD = 0x00,
    MAGIC_EFFECT_LOSE_ENERGY = 0x01,
    MAGIC_EFFECT_POFF = 0x02,
    MAGIC_EFFECT_BLOCKHIT = 0x03,
    MAGIC_EFFECT_EXPLOSION_AREA = 0x04,
    MAGIC_EFFECT_EXPLOSION_DAMAGE = 0x05,
    MAGIC_EFFECT_FIRE_AREA = 0x06,
    MAGIC_EFFECT_YELLOW_RINGS = 0x07,
    MAGIC_EFFECT_POISON_RINGS = 0x08,
    MAGIC_EFFECT_HIT_AREA = 0x09,
    MAGIC_EFFECT_TELEPORT = 0x0A, //10
    MAGIC_EFFECT_ENERGY_DAMAGE = 0x0B, //11
    MAGIC_EFFECT_WRAPS_BLUE = 0x0C, //12
    MAGIC_EFFECT_WRAPS_RED = 0x0D, //13
    MAGIC_EFFECT_WRAPS_GREEN = 0x0E, //14
    MAGIC_EFFECT_HITBY_FIRE = 0x0F, //15
    MAGIC_EFFECT_POISON = 0x10, //16
    MAGIC_EFFECT_MORT_AREA = 0x11, //17
    MAGIC_EFFECT_SOUND_GREEN = 0x12, //18
    MAGIC_EFFECT_SOUND_RED = 0x13, //19
    MAGIC_EFFECT_POISON_AREA = 0x14, //20
    MAGIC_EFFECT_SOUND_YELLOW = 0x15, //21
    MAGIC_EFFECT_SOUND_PURPLE = 0x16, //22
    MAGIC_EFFECT_SOUND_BLUE = 0x17, //23
    MAGIC_EFFECT_SOUND_WHITE = 0x18, //24
    MAGIC_EFFECT_MANABLUE = 0x19, //25
    MAGIC_EFFECT_MANAPURPLE = 0x20, //26
    MAGIC_EFFECT_MANAYELLOW = 0x21, //27
    MAGIC_EFFECT_LAST = MAGIC_EFFECT_MANAYELLOW,

    //for internal use, dont send to client
    MAGIC_EFFECT_NONE =
    MAGIC_EFFECT_UNKNOWN =
    };

    enum ShootEffect_t
    {
    SHOOT_EFFECT_SPEAR = 0x00,
    SHOOT_EFFECT_BOLT = 0x01,
    SHOOT_EFFECT_ARROW = 0x02,
    SHOOT_EFFECT_FIRE = 0x03,
    SHOOT_EFFECT_ENERGY = 0x04,
    SHOOT_EFFECT_POISONARROW = 0x05,
    SHOOT_EFFECT_BURSTARROW = 0x06,
    SHOOT_EFFECT_THROWINGSTAR = 0x07,
    SHOOT_EFFECT_THROWINGKNIFE = 0x08,
    SHOOT_EFFECT_SMALLSTONE = 0x09,
    SHOOT_EFFECT_DEATH = 0x0A, //10
    SHOOT_EFFECT_LARGEROCK = 0x0B, //11
    SHOOT_EFFECT_SNOWBALL = 0x0C, //12
    SHOOT_EFFECT_POWERBOLT = 0x0D, //13
    SHOOT_EFFECT_POISONFIELD = 0x0E, //14
    SHOOT_EFFECT_LAST = SHOOT_EFFECT_POISONFIELD,

    //for internal use, dont send to client
    SHOOT_EFFECT_WEAPONTYPE = 0xFE, //254
    SHOOT_EFFECT_NONE = 0xFF,
    SHOOT_EFFECT_UNKNOWN = 0xFFFF
    };

    enum MessageClasses
    {
    MSG_NONE = 0x00,
    MSG_SPEAK_SAY = 0x01,
    MSG_SPEAK_WHISPER = 0x02,
    MSG_SPEAK_YELL = 0x03,
    MSG_PRIVATE = 0x04, /*SPEAK_PRIVATE*/
    MSG_CHANNEL = 0x05, /*SPEAK_CHANNEL_Y*/
    MSG_RVR_CHANNEL = 0x06, /*RULE VIOLATION SYSTEM*/
    MSG_RVR_ANSWER = 0x07, /*RULE VIOLATION SYSTEM*/
    MSG_RVR_CONTINUE = 0x08, /*RULE VIOLATION SYSTEM*/
    MSG_GAMEMASTER_BROADCAST = 0x09, /*SPEAK_BROADCAST*/
    MSG_GAMEMASTER_CHANNEL = 0x0A, /*SPEAK_CHANNEL_RN*/
    MSG_GAMEMASTER_PRIVATE = 0x0B, /*SPEAK_PRIVATE_RED*/
    MSG_CHANNEL_HIGHLIGHT = 0x0C,
    MSG_CHANNEL_MANAGEMENT = 0x0D, /*SPEAK_CHANNEL_W*/
    MSG_GAMEMASTER_ANONYMOUS = 0x0E,
    MSG_SPEAK_MONSTER_SAY = 0x10,
    MSG_SPEAK_MONSTER_YELL = 0x11,
    MSG_SPEAK_FIRST = MSG_SPEAK_SAY,
    MSG_SPEAK_LAST = MSG_GAMEMASTER_ANONYMOUS,
    MSG_SPEAK_MONSTER_FIRST = MSG_SPEAK_MONSTER_SAY,
    MSG_SPEAK_MONSTER_LAST = MSG_SPEAK_MONSTER_YELL,

    MSG_EVENT_ORANGE = 0x10, /*Orange message in the console*/
    MSG_STATUS_CONSOLE_ORANGE = 0x11, /*Orange message in the console*/
    MSG_STATUS_WARNING = 0x12, /*Red message in game window and in the console*/
    MSG_EVENT_ADVANCE = 0x13, /*White message in game window and in the console*/
    MSG_EVENT_DEFAULT = 0x14, /*White message at the bottom of the game window and in the console*/
    MSG_STATUS_DEFAULT = 0x15, /*White message at the bottom of the game window and in the console*/
    MSG_INFO_DESCR = 0x16, /*Green message in game window and in the console*/
    MSG_STATUS_SMALL = 0x17, /*White message at the bottom of the game window"*/
    MSG_STATUS_CONSOLE_BLUE = 0x18, /*Blue message in the console*/
    MSG_STATUS_CONSOLE_RED = 0x19, /*Red message in the console*/

    //for internal use
    MSG_EVENT_GUILD = MSG_INFO_DESCR, /*Green message in game window and in the console*/
    MSG_PARTY_MANAGEMENT = MSG_INFO_DESCR, /*Green message in game window and in the console*/
    MSG_PARTY = MSG_INFO_DESCR /*Green message in game window and in the console*/
    };

    enum FluidColors_t
    {
    FLUID_EMPTY = 0x00,
    FLUID_BLUE = 0x01,
    FLUID_RED = 0x02,
    FLUID_BROWN = 0x03,
    FLUID_GREEN = 0x04,
    FLUID_YELLOW = 0x05,
    FLUID_WHITE = 0x06,
    FLUID_PURPLE = 0x07
    };

    enum FluidTypes_t
    {
    FLUID_NONE = FLUID_EMPTY,
    FLUID_WATER = FLUID_BLUE,
    FLUID_BLOOD = FLUID_RED,
    FLUID_BEER = FLUID_BROWN,
    FLUID_SLIME = FLUID_GREEN,
    FLUID_LEMONADE = FLUID_YELLOW,
    FLUID_MILK = FLUID_WHITE,
    FLUID_MANA = FLUID_PURPLE,

    FLUID_LIFE = FLUID_RED + 8,
    FLUID_OIL = FLUID_BROWN + 8,
    FLUID_URINE = FLUID_YELLOW + 8,
    FLUID_COCONUTMILK = FLUID_WHITE + 8,
    FLUID_WINE = FLUID_PURPLE + 8,

    FLUID_MUD = FLUID_BROWN + 16,
    FLUID_FRUITJUICE = FLUID_YELLOW + 16,

    FLUID_LAVA = FLUID_RED + 24,
    FLUID_RUM = FLUID_BROWN + 24,
    FLUID_SWAMP = FLUID_GREEN + 24,

    FLUID_TEA = FLUID_BROWN + 32,
    FLUID_MEAD = FLUID_BROWN + 40
    };

    const uint8_t reverseFluidMap[] =
    {
    FLUID_EMPTY,
    FLUID_WATER,
    FLUID_MANA,
    FLUID_BEER,
    FLUID_EMPTY,
    FLUID_BLOOD,
    FLUID_SLIME,
    FLUID_EMPTY,
    FLUID_LEMONADE,
    FLUID_MILK
    };

    const uint8_t clientToServerFluidMap[] =
    {
    FLUID_EMPTY,
    FLUID_WATER,
    FLUID_MANA,
    FLUID_BEER,
    FLUID_MUD,
    FLUID_BLOOD,
    FLUID_SLIME,
    FLUID_RUM,
    FLUID_LEMONADE,
    FLUID_MILK,
    FLUID_WINE,
    FLUID_LIFE,
    FLUID_URINE,
    FLUID_OIL,
    FLUID_FRUITJUICE,
    FLUID_COCONUTMILK,
    FLUID_TEA,
    FLUID_MEAD
    };

    enum ClientFluidTypes_t
    {
    CLIENTFLUID_EMPTY = 0x00,
    CLIENTFLUID_BLUE = 0x01,
    CLIENTFLUID_RED = 0x02,
    CLIENTFLUID_BROWN = 0x03,
    CLIENTFLUID_GREEN = 0x04,
    CLIENTFLUID_YELLOW = 0x05,
    CLIENTFLUID_WHITE = 0x06,
    CLIENTFLUID_PURPLE = 0x07
    };

    const uint8_t fluidMap[] =
    {
    CLIENTFLUID_EMPTY,
    CLIENTFLUID_BLUE,
    CLIENTFLUID_RED,
    CLIENTFLUID_BROWN,
    CLIENTFLUID_GREEN,
    CLIENTFLUID_YELLOW,
    CLIENTFLUID_WHITE,
    CLIENTFLUID_PURPLE
    };

    enum Color_t
    {
    COLOR_BLACK = 0,
    COLOR_BLUE = 5,
    COLOR_GREEN = 18,
    COLOR_LIGHTGREEN = 66,
    COLOR_DARKBROWN = 78,
    COLOR_LIGHTBLUE = 89,
    COLOR_MAYABLUE = 95,
    COLOR_DARKRED = 108,
    COLOR_DARKPURPLE = 112,
    COLOR_BROWN = 120,
    COLOR_GREY = 129,
    COLOR_TEAL = 143,
    COLOR_DARKPINK = 152,
    COLOR_PURPLE = 154,
    COLOR_DARKORANGE = 156,
    COLOR_RED = 180,
    COLOR_PINK = 190,
    COLOR_ORANGE = 192,
    COLOR_DARKYELLOW = 205,
    COLOR_YELLOW = 210,
    COLOR_WHITE = 215,

    COLOR_NONE = 255,
    COLOR_UNKNOWN = 256
    };

    enum Icons_t
    {
    ICON_NONE = 0,
    ICON_POISON = 1 << 0,
    ICON_BURN = 1 << 1,
    ICON_ENERGY = 1 << 2,
    ICON_DRUNK = 1 << 3,
    ICON_MANASHIELD = 1 << 4,
    ICON_PARALYZE = 1 << 5,
    ICON_HASTE = 1 << 6,
    ICON_SWORDS = 1 << 7
    };

    enum skills_t
    {
    SKILL_NONE = -1,
    SKILL_FIRST = 0,
    SKILL_FIST = SKILL_FIRST,
    SKILL_CLUB,
    SKILL_SWORD,
    SKILL_AXE,
    SKILL_DIST,
    SKILL_SHIELD,
    SKILL_FISH,
    SKILL__MAGLEVEL,
    SKILL__LEVEL,
    SKILL__EXPERIENCE,
    SKILL_LAST = SKILL_FISH,
    SKILL__LAST = SKILL__EXPERIENCE
    };

    enum WeaponType_t
    {
    WEAPON_NONE = 0,
    WEAPON_SWORD,
    WEAPON_CLUB,
    WEAPON_AXE,
    WEAPON_DIST,
    WEAPON_SHIELD,
    WEAPON_FIST,
    WEAPON_WAND,
    WEAPON_AMMO
    };

    enum Ammo_t
    {
    AMMO_NONE = 0,
    AMMO_BOLT,
    AMMO_ARROW,
    AMMO_SPEAR,
    AMMO_THROWINGSTAR,
    AMMO_THROWINGKNIFE,
    AMMO_STONE,
    AMMO_SNOWBALL
    };

    enum AmmoAction_t
    {
    AMMOACTION_NONE = 0,
    AMMOACTION_REMOVECOUNT,
    AMMOACTION_REMOVECHARGE,
    AMMOACTION_MOVE,
    AMMOACTION_MOVEBACK
    };

    enum WieldInfo_t
    {
    WIELDINFO_LEVEL = 1,
    WIELDINFO_MAGLV = 2,
    WIELDINFO_VOCREQ = 4,
    WIELDINFO_PREMIUM = 8
    };

    enum Skulls_t
    {
    SKULL_NONE = 0,
    SKULL_YELLOW,
    SKULL_GREEN,
    SKULL_WHITE,
    SKULL_RED,
    SKULL_LAST = SKULL_RED
    };

    enum PartyShields_t
    {
    SHIELD_NONE = 0,
    SHIELD_WHITEYELLOW,
    SHIELD_WHITEBLUE,
    SHIELD_BLUE,
    SHIELD_YELLOW,
    SHIELD_LAST = SHIELD_YELLOW
    };

    enum SpellGroup_t
    {
    SPELLGROUP_NONE = 0,
    SPELLGROUP_ATTACK = 1,
    SPELLGROUP_HEALING = 2,
    SPELLGROUP_SUPPORT = 3,
    SPELLGROUP_SPECIAL = 4
    };

    enum item_t
    {
    ITEM_FIREFIELD = 1492,
    ITEM_FIREFIELD_SAFE = 1500,

    ITEM_POISONFIELD = 1496,
    ITEM_POISONFIELD_SAFE = 1503,

    ITEM_ENERGYFIELD = 1495,
    ITEM_ENERGYFIELD_SAFE = 1504,

    ITEM_MAGICWALL = 1497,
    ITEM_MAGICWALL_SAFE = ITEM_MAGICWALL,

    ITEM_WILDGROWTH = 1499,
    ITEM_WILDGROWTH_SAFE = ITEM_WILDGROWTH,

    ITEM_DEPOT = 2594,
    ITEM_LOCKER = 2589,

    ITEM_MALE_CORPSE = 3058,
    ITEM_FEMALE_CORPSE = 3065,

    ITEM_FULLSPLASH = 2016,
    ITEM_SMALLSPLASH = 2019,

    ITEM_PARCEL = 2595,
    ITEM_PARCEL_STAMPED = 2596,
    ITEM_LETTER = 2597,
    ITEM_LETTER_STAMPED = 2598,
    ITEM_LABEL = 2599,

    ITEM_STEALTH_RING = 2202,
    ITEM_HOUSE_TRANSFER = 1968 //read-only
    };

    enum PlayerFlags
    {
    PlayerFlag_CannotUseCombat = 0, //2^0 = 1
    PlayerFlag_CannotAttackPlayer, //2^1 = 2
    PlayerFlag_CannotAttackMonster, //2^2 = 4
    PlayerFlag_CannotBeAttacked, //2^3 = 8
    PlayerFlag_CanConvinceAll, //2^4 = 16
    PlayerFlag_CanSummonAll, //2^5 = 32
    PlayerFlag_CanIllusionAll, //2^6 = 64
    PlayerFlag_CanSenseInvisibility, //2^7 = 128
    PlayerFlag_IgnoredByMonsters, //2^8 = 256
    PlayerFlag_NotGainInFight, //2^9 = 512
    PlayerFlag_HasInfiniteMana, //2^10 = 1024
    #ifdef _MULTIPLATFORM76
    PlayerFlag_HasInfiniteSoul, //2^11 = 2048
    #endif
    PlayerFlag_HasNoExhaustion, //2^12 = 4096
    PlayerFlag_CannotUseSpells, //2^13 = 8192
    PlayerFlag_CannotPickupItem, //2^14 = 16384
    PlayerFlag_CanAlwaysLogin, //2^15 = 32768
    PlayerFlag_CanBroadcast, //2^16 = 65536
    PlayerFlag_CanEditHouses, //2^17 = 131072
    PlayerFlag_CannotBeBanned, //2^18 = 262144
    PlayerFlag_CannotBePushed, //2^19 = 524288
    PlayerFlag_HasInfiniteCapacity, //2^20 = 1048576
    PlayerFlag_CanPushAllCreatures, //2^21 = 2097152
    PlayerFlag_CanTalkRedPrivate, //2^22 = 4194304
    PlayerFlag_CanTalkRedChannel, //2^23 = 8388608
    PlayerFlag_TalkOrangeHelpChannel, //2^24 = 16777216
    PlayerFlag_NotGainExperience, //2^25 = 33554432
    PlayerFlag_NotGainMana, //2^26 = 67108864
    PlayerFlag_NotGainHealth, //2^27 = 134217728
    PlayerFlag_NotGainSkill, //2^28 = 268435456
    PlayerFlag_SetMaxSpeed, //2^29 = 536870912
    PlayerFlag_SpecialVIP, //2^30 = 1073741824
    PlayerFlag_NotGenerateLoot, //2^31 = 2147483648
    PlayerFlag_CanTalkRedChannelAnonymous, //2^32 = 4294967296
    PlayerFlag_IgnoreProtectionZone, //2^33 = 8589934592
    PlayerFlag_IgnoreSpellCheck, //2^34 = 17179869184
    PlayerFlag_IgnoreEquipCheck, //2^35 = 34359738368
    PlayerFlag_CannotBeMuted, //2^36 = 68719476736
    PlayerFlag_IsAlwaysPremium, //2^37 = 137438953472
    PlayerFlag_CanAnswerRuleViolations, //2^38 = 274877906944
    PlayerFlag_39, //2^39 = 549755813888 //not used by us
    PlayerFlag_ShowGroupNameInsteadOfVocation, //2^40 = 1099511627776
    PlayerFlag_HasInfiniteStamina, //2^41 = 2199023255552
    PlayerFlag_CannotMoveItems, //2^42 = 4398046511104
    PlayerFlag_CannotMoveCreatures, //2^43 = 8796093022208
    PlayerFlag_CanReportBugs, //2^44 = 17592186044416
    PlayerFlag_45, //2^45 = 35184372088832 //not used by us
    PlayerFlag_CannotBeSeen, //2^46 = 70368744177664
    PlayerFlag_HideHealth, //2^47 = 140737488355328
    PlayerFlag_CanPassThroughAllCreatures, //2^48 = 281474976710656

    PlayerFlag_LastFlag
    };

    enum PlayerCustomFlags
    {
    PlayerCustomFlag_AllowIdle = 0, //2^0 = 1
    PlayerCustomFlag_CanSeePosition, //2^1 = 2
    PlayerCustomFlag_CanSeeItemDetails, //2^2 = 4
    PlayerCustomFlag_CanSeeCreatureDetails, //2^3 = 8
    PlayerCustomFlag_NotSearchable, //2^4 = 16
    PlayerCustomFlag_GamemasterPrivileges, //2^5 = 32
    PlayerCustomFlag_CanThrowAnywhere, //2^6 = 64
    PlayerCustomFlag_CanPushAllItems, //2^7 = 128
    PlayerCustomFlag_CanMoveAnywhere, //2^8 = 256
    PlayerCustomFlag_CanMoveFromFar, //2^9 = 512
    PlayerCustomFlag_CanUseFar, //2^10 = 1024
    PlayerCustomFlag_CanLoginMultipleCharacters,//2^11 = 2048 (account flag)
    PlayerCustomFlag_CanLogoutAnytime, //2^12 = 4096 (account flag)
    PlayerCustomFlag_HideLevel, //2^13 = 8192
    PlayerCustomFlag_IsProtected, //2^14 = 16384
    PlayerCustomFlag_IsImmune, //2^15 = 32768
    PlayerCustomFlag_NotGainSkull, //2^16 = 65536
    PlayerCustomFlag_NotGainUnjustified, //2^17 = 131072
    PlayerCustomFlag_IgnorePacification, //2^18 = 262144
    PlayerCustomFlag_IgnoreLoginDelay, //2^19 = 524288
    PlayerCustomFlag_CanStairhop, //2^20 = 1048576
    PlayerCustomFlag_CanTurnhop, //2^21 = 2097152
    PlayerCustomFlag_IgnoreHouseRent, //2^22 = 4194304
    PlayerCustomFlag_CanWearAllAddons, //2^23 = 8388608
    PlayerCustomFlag_IsWalkable, //2^24 = 16777216
    PlayerCustomFlag_25, //2^25 = 33554432 // PlayerCustomFlag_CanUseAllMounts
    PlayerCustomFlag_HasFullLight, //2^26 = 67108864

    PlayerCustomFlag_LastFlag
    };

    #define NETWORK_CRYPTOHEADER_SIZE 8
    #define NETWORK_RETRY_TIMEOUT 5000
    #define NETWORK_DEFAULT_SIZE 4096
    #define NETWORK_HEADER_SIZE 2
    #define NETWORK_MAX_SIZE 32767

    #define IPBAN_FLAG 128
    #define LOCALHOST 2130706433
    #define SWIMMING_OUTFIT 267
    #define GRATIS_PREMIUM 65535

    #endif
    toolcpp:
    MagicEffectNames magicEffectNames[] =
    {
    {"redspark", MAGIC_EFFECT_DRAW_BLOOD},
    {"bluebubble", MAGIC_EFFECT_LOSE_ENERGY},
    {"poff", MAGIC_EFFECT_POFF},
    {"yellowspark", MAGIC_EFFECT_BLOCKHIT},
    {"explosionarea", MAGIC_EFFECT_EXPLOSION_AREA},
    {"explosion", MAGIC_EFFECT_EXPLOSION_DAMAGE},
    {"firearea", MAGIC_EFFECT_FIRE_AREA},
    {"yellowbubble", MAGIC_EFFECT_YELLOW_RINGS},
    {"greenbubble", MAGIC_EFFECT_POISON_RINGS},
    {"blackspark", MAGIC_EFFECT_HIT_AREA},
    {"teleport", MAGIC_EFFECT_TELEPORT},
    {"energy", MAGIC_EFFECT_ENERGY_DAMAGE},
    {"blueshimmer", MAGIC_EFFECT_WRAPS_BLUE},
    {"redshimmer", MAGIC_EFFECT_WRAPS_RED},
    {"greenshimmer", MAGIC_EFFECT_WRAPS_GREEN},
    {"fire", MAGIC_EFFECT_HITBY_FIRE},
    {"greenspark", MAGIC_EFFECT_POISON},
    {"mortarea", MAGIC_EFFECT_MORT_AREA},
    {"greennote", MAGIC_EFFECT_SOUND_GREEN},
    {"rednote", MAGIC_EFFECT_SOUND_RED},
    {"poison", MAGIC_EFFECT_POISON_AREA},
    {"yellownote", MAGIC_EFFECT_SOUND_YELLOW},
    {"purplenote", MAGIC_EFFECT_SOUND_PURPLE},
    {"bluenote", MAGIC_EFFECT_SOUND_BLUE},
    {"whitenote", MAGIC_EFFECT_SOUND_WHITE},
    {"manablue", MAGIC_EFFECT_MANABLUE},
    {"manapurple", MAGIC_EFFECT_MANAPURPLE},
    {"manayellow", MAGIC_EFFECT_MANAYELLOW},
    };

    ShootTypeNames shootTypeNames[] =
    {
    {"spear", SHOOT_EFFECT_SPEAR},
    {"bolt", SHOOT_EFFECT_BOLT},
    {"arrow", SHOOT_EFFECT_ARROW},
    {"fire", SHOOT_EFFECT_FIRE},
    {"energy", SHOOT_EFFECT_ENERGY},
    {"poisonarrow", SHOOT_EFFECT_POISONARROW},
    {"burstarrow", SHOOT_EFFECT_BURSTARROW},
    {"throwingstar", SHOOT_EFFECT_THROWINGSTAR},
    {"throwingknife", SHOOT_EFFECT_THROWINGKNIFE},
    {"smallstone", SHOOT_EFFECT_SMALLSTONE},
    {"death", SHOOT_EFFECT_DEATH},
    {"largerock", SHOOT_EFFECT_LARGEROCK},
    {"snowball", SHOOT_EFFECT_SNOWBALL},
    {"powerbolt", SHOOT_EFFECT_POWERBOLT},
    {"poison", SHOOT_EFFECT_POISONFIELD}
    };


    Imagen de mi error:


    Esta en:
    Spells

    Ver perfil de usuario

    2default Re: Spells Effects el Lun Mar 06, 2017 12:34 pm

    [Admin] God Maya

    avatar
    Administrador
    Administrador
    me imagino que compilaste el exe por si no lo hiciste no te va funcionar nada de lo que cambiaste



    Ver perfil de usuario http://www.tibiaface.com

    3default Re: Spells Effects el Lun Mar 13, 2017 12:34 am

    [Tienes que estar registrado y conectado para ver este vínculo] escribió:me imagino que compilaste el exe por si no lo hiciste no te va funcionar nada de lo que cambiaste
    Era exactamento eso Maya gracias Very Happy
    Very Happy Resuelto Gracias Very Happy

    Ver perfil de usuario

    Contenido patrocinado


    Ver el tema anterior Ver el tema siguiente Volver arriba  Mensaje (Página 1 de 1.)

    Permisos de este foro:
    No puedes responder a temas en este foro.

     

    BienvenidosTibiaFace es una comunidad de Open Tibia. Para participar debes estar registrado (click para Regístrate).