mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 15:00:25 +00:00
Merge fix
This commit is contained in:
@@ -328,6 +328,36 @@ void Lua_NPC::AI_SetRoambox(float dist, float max_x, float min_x, float max_y, f
|
||||
self->AI_SetRoambox(dist, max_x, min_x, max_y, min_y, delay, mindelay);
|
||||
}
|
||||
|
||||
void Lua_NPC::SetFollowID(int id) {
|
||||
Lua_Safe_Call_Void();
|
||||
self->SetFollowID(id);
|
||||
}
|
||||
|
||||
void Lua_NPC::SetFollowDistance(int dist) {
|
||||
Lua_Safe_Call_Void();
|
||||
self->SetFollowDistance(dist);
|
||||
}
|
||||
|
||||
void Lua_NPC::SetFollowCanRun(bool v) {
|
||||
Lua_Safe_Call_Void();
|
||||
self->SetFollowCanRun(v);
|
||||
}
|
||||
|
||||
int Lua_NPC::GetFollowID() {
|
||||
Lua_Safe_Call_Int();
|
||||
return self->GetFollowID();
|
||||
}
|
||||
|
||||
int Lua_NPC::GetFollowDistance() {
|
||||
Lua_Safe_Call_Int();
|
||||
return self->GetFollowDistance();
|
||||
}
|
||||
|
||||
bool Lua_NPC::GetFollowCanRun() {
|
||||
Lua_Safe_Call_Bool();
|
||||
return self->GetFollowCanRun();
|
||||
}
|
||||
|
||||
int Lua_NPC::GetNPCSpellsID() {
|
||||
Lua_Safe_Call_Int();
|
||||
return self->GetNPCSpellsID();
|
||||
@@ -566,6 +596,13 @@ luabind::scope lua_register_npc() {
|
||||
.def("IsGuarding", (bool(Lua_NPC::*)(void))&Lua_NPC::IsGuarding)
|
||||
.def("AI_SetRoambox", (void(Lua_NPC::*)(float,float,float,float,float))&Lua_NPC::AI_SetRoambox)
|
||||
.def("AI_SetRoambox", (void(Lua_NPC::*)(float,float,float,float,float,uint32,uint32))&Lua_NPC::AI_SetRoambox)
|
||||
.def("SetFollowID", (void(Lua_NPC::*)(int))&Lua_NPC::SetFollowID)
|
||||
.def("SetFollowDistance", (void(Lua_NPC::*)(int))&Lua_NPC::SetFollowDistance)
|
||||
.def("SetFollowCanRun", (void(Lua_NPC::*)(bool))&Lua_NPC::SetFollowCanRun)
|
||||
.def("GetFollowID", (int(Lua_NPC::*)(void))&Lua_NPC::GetFollowID)
|
||||
.def("GetFollowDistance", (int(Lua_NPC::*)(void))&Lua_NPC::GetFollowDistance)
|
||||
.def("GetFollowCanRun", (bool(Lua_NPC::*)(void))&Lua_NPC::GetFollowCanRun)
|
||||
.def("GetNPCSpellsID", (int(Lua_NPC::*)(void))&Lua_NPC::GetNPCSpellsID)
|
||||
.def("GetNPCSpellsID", (int(Lua_NPC::*)(void))&Lua_NPC::GetNPCSpellsID)
|
||||
.def("GetSpawnPointID", (int(Lua_NPC::*)(void))&Lua_NPC::GetSpawnPointID)
|
||||
.def("GetSpawnPointX", (float(Lua_NPC::*)(void))&Lua_NPC::GetSpawnPointX)
|
||||
|
||||
Reference in New Issue
Block a user