mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-06 00:32:25 +00:00
Expose group member role to Lua
This commit is contained in:
parent
d79134b19e
commit
34bf1f03f2
@ -122,6 +122,16 @@ Lua_Mob Lua_Group::GetMember(int member_index) {
|
|||||||
return self->members[member_index];
|
return self->members[member_index];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint8 Lua_Group::GetMemberRole(Lua_Mob member) {
|
||||||
|
Lua_Safe_Call_Int();
|
||||||
|
return self->GetMemberRole(member);
|
||||||
|
}
|
||||||
|
|
||||||
|
uint8 Lua_Group::GetMemberRole(const char* name) {
|
||||||
|
Lua_Safe_Call_Int();
|
||||||
|
return self->GetMemberRole(name);
|
||||||
|
}
|
||||||
|
|
||||||
bool Lua_Group::DoesAnyMemberHaveExpeditionLockout(std::string expedition_name, std::string event_name)
|
bool Lua_Group::DoesAnyMemberHaveExpeditionLockout(std::string expedition_name, std::string event_name)
|
||||||
{
|
{
|
||||||
Lua_Safe_Call_Bool();
|
Lua_Safe_Call_Bool();
|
||||||
@ -154,8 +164,10 @@ luabind::scope lua_register_group() {
|
|||||||
.def("GetLeader", (Lua_Mob(Lua_Group::*)(void))&Lua_Group::GetLeader)
|
.def("GetLeader", (Lua_Mob(Lua_Group::*)(void))&Lua_Group::GetLeader)
|
||||||
.def("GetLeaderName", (const char*(Lua_Group::*)(void))&Lua_Group::GetLeaderName)
|
.def("GetLeaderName", (const char*(Lua_Group::*)(void))&Lua_Group::GetLeaderName)
|
||||||
.def("GetLowestLevel", (uint32(Lua_Group::*)(void))&Lua_Group::GetLowestLevel)
|
.def("GetLowestLevel", (uint32(Lua_Group::*)(void))&Lua_Group::GetLowestLevel)
|
||||||
.def("GetMember", (Lua_Mob(Lua_Group::*)(int))&Lua_Group::GetMember)
|
.def("GetMember", (Lua_Mob(Lua_Group::*)(int))&Lua_Group::GetMember)
|
||||||
.def("GetTotalGroupDamage", (uint32(Lua_Group::*)(Lua_Mob))&Lua_Group::GetTotalGroupDamage)
|
.def("GetMemberRole", (uint8(Lua_Group::*)(Lua_Mob))&Lua_Group::GetMemberRole)
|
||||||
|
.def("GetMemberRole", (uint8(Lua_Group::*)(const char*))&Lua_Group::GetMemberRole)
|
||||||
|
.def("GetTotalGroupDamage", (uint32(Lua_Group::*)(Lua_Mob))&Lua_Group::GetTotalGroupDamage)
|
||||||
.def("GroupCount", (int(Lua_Group::*)(void))&Lua_Group::GroupCount)
|
.def("GroupCount", (int(Lua_Group::*)(void))&Lua_Group::GroupCount)
|
||||||
.def("GroupMessage", (void(Lua_Group::*)(Lua_Mob,const char*))&Lua_Group::GroupMessage)
|
.def("GroupMessage", (void(Lua_Group::*)(Lua_Mob,const char*))&Lua_Group::GroupMessage)
|
||||||
.def("GroupMessage", (void(Lua_Group::*)(Lua_Mob,uint8,const char*))&Lua_Group::GroupMessage)
|
.def("GroupMessage", (void(Lua_Group::*)(Lua_Mob,uint8,const char*))&Lua_Group::GroupMessage)
|
||||||
|
|||||||
@ -47,10 +47,12 @@ public:
|
|||||||
uint32 GetHighestLevel();
|
uint32 GetHighestLevel();
|
||||||
uint32 GetLowestLevel();
|
uint32 GetLowestLevel();
|
||||||
void TeleportGroup(Lua_Mob sender, uint32 zone_id, uint32 instance_id, float x, float y, float z, float h);
|
void TeleportGroup(Lua_Mob sender, uint32 zone_id, uint32 instance_id, float x, float y, float z, float h);
|
||||||
int GetID();
|
int GetID();
|
||||||
Lua_Mob GetMember(int member_index);
|
Lua_Mob GetMember(int member_index);
|
||||||
bool DoesAnyMemberHaveExpeditionLockout(std::string expedition_name, std::string event_name);
|
uint8 GetMemberRole(Lua_Mob member);
|
||||||
bool DoesAnyMemberHaveExpeditionLockout(std::string expedition_name, std::string event_name, int max_check_count);
|
uint8 GetMemberRole(const char* name);
|
||||||
|
bool DoesAnyMemberHaveExpeditionLockout(std::string expedition_name, std::string event_name);
|
||||||
|
bool DoesAnyMemberHaveExpeditionLockout(std::string expedition_name, std::string event_name, int max_check_count);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user