Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

atcommand.h

00001 // $Id: atcommand.h 402 2006-03-10 23:59:13Z DarkRaven $
00002 #ifndef OA_ATCOMMAND_H
00003 #define OA_ATCOMMAND_H
00004 
00005 #define MAX_MSG_LEN 512
00006 
00007 enum AtCommandType {
00008         AtCommand_None = -1,
00009         AtCommand_Broadcast = 0,
00010         AtCommand_LocalBroadcast,
00011         AtCommand_LocalBroadcast2,
00012         AtCommand_MapMove,
00013         AtCommand_RuraP,
00014         AtCommand_Rura,
00015         AtCommand_Warp,
00016         AtCommand_Where,
00017         AtCommand_JumpTo,
00018         AtCommand_Jump,
00019         AtCommand_Users,
00020         AtCommand_Who,
00021         AtCommand_Who2,
00022         AtCommand_Who3,
00023         AtCommand_WhoMap,
00024         AtCommand_WhoMap2,
00025         AtCommand_WhoMap3,
00026         AtCommand_WhoGM,
00027         AtCommand_Save,
00028         AtCommand_Load,
00029         AtCommand_CharLoad,
00030         AtCommand_CharLoadMap,
00031         AtCommand_CharLoadAll,
00032         AtCommand_Speed,
00033         AtCommand_CharSpeed,
00034         AtCommand_CharSpeedMap,
00035         AtCommand_CharSpeedAll,
00036         AtCommand_Storage,
00037         AtCommand_CharStorage,
00038         AtCommand_GuildStorage,
00039         AtCommand_CharGuildStorage,
00040         AtCommand_Option,
00041         AtCommand_OptionAdd,
00042         AtCommand_OptionRemove,
00043         AtCommand_Hide,
00044         AtCommand_JobChange,
00045         AtCommand_JobChange2,
00046         AtCommand_JobChange3,
00047         AtCommand_Die,
00048         AtCommand_Kill,
00049         AtCommand_Alive,
00050         AtCommand_Heal,
00051         AtCommand_Kami,
00052         AtCommand_KamiB,
00053         AtCommand_KamiC, // [LuzZza]
00054         AtCommand_KamiGM,
00055         AtCommand_Item,
00056         AtCommand_CharItem,
00057         AtCommand_CharItemAll,
00058         AtCommand_Item2,
00059         AtCommand_ItemReset,
00060         AtCommand_CharItemReset,
00061         AtCommand_ItemCheck,
00062         AtCommand_CharItemCheck,
00063         AtCommand_BaseLevelUp,
00064         AtCommand_JobLevelUp,
00065         AtCommand_H,
00066         AtCommand_Help,
00067         AtCommand_GM,
00068         AtCommand_PvPOff,
00069         AtCommand_PvPOn,
00070         AtCommand_GvGOff,
00071         AtCommand_GvGOn,
00072         AtCommand_Model,
00073         AtCommand_Go,
00074 
00075         AtCommand_Spawn,
00076         AtCommand_SpawnMap,
00077         AtCommand_SpawnAll,
00078 
00079         AtCommand_Summon,
00080 
00081         AtCommand_DeadBranch,
00082         AtCommand_CharDeadBranch,
00083         AtCommand_DeadBranchMap,
00084         AtCommand_DeadBranchAll,
00085 
00086         AtCommand_KillMonster,
00087         AtCommand_KillMonster2,
00088         AtCommand_KillMonsterArea,
00089         AtCommand_KillMonster2Area,
00090 
00091         AtCommand_Refine,
00092         AtCommand_RefineAll,
00093         AtCommand_Produce,
00094         AtCommand_Memo,
00095         AtCommand_GAT,
00096         AtCommand_Packet,
00097         AtCommand_StatusPoint,
00098         AtCommand_SkillPoint,
00099         AtCommand_Zeny,
00100         AtCommand_Param,
00101         AtCommand_Strength,
00102         AtCommand_Agility,
00103         AtCommand_Vitality,
00104         AtCommand_Intelligence,
00105         AtCommand_Dexterity,
00106         AtCommand_Luck,
00107         AtCommand_GuildLevelUp,
00108         AtCommand_CharGuildLevelUp,
00109         AtCommand_MakeEgg,
00110         AtCommand_PetFriendly,
00111         AtCommand_PetHungry,
00112         AtCommand_PetRename,
00113         AtCommand_CharPetRename,
00114         AtCommand_Recall,
00115         AtCommand_CharacterJob,
00116         AtCommand_ChangeLevel,
00117         AtCommand_Revive,
00118         AtCommand_CharacterHeal,
00119         AtCommand_CharacterStats,
00120         AtCommand_CharacterStatsAll,
00121         AtCommand_CharacterOption,
00122         AtCommand_CharacterOptionAdd,
00123         AtCommand_CharacterOptionRemove,
00124         AtCommand_CharacterSave,
00125         AtCommand_CharacterLoad,
00126         AtCommand_Night,
00127         AtCommand_Day,
00128         AtCommand_DoomMap,
00129         AtCommand_Doom,
00130         AtCommand_RaiseMap,
00131         AtCommand_Raise,
00132         AtCommand_CharacterBaseLevel,
00133         AtCommand_CharacterJobLevel,
00134         AtCommand_Kick,
00135         AtCommand_KickMap,
00136         AtCommand_KickAll,
00137         AtCommand_AllSkill,
00138         AtCommand_QuestSkill,
00139         AtCommand_CharQuestSkill,
00140         AtCommand_LostSkill,
00141         AtCommand_CharLostSkill,
00142         AtCommand_SpiritBall,
00143         AtCommand_CharSpiritBall,
00144         AtCommand_Party,
00145         AtCommand_Guild,
00146         AtCommand_AgitStart,
00147         AtCommand_AgitEnd,
00148         AtCommand_MapExit,
00149         AtCommand_IDSearch,
00150         AtCommand_WhoDrops,
00151         AtCommand_ResetState,
00152         AtCommand_ResetSkill,
00153         AtCommand_CharSkReset,
00154         AtCommand_CharStReset,
00155         AtCommand_CharReset,
00156         AtCommand_CharModel,
00157         AtCommand_CharSKPoint,
00158         AtCommand_CharSTPoint,
00159         AtCommand_CharZeny,
00160         AtCommand_RecallAll,
00161         AtCommand_ReloadItemDB,
00162         AtCommand_ReloadMobDB,
00163         AtCommand_ReloadSkillDB,
00164         AtCommand_ReloadScript,
00165 //      AtCommand_ReloadGMDB, // removed, it's automatic now
00166         AtCommand_MapInfo,
00167         AtCommand_MobInfo,
00168         AtCommand_Dye,
00169         AtCommand_Hstyle,
00170         AtCommand_Hcolor,
00171         AtCommand_StatAll,
00172         AtCommand_ChangeSex,
00173         AtCommand_CharChangeSex,
00174         AtCommand_CharBlock,
00175         AtCommand_CharBan,
00176         AtCommand_CharUnBlock,
00177         AtCommand_CharUnBan,
00178         AtCommand_MountPeco,
00179         AtCommand_CharMountPeco,
00180         AtCommand_Falcon,
00181         AtCommand_CharFalcon,
00182         AtCommand_Cart,
00183         AtCommand_CharCart,
00184         AtCommand_RemoveCart,
00185         AtCommand_CharRemoveCart,
00186         AtCommand_GuildSpy,
00187         AtCommand_PartySpy,
00188         AtCommand_RepairAll,
00189         AtCommand_GuildRecall,
00190         AtCommand_PartyRecall,
00191         AtCommand_Nuke,
00192         AtCommand_Enablenpc,
00193         AtCommand_Disablenpc,
00194         AtCommand_ServerTime,
00195         AtCommand_CharDelItem,
00196         AtCommand_Jail,
00197         AtCommand_UnJail,
00198         AtCommand_JailTime,
00199         AtCommand_CharJailTime,
00200         AtCommand_Disguise,
00201         AtCommand_UnDisguise,
00202         AtCommand_CharDisguise,
00203         AtCommand_CharUnDisguise,
00204         AtCommand_CharDisguiseMap,
00205         AtCommand_CharUnDisguiseMap,
00206         AtCommand_CharDisguiseAll,
00207         AtCommand_CharUnDisguiseAll,
00208         AtCommand_ChangeLook,
00209         AtCommand_CharChangeLook,
00210         AtCommand_IgnoreList,
00211         AtCommand_CharIgnoreList,
00212         AtCommand_InAll,
00213         AtCommand_ExAll,
00214         AtCommand_EMail,
00215         AtCommand_Hatch,
00216         AtCommand_Effect,
00217         AtCommand_Char_Item_List,
00218         AtCommand_Char_Storage_List,
00219         AtCommand_Char_Cart_List,
00220         AtCommand_AddWarp,
00221         AtCommand_Follow,
00222         AtCommand_UnFollow,
00223         AtCommand_SkillOn,
00224         AtCommand_SkillOff,
00225         AtCommand_NoSpell,
00226         AtCommand_Killer,
00227         AtCommand_CharKiller,
00228         AtCommand_NpcMove,
00229         AtCommand_Killable,
00230         AtCommand_CharKillable,
00231         AtCommand_Chareffect,
00232         AtCommand_Chardye,
00233         AtCommand_Charhairstyle,
00234         AtCommand_Charhaircolor,
00235         AtCommand_Dropall,
00236         AtCommand_Chardropall,
00237         AtCommand_Storeall,
00238         AtCommand_Charstoreall,
00239         AtCommand_Skillid,
00240         AtCommand_Useskill,
00241         AtCommand_Rain,
00242         AtCommand_Snow,
00243         AtCommand_Sakura,
00244         AtCommand_Fog,
00245         AtCommand_Leaves,
00246         AtCommand_Rainbow,
00247         AtCommand_Clsweather,
00248         AtCommand_MobSearch,
00249         AtCommand_CleanMap,
00250         AtCommand_AdjGmLvl,
00251         AtCommand_AdjGmLvl2,
00252         AtCommand_AdjCmdLvl,
00253         AtCommand_Trade,
00254         AtCommand_Send,
00255         AtCommand_SetBattleFlag,
00256         AtCommand_SetMapFlag,
00257         AtCommand_UnMute,
00258         AtCommand_UpTime,
00259         AtCommand_Clock,
00260         AtCommand_Mute,
00261         AtCommand_WhoZeny,
00262         AtCommand_WhoZenyMap,
00263         AtCommand_WhoHas,
00264         AtCommand_WhoHasMap,
00265         AtCommand_HappyHappyJoyJoy,
00266         AtCommand_HappyHappyJoyJoyMap,
00267         AtCommand_Refresh,
00268         AtCommand_PetId,
00269         AtCommand_Identify,
00270         AtCommand_Motd,
00271         AtCommand_Gmotd,
00272         AtCommand_MiscEffect,
00273         AtCommand_SkillTree,
00274         AtCommand_Marry,
00275         AtCommand_Divorce,
00276         AtCommand_Rings,
00277         AtCommand_Grind,
00278         AtCommand_Grind2,
00279         AtCommand_Sound,
00280 
00281         AtCommand_NpcTalk,
00282         AtCommand_PetTalk,
00283         AtCommand_AutoLoot,
00284         AtCommand_AutoLootLoot,
00285         AtCommand_Displayexp,
00286         AtCommand_DisplayDrop,
00287         AtCommand_DisplayLootDrop,
00288         AtCommand_Display_Player_Hp,
00289         AtCommand_Main,
00290         AtCommand_Request,
00291         AtCommand_Version,
00292         AtCommand_Version2,
00293         AtCommand_Autovend,
00294 
00295         // SQL-only commands start
00296 #ifdef USE_SQL
00297         AtCommand_CheckMail,
00298         AtCommand_ListMail,
00299         AtCommand_ListNewMail,
00300         AtCommand_ReadMail,
00301         AtCommand_SendMail,
00302         AtCommand_DeleteMail,
00303         AtCommand_SendPriorityMail,
00304 #endif /* USE_SQL */
00305         AtCommand_Unknown,
00306         AtCommand_MAX
00307 };
00308 
00309 typedef enum AtCommandType AtCommandType;
00310 
00311 extern short log_gm_level;
00312 
00313 char GM_Symbol();
00314 
00315 AtCommandType is_atcommand(const int fd, struct map_session_data* sd,
00316                            const char* message, unsigned char gmlvl);
00317 
00318 int get_atcommand_level(const AtCommandType type);
00319 
00320 char * msg_txt(int msg_number);
00321 
00322 void atcommand_config_read(const char *cfgName);
00323 void atcommand_custom_read(const char *cfgName);
00324 void atcommand_custom_free();
00325 int msg_config_read(const char *cfgName);
00326 void do_final_msg_config();
00327 
00328 #endif // OA_ATCOMMAND_H
00329 

Generated on Fri Apr 28 10:20:04 2006 for OpenAthena by  doxygen 1.4.4