diff --git a/zone/lua_iteminst.cpp b/zone/lua_iteminst.cpp index ee164ded1..1c5155e5d 100644 --- a/zone/lua_iteminst.cpp +++ b/zone/lua_iteminst.cpp @@ -265,10 +265,12 @@ void Lua_ItemInst::ClearTimers() { } luabind::scope lua_register_iteminst() { - return luabind::class_("ItemInst") + return luabind::class_("ItemInst") .def(luabind::constructor<>()) .def(luabind::constructor()) .def(luabind::constructor()) + .property("null", &Lua_ItemInst::Null) + .property("valid", &Lua_ItemInst::Valid) .def("AddExp", (void(Lua_ItemInst::*)(uint32))&Lua_ItemInst::AddExp) .def("ClearTimers", (void(Lua_ItemInst::*)(void))&Lua_ItemInst::ClearTimers) .def("Clone", (Lua_ItemInst(Lua_ItemInst::*)(void))&Lua_ItemInst::Clone) diff --git a/zone/lua_packet.cpp b/zone/lua_packet.cpp index bf246465b..c7a039ca4 100644 --- a/zone/lua_packet.cpp +++ b/zone/lua_packet.cpp @@ -326,6 +326,8 @@ luabind::scope lua_register_packet() { .def(luabind::constructor<>()) .def(luabind::constructor()) .def(luabind::constructor()) + .property("null", &Lua_Packet::Null) + .property("valid", &Lua_Packet::Valid) .def("GetOpcode", &Lua_Packet::GetOpcode) .def("GetRawOpcode", &Lua_Packet::GetRawOpcode) .def("GetSize", &Lua_Packet::GetSize) diff --git a/zone/lua_raid.cpp b/zone/lua_raid.cpp index aa209fa7b..4bc99a7cd 100644 --- a/zone/lua_raid.cpp +++ b/zone/lua_raid.cpp @@ -146,6 +146,8 @@ bool Lua_Raid::DoesAnyMemberHaveExpeditionLockout(std::string expedition_name, s luabind::scope lua_register_raid() { return luabind::class_("Raid") .def(luabind::constructor<>()) + .property("null", &Lua_Raid::Null) + .property("valid", &Lua_Raid::Valid) .def("BalanceHP", (void(Lua_Raid::*)(int,uint32))&Lua_Raid::BalanceHP) .def("CastGroupSpell", (void(Lua_Raid::*)(Lua_Mob,int,uint32))&Lua_Raid::CastGroupSpell) .def("DoesAnyMemberHaveExpeditionLockout", (bool(Lua_Raid::*)(std::string, std::string))&Lua_Raid::DoesAnyMemberHaveExpeditionLockout) diff --git a/zone/lua_spawn.cpp b/zone/lua_spawn.cpp index 56fb94757..117b4a6b4 100644 --- a/zone/lua_spawn.cpp +++ b/zone/lua_spawn.cpp @@ -141,6 +141,8 @@ uint32 Lua_Spawn::GetKillCount() { luabind::scope lua_register_spawn() { return luabind::class_("Spawn") .def(luabind::constructor<>()) + .property("null", &Lua_Spawn::Null) + .property("valid", &Lua_Spawn::Valid) .def("CurrentNPCID", (uint32(Lua_Spawn::*)(void))&Lua_Spawn::CurrentNPCID) .def("Depop", (void(Lua_Spawn::*)(void))&Lua_Spawn::Depop) .def("Disable", (void(Lua_Spawn::*)(void))&Lua_Spawn::Disable) diff --git a/zone/lua_spell.cpp b/zone/lua_spell.cpp index 28c7e7cb5..c2a5e622d 100644 --- a/zone/lua_spell.cpp +++ b/zone/lua_spell.cpp @@ -493,6 +493,8 @@ luabind::scope lua_register_spell() { return luabind::class_("Spell") .def(luabind::constructor<>()) .def(luabind::constructor()) + .property("null", &Lua_Spell::Null) + .property("valid", &Lua_Spell::Valid) .def("AEDuration", &Lua_Spell::GetAEDuration) .def("AEMaxTargets", &Lua_Spell::GetAEMaxTargets) .def("Activated", &Lua_Spell::GetActivated)