Advertisement
Guest User

questlua.h

a guest
Jul 17th, 2015
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1. #ifndef __HEADER_QUEST_LUA__
  2. #define __HEADER_QUEST_LUA__
  3.  
  4. #include "quest.h"
  5. #include "buffer_manager.h"
  6.  
  7. extern int test_server;
  8. extern int speed_server;
  9.  
  10. namespace quest
  11. {
  12. extern void RegisterPCFunctionTable();
  13. extern void RegisterNPCFunctionTable();
  14. extern void RegisterTargetFunctionTable();
  15. extern void RegisterAffectFunctionTable();
  16. extern void RegisterBuildingFunctionTable();
  17. extern void RegisterMarriageFunctionTable();
  18. extern void RegisterITEMFunctionTable();
  19. extern void RegisterDungeonFunctionTable();
  20. extern void RegisterQuestFunctionTable();
  21. extern void RegisterPartyFunctionTable();
  22. extern void RegisterHorseFunctionTable();
  23. extern void RegisterPetFunctionTable();
  24. extern void RegisterGuildFunctionTable();
  25. extern void RegisterGameFunctionTable();
  26. extern void RegisterArenaFunctionTable();
  27. extern void RegisterGlobalFunctionTable(lua_State* L);
  28. extern void RegisterForkedFunctionTable();
  29. extern void RegisterMonarchFunctionTable();
  30. extern void RegisterOXEventFunctionTable();
  31. extern void RegisterMgmtFunctionTable();
  32. extern void RegisterBattleArenaFunctionTable();
  33. extern void RegisterDanceEventFunctionTable();
  34. extern void RegisterDragonLairFunctionTable();
  35. extern void RegisterSpeedServerFunctionTable();
  36. extern void RegisterDragonSoulFunctionTable();
  37. extern void RegisterMysqlFunctionTable();
  38.  
  39. extern void combine_lua_string(lua_State* L, std::ostringstream &s);
  40.  
  41. struct FSetWarpLocation
  42. {
  43. long map_index;
  44. long x;
  45. long y;
  46.  
  47. FSetWarpLocation (long _map_index, long _x, long _y) :
  48. map_index (_map_index), x (_x), y (_y)
  49. {}
  50. void operator () (LPCHARACTER ch);
  51. };
  52.  
  53. struct FSetQuestFlag
  54. {
  55. std::string flagname;
  56. int value;
  57.  
  58. void operator () (LPCHARACTER ch);
  59. };
  60.  
  61. struct FPartyCheckFlagLt
  62. {
  63. std::string flagname;
  64. int value;
  65.  
  66. bool operator () (LPCHARACTER ch);
  67. };
  68.  
  69. struct FPartyChat
  70. {
  71. int iChatType;
  72. const char* str;
  73.  
  74. FPartyChat(int ChatType, const char* str);
  75. void operator() (LPCHARACTER ch);
  76. };
  77.  
  78. struct FPartyClearReady
  79. {
  80. void operator() (LPCHARACTER ch);
  81. };
  82.  
  83. struct FSendPacket
  84. {
  85. TEMP_BUFFER buf;
  86.  
  87. void operator() (LPENTITY ent);
  88. };
  89.  
  90. struct FSendPacketToEmpire
  91. {
  92. TEMP_BUFFER buf;
  93. BYTE bEmpire;
  94.  
  95. void operator() (LPENTITY ent);
  96. };
  97.  
  98. struct FWarpEmpire
  99. {
  100. BYTE m_bEmpire;
  101. long m_lMapIndexTo;
  102. long m_x;
  103. long m_y;
  104.  
  105. void operator() (LPENTITY ent);
  106. };
  107.  
  108. EVENTINFO(warp_all_to_map_my_empire_event_info)
  109. {
  110. BYTE m_bEmpire;
  111. long m_lMapIndexFrom;
  112. long m_lMapIndexTo;
  113. long m_x;
  114. long m_y;
  115.  
  116. warp_all_to_map_my_empire_event_info()
  117. : m_bEmpire( 0 )
  118. , m_lMapIndexFrom( 0 )
  119. , m_lMapIndexTo( 0 )
  120. , m_x( 0 )
  121. , m_y( 0 )
  122. {
  123. }
  124. };
  125.  
  126. EVENTFUNC(warp_all_to_map_my_empire_event);
  127.  
  128. struct FBuildLuaGuildWarList
  129. {
  130. lua_State * L;
  131. int m_count;
  132.  
  133. FBuildLuaGuildWarList(lua_State * L);
  134. void operator() (DWORD g1, DWORD g2);
  135. };
  136. }
  137. #endif /*__HEADER_QUEST_LUA__*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement