LuaFunctions.h 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624
  1. /*
  2. EQ2Emulator: Everquest II Server Emulator
  3. Copyright (C) 2007 EQ2EMulator Development Team (http://www.eq2emulator.net)
  4. This file is part of EQ2Emulator.
  5. EQ2Emulator is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. EQ2Emulator is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with EQ2Emulator. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #ifndef LUA_FUNCTIONS_H
  17. #define LUA_FUNCTIONS_H
  18. #include "../LUA/lua.hpp"
  19. #include <vector>
  20. #include <string>
  21. #include <map>
  22. using namespace std;
  23. vector<string> ParseString(string strVal, char delim=',');
  24. vector<unsigned int> ParseStringToInt32(string strVal, char delim=',');
  25. map<string, signed int> ParseStringMap(string strVal, char delim=',');
  26. map<unsigned int, unsigned short> ParseIntMap(string strVal, char delim = ',');
  27. map<unsigned int, signed int> ParseSInt32Map(string strVal, char delim = ',');
  28. //Sets
  29. int EQ2Emu_lua_SetCurrentHP(lua_State* state);
  30. int EQ2Emu_lua_SetMaxHP(lua_State* state);
  31. int EQ2Emu_lua_SetMaxHPBase(lua_State* state);
  32. int EQ2Emu_lua_SetCurrentPower(lua_State* state);
  33. int EQ2Emu_lua_SetMaxPower(lua_State* state);
  34. int EQ2Emu_lua_SetMaxPowerBase(lua_State* state);
  35. int EQ2Emu_lua_SetHeading(lua_State* state);
  36. int EQ2Emu_lua_SetModelType(lua_State* state);
  37. int EQ2Emu_lua_SetAdventureClass(lua_State* state);
  38. int EQ2Emu_lua_SetTradeskillClass(lua_State* state);
  39. int EQ2Emu_lua_SetMount(lua_State* state);
  40. int EQ2Emu_lua_SetMountColor(lua_State* state);
  41. int EQ2Emu_lua_SetSpeed(lua_State* state);
  42. int EQ2Emu_lua_SetPosition(lua_State* state);
  43. int EQ2Emu_lua_AddSpellBonus(lua_State* state);
  44. int EQ2Emu_lua_RemoveSpellBonus(lua_State* state);
  45. int EQ2Emu_lua_AddSkillBonus(lua_State* state);
  46. int EQ2Emu_lua_RemoveSkillBonus(lua_State* state);
  47. int EQ2Emu_lua_AddControlEffect(lua_State* state);
  48. int EQ2Emu_lua_RemoveControlEffect(lua_State* state);
  49. int EQ2Emu_lua_HasControlEffect(lua_State* state);
  50. int EQ2Emu_lua_GetBaseAggroRadius(lua_State* state);
  51. int EQ2Emu_lua_GetAggroRadius(lua_State* state);
  52. int EQ2Emu_lua_SetAggroRadius(lua_State* state);
  53. int EQ2Emu_lua_SetDeity(lua_State* state);
  54. int EQ2Emu_lua_GetDeity(lua_State* state);
  55. int EQ2Emu_lua_SetInt(lua_State* state);
  56. int EQ2Emu_lua_SetWis(lua_State* state);
  57. int EQ2Emu_lua_SetSta(lua_State* state);
  58. int EQ2Emu_lua_SetStr(lua_State* state);
  59. int EQ2Emu_lua_SetAgi(lua_State* state);
  60. int EQ2Emu_lua_SetIntBase(lua_State* state);
  61. int EQ2Emu_lua_SetWisBase(lua_State* state);
  62. int EQ2Emu_lua_SetStaBase(lua_State* state);
  63. int EQ2Emu_lua_SetStrBase(lua_State* state);
  64. int EQ2Emu_lua_SetAgiBase(lua_State* state);
  65. int EQ2Emu_lua_SetLootCoin(lua_State* state);
  66. int EQ2Emu_lua_HasCoin(lua_State* state);
  67. int EQ2Emu_lua_SetQuestYellow(lua_State* state);
  68. //Gets
  69. int EQ2Emu_lua_GetLevel(lua_State* state);
  70. int EQ2Emu_lua_GetCurrentHP(lua_State* state);
  71. int EQ2Emu_lua_GetMaxHP(lua_State* state);
  72. int EQ2Emu_lua_GetMaxHPBase(lua_State* state);
  73. int EQ2Emu_lua_GetCurrentPower(lua_State* state);
  74. int EQ2Emu_lua_GetName(lua_State* state);
  75. int EQ2Emu_lua_GetMaxPower(lua_State* state);
  76. int EQ2Emu_lua_GetMaxPowerBase(lua_State* state);
  77. int EQ2Emu_lua_GetDistance(lua_State* state);
  78. int EQ2Emu_lua_GetX(lua_State* state);
  79. int EQ2Emu_lua_GetY(lua_State* state);
  80. int EQ2Emu_lua_GetZ(lua_State* state);
  81. int EQ2Emu_lua_GetHeading(lua_State* state);
  82. int EQ2Emu_lua_GetModelType(lua_State* state);
  83. int EQ2Emu_lua_GetRace(lua_State* state);
  84. int EQ2Emu_lua_GetRaceName(lua_State* state);
  85. int EQ2Emu_lua_GetMount(lua_State* state);
  86. int EQ2Emu_lua_GetClass(lua_State* state);
  87. int EQ2Emu_lua_GetClassName(lua_State* state);
  88. int EQ2Emu_lua_GetArchetypeName(lua_State* state);
  89. int EQ2Emu_lua_GetSpeed(lua_State* state);
  90. int EQ2Emu_lua_HasMoved(lua_State* state);
  91. int EQ2Emu_lua_GetInt(lua_State* state);
  92. int EQ2Emu_lua_GetWis(lua_State* state);
  93. int EQ2Emu_lua_GetSta(lua_State* state);
  94. int EQ2Emu_lua_GetStr(lua_State* state);
  95. int EQ2Emu_lua_GetAgi(lua_State* state);
  96. int EQ2Emu_lua_GetIntBase(lua_State* state);
  97. int EQ2Emu_lua_GetWisBase(lua_State* state);
  98. int EQ2Emu_lua_GetStaBase(lua_State* state);
  99. int EQ2Emu_lua_GetStrBase(lua_State* state);
  100. int EQ2Emu_lua_GetAgiBase(lua_State* state);
  101. int EQ2Emu_lua_GetLootCoin(lua_State* state);
  102. int EQ2Emu_lua_GetSpawn(lua_State* state);
  103. int EQ2Emu_lua_GetSpawnFromList(lua_State* state);
  104. int EQ2Emu_lua_GetSpawnListSize(lua_State* state);
  105. int EQ2Emu_lua_CreateSpawnList(lua_State* state);
  106. int EQ2Emu_lua_AddSpawnToSpawnList(lua_State* state);
  107. int EQ2Emu_lua_RemoveSpawnFromSpawnList(lua_State* state);
  108. int EQ2Emu_lua_GetSpawnListBySpawnID(lua_State* state);
  109. int EQ2Emu_lua_GetSpawnListByRailID(lua_State* state);
  110. int EQ2Emu_lua_GetPassengerSpawnList(lua_State* state);
  111. int EQ2Emu_lua_GetVariableValue(lua_State* state);
  112. int EQ2Emu_lua_GetCoinMessage(lua_State* state);
  113. int EQ2Emu_lua_GetSpawnByGroupID(lua_State* state);
  114. int EQ2Emu_lua_GetSpawnByLocationID(lua_State* state);
  115. int EQ2Emu_lua_GetSpawnID(lua_State* state);
  116. int EQ2Emu_lua_GetSpawnGroupID(lua_State* state);
  117. int EQ2Emu_lua_SetSpawnGroupID(lua_State* state);
  118. int EQ2Emu_lua_AddSpawnToGroup(lua_State* state);
  119. int EQ2Emu_lua_GetSpawnLocationID(lua_State* state);
  120. int EQ2Emu_lua_GetSpawnLocationPlacementID(lua_State* state);
  121. int EQ2Emu_lua_GetFactionAmount(lua_State* state);
  122. int EQ2Emu_lua_SetFactionID(lua_State* state);
  123. int EQ2Emu_lua_GetFactionID(lua_State* state);
  124. int EQ2Emu_lua_ChangeFaction(lua_State* state);
  125. int EQ2Emu_lua_GetGender(lua_State* state);
  126. int EQ2Emu_lua_GetTarget(lua_State* state);
  127. int EQ2Emu_lua_HasFreeSlot(lua_State* state);
  128. int EQ2Emu_lua_HasItemEquipped(lua_State* state);
  129. int EQ2Emu_lua_GetEquippedItemBySlot(lua_State* state);
  130. int EQ2Emu_lua_GetEquippedItemByID(lua_State* state);
  131. int EQ2Emu_lua_SetEquippedItemByID(lua_State* state);
  132. int EQ2Emu_lua_SetEquippedItem(lua_State* state);
  133. int EQ2Emu_lua_UnequipSlot(lua_State* state);
  134. int EQ2Emu_lua_SetEquipment(lua_State* state);
  135. int EQ2Emu_lua_GetItemByID(lua_State* state);
  136. int EQ2Emu_lua_GetItemType(lua_State* state);
  137. int EQ2Emu_lua_GetItemEffectType(lua_State* state);
  138. int EQ2Emu_lua_GetSpellName(lua_State* state);
  139. //Misc
  140. int EQ2Emu_lua_SetAttackable(lua_State* state);
  141. int EQ2Emu_lua_SendStateCommand(lua_State* state);
  142. int EQ2Emu_lua_SpawnSet(lua_State* state);
  143. int EQ2Emu_lua_KillSpawn(lua_State* state);
  144. int EQ2Emu_lua_KillSpawnByDistance(lua_State* state);
  145. int EQ2Emu_lua_SpawnSetByDistance(lua_State* state);
  146. int EQ2Emu_lua_SetRequiredQuest(lua_State* state);
  147. int EQ2Emu_lua_SetRequiredHistory(lua_State* state);
  148. int EQ2Emu_lua_Despawn(lua_State* state);
  149. int EQ2Emu_lua_ChangeHandIcon(lua_State* state);
  150. int EQ2Emu_lua_SetVisualFlag(lua_State* state);
  151. int EQ2Emu_lua_SetInfoFlag(lua_State* state);
  152. int EQ2Emu_lua_AddHate(lua_State* state);
  153. int EQ2Emu_lua_GetZone(lua_State* state);
  154. int EQ2Emu_lua_GetZoneName(lua_State* state);
  155. int EQ2Emu_lua_GetZoneID(lua_State* state);
  156. int EQ2Emu_lua_Zone(lua_State* state);
  157. int EQ2Emu_lua_ModifyPower(lua_State* state);
  158. int EQ2Emu_lua_ModifyHP(lua_State* state);
  159. int EQ2Emu_lua_ModifyTotalPower(lua_State* state);
  160. int EQ2Emu_lua_ModifyTotalHP(lua_State* state);
  161. int EQ2Emu_lua_SpellHeal(lua_State* state);
  162. int EQ2Emu_lua_SpellHealPct(lua_State* state);
  163. int EQ2Emu_lua_AddItem(lua_State* state);
  164. int EQ2Emu_lua_SummonItem(lua_State* state);
  165. int EQ2Emu_lua_RemoveItem(lua_State* state);
  166. int EQ2Emu_lua_HasItem(lua_State* state);
  167. int EQ2Emu_lua_Spawn(lua_State* state);
  168. int EQ2Emu_lua_AddSpawnAccess(lua_State* state);
  169. int EQ2Emu_lua_CastSpell(lua_State* state);
  170. int EQ2Emu_lua_SpellDamage(lua_State* state);
  171. int EQ2Emu_lua_FaceTarget(lua_State* state);
  172. int EQ2Emu_lua_MoveToLocation(lua_State* state);
  173. int EQ2Emu_lua_ClearRunningLocations(lua_State* state);
  174. int EQ2Emu_lua_Say(lua_State* state);
  175. int EQ2Emu_lua_Shout(lua_State* state);
  176. int EQ2Emu_lua_SayOOC(lua_State* state);
  177. int EQ2Emu_lua_Emote(lua_State* state);
  178. int EQ2Emu_lua_IsPlayer(lua_State* state);
  179. int EQ2Emu_lua_GetCharacterID(lua_State* state);
  180. int EQ2Emu_lua_MovementLoopAdd(lua_State* state);
  181. int EQ2Emu_lua_GetCurrentZoneSafeLocation(lua_State* state);
  182. int EQ2Emu_lua_PlayFlavor(lua_State* state);
  183. int EQ2Emu_lua_PlayFlavorID(lua_State* state);
  184. int EQ2Emu_lua_PlaySound(lua_State* state);
  185. int EQ2Emu_lua_PlayVoice(lua_State* state);
  186. int EQ2Emu_lua_PlayAnimation(lua_State* state);
  187. int EQ2Emu_lua_AddLootItem(lua_State* state);
  188. int EQ2Emu_lua_HasLootItem(lua_State* state);
  189. int EQ2Emu_lua_RemoveLootItem(lua_State* state);
  190. int EQ2Emu_lua_AddLootCoin(lua_State* state);
  191. int EQ2Emu_lua_GiveLoot(lua_State* state);
  192. int EQ2Emu_lua_HasPendingLoot(lua_State* state);
  193. int EQ2Emu_lua_HasPendingLootItem(lua_State* state);
  194. int EQ2Emu_lua_CreateConversation(lua_State* state);
  195. int EQ2Emu_lua_AddConversationOption(lua_State* state);
  196. int EQ2Emu_lua_StartConversation(lua_State* state);
  197. int EQ2Emu_lua_StartDialogConversation(lua_State* state);
  198. //int EQ2Emu_lua_StartItemConversation(lua_State* state);
  199. int EQ2Emu_lua_CloseConversation(lua_State* state);
  200. int EQ2Emu_lua_CloseItemConversation(lua_State* state);
  201. int EQ2Emu_lua_SetPlayerProximityFunction(lua_State* state);
  202. int EQ2Emu_lua_SetLocationProximityFunction(lua_State* state);
  203. int EQ2Emu_lua_IsBindAllowed(lua_State* state);
  204. int EQ2Emu_lua_IsGateAllowed(lua_State* state);
  205. int EQ2Emu_lua_Bind(lua_State* state);
  206. int EQ2Emu_lua_Gate(lua_State* state);
  207. int EQ2Emu_lua_IsAlive(lua_State* state);
  208. int EQ2Emu_lua_IsInCombat(lua_State* state);
  209. int EQ2Emu_lua_SendMessage(lua_State* state);
  210. int EQ2Emu_lua_SendPopUpMessage(lua_State* state);
  211. int EQ2Emu_lua_SetServerControlFlag(lua_State* state);
  212. int EQ2Emu_lua_ToggleTracking(lua_State* state);
  213. int EQ2Emu_lua_AddPrimaryEntityCommand(lua_State* state);
  214. int EQ2Emu_lua_AddSpellBookEntry(lua_State* state);
  215. int EQ2Emu_lua_HasSpell(lua_State* state);
  216. int EQ2Emu_lua_Attack(lua_State* state);
  217. int EQ2Emu_lua_ApplySpellVisual(lua_State* state);
  218. int EQ2Emu_lua_Interrupt(lua_State* state);
  219. int EQ2Emu_lua_Stealth(lua_State* state);
  220. int EQ2Emu_lua_IsStealthed(lua_State* state);
  221. int EQ2Emu_lua_IsInvis(lua_State* state);
  222. int EQ2Emu_lua_AddSpawnIDAccess(lua_State* state);
  223. int EQ2Emu_lua_RemoveSpawnIDAccess(lua_State* state);
  224. int EQ2Emu_lua_HasRecipeBook(lua_State* state);
  225. int EQ2Emu_lua_SpawnMove(lua_State* state);
  226. int EQ2Emu_lua_AddTransportSpawn(lua_State* state);
  227. int EQ2Emu_lua_IsTransportSpawn(lua_State* state);
  228. int EQ2Emu_lua_PerformCameraShake(lua_State* state);
  229. //Quest Stuff
  230. int EQ2Emu_lua_SetStepComplete(lua_State* state);
  231. int EQ2Emu_lua_AddStepProgress(lua_State* state);
  232. int EQ2Emu_lua_GetTaskGroupStep(lua_State* state);
  233. int EQ2Emu_lua_QuestStepIsComplete(lua_State* state);
  234. int EQ2Emu_lua_GetQuestStep(lua_State* state);
  235. int EQ2Emu_lua_RegisterQuest(lua_State* state);
  236. int EQ2Emu_lua_OfferQuest(lua_State* state);
  237. int EQ2Emu_lua_SetQuestPrereqLevel(lua_State* state);
  238. int EQ2Emu_lua_AddQuestPrereqQuest(lua_State* state);
  239. int EQ2Emu_lua_AddQuestPrereqItem(lua_State* state);
  240. int EQ2Emu_lua_AddQuestPrereqFaction(lua_State* state);
  241. int EQ2Emu_lua_AddQuestPrereqClass(lua_State* state);
  242. int EQ2Emu_lua_AddQuestPrereqRace(lua_State* state);
  243. int EQ2Emu_lua_AddQuestPrereqModelType(lua_State* state);
  244. int EQ2Emu_lua_AddQuestPrereqTradeskillLevel(lua_State* state);
  245. int EQ2Emu_lua_AddQuestPrereqTradeskillClass(lua_State* state);
  246. int EQ2Emu_lua_HasQuestRewardItem(lua_State* state);
  247. int EQ2Emu_lua_AddQuestRewardItem(lua_State* state);
  248. int EQ2Emu_lua_AddQuestSelectableRewardItem(lua_State* state);
  249. int EQ2Emu_lua_AddQuestRewardCoin(lua_State* state);
  250. int EQ2Emu_lua_AddQuestRewardFaction(lua_State* state);
  251. int EQ2Emu_lua_SetQuestRewardStatus(lua_State* state);
  252. int EQ2Emu_lua_SetStatusTmpReward(lua_State* state);
  253. int EQ2Emu_lua_SetCoinTmpReward(lua_State* state);
  254. int EQ2Emu_lua_SetQuestRewardComment(lua_State* state);
  255. int EQ2Emu_lua_SetQuestRewardExp(lua_State* state);
  256. int EQ2Emu_lua_AddQuestStep(lua_State* state);
  257. int EQ2Emu_lua_AddQuestStepKillLogic(lua_State* state);
  258. int EQ2Emu_lua_AddQuestStepKill(lua_State* state);
  259. int EQ2Emu_lua_AddQuestStepKillByRace(lua_State* state);
  260. int EQ2Emu_lua_AddQuestStepChat(lua_State* state);
  261. int EQ2Emu_lua_AddQuestStepObtainItem(lua_State* state);
  262. int EQ2Emu_lua_AddQuestStepZoneLoc(lua_State* state);
  263. int EQ2Emu_lua_AddQuestStepLocation(lua_State* state);
  264. int EQ2Emu_lua_AddQuestStepLoc(lua_State* state);
  265. int EQ2Emu_lua_AddQuestStepSpell(lua_State* state);
  266. int EQ2Emu_lua_AddQuestStepCraft(lua_State* state);
  267. int EQ2Emu_lua_AddQuestStepHarvest(lua_State* state);
  268. int EQ2Emu_lua_AddQuestStepCompleteAction(lua_State* state);
  269. int EQ2Emu_lua_AddQuestStepProgressAction(lua_State* state);
  270. int EQ2Emu_lua_SetQuestCompleteAction(lua_State* state);
  271. int EQ2Emu_lua_GiveQuestReward(lua_State* state);
  272. int EQ2Emu_lua_UpdateQuestTaskGroupDescription(lua_State* state);
  273. int EQ2Emu_lua_UpdateQuestStepDescription(lua_State* state);
  274. int EQ2Emu_lua_UpdateQuestDescription(lua_State* state);
  275. int EQ2Emu_lua_UpdateQuestZone(lua_State* state);
  276. int EQ2Emu_lua_SetCompletedDescription(lua_State* state);
  277. int EQ2Emu_lua_ProvidesQuest(lua_State* state);
  278. int EQ2Emu_lua_HasQuest(lua_State* state);
  279. int EQ2Emu_lua_HasCompletedQuest(lua_State* state);
  280. int EQ2Emu_lua_QuestIsComplete(lua_State* state);
  281. int EQ2Emu_lua_QuestReturnNPC(lua_State* state);
  282. int EQ2Emu_lua_GetQuest(lua_State* state);
  283. int EQ2Emu_lua_AddTimer(lua_State* state);
  284. int EQ2Emu_lua_StopTimer(lua_State* state);
  285. int EQ2Emu_lua_Harvest(lua_State* state);
  286. int EQ2Emu_lua_SetCompleteFlag(lua_State* state);
  287. int EQ2Emu_lua_CanReceiveQuest(lua_State* state);
  288. int EQ2Emu_lua_HasCollectionsToHandIn(lua_State *state);
  289. int EQ2Emu_lua_HandInCollections(lua_State *state);
  290. int EQ2Emu_lua_UseWidget(lua_State* state);
  291. int EQ2Emu_lua_SummonPet(lua_State* state);
  292. int EQ2Emu_lua_Charm(lua_State* state);
  293. int EQ2Emu_lua_SetSpellList(lua_State* state);
  294. int EQ2Emu_lua_GetPet(lua_State* state);
  295. int EQ2Emu_lua_GetGroup(lua_State* state);
  296. int EQ2Emu_lua_CreateOptionWindow(lua_State* state);
  297. int EQ2Emu_lua_AddOptionWindowOption(lua_State* state);
  298. int EQ2Emu_lua_SendOptionWindow(lua_State* state);
  299. int EQ2Emu_lua_GetTradeskillClass(lua_State* state);
  300. int EQ2Emu_lua_GetTradeskillLevel(lua_State* state);
  301. int EQ2Emu_lua_GetTradeskillClassName(lua_State* state);
  302. int EQ2Emu_lua_SetTradeskillLevel(lua_State* state);
  303. int EQ2Emu_lua_SummonDeityPet(lua_State* state);
  304. int EQ2Emu_lua_SummonCosmeticPet(lua_State* state);
  305. int EQ2Emu_lua_DismissPet(lua_State* state);
  306. int EQ2Emu_lua_GetCharmedPet(lua_State* state);
  307. int EQ2Emu_lua_GetDeityPet(lua_State* state);
  308. int EQ2Emu_lua_GetCosmeticPet(lua_State* state);
  309. int EQ2Emu_lua_SetQuestFeatherColor(lua_State* state);
  310. int EQ2Emu_lua_RemoveSpawnAccess(lua_State* state);
  311. int EQ2Emu_lua_SpawnByLocationID(lua_State* state);
  312. int EQ2Emu_lua_SpawnGroupByID(lua_State* state);
  313. int EQ2Emu_lua_CastEntityCommand(lua_State* state);
  314. int EQ2Emu_lua_SetLuaBrain(lua_State* state);
  315. int EQ2Emu_lua_SetBrainTick(lua_State* state);
  316. int EQ2Emu_lua_SetFollowTarget(lua_State* state);
  317. int EQ2Emu_lua_GetFollowTarget(lua_State* state);
  318. int EQ2Emu_lua_ToggleFollow(lua_State* state);
  319. int EQ2Emu_lua_IsFollowing(lua_State* state);
  320. int EQ2Emu_lua_SetTempVariable(lua_State* state);
  321. int EQ2Emu_lua_GetTempVariable(lua_State* state);
  322. int EQ2Emu_lua_GiveQuestItem(lua_State*state);
  323. int EQ2Emu_lua_SetQuestRepeatable(lua_State* state);
  324. int EQ2Emu_lua_AddWaypoint(lua_State* state);
  325. int EQ2Emu_lua_RemoveWaypoint(lua_State* state);
  326. int EQ2Emu_lua_SendWaypoints(lua_State* state);
  327. int EQ2Emu_lua_AddWard(lua_State* state);
  328. int EQ2Emu_lua_AddToWard(lua_State* state);
  329. int EQ2Emu_lua_RemoveWard(lua_State* state);
  330. int EQ2Emu_lua_GetWardAmountLeft(lua_State* state);
  331. int EQ2Emu_lua_GetWardValue(lua_State* state);
  332. //Combat AI related
  333. int EQ2Emu_lua_SetTarget(lua_State* state);
  334. int EQ2Emu_lua_IsPet(lua_State* state);
  335. int EQ2Emu_lua_GetOwner(lua_State* state);
  336. int EQ2Emu_lua_SetInCombat(lua_State* state);
  337. int EQ2Emu_lua_CompareSpawns(lua_State* state);
  338. int EQ2Emu_lua_ClearRunback(lua_State* state);
  339. int EQ2Emu_lua_Runback(lua_State* state);
  340. int EQ2Emu_lua_GetRunbackDistance(lua_State* state);
  341. int EQ2Emu_lua_IsCasting(lua_State* state);
  342. int EQ2Emu_lua_IsMezzed(lua_State* state);
  343. int EQ2Emu_lua_IsStunned(lua_State* state);
  344. int EQ2Emu_lua_IsMezzedOrStunned(lua_State* state);
  345. int EQ2Emu_lua_ClearEncounter(lua_State* state);
  346. int EQ2Emu_lua_ClearHate(lua_State* state);
  347. int EQ2Emu_lua_GetMostHated(lua_State* state);
  348. int EQ2Emu_lua_GetEncounterSize(lua_State* state);
  349. int EQ2Emu_lua_HasRecovered(lua_State* state);
  350. int EQ2Emu_lua_ProcessMelee(lua_State* state);
  351. int EQ2Emu_lua_ProcessSpell(lua_State* state);
  352. int EQ2Emu_lua_GetEncounter(lua_State* state);
  353. int EQ2Emu_lua_GetHateList(lua_State* state);
  354. int EQ2Emu_lua_HasGroup(lua_State* state);
  355. int EQ2Emu_lua_HasSpellEffect(lua_State* state);
  356. int EQ2Emu_lua_SetSuccessTimer(lua_State* state);
  357. int EQ2Emu_lua_SetFailureTimer(lua_State* state);
  358. int EQ2Emu_lua_IsGroundSpawn(lua_State* state);
  359. int EQ2Emu_lua_CanHarvest(lua_State* state);
  360. int EQ2Emu_lua_SummonDumbFirePet(lua_State* state);
  361. int EQ2Emu_lua_GetSkillValue(lua_State* state);
  362. int EQ2Emu_lua_GetSkillMaxValue(lua_State* state);
  363. int EQ2Emu_lua_GetSkillName(lua_State* state);
  364. int EQ2Emu_lua_SetSkillMaxValue(lua_State* state);
  365. int EQ2Emu_lua_SetSkillValue(lua_State* state);
  366. int EQ2Emu_lua_GetSkill(lua_State* state);
  367. int EQ2Emu_lua_GetSkillIDByName(lua_State* state);
  368. int EQ2Emu_lua_HasSkill(lua_State* state);
  369. int EQ2Emu_lua_AddSkill(lua_State* state);
  370. int EQ2Emu_lua_RemoveSkill(lua_State* state);
  371. int EQ2Emu_lua_IncreaseSkillCapsByType(lua_State* state);
  372. int EQ2Emu_lua_AddProc(lua_State* state);
  373. int EQ2Emu_lua_RemoveProc(lua_State* state);
  374. int EQ2Emu_lua_Knockback(lua_State* state);
  375. int EQ2Emu_lua_IsEpic(lua_State* state);
  376. int EQ2Emu_lua_IsHeroic(lua_State* state);
  377. int EQ2Emu_lua_ProcDamage(lua_State* state);
  378. int EQ2Emu_lua_LastSpellAttackHit(lua_State* state);
  379. int EQ2Emu_lua_IsBehind(lua_State* state);
  380. int EQ2Emu_lua_IsFlanking(lua_State* state);
  381. int EQ2Emu_lua_AddSpellTimer(lua_State* state);
  382. int EQ2Emu_lua_SetItemCount(lua_State* state);
  383. int EQ2Emu_lua_GetItemCount(lua_State* state);
  384. int EQ2Emu_lua_Resurrect(lua_State* state);
  385. int EQ2Emu_lua_BreatheUnderwater(lua_State* state);
  386. int EQ2Emu_lua_BlurVision(lua_State* state);
  387. int EQ2Emu_lua_SetVision(lua_State* state);
  388. int EQ2Emu_lua_GetItemSkillReq(lua_State* state);
  389. int EQ2Emu_lua_SetSpeedMultiplier(lua_State* state);
  390. int EQ2Emu_lua_SetIllusion(lua_State* state);
  391. int EQ2Emu_lua_ResetIllusion(lua_State* state);
  392. int EQ2Emu_lua_AddThreatTransfer(lua_State* state);
  393. int EQ2Emu_lua_RemoveThreatTransfer(lua_State* state);
  394. int EQ2Emu_lua_CureByType(lua_State* state);
  395. int EQ2Emu_lua_CureByControlEffect(lua_State* state);
  396. int EQ2Emu_lua_AddSpawnSpellBonus(lua_State* state);
  397. int EQ2Emu_lua_RemoveSpawnSpellBonus(lua_State* state);
  398. int EQ2Emu_lua_CancelSpell(lua_State* state);
  399. int EQ2Emu_lua_RemoveStealth(lua_State* state);
  400. int EQ2Emu_lua_RemoveInvis(lua_State* state);
  401. int EQ2Emu_lua_StartHeroicOpportunity(lua_State* state);
  402. int EQ2Emu_lua_CopySpawnAppearance(lua_State* state);
  403. int EQ2Emu_lua_RemoveTriggerFromSpell(lua_State* state);
  404. int EQ2Emu_lua_GetSpellTriggerCount(lua_State* state);
  405. int EQ2Emu_lua_SetSpellTriggerCount(lua_State* state);
  406. int EQ2Emu_lua_HasSpellImmunity(lua_State* state);
  407. int EQ2Emu_lua_AddImmunitySpell(lua_State* state);
  408. int EQ2Emu_lua_RemoveImmunitySpell(lua_State* state);
  409. int EQ2Emu_lua_SetSpellSnareValue(lua_State* state);
  410. int EQ2Emu_lua_CheckRaceType(lua_State* state);
  411. int EQ2Emu_lua_GetRaceType(lua_State* state);
  412. int EQ2Emu_lua_GetRaceBaseType(lua_State* state);
  413. int EQ2Emu_lua_GetQuestFlags(lua_State* state);
  414. int EQ2Emu_lua_SetQuestFlags(lua_State* state);
  415. int EQ2Emu_lua_SetQuestTimer(lua_State* state);
  416. int EQ2Emu_lua_RemoveQuestStep(lua_State* state);
  417. int EQ2Emu_lua_ResetQuestStep(lua_State* state);
  418. int EQ2Emu_lua_SetQuestTimerComplete(lua_State* state);
  419. int EQ2Emu_lua_AddQuestStepFailureAction(lua_State* state);
  420. int EQ2Emu_lua_SetStepFailed(lua_State* state);
  421. int EQ2Emu_lua_GetQuestCompleteCount(lua_State* state);
  422. int EQ2Emu_lua_SetServerVariable(lua_State* state);
  423. int EQ2Emu_lua_GetServerVariable(lua_State* state);
  424. int EQ2Emu_lua_HasLanguage(lua_State* state);
  425. int EQ2Emu_lua_AddLanguage(lua_State* state);
  426. int EQ2Emu_lua_IsNight(lua_State* state);
  427. int EQ2Emu_lua_AddMultiFloorLift(lua_State* state);
  428. int EQ2Emu_lua_StartAutoMount(lua_State* state);
  429. int EQ2Emu_lua_EndAutoMount(lua_State* state);
  430. int EQ2Emu_lua_IsOnAutoMount(lua_State* state);
  431. int EQ2Emu_lua_SetPlayerHistory(lua_State* state);
  432. int EQ2Emu_lua_GetPlayerHistory(lua_State* state);
  433. int EQ2Emu_lua_SetGridID(lua_State* state);
  434. int EQ2Emu_lua_GetQuestStepProgress(lua_State* state);
  435. int EQ2Emu_lua_SetPlayerLevel(lua_State* state);
  436. int EQ2Emu_lua_AddCoin(lua_State* state);
  437. int EQ2Emu_lua_RemoveCoin(lua_State* state);
  438. int EQ2Emu_lua_GetPlayersInZone(lua_State* state);
  439. int EQ2Emu_lua_SetSpawnAnimation(lua_State* state);
  440. int EQ2Emu_lua_GetClientVersion(lua_State* state);
  441. int EQ2Emu_lua_GetItemID(lua_State* state);
  442. int EQ2Emu_lua_IsEntity(lua_State* state);
  443. int EQ2Emu_lua_GetOrigX(lua_State* state);
  444. int EQ2Emu_lua_GetOrigY(lua_State* state);
  445. int EQ2Emu_lua_GetOrigZ(lua_State* state);
  446. int EQ2Emu_lua_GetPCTOfHP(lua_State* state);
  447. int EQ2Emu_lua_GetPCTOfPower(lua_State* state);
  448. int EQ2Emu_lua_GetBoundZoneID(lua_State* state);
  449. int EQ2Emu_lua_Evac(lua_State* state);
  450. int EQ2Emu_lua_GetSpellTier(lua_State* state);
  451. int EQ2Emu_lua_GetSpellID(lua_State* state);
  452. int EQ2Emu_lua_StartTransmute(lua_State* state);
  453. int EQ2Emu_lua_CompleteTransmute(lua_State* state);
  454. int EQ2Emu_lua_ProcHate(lua_State* state);
  455. int EQ2Emu_lua_GiveExp(lua_State* state);
  456. int EQ2Emu_lua_DisplayText(lua_State* state);
  457. int EQ2Emu_lua_ShowLootWindow(lua_State* state);
  458. int EQ2Emu_lua_GetRandomSpawnByID(lua_State* state);
  459. int EQ2Emu_lua_AddPrimaryEntityCommandAllSpawns(lua_State* state);
  460. int EQ2Emu_lua_InstructionWindow(lua_State* state);
  461. int EQ2Emu_lua_InstructionWindowClose(lua_State* state);
  462. int EQ2Emu_lua_InstructionWindowGoal(lua_State* state);
  463. int EQ2Emu_lua_ShowWindow(lua_State* state);
  464. int EQ2Emu_lua_FlashWindow(lua_State* state);
  465. int EQ2Emu_lua_EnableGameEvent(lua_State* state);
  466. int EQ2Emu_lua_GetTutorialStep(lua_State* state);
  467. int EQ2Emu_lua_SetTutorialStep(lua_State* state);
  468. int EQ2Emu_lua_CheckLOS(lua_State* state);
  469. int EQ2Emu_lua_CheckLOSByCoordinates(lua_State* state);
  470. int EQ2Emu_lua_SetZoneExpansionFlag(lua_State* state);
  471. int EQ2Emu_lua_GetZoneExpansionFlag(lua_State* state);
  472. int EQ2Emu_lua_SetZoneHolidayFlag(lua_State* state);
  473. int EQ2Emu_lua_GetZoneHolidayFlag(lua_State* state);
  474. int EQ2Emu_lua_SetCanBind(lua_State* state);
  475. int EQ2Emu_lua_GetCanBind(lua_State* state);
  476. int EQ2Emu_lua_GetCanGate(lua_State* state);
  477. int EQ2Emu_lua_SetCanGate(lua_State* state);
  478. int EQ2Emu_lua_AddSpawnProximity(lua_State* state);
  479. int EQ2Emu_lua_CanSeeInvis(lua_State* state);
  480. int EQ2Emu_lua_SetSeeInvis(lua_State* state);
  481. int EQ2Emu_lua_SetSeeHide(lua_State* state);
  482. int EQ2Emu_lua_SetAccessToEntityCommand(lua_State* state);
  483. int EQ2Emu_lua_SetAccessToEntityCommandByCharID(lua_State* state);
  484. int EQ2Emu_lua_RemovePrimaryEntityCommand(lua_State* state);
  485. int EQ2Emu_lua_SendUpdateDefaultCommand(lua_State* state);
  486. int EQ2Emu_lua_SendTransporters(lua_State* state);
  487. int EQ2Emu_lua_SetTemporaryTransportID(lua_State* state);
  488. int EQ2Emu_lua_GetTemporaryTransportID(lua_State* state);
  489. int EQ2Emu_lua_GetAlignment(lua_State* state);
  490. int EQ2Emu_lua_SetAlignment(lua_State* state);
  491. int EQ2Emu_lua_GetSpell(lua_State* state);
  492. int EQ2Emu_lua_GetSpellData(lua_State* state);
  493. int EQ2Emu_lua_SetSpellData(lua_State* state);
  494. int EQ2Emu_lua_CastCustomSpell(lua_State* state);
  495. int EQ2Emu_lua_SetSpellDataIndex(lua_State* state);
  496. int EQ2Emu_lua_GetSpellDataIndex(lua_State* state);
  497. int EQ2Emu_lua_SetSpellDisplayEffect(lua_State* state);
  498. int EQ2Emu_lua_GetSpellDisplayEffect(lua_State* state);
  499. int EQ2Emu_lua_InWater(lua_State* state);
  500. int EQ2Emu_lua_InLava(lua_State* state);
  501. int EQ2Emu_lua_DamageSpawn(lua_State* state);
  502. int EQ2Emu_lua_IsInvulnerable(lua_State* state);
  503. int EQ2Emu_lua_SetInvulnerable(lua_State* state);
  504. int EQ2Emu_lua_GetRuleFlagBool(lua_State* state);
  505. int EQ2Emu_lua_GetRuleFlagInt32(lua_State* state);
  506. int EQ2Emu_lua_GetRuleFlagFloat(lua_State* state);
  507. int EQ2Emu_lua_GetAAInfo(lua_State* state);
  508. int EQ2Emu_lua_SetAAInfo(lua_State* state);
  509. int EQ2Emu_lua_AddMasterTitle(lua_State* state);
  510. int EQ2Emu_lua_AddCharacterTitle(lua_State* state);
  511. int EQ2Emu_lua_SetCharacterTitleSuffix(lua_State* state);
  512. int EQ2Emu_lua_SetCharacterTitlePrefix(lua_State* state);
  513. int EQ2Emu_lua_ResetCharacterTitleSuffix(lua_State* state);
  514. int EQ2Emu_lua_ResetCharacterTitlePrefix(lua_State* state);
  515. int EQ2Emu_lua_GetInfoStructString(lua_State* state);
  516. int EQ2Emu_lua_GetInfoStructUInt(lua_State* state);
  517. int EQ2Emu_lua_GetInfoStructSInt(lua_State* state);
  518. int EQ2Emu_lua_GetInfoStructFloat(lua_State* state);
  519. int EQ2Emu_lua_SetInfoStructString(lua_State* state);
  520. int EQ2Emu_lua_SetInfoStructUInt(lua_State* state);
  521. int EQ2Emu_lua_SetInfoStructSInt(lua_State* state);
  522. int EQ2Emu_lua_SetInfoStructFloat(lua_State* state);
  523. int EQ2Emu_lua_SetCharSheetChanged(lua_State* state);
  524. int EQ2Emu_lua_AddPlayerMail(lua_State* state);
  525. int EQ2Emu_lua_AddPlayerMailByCharID(lua_State* state);
  526. int EQ2Emu_lua_OpenDoor(lua_State* state);
  527. int EQ2Emu_lua_CloseDoor(lua_State* state);
  528. int EQ2Emu_lua_IsOpen(lua_State* state);
  529. int EQ2Emu_lua_MakeRandomInt(lua_State* state);
  530. int EQ2Emu_lua_MakeRandomFloat(lua_State* state);
  531. int EQ2Emu_lua_AddIconValue(lua_State* state);
  532. int EQ2Emu_lua_RemoveIconValue(lua_State* state);
  533. int EQ2Emu_lua_GetShardID(lua_State* state);
  534. int EQ2Emu_lua_GetShardCharID(lua_State* state);
  535. int EQ2Emu_lua_GetShardCreatedTimestamp(lua_State* state);
  536. int EQ2Emu_lua_DeleteDBShardID(lua_State* state);
  537. int EQ2Emu_lua_PauseMovement(lua_State* state);
  538. int EQ2Emu_lua_StopMovement(lua_State* state);
  539. int EQ2Emu_lua_GetArrowColor(lua_State* state);
  540. int EQ2Emu_lua_GetTSArrowColor(lua_State* state);
  541. int EQ2Emu_lua_GetSpawnByRailID(lua_State* state);
  542. int EQ2Emu_lua_SetRailID(lua_State* state);
  543. int EQ2Emu_lua_IsZoneLoading(lua_State* state);
  544. int EQ2Emu_lua_IsRunning(lua_State* state);
  545. int EQ2Emu_lua_GetZoneLockoutTimer(lua_State* state);
  546. int EQ2Emu_lua_SetWorldTime(lua_State* state);
  547. int EQ2Emu_lua_GetWorldTimeYear(lua_State* state);
  548. int EQ2Emu_lua_GetWorldTimeMonth(lua_State* state);
  549. int EQ2Emu_lua_GetWorldTimeHour(lua_State* state);
  550. int EQ2Emu_lua_GetWorldTimeMinute(lua_State* state);
  551. int EQ2Emu_lua_SendTimeUpdate(lua_State* state);
  552. int EQ2Emu_lua_SetLootTier(lua_State* state);
  553. int EQ2Emu_lua_GetLootTier(lua_State* state);
  554. int EQ2Emu_lua_SetLootDropType(lua_State* state);
  555. int EQ2Emu_lua_GetLootDropType(lua_State* state);
  556. #endif