[TFS 1.X] Enums

Discussion in 'Programming & Scripting' started by Evan, Dec 10, 2014.

  1. Evan

    Evan A splendid one to behold Staff Member Global Moderator

    Joined:
    May 6, 2009
    Messages:
    7,014
    Source: luascript.cpp
    Last Update: December 10, 2014 11:41 AM ET


    Account Type
    Code:
    ACCOUNT_TYPE_NORMAL
    ACCOUNT_TYPE_TUTOR
    ACCOUNT_TYPE_SENIORTUTOR
    ACCOUNT_TYPE_GAMEMASTER
    ACCOUNT_TYPE_GOD
    
    Combat Callback
    Code:
    CALLBACK_PARAM_LEVELMAGICVALUE
    CALLBACK_PARAM_SKILLVALUE
    CALLBACK_PARAM_TARGETTILE
    CALLBACK_PARAM_TARGETCREATURE
    
    Combat Formula
    Code:
    COMBAT_FORMULA_UNDEFINED
    COMBAT_FORMULA_LEVELMAGIC
    COMBAT_FORMULA_SKILL
    COMBAT_FORMULA_DAMAGE
    
    Direction
    Code:
    NORTH
    EAST
    SOUTH
    WEST
    SOUTHWEST
    SOUTHEAST
    NORTHWEST
    NORTHEAST
    
    Combat Damage Type
    Code:
    COMBAT_NONE
    COMBAT_PHYSICALDAMAGE
    COMBAT_ENERGYDAMAGE
    COMBAT_EARTHDAMAGE
    COMBAT_FIREDAMAGE
    COMBAT_UNDEFINEDDAMAGE
    COMBAT_LIFEDRAIN
    COMBAT_MANADRAIN
    COMBAT_HEALING
    COMBAT_DROWNDAMAGE
    COMBAT_ICEDAMAGE
    COMBAT_HOLYDAMAGE
    COMBAT_DEATHDAMAGE
    
    Combat Action Type
    Code:
    COMBAT_PARAM_TYPE
    COMBAT_PARAM_EFFECT
    COMBAT_PARAM_DISTANCEEFFECT
    COMBAT_PARAM_BLOCKSHIELD
    COMBAT_PARAM_BLOCKARMOR
    COMBAT_PARAM_TARGETCASTERORTOPMOST
    COMBAT_PARAM_CREATEITEM
    COMBAT_PARAM_AGGRESSIVE
    COMBAT_PARAM_DISPEL
    COMBAT_PARAM_USECHARGES
    
    Condition Type
    Code:
    CONDITION_NONE
    CONDITION_POISON
    CONDITION_FIRE
    CONDITION_ENERGY
    CONDITION_BLEEDING
    CONDITION_HASTE
    CONDITION_PARALYZE
    CONDITION_OUTFIT
    CONDITION_INVISIBLE
    CONDITION_LIGHT
    CONDITION_MANASHIELD
    CONDITION_INFIGHT
    CONDITION_DRUNK
    CONDITION_EXHAUST_WEAPON
    CONDITION_REGENERATION
    CONDITION_SOUL
    CONDITION_DROWN
    CONDITION_MUTED
    CONDITION_CHANNELMUTEDTICKS
    CONDITION_YELLTICKS
    CONDITION_ATTRIBUTES
    CONDITION_FREEZING
    CONDITION_DAZZLED
    CONDITION_CURSED
    CONDITION_EXHAUST_COMBAT
    CONDITION_EXHAUST_HEAL
    CONDITION_PACIFIED
    CONDITION_SPELLCOOLDOWN
    CONDITION_SPELLGROUPCOOLDOWN
    
    Slot Condition ID
    Code:
    CONDITIONID_DEFAULT
    CONDITIONID_COMBAT
    CONDITIONID_HEAD
    CONDITIONID_NECKLACE
    CONDITIONID_BACKPACK
    CONDITIONID_ARMOR
    CONDITIONID_RIGHT
    CONDITIONID_LEFT
    CONDITIONID_LEGS
    CONDITIONID_FEET
    CONDITIONID_RING
    CONDITIONID_AMMO
    
    Condition Action Type
    Code:
    CONDITION_PARAM_OWNER
    CONDITION_PARAM_TICKS
    CONDITION_PARAM_HEALTHGAIN
    CONDITION_PARAM_HEALTHTICKS
    CONDITION_PARAM_MANAGAIN
    CONDITION_PARAM_MANATICKS
    CONDITION_PARAM_DELAYED
    CONDITION_PARAM_SPEED
    CONDITION_PARAM_LIGHT_LEVEL
    CONDITION_PARAM_LIGHT_COLOR
    CONDITION_PARAM_SOULGAIN
    CONDITION_PARAM_SOULTICKS
    CONDITION_PARAM_MINVALUE
    CONDITION_PARAM_MAXVALUE
    CONDITION_PARAM_STARTVALUE
    CONDITION_PARAM_TICKINTERVAL
    CONDITION_PARAM_FORCEUPDATE
    CONDITION_PARAM_SKILL_MELEE
    CONDITION_PARAM_SKILL_FIST
    CONDITION_PARAM_SKILL_CLUB
    CONDITION_PARAM_SKILL_SWORD
    CONDITION_PARAM_SKILL_AXE
    CONDITION_PARAM_SKILL_DISTANCE
    CONDITION_PARAM_SKILL_SHIELD
    CONDITION_PARAM_SKILL_FISHING
    CONDITION_PARAM_STAT_MAXHITPOINTS
    CONDITION_PARAM_STAT_MAXMANAPOINTS
    CONDITION_PARAM_STAT_SOULPOINTS
    CONDITION_PARAM_STAT_MAGICPOINTS
    CONDITION_PARAM_STAT_MAXHITPOINTSPERCENT
    CONDITION_PARAM_STAT_MAXMANAPOINTSPERCENT
    CONDITION_PARAM_STAT_SOULPOINTSPERCENT
    CONDITION_PARAM_STAT_MAGICPOINTSPERCENT
    CONDITION_PARAM_PERIODICDAMAGE
    CONDITION_PARAM_SKILL_MELEEPERCENT
    CONDITION_PARAM_SKILL_FISTPERCENT
    CONDITION_PARAM_SKILL_CLUBPERCENT
    CONDITION_PARAM_SKILL_SWORDPERCENT
    CONDITION_PARAM_SKILL_AXEPERCENT
    CONDITION_PARAM_SKILL_DISTANCEPERCENT
    CONDITION_PARAM_SKILL_SHIELDPERCENT
    CONDITION_PARAM_SKILL_FISHINGPERCENT
    CONDITION_PARAM_BUFF_SPELL
    CONDITION_PARAM_SUBID
    CONDITION_PARAM_FIELD
    
    Magic Effect
    Code:
    CONST_ME_DRAWBLOOD
    CONST_ME_LOSEENERGY
    CONST_ME_POFF
    CONST_ME_BLOCKHIT
    CONST_ME_EXPLOSIONAREA
    CONST_ME_EXPLOSIONHIT
    CONST_ME_FIREAREA
    CONST_ME_YELLOW_RINGS
    CONST_ME_GREEN_RINGS
    CONST_ME_HITAREA
    CONST_ME_TELEPORT
    CONST_ME_ENERGYHIT
    CONST_ME_MAGIC_BLUE
    CONST_ME_MAGIC_RED
    CONST_ME_MAGIC_GREEN
    CONST_ME_HITBYFIRE
    CONST_ME_HITBYPOISON
    CONST_ME_MORTAREA
    CONST_ME_SOUND_GREEN
    CONST_ME_SOUND_RED
    CONST_ME_POISONAREA
    CONST_ME_SOUND_YELLOW
    CONST_ME_SOUND_PURPLE
    CONST_ME_SOUND_BLUE
    CONST_ME_SOUND_WHITE
    CONST_ME_BUBBLES
    CONST_ME_CRAPS
    CONST_ME_GIFT_WRAPS
    CONST_ME_FIREWORK_YELLOW
    CONST_ME_FIREWORK_RED
    CONST_ME_FIREWORK_BLUE
    CONST_ME_STUN
    CONST_ME_SLEEP
    CONST_ME_WATERCREATURE
    CONST_ME_GROUNDSHAKER
    CONST_ME_HEARTS
    CONST_ME_FIREATTACK
    CONST_ME_ENERGYAREA
    CONST_ME_SMALLCLOUDS
    CONST_ME_HOLYDAMAGE
    CONST_ME_BIGCLOUDS
    CONST_ME_ICEAREA
    CONST_ME_ICETORNADO
    CONST_ME_ICEATTACK
    CONST_ME_STONES
    CONST_ME_SMALLPLANTS
    CONST_ME_CARNIPHILA
    CONST_ME_PURPLEENERGY
    CONST_ME_YELLOWENERGY
    CONST_ME_HOLYAREA
    CONST_ME_BIGPLANTS
    CONST_ME_CAKE
    CONST_ME_GIANTICE
    CONST_ME_WATERSPLASH
    CONST_ME_PLANTATTACK
    CONST_ME_TUTORIALARROW
    CONST_ME_TUTORIALSQUARE
    CONST_ME_MIRRORHORIZONTAL
    CONST_ME_MIRRORVERTICAL
    CONST_ME_SKULLHORIZONTAL
    CONST_ME_SKULLVERTICAL
    CONST_ME_ASSASSIN
    CONST_ME_STEPSHORIZONTAL
    CONST_ME_BLOODYSTEPS
    CONST_ME_STEPSVERTICAL
    CONST_ME_YALAHARIGHOST
    CONST_ME_BATS
    CONST_ME_SMOKE
    CONST_ME_INSECTS
    CONST_ME_DRAGONHEAD
    CONST_ME_ORCSHAMAN
    CONST_ME_ORCSHAMAN_FIRE
    CONST_ME_THUNDER
    CONST_ME_FERUMBRAS
    CONST_ME_CONFETTI_HORIZONTAL
    CONST_ME_CONFETTI_VERTICAL
    CONST_ME_BLACKSMOKE
    CONST_ME_NONE
    
    Distance Effect
    Code:
    CONST_ANI_SPEAR
    CONST_ANI_BOLT
    CONST_ANI_ARROW
    CONST_ANI_FIRE
    CONST_ANI_ENERGY
    CONST_ANI_POISONARROW
    CONST_ANI_BURSTARROW
    CONST_ANI_THROWINGSTAR
    CONST_ANI_THROWINGKNIFE
    CONST_ANI_SMALLSTONE
    CONST_ANI_DEATH
    CONST_ANI_LARGEROCK
    CONST_ANI_SNOWBALL
    CONST_ANI_POWERBOLT
    CONST_ANI_POISON
    CONST_ANI_INFERNALBOLT
    CONST_ANI_HUNTINGSPEAR
    CONST_ANI_ENCHANTEDSPEAR
    CONST_ANI_REDSTAR
    CONST_ANI_GREENSTAR
    CONST_ANI_ROYALSPEAR
    CONST_ANI_SNIPERARROW
    CONST_ANI_ONYXARROW
    CONST_ANI_PIERCINGBOLT
    CONST_ANI_WHIRLWINDSWORD
    CONST_ANI_WHIRLWINDAXE
    CONST_ANI_WHIRLWINDCLUB
    CONST_ANI_ETHEREALSPEAR
    CONST_ANI_ICE
    CONST_ANI_EARTH
    CONST_ANI_HOLY
    CONST_ANI_SUDDENDEATH
    CONST_ANI_FLASHARROW
    CONST_ANI_FLAMMINGARROW
    CONST_ANI_SHIVERARROW
    CONST_ANI_ENERGYBALL
    CONST_ANI_SMALLICE
    CONST_ANI_SMALLHOLY
    CONST_ANI_SMALLEARTH
    CONST_ANI_EARTHARROW
    CONST_ANI_EXPLOSION
    CONST_ANI_CAKE
    CONST_ANI_TARSALARROW
    CONST_ANI_VORTEXBOLT
    CONST_ANI_PRISMATICBOLT
    CONST_ANI_CRYSTALLINEARROW
    CONST_ANI_DRILLBOLT
    CONST_ANI_ENVENOMEDARROW
    CONST_ANI_WEAPONTYPE
    CONST_ANI_NONE
    
    Object Property Type
    Code:
    CONST_PROP_BLOCKSOLID
    CONST_PROP_HASHEIGHT
    CONST_PROP_BLOCKPROJECTILE
    CONST_PROP_BLOCKPATH
    CONST_PROP_ISVERTICAL
    CONST_PROP_ISHORIZONTAL
    CONST_PROP_MOVEABLE
    CONST_PROP_IMMOVABLEBLOCKSOLID
    CONST_PROP_IMMOVABLEBLOCKPATH
    CONST_PROP_IMMOVABLENOFIELDBLOCKPATH
    CONST_PROP_NOFIELDBLOCKPATH
    CONST_PROP_SUPPORTHANGABLE
    
    Slot Type
    Code:
    CONST_SLOT_HEAD
    CONST_SLOT_NECKLACE
    CONST_SLOT_BACKPACK
    CONST_SLOT_ARMOR
    CONST_SLOT_RIGHT
    CONST_SLOT_LEFT
    CONST_SLOT_LEGS
    CONST_SLOT_FEET
    CONST_SLOT_RING
    CONST_SLOT_AMMO
    
    Game State
    Code:
    GAME_STATE_STARTUP
    GAME_STATE_INIT
    GAME_STATE_NORMAL
    GAME_STATE_CLOSED
    GAME_STATE_SHUTDOWN
    GAME_STATE_CLOSING
    GAME_STATE_MAINTAIN
    
    Message Type
    Code:
    MESSAGE_STATUS_CONSOLE_BLUE
    MESSAGE_STATUS_CONSOLE_RED
    MESSAGE_STATUS_DEFAULT
    MESSAGE_STATUS_WARNING
    MESSAGE_EVENT_ADVANCE
    MESSAGE_STATUS_SMALL
    MESSAGE_INFO_DESCR
    MESSAGE_DAMAGE_DEALT
    MESSAGE_DAMAGE_RECEIVED
    MESSAGE_HEALED
    MESSAGE_EXPERIENCE
    MESSAGE_DAMAGE_OTHERS
    MESSAGE_HEALED_OTHERS
    MESSAGE_EXPERIENCE_OTHERS
    MESSAGE_EVENT_DEFAULT
    MESSAGE_EVENT_ORANGE
    MESSAGE_STATUS_CONSOLE_ORANGE
    
    Client OS Type
    Code:
    CLIENTOS_LINUX
    CLIENTOS_WINDOWS
    CLIENTOS_FLASH
    CLIENTOS_OTCLIENT_LINUX
    CLIENTOS_OTCLIENT_WINDOWS
    CLIENTOS_OTCLIENT_MAC
    
    Item Attribute
    Code:
    ITEM_ATTRIBUTE_NONE
    ITEM_ATTRIBUTE_ACTIONID
    ITEM_ATTRIBUTE_UNIQUEID
    ITEM_ATTRIBUTE_DESCRIPTION
    ITEM_ATTRIBUTE_TEXT
    ITEM_ATTRIBUTE_DATE
    ITEM_ATTRIBUTE_WRITER
    ITEM_ATTRIBUTE_NAME
    ITEM_ATTRIBUTE_ARTICLE
    ITEM_ATTRIBUTE_PLURALNAME
    ITEM_ATTRIBUTE_WEIGHT
    ITEM_ATTRIBUTE_ATTACK
    ITEM_ATTRIBUTE_DEFENSE
    ITEM_ATTRIBUTE_EXTRADEFENSE
    ITEM_ATTRIBUTE_ARMOR
    ITEM_ATTRIBUTE_HITCHANCE
    ITEM_ATTRIBUTE_SHOOTRANGE
    ITEM_ATTRIBUTE_OWNER
    ITEM_ATTRIBUTE_DURATION
    ITEM_ATTRIBUTE_DECAYSTATE
    ITEM_ATTRIBUTE_CORPSEOWNER
    ITEM_ATTRIBUTE_CHARGES
    ITEM_ATTRIBUTE_FLUIDTYPE
    ITEM_ATTRIBUTE_DOORID
    
    Item Type
    Code:
    ITEM_TYPE_DEPOT
    ITEM_TYPE_MAILBOX
    ITEM_TYPE_TRASHHOLDER
    ITEM_TYPE_CONTAINER
    ITEM_TYPE_DOOR
    ITEM_TYPE_MAGICFIELD
    ITEM_TYPE_TELEPORT
    ITEM_TYPE_BED
    ITEM_TYPE_KEY
    ITEM_TYPE_RUNE
    
    Item Constant
    Code:
    ITEM_GOLD_COIN
    ITEM_PLATINUM_COIN
    ITEM_CRYSTAL_COIN
    ITEM_PARCEL
    ITEM_LABEL
    ITEM_FIREFIELD_PVP_FULL
    ITEM_FIREFIELD_PVP_MEDIUM
    ITEM_FIREFIELD_PVP_SMALL
    ITEM_FIREFIELD_PERSISTENT_FULL
    ITEM_FIREFIELD_PERSISTENT_MEDIUM
    ITEM_FIREFIELD_PERSISTENT_SMALL
    ITEM_FIREFIELD_NOPVP
    ITEM_POISONFIELD_PVP
    ITEM_POISONFIELD_PERSISTENT
    ITEM_POISONFIELD_NOPVP
    ITEM_ENERGYFIELD_PVP
    ITEM_ENERGYFIELD_PERSISTENT
    ITEM_ENERGYFIELD_NOPVP
    ITEM_MAGICWALL
    ITEM_MAGICWALL_PERSISTENT
    ITEM_MAGICWALL_SAFE
    ITEM_WILDGROWTH
    ITEM_WILDGROWTH_PERSISTENT
    ITEM_WILDGROWTH_SAFE
     
  2. Evan

    Evan A splendid one to behold Staff Member Global Moderator

    Joined:
    May 6, 2009
    Messages:
    7,014
    Player Flag
    Code:
    PlayerFlag_CannotUseCombat
    PlayerFlag_CannotAttackPlayer
    PlayerFlag_CannotAttackMonster
    PlayerFlag_CannotBeAttacked
    PlayerFlag_CanConvinceAll
    PlayerFlag_CanSummonAll
    PlayerFlag_CanIllusionAll
    PlayerFlag_CanSenseInvisibility
    PlayerFlag_IgnoredByMonsters
    PlayerFlag_NotGainInFight
    PlayerFlag_HasInfiniteMana
    PlayerFlag_HasInfiniteSoul
    PlayerFlag_HasNoExhaustion
    PlayerFlag_CannotUseSpells
    PlayerFlag_CannotPickupItem
    PlayerFlag_CanAlwaysLogin
    PlayerFlag_CanBroadcast
    PlayerFlag_CanEditHouses
    PlayerFlag_CannotBeBanned
    PlayerFlag_CannotBePushed
    PlayerFlag_HasInfiniteCapacity
    PlayerFlag_CanPushAllCreatures
    PlayerFlag_CanTalkRedPrivate
    PlayerFlag_CanTalkRedChannel
    PlayerFlag_TalkOrangeHelpChannel
    PlayerFlag_NotGainExperience
    PlayerFlag_NotGainMana
    PlayerFlag_NotGainHealth
    PlayerFlag_NotGainSkill
    PlayerFlag_SetMaxSpeed
    PlayerFlag_SpecialVIP
    PlayerFlag_NotGenerateLoot
    PlayerFlag_CanTalkRedChannelAnonymous
    PlayerFlag_IgnoreProtectionZone
    PlayerFlag_IgnoreSpellCheck
    PlayerFlag_IgnoreWeaponCheck
    PlayerFlag_CannotBeMuted
    PlayerFlag_IsAlwaysPremium
    
    Player Sex
    Code:
    PLAYERSEX_FEMALE
    PLAYERSEX_MALE
    
    Skill Type
    Code:
    SKILL_FIST
    SKILL_CLUB
    SKILL_SWORD
    SKILL_AXE
    SKILL_DISTANCE
    SKILL_SHIELD
    SKILL_FISHING
    SKILL_MAGLEVEL
    SKILLVALUE_LEVEL
    
    Skull Type
    Code:
    SKULL_NONE
    SKULL_YELLOW
    SKULL_GREEN
    SKULL_WHITE
    SKULL_RED
    SKULL_BLACK
    SKULL_ORANGE
    
    Talk Type
    Code:
    TALKTYPE_SAY
    TALKTYPE_WHISPER
    TALKTYPE_YELL
    TALKTYPE_PRIVATE_FROM
    TALKTYPE_PRIVATE_TO
    TALKTYPE_CHANNEL_Y
    TALKTYPE_CHANNEL_O
    TALKTYPE_PRIVATE_NP
    TALKTYPE_PRIVATE_PN
    TALKTYPE_BROADCAST
    TALKTYPE_CHANNEL_R1
    TALKTYPE_PRIVATE_RED_FROM
    TALKTYPE_PRIVATE_RED_TO
    TALKTYPE_MONSTER_SAY
    TALKTYPE_MONSTER_YELL
    TALKTYPE_CHANNEL_R2
    TALKTYPE_CHANNEL_W
    
    Text Color
    Code:
    TEXTCOLOR_BLUE
    TEXTCOLOR_LIGHTGREEN
    TEXTCOLOR_LIGHTBLUE
    TEXTCOLOR_MAYABLUE
    TEXTCOLOR_DARKRED
    TEXTCOLOR_LIGHTGREY
    TEXTCOLOR_SKYBLUE
    TEXTCOLOR_PURPLE
    TEXTCOLOR_RED
    TEXTCOLOR_ORANGE
    TEXTCOLOR_YELLOW
    TEXTCOLOR_WHITE_EXP
    TEXTCOLOR_NONE
    
    Tile State
    Code:
    TILESTATE_NONE
    TILESTATE_PROTECTIONZONE
    TILESTATE_DEPRECATED_HOUSE
    TILESTATE_NOPVPZONE
    TILESTATE_NOLOGOUT
    TILESTATE_PVPZONE
    TILESTATE_REFRESH
    TILESTATE_HOUSE
    TILESTATE_FLOORCHANGE
    TILESTATE_FLOORCHANGE_DOWN
    TILESTATE_FLOORCHANGE_NORTH
    TILESTATE_FLOORCHANGE_SOUTH
    TILESTATE_FLOORCHANGE_EAST
    TILESTATE_FLOORCHANGE_WEST
    TILESTATE_TELEPORT
    TILESTATE_MAGICFIELD
    TILESTATE_MAILBOX
    TILESTATE_TRASHHOLDER
    TILESTATE_BED
    TILESTATE_DEPOT
    TILESTATE_BLOCKSOLID
    TILESTATE_BLOCKPATH
    TILESTATE_IMMOVABLEBLOCKSOLID
    TILESTATE_IMMOVABLEBLOCKPATH
    TILESTATE_IMMOVABLENOFIELDBLOCKPATH
    TILESTATE_NOFIELDBLOCKPATH
    TILESTATE_DYNAMIC_TILE
    TILESTATE_FLOORCHANGE_SOUTH_ALT
    TILESTATE_FLOORCHANGE_EAST_ALT
    TILESTATE_SUPPORTS_HANGABLE
    
    Weapon Type
    Code:
    WEAPON_NONE
    WEAPON_SWORD
    WEAPON_CLUB
    WEAPON_AXE
    WEAPON_SHIELD
    WEAPON_DISTANCE
    WEAPON_WAND
    WEAPON_AMMO
    
    World PVP Type
    Code:
    WORLD_TYPE_NO_PVP
    WORLD_TYPE_PVP
    WORLD_TYPE_PVP_ENFORCED
    
    Additional Flags
    Code:
    // Use with container:addItem, container:addItemEx and possibly other functions.
    FLAG_NOLIMIT
    FLAG_IGNOREBLOCKITEM
    FLAG_IGNOREBLOCKCREATURE
    FLAG_CHILDISOWNER
    FLAG_PATHFINDING
    FLAG_IGNOREFIELDDAMAGE
    FLAG_IGNORENOTMOVEABLE
    FLAG_IGNOREAUTOSTACK
    
    ItemType Slot Type
    Code:
    // Use with itemType:getSlotPosition
    SLOTP_WHEREEVER
    SLOTP_HEAD
    SLOTP_NECKLACE
    SLOTP_BACKPACK
    SLOTP_ARMOR
    SLOTP_RIGHT
    SLOTP_LEFT
    SLOTP_LEGS
    SLOTP_FEET
    SLOTP_RING
    SLOTP_AMMO
    SLOTP_DEPOT
    SLOTP_TWO_HAND
    
    Combat Origin Type
    Code:
    // Use with combat functions
    ORIGIN_NONE
    ORIGIN_CONDITION
    ORIGIN_SPELL
    ORIGIN_MELEE
    ORIGIN_RANGED
    
    House Access Type
    Code:
    // Use with house:getAccessList, house:setAccessList
    GUEST_LIST
    SUBOWNER_LIST
    
    Speech Bubble Type
    Code:
    // Use with npc:setSpeechBubble
    SPEECHBUBBLE_NONE
    SPEECHBUBBLE_NORMAL
    SPEECHBUBBLE_TRADE
    SPEECHBUBBLE_QUEST
    SPEECHBUBBLE_QUESTTRADER
    
    Map Mark Type
    Code:
    // Use with player:addMapMark
    MAPMARK_TICK
    MAPMARK_QUESTION
    MAPMARK_EXCLAMATION
    MAPMARK_STAR
    MAPMARK_CROSS
    MAPMARK_TEMPLE
    MAPMARK_KISS
    MAPMARK_SHOVEL
    MAPMARK_SWORD
    MAPMARK_FLAG
    MAPMARK_LOCK
    MAPMARK_BAG
    MAPMARK_SKULL
    MAPMARK_DOLLAR
    MAPMARK_REDNORTH
    MAPMARK_REDSOUTH
    MAPMARK_REDEAST
    MAPMARK_REDWEST
    MAPMARK_GREENNORTH
    MAPMARK_GREENSOUTH
    
    Game Return Type
    Code:
    // Use with Game.getReturnMessage
    RETURNVALUE_NOERROR
    RETURNVALUE_NOTPOSSIBLE
    RETURNVALUE_NOTENOUGHROOM
    RETURNVALUE_PLAYERISPZLOCKED
    RETURNVALUE_PLAYERISNOTINVITED
    RETURNVALUE_CANNOTTHROW
    RETURNVALUE_THEREISNOWAY
    RETURNVALUE_DESTINATIONOUTOFREACH
    RETURNVALUE_CREATUREBLOCK
    RETURNVALUE_NOTMOVEABLE
    RETURNVALUE_DROPTWOHANDEDITEM
    RETURNVALUE_BOTHHANDSNEEDTOBEFREE
    RETURNVALUE_CANONLYUSEONEWEAPON
    RETURNVALUE_NEEDEXCHANGE
    RETURNVALUE_CANNOTBEDRESSED
    RETURNVALUE_PUTTHISOBJECTINYOURHAND
    RETURNVALUE_PUTTHISOBJECTINBOTHHANDS
    RETURNVALUE_TOOFARAWAY
    RETURNVALUE_FIRSTGODOWNSTAIRS
    RETURNVALUE_FIRSTGOUPSTAIRS
    RETURNVALUE_CONTAINERNOTENOUGHROOM
    RETURNVALUE_NOTENOUGHCAPACITY
    RETURNVALUE_CANNOTPICKUP
    RETURNVALUE_THISISIMPOSSIBLE
    RETURNVALUE_DEPOTISFULL
    RETURNVALUE_CREATUREDOESNOTEXIST
    RETURNVALUE_CANNOTUSETHISOBJECT
    RETURNVALUE_PLAYERWITHTHISNAMEISNOTONLINE
    RETURNVALUE_NOTREQUIREDLEVELTOUSERUNE
    RETURNVALUE_YOUAREALREADYTRADING
    RETURNVALUE_THISPLAYERISALREADYTRADING
    RETURNVALUE_YOUMAYNOTLOGOUTDURINGAFIGHT
    RETURNVALUE_DIRECTPLAYERSHOOT
    RETURNVALUE_NOTENOUGHLEVEL
    RETURNVALUE_NOTENOUGHMAGICLEVEL
    RETURNVALUE_NOTENOUGHMANA
    RETURNVALUE_NOTENOUGHSOUL
    RETURNVALUE_YOUAREEXHAUSTED
    RETURNVALUE_PLAYERISNOTREACHABLE
    RETURNVALUE_CANONLYUSETHISRUNEONCREATURES
    RETURNVALUE_ACTIONNOTPERMITTEDINPROTECTIONZONE
    RETURNVALUE_YOUMAYNOTATTACKTHISPLAYER
    RETURNVALUE_YOUMAYNOTATTACKAPERSONINPROTECTIONZONE
    RETURNVALUE_YOUMAYNOTATTACKAPERSONWHILEINPROTECTIONZONE
    RETURNVALUE_YOUMAYNOTATTACKTHISCREATURE
    RETURNVALUE_YOUCANONLYUSEITONCREATURES
    RETURNVALUE_CREATUREISNOTREACHABLE
    RETURNVALUE_TURNSECUREMODETOATTACKUNMARKEDPLAYERS
    RETURNVALUE_YOUNEEDPREMIUMACCOUNT
    RETURNVALUE_YOUNEEDTOLEARNTHISSPELL
    RETURNVALUE_YOURVOCATIONCANNOTUSETHISSPELL
    RETURNVALUE_YOUNEEDAWEAPONTOUSETHISSPELL
    RETURNVALUE_PLAYERISPZLOCKEDLEAVEPVPZONE
    RETURNVALUE_PLAYERISPZLOCKEDENTERPVPZONE
    RETURNVALUE_ACTIONNOTPERMITTEDINANOPVPZONE
    RETURNVALUE_YOUCANNOTLOGOUTHERE
    RETURNVALUE_YOUNEEDAMAGICITEMTOCASTSPELL
    RETURNVALUE_CANNOTCONJUREITEMHERE
    RETURNVALUE_YOUNEEDTOSPLITYOURSPEARS
    RETURNVALUE_NAMEISTOOAMBIGIOUS
    RETURNVALUE_CANONLYUSEONESHIELD
    RETURNVALUE_NOPARTYMEMBERSINRANGE
    RETURNVALUE_YOUARENOTTHEOWNER
    
    Config.lua Key
    Code:
    configKeys.ALLOW_CHANGEOUTFIT
    configKeys.CANNOT_ATTACK_SAME_LOOKFEET
    configKeys.ONE_PLAYER_ON_ACCOUNT
    configKeys.AIMBOT_HOTKEY_ENABLED
    configKeys.REMOVE_AMMO
    configKeys.REMOVE_RUNE_CHARGES
    configKeys.EXPERIENCE_FROM_PLAYERS
    configKeys.FREE_PREMIUM
    configKeys.REPLACE_KICK_ON_LOGIN
    configKeys.ALLOW_CLONES
    configKeys.BIND_ONLY_GLOBAL_ADDRESS
    configKeys.OPTIMIZE_DATABASE
    configKeys.MARKET_PREMIUM
    configKeys.EMOTE_SPELLS
    configKeys.STAMINA_SYSTEM
    configKeys.WARN_UNSAFE_SCRIPTS
    configKeys.CONVERT_UNSAFE_SCRIPTS
    
    Config.lua Key
    Code:
    configKeys.MAP_NAME
    configKeys.HOUSE_RENT_PERIOD
    configKeys.SERVER_NAME
    configKeys.OWNER_NAME
    configKeys.OWNER_EMAIL
    configKeys.URL
    configKeys.LOCATION
    configKeys.IP
    configKeys.MOTD
    configKeys.WORLD_TYPE
    configKeys.MYSQL_HOST
    configKeys.MYSQL_USER
    configKeys.MYSQL_PASS
    configKeys.MYSQL_DB
    configKeys.MYSQL_SOCK
    configKeys.DEFAULT_PRIORITY
    configKeys.MAP_AUTHOR
    
    Config.lua Key
    Code:
    configKeys.SQL_PORT
    configKeys.MAX_PLAYERS
    configKeys.PZ_LOCKED
    configKeys.DEFAULT_DESPAWNRANGE
    configKeys.DEFAULT_DESPAWNRADIUS
    configKeys.RATE_EXPERIENCE
    configKeys.RATE_SKILL
    configKeys.RATE_LOOT
    configKeys.RATE_MAGIC
    configKeys.RATE_SPAWN
    configKeys.HOUSE_PRICE
    configKeys.KILLS_TO_RED
    configKeys.KILLS_TO_BLACK
    configKeys.MAX_MESSAGEBUFFER
    configKeys.ACTIONS_DELAY_INTERVAL
    configKeys.EX_ACTIONS_DELAY_INTERVAL
    configKeys.KICK_AFTER_MINUTES
    configKeys.PROTECTION_LEVEL
    configKeys.DEATH_LOSE_PERCENT
    configKeys.STATUSQUERY_TIMEOUT
    configKeys.FRAG_TIME
    configKeys.WHITE_SKULL_TIME
    configKeys.GAME_PORT
    configKeys.LOGIN_PORT
    configKeys.STATUS_PORT
    configKeys.STAIRHOP_DELAY
    configKeys.MARKET_OFFER_DURATION
    configKeys.CHECK_EXPIRED_MARKET_OFFERS_EACH_MINUTES
    configKeys.MAX_MARKET_OFFERS_AT_A_TIME_PER_PLAYER
    configKeys.EXP_FROM_PLAYERS_LEVEL_RANGE
    configKeys.MAX_PACKETS_PER_SECOND
    
    Unknown
    Code:
    INDEX_WHEREEVER
    VIRTUAL_PARENT
    
     
  3. esfomeado

    esfomeado N o_0 B

    Joined:
    Nov 29, 2010
    Messages:
    276
    You are the real MVP!
     
  4. Eldin

    Eldin Eldin Projects Premium User

    Joined:
    Jun 12, 2008
    Messages:
    1,259
    That makes everything easier for sure.
    Thanks again Evan.

    Kind Regards,
    Eldin.
     
  5. Evil Puncker

    Evil Puncker I'd rather kiss a rattlesnake

    Joined:
    May 30, 2009
    Messages:
    5,372
    great!! time to update it again by the way @Evan xD
     
  6. whitevo

    whitevo Feeling good, thats what I do.

    Joined:
    Jan 2, 2015
    Messages:
    3,133
    Can someone explain each of these Enums below?
    CONST_PROP_BLOCKSOLID
    CONST_PROP_HASHEIGHT
    CONST_PROP_BLOCKPROJECTILE
    CONST_PROP_BLOCKPATH
    CONST_PROP_ISVERTICAL
    CONST_PROP_ISHORIZONTAL
    CONST_PROP_MOVEABLE
    CONST_PROP_IMMOVABLEBLOCKSOLID
    CONST_PROP_IMMOVABLEBLOCKPATH
    CONST_PROP_IMMOVABLENOFIELDBLOCKPATH
    CONST_PROP_NOFIELDBLOCKPATH
    CONST_PROP_SUPPORTHANGABLE

    Because it feels like half of do the same thing.
     
  7. whitevo

    whitevo Feeling good, thats what I do.

    Joined:
    Jan 2, 2015
    Messages:
    3,133
    Still going with trial and errors here xD
    @Evan
     
  8. Lordfire

    Lordfire Active Member

    Joined:
    Jul 16, 2008
    Messages:
    219
    @whitevo they are different properties for any item. They do not do the same thing, they may look like so but they represent different properties.

    Example: BLOCKPATH determines the item blocks the path of a creature (random walk of monsters, or player autowalk), but monsters that push items still will push this item. If you do not want them to be pushed (such as large rocks), then that's IMMOVABLEBLOCKPATH. They represent almost the same thing, but they are slightly different.
     
  9. whitevo

    whitevo Feeling good, thats what I do.

    Joined:
    Jan 2, 2015
    Messages:
    3,133
    well yeah, that i understood, that is logical. Name pretty much says what is that flag used for.

    I was wondering more about what does these do:
    CONST_PROP_BLOCKSOLID
    CONST_PROP_HASHEIGHT
    CONST_PROP_ISVERTICAL
    CONST_PROP_ISHORIZONTAL
    CONST_PROP_SUPPORTHANGABLE
     
  10. Lordfire

    Lordfire Active Member

    Joined:
    Jul 16, 2008
    Messages:
    219
    BLOCKSOLID blocks when you try to throw another item over it, HASHEIGHT means the item has height, like tables and other stuff that make you higher when you step over, ISVERTICAL/ISHORIZONTAL is for rotating purposes I guess, and SUPPORTHANGABLE means the item can support... hangables, like walls supporting curtains. I guess that's all? :p
     
    whitevo likes this.
  11. whitevo

    whitevo Feeling good, thats what I do.

    Joined:
    Jan 2, 2015
    Messages:
    3,133
    oh, I see, ty
     
  12. rydda

    rydda New Member

    Joined:
    Jan 11, 2009
    Messages:
    23
    Your a saviour! God i didn't think i needed to stare at these when it was 0.3.6 etc. But i miss it haha, and it speeds up alot of guessing on names etc. xD
    THanks man!
     
  13. Xeraphus

    Xeraphus the best

    Joined:
    Feb 14, 2015
    Messages:
    1,704
    updated magic/distance effects (with numbers) for 1.2 if anyone needs
    Code:
    Magic Effect
    
    CONST_ME_DRAWBLOOD           [1]
    CONST_ME_LOSEENERGY          [2]
    CONST_ME_POFF                [3]
    CONST_ME_BLOCKHIT            [4]
    CONST_ME_EXPLOSIONAREA       [5]
    CONST_ME_EXPLOSIONHIT        [6]
    CONST_ME_FIREAREA            [7]
    CONST_ME_YELLOW_RINGS        [8]
    CONST_ME_GREEN_RINGS         [9]
    CONST_ME_HITAREA             [10]
    CONST_ME_TELEPORT            [11]
    CONST_ME_ENERGYHIT           [12]
    CONST_ME_MAGIC_BLUE          [13]
    CONST_ME_MAGIC_RED           [14]
    CONST_ME_MAGIC_GREEN         [15]
    CONST_ME_HITBYFIRE           [16]
    CONST_ME_HITBYPOISON         [17]
    CONST_ME_MORTAREA            [18]
    CONST_ME_SOUND_GREEN         [19]
    CONST_ME_SOUND_RED           [20]
    CONST_ME_POISONAREA          [21]
    CONST_ME_SOUND_YELLOW        [22]
    CONST_ME_SOUND_PURPLE        [23]
    CONST_ME_SOUND_BLUE          [24]
    CONST_ME_SOUND_WHITE         [25]
    CONST_ME_BUBBLES             [26]
    CONST_ME_CRAPS               [27]
    CONST_ME_GIFT_WRAPS          [28]
    CONST_ME_FIREWORK_YELLOW     [29]
    CONST_ME_FIREWORK_RED        [30]
    CONST_ME_FIREWORK_BLUE       [31]
    CONST_ME_STUN                [32]
    CONST_ME_SLEEP               [33]
    CONST_ME_WATERCREATURE       [34]
    CONST_ME_GROUNDSHAKER        [35]
    CONST_ME_HEARTS              [36]
    CONST_ME_FIREATTACK          [37]
    CONST_ME_ENERGYAREA          [38]
    CONST_ME_SMALLCLOUDS         [39]
    CONST_ME_HOLYDAMAGE          [40]
    CONST_ME_BIGCLOUDS           [41]
    CONST_ME_ICEAREA             [42]
    CONST_ME_ICETORNADO          [43]
    CONST_ME_ICEATTACK           [44]
    CONST_ME_STONES              [45]
    CONST_ME_SMALLPLANTS         [46]
    CONST_ME_CARNIPHILA          [47]
    CONST_ME_PURPLEENERGY        [48]
    CONST_ME_YELLOWENERGY        [49]
    CONST_ME_HOLYAREA            [50]
    CONST_ME_BIGPLANTS           [51]
    CONST_ME_CAKE                [52]
    CONST_ME_GIANTICE            [53]
    CONST_ME_WATERSPLASH         [54]
    CONST_ME_PLANTATTACK         [55]
    CONST_ME_TUTORIALARROW       [56]
    CONST_ME_TUTORIALSQUARE      [57]
    CONST_ME_MIRRORHORIZONTAL    [58]
    CONST_ME_MIRRORVERTICAL      [59]
    CONST_ME_SKULLHORIZONTAL     [60]
    CONST_ME_SKULLVERTICAL       [61]
    CONST_ME_ASSASSIN            [62]
    CONST_ME_STEPSHORIZONTAL     [63]
    CONST_ME_BLOODYSTEPS         [64]
    CONST_ME_STEPSVERTICAL       [65]
    CONST_ME_YALAHARIGHOST       [66]
    CONST_ME_BATS                [67]
    CONST_ME_SMOKE               [68]
    CONST_ME_INSECTS             [69]
    CONST_ME_DRAGONHEAD          [70]
    CONST_ME_ORCSHAMAN           [71]
    CONST_ME_ORCSHAMAN_FIRE      [72]
    CONST_ME_THUNDER             [73]
    CONST_ME_FERUMBRAS           [74]
    CONST_ME_CONFETTI_HORIZONTAL [75]
    CONST_ME_CONFETTI_VERTICAL   [76]
    CONST_ME_BLACKSMOKE          [158]
    CONST_ME_REDSMOKE            [167]
    CONST_ME_YELLOWSMOKE         [168]
    CONST_ME_GREENSMOKE          [169]
    CONST_ME_PURPLESMOKE         [170]
    CONST_ME_NONE                [0]
    
    
    
    Distance Effect
    
    CONST_ANI_SPEAR            [1]
    CONST_ANI_BOLT             [2]
    CONST_ANI_ARROW            [3]
    CONST_ANI_FIRE             [4]
    CONST_ANI_ENERGY           [5]
    CONST_ANI_POISONARROW      [6]
    CONST_ANI_BURSTARROW       [7]
    CONST_ANI_THROWINGSTAR     [8]
    CONST_ANI_THROWINGKNIFE    [9]
    CONST_ANI_SMALLSTONE       [10]
    CONST_ANI_DEATH            [11]
    CONST_ANI_LARGEROCK        [12]
    CONST_ANI_SNOWBALL         [13]
    CONST_ANI_POWERBOLT        [14]
    CONST_ANI_POISON           [15]
    CONST_ANI_INFERNALBOLT     [16]
    CONST_ANI_HUNTINGSPEAR     [17]
    CONST_ANI_ENCHANTEDSPEAR   [18]
    CONST_ANI_REDSTAR          [19]
    CONST_ANI_GREENSTAR        [20]
    CONST_ANI_ROYALSPEAR       [21]
    CONST_ANI_SNIPERARROW      [22]
    CONST_ANI_ONYXARROW        [23]
    CONST_ANI_PIERCINGBOLT     [24]
    CONST_ANI_WHIRLWINDSWORD   [25]
    CONST_ANI_WHIRLWINDAXE     [26]
    CONST_ANI_WHIRLWINDCLUB    [27]
    CONST_ANI_ETHEREALSPEAR    [28]
    CONST_ANI_ICE              [29]
    CONST_ANI_EARTH            [30]
    CONST_ANI_HOLY             [31]
    CONST_ANI_SUDDENDEATH      [32]
    CONST_ANI_FLASHARROW       [33]
    CONST_ANI_FLAMMINGARROW    [34]
    CONST_ANI_SHIVERARROW      [35]
    CONST_ANI_ENERGYBALL       [36]
    CONST_ANI_SMALLICE         [37]
    CONST_ANI_SMALLHOLY        [38]
    CONST_ANI_SMALLEARTH       [39]
    CONST_ANI_EARTHARROW       [40]
    CONST_ANI_EXPLOSION        [41]
    CONST_ANI_CAKE             [42]
    CONST_ANI_TARSALARROW      [44]
    CONST_ANI_VORTEXBOLT       [45]
    CONST_ANI_PRISMATICBOLT    [48]
    CONST_ANI_CRYSTALLINEARROW [49]
    CONST_ANI_DRILLBOLT        [50]
    CONST_ANI_ENVENOMEDARROW   [51]
    CONST_ANI_GLOOTHSPEAR      [53]
    CONST_ANI_SIMPLEARROW      [54]
    CONST_ANI_NONE             [0]
    
     

Share This Page