00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00023 #ifndef __COMMANDPARSER_H
00024 #define __COMMANDPARSER_H
00025
00026 #include "MasterServer.h"
00027 #include "VersionNo.h"
00028
00029 class cClient;
00030
00031 class cCommandParser
00032 {
00033 friend class cMasterServer;
00034 friend class cLifestone;
00035
00036 public:
00037 cCommandParser ( ) {}
00038 ~cCommandParser ( ) {}
00039
00040 private:
00041 static BOOL Help ( char *szText, BYTE bAccessLevel );
00042 static BOOL Turn ( char *szHeading );
00043 static BOOL Telemap ( char *szLocation );
00044 static BOOL TeleLoc ( char *szLocation );
00045 static BOOL TeleTown ( char *szTown );
00046
00047 static BOOL SpawnItem ( char *szItem );
00048 static BOOL SpawnItemLB ( char *szItem );
00049
00050 static BOOL Munster ( );
00051 static BOOL Dungeon ( char *szDungeon );
00052 static BOOL Particle ( char *szParticle );
00053 static BOOL SoundEffect ( char *szSound );
00054 static BOOL Animation ( char *szAnimation );
00055 static BOOL Punch ( );
00056 static BOOL DungeonList ( char *szDungeonGroup );
00057 static BOOL RemoveInventory ( );
00058 static BOOL SpawnMonster ( char *szText );
00059 static BOOL SpawnSave ( char *szText );
00060 static BOOL Spawntype ( char *szText );
00061 static BOOL SpawnPlayer ( );
00062 static BOOL SpawnPortal ( );
00063 static BOOL RecordLocation ( );
00064 static BOOL RecordLifestone ( cLocation pcLoc, DWORD dwGUID );
00065 static BOOL SpwnID ( char *szText );
00066 static BOOL SpawnID ( char *szText );
00067 static BOOL GlobalChat ( char *szText );
00068 static BOOL ClearObjects ( );
00069 static BOOL WorldBroadcast ( char *szText );
00070 static BOOL GotoCharacter ( char *szText );
00071 static BOOL GetCharacter ( char *szText );
00072 static BOOL ReturnCharacter ( char *szText );
00073 static BOOL SendCharacter ( char *szText );
00074 static BOOL Home ();
00075 static BOOL Invisible ();
00076 static BOOL Visible ();
00077 static BOOL Who ();
00078
00079 static BOOL SetModel ( char *szText );
00080 static BOOL SetScale ( char *szText );
00081 static BOOL Acid ( char *szText );
00082
00083
00084 static BOOL Version ();
00085 static BOOL Wear ();
00086 static BOOL Remove ();
00087 static BOOL ODOA ();
00088
00089 static BOOL RandomPyreals ();
00090
00091 static inline BOOL FormatError( char *szCommand )
00092 {
00093 cMasterServer::ServerMessage( ColorRed, m_pcClient, "Error in %s syntax, check !help", szCommand );
00094 return FALSE;
00095 }
00096
00097 static cClient *m_pcClient;
00098
00099 };
00100 static byte text[64] = { 0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70,0x71,
00101 0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7A,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,
00102 0x4D,0x4E,0x4F,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5A,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x20,0x2E};
00103
00104 #endif // #ifndef __COMMANDPARSER_H