[Items] Overhaul Item Hand-in System (#4593)

* [Items] Overhaul Item Hand-in System

* Edge case lua fix

* Merge fix

* I'm going to be amazed if this works first try

* Update linux-build.sh

* Update linux-build.sh

* Update linux-build.sh

* Update linux-build.sh

* Update linux-build.sh

* Update linux-build.sh

* Update linux-build.sh

* Update linux-build.sh

* Add protections against scripts that hand back items themselves

* Remove EVENT_ITEM_ScriptStopReturn

* test

* Update npc_handins.cpp

* Add Items:AlwaysReturnHandins

* Update spdat.cpp

* Bypass update prompt on CI
This commit is contained in:
Chris Miles
2025-02-03 16:51:09 -06:00
committed by GitHub
parent d1d6db3a09
commit 6fb919a16f
40 changed files with 2254 additions and 473 deletions
+10
View File
@@ -9,6 +9,7 @@ class Lua_Mob;
class Lua_NPC;
class Lua_Client;
struct Lua_NPC_Loot_List;
class Lua_Inventory;
namespace luabind {
struct scope;
@@ -186,6 +187,15 @@ public:
void SetNPCAggro(bool in_npc_aggro);
uint32 GetNPCSpellsEffectsID();
void DescribeSpecialAbilities(Lua_Client c);
bool IsMultiQuestEnabled();
void MultiQuestEnable();
bool LuaCheckHandin(
Lua_Client c,
luabind::adl::object handin_table,
luabind::adl::object required_table,
luabind::adl::object items_table
);
void ReturnHandinItems(Lua_Client c);
};
#endif