////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////
//  CLIENT.INC - defines client releated constants.
//
//  This include file is designed to hold all the client lowlevel constants.
//  Not all constants might be usable as of now, but in the future, they
//  might be.
//
//  Author: Ignatius 1999/01/20
//
//  Recent Modifications
//      1999/01/25 Ignatius added animations/actions/sounds.
//      1999/01/26 Ignatius moved skillids/constants into this file and
//                 added a lot of more sounds.
//      1999/01/27 Ignatius found out that I got the sounds all wrong
//                 it seems, fixed up a lot of things there. Started
//                 to map out the T2A sounds. Added some creature IDs.
//      2017/06/25 Yukiko added skill ids for ToL compliance.
////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////

////
// Soundeffects
// The first section is just an enum of existing sounds,
// the second builds on the first ones, but providing more
// logical names.
///
const SFX_1     :=  0x0001; // forest
const SFX_2     :=  0x0002; // forest
const SFX_3     :=  0x0003; // forest
const SFX_4     :=  0x0004; // jungle
const SFX_5     :=  0x0005; // jungle
const SFX_6     :=  0x0006; // jungle
const SFX_7     :=  0x0007; // swamp
const SFX_8     :=  0x0008; // swamp
const SFX_9     :=  0x0009; // forest
const SFX_A     :=  0x000a; // forest
const SFX_B     :=  0x000b; // generic
const SFX_C     :=  0x000c; // generic
const SFX_D     :=  0x000d; // jungle
const SFX_E     :=  0x000e; // jungle
const SFX_F     :=  0x000f; // swamp
const SFX_10    :=  0x0010; // swamp
const SFX_11    :=  0x0011; // water
const SFX_12    :=  0x0012; // water
const SFX_13    :=  0x0013; // waves
const SFX_14    :=  0x0014; // waves
const SFX_15    :=  0x0015; // wind
const SFX_16    :=  0x0016; // wind
const SFX_17    :=  0x0017; // wind
const SFX_18    :=  0x0018; // bird
const SFX_19    :=  0x0019; // bird
const SFX_1A    :=  0x001a; // bird
const SFX_1B    :=  0x001b; // bird
const SFX_1C    :=  0x001c; // bird
const SFX_1D    :=  0x001d; // bird
const SFX_1E    :=  0x001e; // bird
const SFX_1F    :=  0x001f; // bird
const SFX_20    :=  0x0020; // bird
const SFX_21    :=  0x0021; // bubbles
const SFX_22    :=  0x0022; // bubbles
const SFX_23    :=  0x0023; // dripping
const SFX_24    :=  0x0024; // dripping
const SFX_25    :=  0x0025; // dripping
const SFX_26    :=  0x0026; // splashing
const SFX_27    :=  0x0027; // splashing
const SFX_28    :=  0x0028; // splashing
const SFX_29    :=  0x0029; // thundr01.wav, thunder
const SFX_2A    :=  0x002a; // thundr02.wav, thunder
const SFX_2B    :=  0x002b; // anvil.wav, anvil
const SFX_2C    :=  0x002c; // bellows.wav, bellows
const SFX_2D    :=  0x002d; // chstcls3.wav, chest close
const SFX_2E    :=  0x002e; // chstopn2.wav, chest open
const SFX_2F    :=  0x002f; // drawercl.wav, drawer close
const SFX_30    :=  0x0030; // drawerop.wav, drawer open
const SFX_31    :=  0x0031; // drink01.wav, drink
const SFX_32    :=  0x0032; // drink05.wav, drink
const SFX_33    :=  0x0033; // dropgem1.wav, drop gem
const SFX_34    :=  0x0034; // dropgem2.wav, drop gem
const SFX_35    :=  0x0035; // dropgem3.wav, drop gem
const SFX_36    :=  0x0036; // dropmny1.wav, drop money
const SFX_37    :=  0x0037; // dropmny2.wav, drop money
const SFX_38    :=  0x0038; // dropmny3.wav, drop money
const SFX_39    :=  0x0039; // drum01.wav, drum
const SFX_3A    :=  0x003a; // drum01_b.wav, drum
const SFX_3B    :=  0x003b; // eat01.wav, eat
const SFX_3C    :=  0x003c; // eat03.wav, eat
const SFX_3D    :=  0x003d; // eat06.wav,eat
const SFX_3E    :=  0x003e; // flute01.wav, flute
const SFX_3F    :=  0x003f; // glasbrk1.wav, glassbreak
const SFX_40    :=  0x0040; // glasbrk2.wav, glassbreak
const SFX_41    :=  0x0041; // glasbrk3.wav, glassbreak
const SFX_42    :=  0x0042; // glasbrk4.wav, glassbreak
const SFX_43    :=  0x0043; // hamer01.wav, hammer
const SFX_44    :=  0x0044; // harp01.wav, harp
const SFX_45    :=  0x0045; // harp01_b.wav, harp
const SFX_46    :=  0x0046; // harp02.wav, harp
const SFX_47    :=  0x0047; // harp02_b.wav, harp
const SFX_48    :=  0x0048; // igntorch.wav, ignite torch
const SFX_49    :=  0x0049; // leather1.wav, leather
const SFX_4A    :=  0x004a; // lever01.wav, lever
const SFX_4B    :=  0x004b; // lever02.wav, lever
const SFX_4C    :=  0x004c; // lever05.wav, lever
const SFX_4D    :=  0x004d; // lute01.wav, lute
const SFX_4E    :=  0x004e; // lute01_b.wav, lute
const SFX_4F    :=  0x004f; // pouring.wav, pouring
const SFX_50    :=  0x0050; // rustle.wav, rustle
const SFX_51    :=  0x0051; // swallow2.wav, swallow
const SFX_52    :=  0x0052; // switch01.wav, switch
const SFX_53    :=  0x0053; // tamborin.wav, tamborine
const SFX_54    :=  0x0054; // tambrn_b.wav, tamborine
const SFX_55    :=  0x0055; // torch01.wav, torch
const SFX_56    :=  0x0056; // turnpage.wav, turn page
const SFX_57    :=  0x0057; // unsheth1.wav, ?
const SFX_58    :=  0x0058; // usecloth.wav, use cloth
const SFX_59    :=  0x0059; // uselethr.wav, use leather
const SFX_5A    :=  0x005a; // uselthr1.wav, use leather
const SFX_5B    :=  0x005b; // aligatr1.wav, alligator
const SFX_5C    :=  0x005c; // aligatr2.wav, alligator
const SFX_5D    :=  0x005d; // aligatr3.wav, alligator
const SFX_5E    :=  0x005e; // aligatr4.wav, alligator
const SFX_5F    :=  0x005f; // aligatr5.wav, alligator
const SFX_60    :=  0x0060; // bear1.wav, bear
const SFX_61    :=  0x0061; // bear2.wav, bear
const SFX_62    :=  0x0062; // bear3.wav, bear
const SFX_63    :=  0x0063; // bear4.wav, bear
const SFX_64    :=  0x0064; // bear5.wav, bear
const SFX_65    :=  0x0065; // bull1.wav, bull
const SFX_66    :=  0x0066; // bull2.wav, bull
const SFX_67    :=  0x0067; // bull3.wav, bull
const SFX_68    :=  0x0068; // bull4.wav, bull
const SFX_69    :=  0x0069; // bull5.wav, bull
const SFX_6A    :=  0x006a; // cat1.wav
const SFX_6B    :=  0x006b; // cat2.wav
const SFX_6C    :=  0x006c; // cat3.wav
const SFX_6D    :=  0x006d; // cat4.wav
const SFX_6E    :=  0x006e; // cat5.wav
const SFX_6F    :=  0x006f; // chicken1.wav
const SFX_70    :=  0x0070; // chicken2.wav
const SFX_71    :=  0x0071; // chicken3.wav
const SFX_72    :=  0x0072; // chicken4.wav
const SFX_73    :=  0x0073; // chicken5.wav
const SFX_74    :=  0x0074; // cougar1.wav
const SFX_75    :=  0x0075; // cougar2.wav
const SFX_76    :=  0x0076; // cougar3.wav
const SFX_77    :=  0x0077; // cougar4.wav
const SFX_78    :=  0x0078; // cougar5.wav
const SFX_79    :=  0x0079; // cow1.wav
const SFX_7A    :=  0x007a; // cow2.wav
const SFX_7B    :=  0x007b; // cow3.wav
const SFX_7C    :=  0x007c; // cow4.wav
const SFX_7D    :=  0x007d; // cow5.wav
const SFX_7E    :=  0x007e; // crow1.wav
const SFX_7F    :=  0x007f; // crow2.wav
const SFX_80    :=  0x0080; // crow3.wav
const SFX_81    :=  0x0081; // crow4.wav
const SFX_82    :=  0x0082; // crow5.wav
const SFX_83    :=  0x0083; // deer3.wav
const SFX_84    :=  0x0084; // deer4.wav
const SFX_85    :=  0x0085; // deer5.wav
const SFX_86    :=  0x0086; // dog1.wav
const SFX_87    :=  0x0087; // dog2.wav
const SFX_88    :=  0x0088; // dog3.wav
const SFX_89    :=  0x0089; // dog4.wav
const SFX_8A    :=  0x008a; // dog5.wav
const SFX_8B    :=  0x008b; // dolphin1.wav
const SFX_8C    :=  0x008c; // dolphin2.wav
const SFX_8D    :=  0x008d; // dolphin3.wav
const SFX_8E    :=  0x008e; // dolphin4.wav
const SFX_8F    :=  0x008f; // dolphin5.wav
const SFX_90    :=  0x0090; // eagle1.wav
const SFX_91    :=  0x0091; // eagle2.wav
const SFX_92    :=  0x0092; // eagle3.wav
const SFX_93    :=  0x0093; // eagle4.wav
const SFX_94    :=  0x0094; // eagle5.wav
const SFX_95    :=  0x0095; // frstbrd1.wav
const SFX_96    :=  0x0096; // frstbrd2.wav
const SFX_97    :=  0x0097; // frstbrd3.wav
const SFX_98    :=  0x0098; // frstbrd4.wav
const SFX_99    :=  0x0099; // frstbrd5.wav
const SFX_9A    :=  0x009a; // goat1.wav
const SFX_9B    :=  0x009b; // goat2.wav
const SFX_9C    :=  0x009c; // goat3.wav
const SFX_9D    :=  0x009d; // goat4.wav
const SFX_9E    :=  0x009e; // goat5.wav
const SFX_9F    :=  0x009f; // gorilla1.wav
const SFX_A0    :=  0x00a0; // gorilla2.wav
const SFX_A1    :=  0x00a1; // gorilla3.wav
const SFX_A2    :=  0x00a2; // gorilla4.wav
const SFX_A3    :=  0x00a3; // gorilla5.wav
const SFX_A4    :=  0x00a4; // grizzly1.wav
const SFX_A5    :=  0x00a5; // grizzly2.wav
const SFX_A6    :=  0x00a6; // grizzly3.wav
const SFX_A7    :=  0x00a7; // grizzly4.wav
const SFX_A8    :=  0x00a8; // grizzly5.wav
const SFX_A9    :=  0x00a9; // horse1.wav
const SFX_AA    :=  0x00aa; // horse2.wav
const SFX_AB    :=  0x00ab; // horse3.wav
const SFX_AC    :=  0x00ac; // horse4.wav
const SFX_AD    :=  0x00ad; // horse5.wav
const SFX_AE    :=  0x00ae; // jungbrd1.wav
const SFX_AF    :=  0x00af; // jungbrd2.wav
const SFX_B0    :=  0x00b0; // jungbrd3.wav
const SFX_B1    :=  0x00b1; // jungbrd4.wav
const SFX_B2    :=  0x00b2; // jungbrd5.wav
const SFX_B3    :=  0x00b3; // lion1.wav
const SFX_B4    :=  0x00b4; // lion2.wav
const SFX_B5    :=  0x00b5; // lion3.wav
const SFX_B6    :=  0x00b6; // lion4.wav
const SFX_B7    :=  0x00b7; // lion5.wav
const SFX_B8    :=  0x00b8; // llama3.wav
const SFX_B9    :=  0x00b9; // llama4.wav
const SFX_BA    :=  0x00ba; // llama5.wav
const SFX_BB    :=  0x00bb; // panther1.wav
const SFX_BC    :=  0x00bc; // panther2.wav
const SFX_BD    :=  0x00bd; // panther3.wav
const SFX_BE    :=  0x00be; // panther4.wav
const SFX_BF    :=  0x00bf; // panther5.wav
const SFX_C0    :=  0x00c0; // parrot1.wav
const SFX_C1    :=  0x00c1; // parrot2.wav
const SFX_C2    :=  0x00c2; // parrot3.wav
const SFX_C3    :=  0x00c3; // parrot4.wav
const SFX_C4    :=  0x00c4; // parrot5.wav
const SFX_C5    :=  0x00c5; // pig1.wav
const SFX_C6    :=  0x00c6; // pig2.wav
const SFX_C7    :=  0x00c7; // pig3.wav
const SFX_C8    :=  0x00c8; // pig4.wav
const SFX_C9    :=  0x00c9; // pig5.wav
const SFX_CA    :=  0x00ca; // rabbit3.wav
const SFX_CB    :=  0x00cb; // rabbit4.wav
const SFX_CC    :=  0x00cc; // rabbit5.wav
const SFX_CD    :=  0x00cd; // rat1.wav
const SFX_CE    :=  0x00ce; // rat2.wav
const SFX_CF    :=  0x00cf; // rat3.wav
const SFX_D0    :=  0x00d0; // rat4.wav
const SFX_D1    :=  0x00d1; // rat5.wav
const SFX_D2    :=  0x00d2; // raven1.wav
const SFX_D3    :=  0x00d3; // raven2.wav
const SFX_D4    :=  0x00d4; // raven3.wav
const SFX_D5    :=  0x00d5; // raven4.wav
const SFX_D6    :=  0x00d6; // raven5.wav
const SFX_D7    :=  0x00d7; // sheep1.wav
const SFX_D8    :=  0x00d8; // sheep2.wav
const SFX_D9    :=  0x00d9; // sheep3.wav
const SFX_DA    :=  0x00da; // sheep4.wav
const SFX_DB    :=  0x00db; // sheep5.wav
const SFX_DC    :=  0x00dc; // snake1.wav
const SFX_DD    :=  0x00dd; // snake2.wav
const SFX_DE    :=  0x00de; // snake3.wav
const SFX_DF    :=  0x00df; // snake4.wav
const SFX_E0    :=  0x00e0; // snake5.wav
const SFX_E1    :=  0x00e1; // walrus1.wav
const SFX_E2    :=  0x00e2; // walrus2.wav
const SFX_E3    :=  0x00e3; // walrus3.wav
const SFX_E4    :=  0x00e4; // walrus4.wav
const SFX_E5    :=  0x00e5; // walrus5.wav
const SFX_E6    :=  0x00e6; // wolf1.wav
const SFX_E7    :=  0x00e7; // wolf2.wav
const SFX_E8    :=  0x00e8; // wolf3.wav
const SFX_E9    :=  0x00e9; // wolf4.wav
const SFX_EA    :=  0x00ea; // wolf5.wav
const SFX_EB    :=  0x00eb; // open01a.wav
const SFX_EC    :=  0x00ec; // open03a.wav
const SFX_ED    :=  0x00ed; // open04b.wav
const SFX_EE    :=  0x00ee; // open09.wav
const SFX_EF    :=  0x00ef; // portclos.wav
const SFX_F0    :=  0x00f0; // portcul4.wav
const SFX_F1    :=  0x00f1; // portcul5.wav
const SFX_F2    :=  0x00f2; // shut03a.wav
const SFX_F3    :=  0x00f3; // shut07a.wav
const SFX_F4    :=  0x00f4; // shut14b.wav
const SFX_F5    :=  0x00f5; // shut17.wav
const SFX_F6    :=  0x00f6; // sfx01.wav
const SFX_F7    :=  0x00f7; // sfx02.wav
const SFX_F8    :=  0x00f8; // sfx04.wav
const SFX_F9    :=  0x00f9; // sfx05.wav
const SFX_FA    :=  0x00fa; // sfx06.wav
const SFX_FB    :=  0x00fb; // sfx08.wav
const SFX_FC    :=  0x00fc; // sfx10.wav
const SFX_FD    :=  0x00fd; // sfx11.wav
const SFX_FE    :=  0x00fe; // sfx12.wav
const SFX_FF    :=  0x00ff; // sfx13.wav
const SFX_100   :=  0x0100; // sfx14_l.wav
const SFX_101   :=  0x0101; // sfx15_l.wav
const SFX_102   :=  0x0102; // sfx16_l.wav
const SFX_103   :=  0x0103; // sfx17_l.wav
const SFX_104   :=  0x0104; // sfx18_l.wav
const SFX_105   :=  0x0105; // sfx20_l.wav
const SFX_106   :=  0x0106; // sfx21_l.wav
const SFX_107   :=  0x0107; // sfx22_l.wav
const SFX_108   :=  0x0108; // airelem1.wav
const SFX_109   :=  0x0109; // airelem2.wav
const SFX_10A   :=  0x010a; // airelem3.wav
const SFX_10B   :=  0x010b; // airelem4.wav
const SFX_10C   :=  0x010c; // airelem5.wav
const SFX_10D   :=  0x010d; // erthel1.wav
const SFX_10E   :=  0x010e; // erthel2.wav
const SFX_10F   :=  0x010f; // erthel3.wav
const SFX_110   :=  0x0110; // erthel4.wav
const SFX_111   :=  0x0111; // erthel5.wav
const SFX_112   :=  0x0112; // firelem1.wav
const SFX_113   :=  0x0113; // firelem2.wav
const SFX_114   :=  0x0114; // firelem3.wav
const SFX_115   :=  0x0115; // firelem4.wav
const SFX_116   :=  0x0116; // firelem5.wav
const SFX_117   :=  0x0117; // watrel1.wav
const SFX_118   :=  0x0118; // watrel2.wav
const SFX_119   :=  0x0119; // watrel3.wav
const SFX_11A   :=  0x011a; // watrel4.wav
const SFX_11B   :=  0x011b; // watrel5.wav
const SFX_11C   :=  0x011c; // exp01.wav
const SFX_11D   :=  0x011d; // exp04.wav
const SFX_11E   :=  0x011e; // exp05.wav
const SFX_11F   :=  0x011f; // exp06.wav
const SFX_120   :=  0x0120; // bigfoot1.wav
const SFX_121   :=  0x0121; // bigfoot2.wav
const SFX_122   :=  0x0122; // feet01a.wav
const SFX_123   :=  0x0123; // feet01b.wav
const SFX_124   :=  0x0124; // feet03a.wav
const SFX_125   :=  0x0125; // feet03b.wav
const SFX_126   :=  0x0126; // feet05a.wav
const SFX_127   :=  0x0127; // feet05b.wav
const SFX_128   :=  0x0128; // feet08a.wav
const SFX_129   :=  0x0129; // feet08b.wav
const SFX_12A   :=  0x012a; // feet10a.wav
const SFX_12B   :=  0x012b; // feet10b.wav
const SFX_12C   :=  0x012c; // feet12a.wav
const SFX_12D   :=  0x012d; // feet12b1wav
const SFX_12E   :=  0x012e; // feet13a.wav
const SFX_12F   :=  0x012f; // feet13b.wav
const SFX_130   :=  0x0130; // feet14a.wav
const SFX_131   :=  0x0131; // feet14b.wav
const SFX_132   :=  0x0132; // feet15a.wav
const SFX_133   :=  0x0133; // feet15b.wav
const SFX_134   :=  0x0134; // feet15c.wav
const SFX_135   :=  0x0135; // feet15d.wav
const SFX_136   :=  0x0136; // hit01.wav
const SFX_137   :=  0x0137; // hit02.wav
const SFX_138   :=  0x0138; // hit03.wav
const SFX_139   :=  0x0139; // hit04.wav
const SFX_13A   :=  0x013a; // hit05.wav
const SFX_13B   :=  0x013b; // hit06.wav
const SFX_13C   :=  0x013c; // hit07.wav
const SFX_13D   :=  0x013d; // hit08.wav
const SFX_13E   :=  0x013e; // hit09.wav
const SFX_13F   :=  0x013f; // hit10.wav
const SFX_140   :=  0x0140; // hit11.wav
const SFX_141   :=  0x0141; // hit12.wav
const SFX_142   :=  0x0142; // hit13.wav
const SFX_143   :=  0x0143; // hit14.wav
const SFX_144   :=  0x0144; // hit15.wav
const SFX_145   :=  0x0145; // hit16.wav
const SFX_146   :=  0x0146; // hit17.wav
const SFX_147   :=  0x0147; // hit18.wav
const SFX_148   :=  0x0148; // hit19.wav
const SFX_149   :=  0x0149; // hit20.wav
const SFX_14A   :=  0x014a; // hit21.wav
const SFX_14B   :=  0x014b; // hit22.wav
const SFX_14C   :=  0x014c; // foomph01.wav
const SFX_14D   :=  0x014d; // foomph06.wav
const SFX_14E   :=  0x014e; // foomph07.wav
const SFX_14F   :=  0x014f; // foomph08.wav
const SFX_150   :=  0x0150; // foomph09.wav
const SFX_151   :=  0x0151; // f_die_01.wav
const SFX_152   :=  0x0152; // f_die_02.wav
const SFX_153   :=  0x0153; // f_die_03.wav
const SFX_154   :=  0x0154; // f_die_04.wav
const SFX_155   :=  0x0155; // moomph01.wav
const SFX_156   :=  0x0156; // moomph02.wav
const SFX_157   :=  0x0157; // moomph03.wav
const SFX_158   :=  0x0158; // moomph04.wav
const SFX_159   :=  0x0159; // moomph05.wav
const SFX_15A   :=  0x015a; // moomph13.wav
const SFX_15B   :=  0x015b; // m_die_01.wav
const SFX_15C   :=  0x015c; // m_die_02.wav
const SFX_15D   :=  0x015d; // m_die_03.wav
const SFX_15E   :=  0x015e; // m_die_04.wav
const SFX_15F   :=  0x015f; // fyrbal01.wav
const SFX_160   :=  0x0160; // fyrbal02.wav
const SFX_161   :=  0x0161; // fyrbal03.wav
const SFX_162   :=  0x0162; // corpsr1.wav
const SFX_163   :=  0x0163; // corpsr3.wav
const SFX_164   :=  0x0164; // corpsr4.wav
const SFX_165   :=  0x0165; // corpsr5.wav
const SFX_166   :=  0x0166; // demon1.wav
const SFX_167   :=  0x0167; // demon2.wav
const SFX_168   :=  0x0168; // demon3.wav
const SFX_169   :=  0x0169; // demon4.wav
const SFX_16A   :=  0x016a; // demon5.wav
const SFX_16B   :=  0x016b; // dragon1.wav
const SFX_16C   :=  0x016c; // dragon2.wav
const SFX_16D   :=  0x016d; // dragon3.wav
const SFX_16E   :=  0x016e; // dragon4.wav
const SFX_16F   :=  0x016f; // dragon5.wav
const SFX_170   :=  0x0170; // ettin1.wav
const SFX_171   :=  0x0171; // ettin2.wav
const SFX_172   :=  0x0172; // ettin3.wav
const SFX_173   :=  0x0173; // ettin4.wav
const SFX_174   :=  0x0174; // ettin5.wav
const SFX_175   :=  0x0175; // gargyl1.wav
const SFX_176   :=  0x0176; // gargyl2.wav
const SFX_177   :=  0x0177; // gargyl3.wav
const SFX_178   :=  0x0178; // gargyl4.wav
const SFX_179   :=  0x0179; // gargyl5.wav
const SFX_17A   :=  0x017a; // gazer1.wav
const SFX_17B   :=  0x017b; // gazer2.wav
const SFX_17C   :=  0x017c; // gazer3.wav
const SFX_17D   :=  0x017d; // gazer4.wav
const SFX_17E   :=  0x017e; // gazer5.wav
const SFX_17F   :=  0x017f; // ghost1.wav
const SFX_180   :=  0x0180; // ghost2.wav
const SFX_181   :=  0x0181; // ghost3.wav
const SFX_182   :=  0x0182; // ghost4.wav
const SFX_183   :=  0x0183; // ghost5.wav
const SFX_184   :=  0x0184; // gispidr1.wav
const SFX_185   :=  0x0185; // gispidr2.wav
const SFX_186   :=  0x0186; // gispidr3.wav
const SFX_187   :=  0x0187; // gispidr4.wav
const SFX_188   :=  0x0188; // gispidr5.wav
const SFX_189   :=  0x0189; // grat1.wav
const SFX_18A   :=  0x018a; // grat2.wav
const SFX_18B   :=  0x018b; // grat3.wav
const SFX_18C   :=  0x018c; // grat4.wav
const SFX_18D   :=  0x018d; // grat5.wav
const SFX_18E   :=  0x018e; // gscorp1.wav
const SFX_18F   :=  0x018f; // gscorp2.wav
const SFX_190   :=  0x0190; // gscorp3.wav
const SFX_191   :=  0x0191; // gscorp4.wav
const SFX_192   :=  0x0192; // gscorp5.wav
const SFX_193   :=  0x0193; // harpy1.wav
const SFX_194   :=  0x0194; // harpy2.wav
const SFX_195   :=  0x0195; // harpy3.wav
const SFX_196   :=  0x0196; // harpy4.wav
const SFX_197   :=  0x0197; // harpy5.wav
const SFX_198   :=  0x0198; // headls1.wav
const SFX_199   :=  0x0199; // headls2.wav
const SFX_19A   :=  0x019a; // headls3.wav
const SFX_19B   :=  0x019b; // headls4.wav
const SFX_19C   :=  0x019c; // headls5.wav
const SFX_19D   :=  0x019d; // liche1.wav
const SFX_19E   :=  0x019e; // liche2.wav
const SFX_19F   :=  0x019f; // liche3.wav
const SFX_1A0   :=  0x01a0; // liche4.wav
const SFX_1A1   :=  0x01a1; // liche5.wav
const SFX_1A2   :=  0x01a2; // lzrdmn1.wav
const SFX_1A3   :=  0x01a3; // lzrdmn2.wav
const SFX_1A4   :=  0x01a4; // lzrdmn3.wav
const SFX_1A5   :=  0x01a5; // lzrdmn4.wav
const SFX_1A6   :=  0x01a6; // lzrdmn5.wav
const SFX_1A7   :=  0x01a7; // mngbat1.wav
const SFX_1A8   :=  0x01a8; // mngbat2.wav
const SFX_1A9   :=  0x01a9; // mngbat3.wav
const SFX_1AA   :=  0x01aa; // mngbat4.wav
const SFX_1AB   :=  0x01ab; // mngbat5.wav
const SFX_1AC   :=  0x01ac; // ogre1.wav
const SFX_1AD   :=  0x01ad; // ogre2.wav
const SFX_1AE   :=  0x01ae; // ogre3.wav
const SFX_1AF   :=  0x01af; // ogre4.wav
const SFX_1B0   :=  0x01b0; // ogre5.wav
const SFX_1B1   :=  0x01b1; // orc1.wav
const SFX_1B2   :=  0x01b2; // orc2.wav
const SFX_1B3   :=  0x01b3; // orc3.wav
const SFX_1B4   :=  0x01b4; // orc4.wav
const SFX_1B5   :=  0x01b5; // orc5.wav
const SFX_1B6   :=  0x01b6; // ratman1.wav
const SFX_1B7   :=  0x01b7; // ratman2.wav
const SFX_1B8   :=  0x01b8; // ratman3.wav
const SFX_1B9   :=  0x01b9; // ratman4.wav
const SFX_1BA   :=  0x01ba; // ratman5.wav
const SFX_1BB   :=  0x01bb; // reaper1.wav
const SFX_1BC   :=  0x01bc; // reaper2.wav
const SFX_1BD   :=  0x01bd; // reaper3.wav
const SFX_1BE   :=  0x01be; // reaper4.wav
const SFX_1BF   :=  0x01bf; // reaper5.wav
const SFX_1C0   :=  0x01c0; // seaserp1.wav
const SFX_1C1   :=  0x01c1; // seaserp3.wav
const SFX_1C2   :=  0x01c2; // seaserp4.wav
const SFX_1C3   :=  0x01c3; // seaserp5.wav
const SFX_1C4   :=  0x01c4; // skletn1.wav
const SFX_1C5   :=  0x01c5; // skletn2.wav
const SFX_1C6   :=  0x01c6; // skletn3.wav
const SFX_1C7   :=  0x01c7; // skletn4.wav
const SFX_1C8   :=  0x01c8; // skletn5.wav
const SFX_1C9   :=  0x01c9; // slime1.wav
const SFX_1CA   :=  0x01ca; // slime2.wav
const SFX_1CB   :=  0x01cb; // slime3.wav
const SFX_1CC   :=  0x01cc; // slime4.wav
const SFX_1CD   :=  0x01cd; // slime5.wav
const SFX_1CE   :=  0x01ce; // troll1.wav
const SFX_1CF   :=  0x01cf; // troll2.wav
const SFX_1D0   :=  0x01d0; // troll3.wav
const SFX_1D1   :=  0x01d1; // troll4.wav
const SFX_1D2   :=  0x01d2; // troll5.wav
const SFX_1D3   :=  0x01d3; // wisp1.wav
const SFX_1D4   :=  0x01d4; // wisp2.wav
const SFX_1D5   :=  0x01d5; // wisp3.wav
const SFX_1D6   :=  0x01d6; // wisp4.wav
const SFX_1D7   :=  0x01d7; // wisp5.wav
const SFX_1D8   :=  0x01d8; // zombie1.wav
const SFX_1D9   :=  0x01d9; // zombie2.wav
const SFX_1DA   :=  0x01da; // zombie3.wav
const SFX_1DB   :=  0x01db; // zombie4.wav
const SFX_1DC   :=  0x01dc; // zombie5.wav
const SFX_1DD   :=  0x01dd; // elec_l.wav
const SFX_1DE   :=  0x01de; // fire_l.wav
const SFX_1DF   :=  0x01df; // hiss_l.wav
const SFX_1E0   :=  0x01e0; // clumsy.wav
const SFX_1E1   :=  0x01e1; // cure.wav
const SFX_1E2   :=  0x01e2; // curse.wav
const SFX_1E3   :=  0x01e3; // c_food.wav
const SFX_1E4   :=  0x01e4; // c_light.wav
const SFX_1E5   :=  0x01e5; // feblmind.wav
const SFX_1E6   :=  0x01e6; // m_arrow.wav
const SFX_1E7   :=  0x01e7; // weaken.wav
const SFX_1E8   :=  0x01e8; // agility.wav
const SFX_1E9   :=  0x01e9; // archcure.wav
const SFX_1EA   :=  0x01ea; // birdseye.wav
const SFX_1EB   :=  0x01eb; // bless.wav
const SFX_1EC   :=  0x01ec; // cunning.wav
const SFX_1ED   :=  0x01ed; // identify.wav
const SFX_1EE   :=  0x01ee; // protect.wav
const SFX_1EF   :=  0x01ef; // strength.wav
const SFX_1F0   :=  0x01f0; // trap.wav
const SFX_1F1   :=  0x01f1; // untrap.wav
const SFX_1F2   :=  0x01f2; // harm.wav
const SFX_1F3   :=  0x01f3; // heal.wav
const SFX_1F4   :=  0x01f4; // magic_fyrbal01.
const SFX_1F5   :=  0x01f5; // m_lock.wav
const SFX_1F6   :=  0x01f6; // teleknes.wav
const SFX_1F7   :=  0x01f7; // walstone.wav
const SFX_1F8   :=  0x01f8; // aprotect.wav
const SFX_1F9   :=  0x01f9; // manadran.wav
const SFX_1FA   :=  0x01fa; // manavamp.wav
const SFX_1FB   :=  0x01fb; // mark.wav
const SFX_1FC   :=  0x01fc; // masscurs.wav
const SFX_1FD   :=  0x01fd; // recall.wav
const SFX_1FE   :=  0x01fe; // reveal.wav
const SFX_1FF   :=  0x01ff; // teleport.wav
const SFX_200   :=  0x0200; // unlock.wav
const SFX_201   :=  0x0201; // bladsprt.wav
const SFX_202   :=  0x0202; // dispfild.wav
const SFX_203   :=  0x0203; // gratheal.wav
const SFX_204   :=  0x0204; // invisibl.wav
const SFX_205   :=  0x0205; // paralyze.wav
const SFX_206   :=  0x0206; // poison.wav
const SFX_207   :=  0x0207; // thundr01.wav
const SFX_208   :=  0x0208; // explode.wav
const SFX_209   :=  0x0209; // flamstrk.wav
const SFX_20A   :=  0x020a; // massdisp.wav
const SFX_20B   :=  0x020b; // nrgybolt.wav
const SFX_20C   :=  0x020c; // parafild.wav
const SFX_20D   :=  0x020d; // posnfild.wav
const SFX_20E   :=  0x020e; // earthqke.wav
const SFX_20F   :=  0x020f; // gatetrvl.wav
const SFX_210   :=  0x0210; // morph.wav
const SFX_211   :=  0x0211; // nergyfld.wav
const SFX_212   :=  0x0212; // nrgywind.wav
const SFX_213   :=  0x0213; // dethvrtx.wav
const SFX_214   :=  0x0214; // mindblst.wav
const SFX_215   :=  0x0215; // resurect.wav
const SFX_216   :=  0x0216; // sumncrtr.wav
const SFX_217   :=  0x0217; // sumndemn.wav
const SFX_218   :=  0x0218; // sumnelem.wav
const SFX_219   :=  0x0219; // blade01.wav
const SFX_21A   :=  0x021a; // blade02.wav
const SFX_21B   :=  0x021b; // blade03.wav
const SFX_21C   :=  0x021c; // blade04.wav
const SFX_21D   :=  0x021d; // blade05.wav
const SFX_21E   :=  0x021e; // boulder1.wav
const SFX_21F   :=  0x021f; // boulder2.wav
const SFX_220   :=  0x0220; // crumble1.wav
const SFX_221   :=  0x0221; // crumble2.wav
const SFX_222   :=  0x0222; // crumble3.wav
const SFX_223   :=  0x0223; // crumble4.wav
const SFX_224   :=  0x0224; // dart01.wav
const SFX_225   :=  0x0225; // dart02.wav
const SFX_226   :=  0x0226; // flame01.wav
const SFX_227   :=  0x0227; // flame03.wav
const SFX_228   :=  0x0228; // flame05.wav
const SFX_229   :=  0x0229; // mushrm01.wav
const SFX_22A   :=  0x022a; // mushrm02.wav
const SFX_22B   :=  0x022b; // mushrm03.wav
const SFX_22C   :=  0x022c; // spike01.wav
const SFX_22D   :=  0x022d; // spike02.wav
const SFX_22E   :=  0x022e; // spike03.wav
const SFX_22F   :=  0x022f; // spike04.wav
const SFX_230   :=  0x0230; // vapor01.wav
const SFX_231   :=  0x0231; // vapor02.wav
const SFX_232   :=  0x0232; // vapor03.wav
const SFX_233   :=  0x0233; // axe01.wav
const SFX_234   :=  0x0234; // blunt01.wav
const SFX_235   :=  0x0235; // crossbow.wav
const SFX_236   :=  0x0236; // gilotin1.wav
const SFX_237   :=  0x0237; // hvyswrd1.wav
const SFX_238   :=  0x0238; // hvyswrd4.wav
const SFX_239   :=  0x0239; // swish01.wav
const SFX_23A   :=  0x023a; // swish02.wav
const SFX_23B   :=  0x023b; // swish03.wav
const SFX_23C   :=  0x023c; // sword1.wav
const SFX_23D   :=  0x023d; // sword7.wav
const SFX_23E   :=  0x023e; // carpntry.wav
const SFX_23F   :=  0x023f; // dye.wav
const SFX_240   :=  0x0240; // fshsplsh.wav
const SFX_241   :=  0x0241; // liquid.wav
const SFX_242   :=  0x0242; // lockpick.wav
const SFX_243   :=  0x0243; // mortar.wav
const SFX_244   :=  0x0244; // mystery1.wav
const SFX_245   :=  0x0245; // mystery2.wav
const SFX_246   :=  0x0246; // mystery3.wav
const SFX_247   :=  0x0247; // poison.wav
const SFX_248   :=  0x0248; // powder.wav
const SFX_249   :=  0x0249; // scissors.wav
const SFX_24A   :=  0x024a; // scribe.wav
const SFX_24B   :=  0x024b; // spirtspk.wav
const SFX_24C   :=  0x024c; // z_horseft2.wav
const SFX_24D   :=  0x024d; // z_horseft1.wav
const SFX_24E   :=  0x024e; // Tera.Warrior 1
const SFX_24F   :=  0x02ef; // Tera.Warrior 2

// Fill in the rest of the T2A sounds here.
// * music *
const SFX_MUSIC_LUTE_GOOD           :=  SFX_4D;
const SFX_MUSIC_LUTE_FAIL           :=  SFX_4E;
const SFX_MUSIC_DRUM_GOOD           :=  SFX_39;
const SFX_MUSIC_DRUM_FAIL           :=  SFX_3A;
const SFX_MUSIC_HARP_LARGE_GOOD     :=  SFX_44;
const SFX_MUSIC_HARP_LARGE_FAIL     :=  SFX_45;
const SFX_MUSIC_HARP_LAP_GOOD       :=  SFX_46;
const SFX_MUSIC_HARP_LAP_FAIL       :=  SFX_47;
const SFX_MUSIC_TAMBORINE_GOOD      :=  SFX_53;
const SFX_MUSIC_TAMBORINE_FAIL      :=  SFX_54;

// * spells & magic sounds *
const SFX_SPELL_CLUMSY              :=  SFX_1E0;
const SFX_SPELL_CREATE_FOOD         :=  SFX_1E3;
const SFX_SPELL_FEEBLEMIND          :=  SFX_1E5;
const SFX_SPELL_HEAL                :=  SFX_1F3;
const SFX_SPELL_MAGIC_ARROW         :=  SFX_1E6;
const SFX_SPELL_NIGHT_SIGHT         :=  SFX_1E4;
const SFX_SPELL_REACTIVE_ARMOR      :=  SFX_1F3;
const SFX_SPELL_WEAKEN              :=  SFX_1E7;
const SFX_SPELL_AGILITY             :=  SFX_1E8;
const SFX_SPELL_CUNNING             :=  SFX_1EC;
const SFX_SPELL_CURE                :=  SFX_1E1;
const SFX_SPELL_HARM                :=  SFX_1F2;
const SFX_SPELL_MAGIC_TRAP          :=  SFX_1F0;
const SFX_SPELL_MAGIC_UNTRAP        :=  SFX_1F1;
const SFX_SPELL_PROTECTION          :=  SFX_1EE;
const SFX_SPELL_STRENGTH            :=  SFX_1EF;
const SFX_SPELL_BLESS               :=  SFX_1EB;
const SFX_SPELL_FIREBALL            :=  SFX_160;
const SFX_SPELL_MAGIC_LOCK          :=  SFX_1F5;
const SFX_SPELL_TELEKINESIS         :=  SFX_1F6;
const SFX_SPELL_TELEPORT            :=  SFX_1FF;
const SFX_SPELL_POISON              :=  SFX_247;
const SFX_SPELL_UNLOCK              :=  SFX_200;
const SFX_SPELL_WALL_OF_STONE       :=  SFX_1F7;
const SFX_SPELL_ARCH_CURE           :=  SFX_1E9;
const SFX_SPELL_ARCH_PROTECTION     :=  SFX_1F8;
const SFX_SPELL_CURSE               :=  SFX_1E2;
const SFX_SPELL_FIRE_FIELD          :=  SFX_226;
const SFX_SPELL_GREATER_HEAL        :=  SFX_203;
const SFX_SPELL_LIGHTNING           :=  SFX_2A;
const SFX_SPELL_MANA_DRAIN          :=  SFX_1F9;
const SFX_SPELL_RECALL              :=  SFX_1FD;
const SFX_SPELL_BLADE_SPIRITS       :=  SFX_213;
const SFX_SPELL_ENERGY_FIELD        :=  SFX_211; // used to say dispel field?
const SFX_SPELL_INCOGNITO           :=  SFX_1ED;
const SFX_SPELL_MAGIC_REFLECTION    :=  SFX_1E8;
const SFX_SPELL_MIND_BLAST          :=  SFX_214;
const SFX_SPELL_PARALYZE            :=  SFX_205;
const SFX_SPELL_POISON_FIELD        :=  SFX_20D; // was 227 (??)
const SFX_SPELL_SUMMON_CREATURE     :=  SFX_216;
const SFX_SPELL_DISPEL              :=  SFX_202;
const SFX_SPELL_ENERGY_BOLT         :=  SFX_20B;
const SFX_SPELL_EXPLOSION           :=  SFX_208;
const SFX_SPELL_INVISIBILITY        :=  SFX_204;
const SFX_SPELL_MARK                :=  SFX_1FB;
const SFX_SPELL_MASS_CURSE          :=  SFX_1FC;
const SFX_SPELL_PARALYZE_FIELD      :=  SFX_212;
const SFX_SPELL_REVEAL              :=  SFX_1FE;
const SFX_SPELL_CHAIN_LIGHTNING     :=  SFX_30;
const SFX_SPELL_PARA_FIELD          :=  SFX_20C;
const SFX_SPELL_FLAME_STRIKE        :=  SFX_209;
const SFX_SPELL_GATE_TRAVEL         :=  SFX_20F;
const SFX_SPELL_MANA_VAMPIRE        :=  SFX_1FA;
const SFX_SPELL_MASS_DISPEL         :=  SFX_20A;
const SFX_SPELL_METEOR_SWARM        :=  SFX_161;
const SFX_SPELL_POLYMORPH           :=  SFX_20A;
const SFX_SPELL_EARTHQUAKE          :=  SFX_20E;
const SFX_SPELL_ENERGY_VORTEX       :=  SFX_213;
const SFX_SPELL_RESSURECTION        :=  SFX_215;
const SFX_SPELL_SUMMON_ELEMENTAL    :=  SFX_218;
const SFX_SPELL_SUMMON_DAEMON        :=  SFX_217;

// * skills *
const SFX_SKILL_SPIRITSPEAK         :=  SFX_24B;
const SFX_SKILL_LUMBERJACK          :=  SFX_13F;
const SFX_TAILORING		              := 0x0249;
const SFX_CARPENTRY		              := 0x023e;

// * items *
const SFX_TRAP_NEEDLE               :=  SFX_225;
const SFX_TRAP_POISON               :=  SFX_206;
const SFX_TRAP_EXPLOSION            :=  SFX_208;
const SFX_ANVIL                     :=  SFX_2B;
const SFX_PICK                      :=  SFX_13B;
const SFX_HAMMER                    :=  SFX_43;
const SFX_GLASSBREAK4               :=  SFX_42;
const SFX_HARP_SUCC                 :=  SFX_46;
const SFX_LUTE_SUCC                 :=  SFX_4D;
const SFX_DRUM_SUCC                 :=  SFX_39;
const SFX_TAMB_SUCC                 :=  SFX_53;

const SFX_HARP_FAIL                 :=  SFX_47;
const SFX_LUTE_FAIL                 :=  SFX_4E;
const SFX_DRUM_FAIL                 :=  SFX_3A;
const SFX_TAMB_FAIL                 :=  SFX_54;


// * doors *
const SFX_OPEN_WOODEN_DOOR          :=  SFX_EB;
const SFX_CLOSE_WOODEN_DOOR         :=  SFX_F2;
const SFX_OPEN_METAL_DOOR           :=  SFX_ED;
const SFX_CLOSE_METAL_DOOR          :=  SFX_F4;


////
// Animations/Actions
///
// * Human animations (all humans have these) (this is not complete, will update later)
const ANIM_WALK_UNARMED         :=  0x0000; // Walk unarmed.
const ANIM_WALK_ARMED           :=  0x0001; // Walk armed.
const ANIM_RUN_UNARMED          :=  0x0002; // Run unarmed.
const ANIM_RUN_ARMED            :=  0x0003; // Run armed.
const ANIM_STAND                :=  0x0004; // Stand.
const ANIM_FIDGET_1             :=  0x0005; // Twist a little (look around?).
const ANIM_FIDGET_2             :=  0x0006; // Look down.
const ANIM_STAND_1HAND          :=  0x0007; // Stand 1 handed attack.
const ANIM_STAND_2HAND          :=  0x0008; // Stand 2 handed attack.
const ANIM_ATTACK_1HAND_WIDE    :=  0x0009; // Attack 1 handed wide (sword/any).
const ANIM_ATTACK_1HAND_JAB     :=  0x000a; // Attack 1 handed jab (fencing).
const ANIM_ATTACK_1HAND_DOWN    :=  0x000b; // Attack 1 handed down (mace).
const ANIM_ATTACK_2HAND_DOWN    :=  0x000c; // Attack 2 handed jab (mace).
const ANIM_ATTACK_2HAND_WIDE    :=  0x000d; // Attack 2 handed wide.
const ANIM_ATTACK_2HAND_JAB     :=  0x000e; // Attack 2 handed jab (spear).
const ANIM_ATTACK_BOW           :=  0x0012; // Attack bow.
const ANIM_ATTACK_XBOW          :=  0x0013; // Attack xbow.
const ANIM_WALK_WARMODE         :=  0x000f; // Walk in warmode.
const ANIM_CAST_DIR             :=  0x0010; // Spellcasting direction.
const ANIM_CAST_AREA            :=  0x0011; // Spellcasting area.
const ANIM_HIT                  :=  0x0014; // Get hit.
const ANIM_DIE_BACK             :=  0x0015; // Die backward.
const ANIM_DIE_FOR              :=  0x0016; // Die forward.
const ANIM_BOW                  :=  0x0020; // Bow.
const ANIM_SALUTE               :=  0x0021; // Salute.
const ANIM_EAT                  :=  0x0022; // Eat.



////
// Graphicaleffects (itemIDs)
///
// * general *
const FX_SPLASH         :=  0x352d; //
const FX_EXPLODE_1      :=  0x36ca; //
const FX_EXPLODE_2      :=  0x36bd; //
const FX_EXPLODE_3      :=  0x36b0; //
const FX_FIREBALL       :=  0x36d4; //
const FX_MAGIC_ARROW    :=  0x36e4; //
const FX_FIRE_BOLT      :=  0x36f4; // Firesnake. (pagan?)
const FX_EXPLODE_BALL   :=  0x36fe; // Not used.

const FX_FLAMESTRIKE    :=  0x3709; //
const FX_SMOKE          :=  0x3728;
const GFX_SMOKE       := 0x3728;
const FX_TELE_VANISH    :=  0x372a; // Teleport vanish.
const FX_SPELL_FAIL     :=  0x3735; //
const FX_BLESS_EFFECT   :=  0x373a; //
const FX_CURSE_EFFECT   :=  0x374a; //
const FX_SPARK_EFFECT   :=  0x375a; //
const FX_HEAL_EFFECT    :=  0x376a; //
const FX_MARK_EFFECT    :=  0x3779;
const FX_BLUEMOONSTART  :=  0x3789; // Deathvortex?
const FX_ENERGY_BOLT    :=  0x379f; //
const FX_BLADES_EMERGE  :=  0x37a0; // Not used.
const FX_GLOW           :=  0x37b9; // Not used.
const FX_GLOW_SPIKE     :=  0x37c3; // Not used.
const FX_DEATH_FUNNEL   :=  0x37cc; //
const FX_BLADES         :=  0x37eb; //
const FX_STATIC         :=  0x3818; // Not used. (pink static)
const FX_POISON_F_EW    :=  0x3914; // Poison field.
const FX_POISON_F_NS    :=  0x3920; // Poison field.
const FX_ENERGY_F_EW    :=  0x3947; // Energy field.
const FX_ENERGY_F_NS    :=  0x3956; // Energy field.
const FX_PARA_F_EW      :=  0x3967; // Paralyze field.
const FX_PARA_F_NS      :=  0x3979; // Paralyze field.
const FX_FIRE_F_EW      :=  0x398c; // Fire field.
const FX_FIRE_F_NS      :=  0x3996; // Fire field.

////
// Layers
///
const LAYER_NONE        :=  0x00;   // Not used?
const LAYER_HAND1       :=  0x01;   // One handed weapon.
const LAYER_HAND2       :=  0x02;   // Two handed weapon, shield or misc.
const LAYER_SHOES       :=  0x03;   // Shoes.
const LAYER_PANTS       :=  0x04;   // Pants.
const LAYER_SHIRT       :=  0x05;   // Shirt.
const LAYER_HELM        :=  0x06;   // Helm or Hat.
const LAYER_GLOVES      :=  0x07;   // Gloves.
const LAYER_RING        :=  0x08;   // Ring.
const LAYER_UNUSED9     :=  0x09;   // Unused.
const LAYER_NECK        :=  0x0a;   // Neck.
const LAYER_HAIR        :=  0x0b;   // Hair
const LAYER_WAIST       :=  0x0c;   // Waist (half apron).
const LAYER_CHEST       :=  0x0d;   // Torso (inner) (chest armor).
const LAYER_WRIST       :=  0x0e;   // Bracelet.
const LAYER_PACK2       :=  0x0f;   // Unused (backpack, but ord. bp is 0x15).
const LAYER_BEARD       :=  0x10;   // Facial hair.
const LAYER_TUNIC       :=  0x11;   // Torso (middle) (tunic, sash etc.).
const LAYER_EARS        :=  0x12;   // Earrings.
const LAYER_ARMS        :=  0x13;   // Arms.
const LAYER_CAPE        :=  0x14;   // Back (cloak).
const LAYER_PACK        :=  0x15;   // Backpack
const LAYER_ROBE        :=  0x16;   // Torso (outer) (robe)
const LAYER_SKIRT       :=  0x17;   // Legs (outer) (skirt/robe).
const LAYER_LEGS        :=  0x18;   // Legs (inner) (leg armor).
const LAYER_MOUNT       :=  0x19;   // Mount (horse, ostard etc.).
const LAYER_VENDORSTOCK :=  0x1a;   // This vendor will sell and restock.
const LAYER_VENDOREXTRA :=  0x1b;   // This vendor will resell to players but not restock.
const LAYER_VENDORBUY   :=  0x1c;   // This vendor can buy from players but does not stock.
const LAYER_BANKBOX     :=  0x1d;   // Contents of bankbox
const LAYER_TRADE       :=  0x1e;   // Can be multiple of these, do not use directly.

////
// Fonts
///
const FONT_MAX          :=  0x09;   // Highest font.
const FONT_MIN          :=  0x00;   // Lowest font.

const FONT_BOLD         :=  0x00;   // Bold text.
const FONT_SHADOW       :=  0x01;   // Text with shadow.
const FONT_BOLD_SHAD    :=  0x02;   // Bold text with shadow.
const FONT_NORMAL       :=  0x03;   // Normal (default).
const FONT_GOTHIC       :=  0x04;   // Gothic.
const FONT_ITALIC       :=  0x05;   // Italic
const FONT_SMALL_DARK   :=  0x06;   // Small dark letters.
const FONT_COLOR        :=  0x07;   // Colorful font.
const FONT_RUNE         :=  0x08;   // Rune font (only capitals).
const FONT_SMALL_LIGHT  :=  0x09;   // Small light letters.

////
// Creature IDs ( hardcoded graphic IDs )
///
const CID_ZERO				:= 0x000;  // Not used.
const CID_OGRE				:= 0x001;
const CID_ETTIN			:= 0x002;
const CID_ZOMBIE			:= 0x003;
const CID_GARGOYLE			:= 0x004;
const CID_EAGLE			:= 0x005;
const CID_BIRD				:= 0x006;
const CID_ORC_LORD			:= 0x007;
const CID_CORPSER			:= 0x008;
const CID_DAEMON			:= 0x009;
const CID_DAEMON_SWORD		:= 0x00a;
const CID_DRAGON_GREY		:= 0x00c;
const CID_AIR_ELEMENTAL		:= 0x00d;
const CID_EARTH_ELEMENTAL	:= 0x00e;
const CID_FIRE_ELEMENTAL		:= 0x00f;
const CID_WATER_ELEMENTAL	:= 0x010;
const CID_ORC				:= 0x011;
const CID_ETTIN_AXE			:= 0x012;
const CID_SHADE			:= 0x014;
const CID_GIANT_SNAKE		:= 0x015;
const CID_GAZER			:= 0x016;
const CID_LICH				:= 0x018;
const CID_GIANT_SPIDER		:= 0x01c;
const CID_APE				:= 0x01d;
const CID_HARPY			:= 0x01e;
const CID_HEADLESS			:= 0x01f;
const CID_LIZARDMAN			:= 0x021;
const CID_LIZARDMAN_W_SPEAR	:= 0x023;
const CID_LIZARDMAN_W_MACE	:= 0x024;
const CID_MONGBAT			:= 0x027;
const CID_ORC_W_CLUB		:= 0x029;
const CID_RATMAN			:= 0x02a;
const CID_RATMAN_W_AXE		:= 0x02c;
const CID_RATMAN_W_SWORD		:= 0x02d;
const CID_REAPER			:= 0x02f;
const CID_SCORPION			:= 0x030;
const CID_SKELETON			:= 0x032;
const CID_SLIME			:= 0x033;
const CID_SNAKE			:= 0x034;
const CID_TROLL_W_AXE		:= 0x035;
const CID_TROLL			:= 0x036;
const CID_TROLL_W_MAUL		:= 0x037;
const CID_SKELETON_W_AXE		:= 0x038;
const CID_SKELETON_W_SCIMITAR	:= 0x039;
const CID_WISP				:= 0x03a;
const CID_DRAGON_RED		:= 0x03b;
const CID_DRAKE_GREY		:= 0x03c;
const CID_DRAKE_RED			:= 0x03d;
const CID_TERATHEN_WARRIOR	:= 0x046;
const CID_TERATHEN_DRONE		:= 0x047;
const CID_TERATHEN_MATRIARCH	:= 0x048;
const CID_TITAN			:= 0x04b;
const CID_CYCLOPS			:= 0x04c;
const CID_GIANT_TOAD		:= 0x050;
const CID_BULLFROG			:= 0x051;
const CID_WOLF				:= 0x053;
const CID_OPHIDIAN_MAGE		:= 0x055;
const CID_OPHIDIAN_WARRIOR	:= 0x056;
const CID_OPHIDIAN_QUEEN		:= 0x057;
const CID_SEA_CREATURE		:= 0x05f;
const CID_SEA_SERPENT		:= 0x096;
const CID_DOLPHIN			:= 0x097;

const CID_TAN_HORSE			:= 0x0c8;
const CID_CAT				:= 0x0c9;
const CID_ALLIGATOR			:= 0x0ca;
const CID_PIG				:= 0x0cb;
const CID_BROWN_HORSE		:= 0x0cc;
const CID_BUNNY			:= 0x0cd;
const CID_LAVA_LIZARD		:= 0x0ce;
const CID_SHEEP			:= 0x0cf;
const CID_CHICKEN			:= 0x0d0;
const CID_GOAT				:= 0x0d1;
const CID_DESERT_OSTARD		:= 0x0d2;
const CID_BROWN_BEAR		:= 0x0d3;
const CID_GRIZZLY_BEAR		:= 0x0d4;
const CID_POLAR_BEAR		:= 0x0d5;
const CID_PANTHER			:= 0x0d6;
const CID_GIANT_RAT			:= 0x0d7;
const CID_COW				:= 0x0d8;
const CID_DOG				:= 0x0d9;
const CID_FRENZIED_OSTARD	:= 0x0da;
const CID_FOREST_OSTARD		:= 0x0db;
const CID_LLAMA			:= 0x0dc;
const CID_WALRUS			:= 0x0dd;
const CID_SHEERED_SHEEP		:= 0x0df;
const CID_LIGHT_HORSE		:= 0x0e2;
const CID_GREY_HORSE		:= 0x0e4;
const CID_COW2				:= 0x0e7;
const CID_BULL				:= 0x0e8;
const CID_BULL2			:= 0x0e9;
const CID_GREAT_HART		:= 0x0ea;
const CID_DEER				:= 0x0ed;
const CID_RAT				:= 0x0ee;
const CID_BOAR				:= 0x122;
const CID_PACK_HORSE		:= 0x123;
const CID_PACK_LLAMA		:= 0x124;

const CID_HUMAN_MALE            :=  0x190;
const CID_HUMAN_FEMALE          :=  0x191;
const CID_GM                    :=  0x3db;


////
// Directions
///
const DIR_N             :=  0x00;   // North.
const DIR_NE            :=  0x01;   // Northeast.
const DIR_E             :=  0x02;   // East.
const DIR_SE            :=  0x03;   // Southeast.
const DIR_S             :=  0x04;   // South.
const DIR_SW            :=  0x05;   // Southwest.
const DIR_W             :=  0x06;   // West.
const DIR_NW            :=  0x07;   // Northwest.

// * Colors *
// This is not suposed to be a "complete" colorchart, but a
// quick way to access normal colors.
const COLOR_DEFAULT         := 0x0000;
const COLOR_BLACK           := 0x0001;
const COLOR_INDIGO_DARK     := 0x0007;
const COLOR_INDIGO          := 0x0008;
const COLOR_INDIGO_LIGHT    := 0x0009;

const COLOR_VIOLET_DARK     := 0x000c;
const COLOR_VIOLET          := 0x000d;
const COLOR_VIOLET_LIGHT    := 0x000e;
const COLOR_MAGENTA_DARK    := 0x0011;
const COLOR_MAGENTA         := 0x0012;
const COLOR_MAGENTA_LIGHT   := 0x0013;
const COLOR_RED_DARK        := 0x0020;
const COLOR_RED             := 0x0022;
const COLOR_RED_LIGHT       := 0x0023;
const COLOR_ORANGE_DARK     := 0x002a;
const COLOR_ORANGE          := 0x002b;
const COLOR_ORANGE_LIGHT    := 0x002c;
const COLOR_YELLOW_DARK     := 0x0034;
const COLOR_YELLOW          := 0x0035;
const COLOR_YELLOW_LIGHT    := 0x0036;
const COLOR_GREEN_DARK      := 0x003e;
const COLOR_GREEN           := 0x003f;
const COLOR_GREEN_LIGHT     := 0x0040;
const COLOR_CYAN_DARK       := 0x0057;
const COLOR_CYAN            := 0x0058;
const COLOR_CYAN_LIGHT      := 0x0059;
const COLOR_BLUE_DARK       := 0x0061;
const COLOR_BLUE            := 0x0062;
const COLOR_BLUE_LIGHT      := 0x0063;
const COLOR_GRAY_DARK       := 0x0386;
const COLOR_GRAY            := 0x0387;
const COLOR_GRAY_LIGHT      := 0x0388;
const COLOR_BLACKMETAL      := 0x044e;
const COLOR_GOLDMETAL       := 0x046e;
const COLOR_BSHIMMER        := 0x0480;	// T2A Only : Waterelemental color.
const COLOR_WHITE           := 0x0481;	// T2A Only : True white.
const COLOR_STONE           := 0x0482;	// T2A Only : Rock ( stoneharpy?)
const COLOR_SPECTRAL        := 0x4631;  // Spectral
const COLOR_TRANSLUCENT     := 0x7cf8;  // Translucent

////
// Font Colours.
////
const FONTCOLOR_RED := 38;
const FONTCOLOR_GREEN :=68;
const FONTCOLOR_BLUE := 90;
const FONTCOLOR_MAUVE := 30;
const FONTCOLOR_LAVENDER := 20;
const FONTCOLOR_BLACK := 1;
const FONTCOLOR_BROWN := 46;
const FONTCOLOR_YELLOW := 53;

////
// SkillIDs
///
const SKILLID_ALCHEMY           := 0;
const SKILLID_ANATOMY           := 1;
const SKILLID_ANIMALLORE        := 2;
const SKILLID_ITEM_IDENTIFICATION            := 3;
const SKILLID_ARMSLORE          := 4;
const SKILLID_PARRYING		          := 5;
const SKILLID_BEGGING           := 6;
const SKILLID_BLACKSMITHY       := 7;
const SKILLID_BOWCRAFT          := 8;
const SKILLID_PEACEMAKING       := 9;
const SKILLID_CAMPING           := 10;
const SKILLID_CARPENTRY         := 11;
const SKILLID_CARTOGRAPHY       := 12;
const SKILLID_COOKING           := 13;
const SKILLID_DETECTING_HIDDEN   := 14;
const SKILLID_DISCORDANCE        := 15;
const SKILLID_EVALUATING_INTELLIGENCE           := 16;
const SKILLID_HEALING           := 17;
const SKILLID_FISHING           := 18;
const SKILLID_FORENSIC_EVALUATION         := 19;
const SKILLID_HERDING           := 20;
const SKILLID_HIDING            := 21;
const SKILLID_PROVOCATION       := 22;
const SKILLID_INSCRIPTION       := 23;
const SKILLID_LOCKPICKING       := 24;
const SKILLID_MAGERY            := 25;
const SKILLID_RESISTING_SPELLS   := 26;
const SKILLID_TACTICS           := 27;
const SKILLID_SNOOPING          := 28;
const SKILLID_MUSICIANSHIP      := 29;
const SKILLID_POISONING         := 30;
const SKILLID_ARCHERY           := 31;
const SKILLID_SPIRITSPEAK       := 32;
const SKILLID_STEALING          := 33;
const SKILLID_TAILORING         := 34;
const SKILLID_TAMING            := 35;
const SKILLID_TASTE_IDENTIFICATION           := 36;
const SKILLID_TINKERING         := 37;
const SKILLID_TRACKING          := 38;
const SKILLID_VETERINARY        := 39;
const SKILLID_SWORDSMANSHIP     := 40;
const SKILLID_MACEFIGHTING      := 41;
const SKILLID_FENCING           := 42;
const SKILLID_WRESTLING         := 43;
const SKILLID_LUMBERJACKING     := 44;
const SKILLID_MINING            := 45;
const SKILLID_MEDITATION        := 46;
const SKILLID_STEALTH           := 47;
const SKILLID_REMOVETRAP        := 48;
const SKILLID_NECROMANCY        := 49;
const SKILLID_FOCUS             := 50;
const SKILLID_CHIVALRY          := 51;
const SKILLID_BUSHIDO           := 52;
const SKILLID_NINJITSU          := 53;
const SKILLID_SPELLWEAVING      := 54;
const SKILLID_MYSTICISM         := 55;
const SKILLID_IMBUING           := 56;
const SKILLID_THROWING          := 57;
const SKILLID__HIGHEST          := 57;

//////////////////////////////////////
// Realm constants                  //
//////////////////////////////////////
const BRITANNIA_REALM           := "britannia";
const BRITANNIA_ALT_REALM       := "britannia_alt";
const ILSHENAR_REALM            := "ilshenar";
const MALAS_REALM               := "malas";
const TOKUNO_REALM              := "tokuno";
const TERMUR_REALM              := "termur";

//////////////////////////////////////
// Canned colours
//////////////////////////////////////
const MESSAGE_COLOR_GOOD	:= 268;
const MESSAGE_COLOR_WARNING	:= 54;
const MESSAGE_COLOR_BAD		:= 34;
const MESSAGE_COLOR_MESSAGE	:= 1320;