mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
[Spells] Invisibility updates and rework (#1991)
* updates pre merge * update * Update spell_effects.cpp * Update mob.h * test * test * updates * updates * save * update * working solid * animal and undead start * progress * updates * rename * set invis appearance on bonus * remove fade buff state check * update IsViisble check * optimizing * don't break bots * debug remover * Update ruletypes.h * perl adds * Update client_packet.cpp * update * done * remove debugs * Update client_packet.cpp * update * [Spells] Invisibility updates and rework lua support * [Spells] Invisibility updates and rework lua
This commit is contained in:
+31
-2
@@ -2118,7 +2118,7 @@ uint8 Lua_Mob::SeeInvisible() {
|
||||
return self->SeeInvisible();
|
||||
}
|
||||
|
||||
bool Lua_Mob::SeeInvisibleUndead() {
|
||||
uint8 Lua_Mob::SeeInvisibleUndead() {
|
||||
Lua_Safe_Call_Bool();
|
||||
return self->SeeInvisibleUndead();
|
||||
}
|
||||
@@ -2423,6 +2423,31 @@ Lua_NPC Lua_Mob::GetHateRandomNPC() {
|
||||
return Lua_NPC(self->GetHateRandomNPC());
|
||||
}
|
||||
|
||||
uint8 Lua_Mob::GetInvisibleLevel()
|
||||
{
|
||||
Lua_Safe_Call_Int();
|
||||
return self->GetInvisibleLevel();
|
||||
}
|
||||
|
||||
uint8 Lua_Mob::GetInvisibleUndeadLevel()
|
||||
{
|
||||
Lua_Safe_Call_Int();
|
||||
return self->GetInvisibleUndeadLevel();
|
||||
}
|
||||
|
||||
void Lua_Mob::SetSeeInvisibleLevel(uint8 invisible_level)
|
||||
{
|
||||
Lua_Safe_Call_Void();
|
||||
self->SetInnateSeeInvisible(invisible_level);
|
||||
self->CalcSeeInvisibleLevel();
|
||||
}
|
||||
|
||||
void Lua_Mob::SetSeeInvisibleUndeadLevel(uint8 invisible_level)
|
||||
{
|
||||
Lua_Safe_Call_Void();
|
||||
self->SetSeeInvisibleUndead(invisible_level);
|
||||
}
|
||||
|
||||
luabind::scope lua_register_mob() {
|
||||
return luabind::class_<Lua_Mob, Lua_Entity>("Mob")
|
||||
.def(luabind::constructor<>())
|
||||
@@ -2618,6 +2643,8 @@ luabind::scope lua_register_mob() {
|
||||
.def("GetHelmTexture", &Lua_Mob::GetHelmTexture)
|
||||
.def("GetHerosForgeModel", (int32(Lua_Mob::*)(uint8))&Lua_Mob::GetHerosForgeModel)
|
||||
.def("GetINT", &Lua_Mob::GetINT)
|
||||
.def("GetInvisibleLevel", (uint8(Lua_Mob::*)(void))&Lua_Mob::GetInvisibleLevel)
|
||||
.def("GetInvisibleUndeadLevel", (uint8(Lua_Mob::*)(void))&Lua_Mob::GetInvisibleUndeadLevel)
|
||||
.def("GetInvul", (bool(Lua_Mob::*)(void))&Lua_Mob::GetInvul)
|
||||
.def("GetItemBonuses", &Lua_Mob::GetItemBonuses)
|
||||
.def("GetItemHPBonuses", &Lua_Mob::GetItemHPBonuses)
|
||||
@@ -2763,7 +2790,9 @@ luabind::scope lua_register_mob() {
|
||||
.def("SeeHide", (bool(Lua_Mob::*)(void))&Lua_Mob::SeeHide)
|
||||
.def("SeeImprovedHide", (bool(Lua_Mob::*)(bool))&Lua_Mob::SeeImprovedHide)
|
||||
.def("SeeInvisible", (uint8(Lua_Mob::*)(void))&Lua_Mob::SeeInvisible)
|
||||
.def("SeeInvisibleUndead", (bool(Lua_Mob::*)(void))&Lua_Mob::SeeInvisibleUndead)
|
||||
.def("SeeInvisibleUndead", (uint8(Lua_Mob::*)(void))&Lua_Mob::SeeInvisibleUndead)
|
||||
.def("SetSeeInvisibleLevel", (void(Lua_Mob::*)(uint8))&Lua_Mob::SetSeeInvisibleLevel)
|
||||
.def("SetSeeInvisibleUndeadLevel", (void(Lua_Mob::*)(uint8))&Lua_Mob::SetSeeInvisibleUndeadLevel)
|
||||
.def("SendAppearanceEffect", (void(Lua_Mob::*)(uint32,uint32,uint32,uint32,uint32))&Lua_Mob::SendAppearanceEffect)
|
||||
.def("SendAppearanceEffect", (void(Lua_Mob::*)(uint32,uint32,uint32,uint32,uint32,Lua_Client))&Lua_Mob::SendAppearanceEffect)
|
||||
.def("SendBeginCast", &Lua_Mob::SendBeginCast)
|
||||
|
||||
Reference in New Issue
Block a user