mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 07:21:48 +00:00
Update to encounter timers so they can actually work from hooked events
This commit is contained in:
parent
0b17dc73f1
commit
6cb1861c91
@ -313,6 +313,10 @@ void lua_stop_timer(const char *timer, Lua_Mob mob) {
|
|||||||
quest_manager.stoptimer(timer, mob);
|
quest_manager.stoptimer(timer, mob);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void lua_stop_timer(const char *timer, Lua_Encounter enc) {
|
||||||
|
quest_manager.stoptimer(timer, enc);
|
||||||
|
}
|
||||||
|
|
||||||
void lua_stop_all_timers() {
|
void lua_stop_all_timers() {
|
||||||
quest_manager.stopalltimers();
|
quest_manager.stopalltimers();
|
||||||
}
|
}
|
||||||
@ -325,6 +329,10 @@ void lua_stop_all_timers(Lua_Mob mob) {
|
|||||||
quest_manager.stopalltimers(mob);
|
quest_manager.stopalltimers(mob);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void lua_stop_all_timers(Lua_Encounter enc) {
|
||||||
|
quest_manager.stopalltimers(enc);
|
||||||
|
}
|
||||||
|
|
||||||
void lua_depop() {
|
void lua_depop() {
|
||||||
quest_manager.depop(0);
|
quest_manager.depop(0);
|
||||||
}
|
}
|
||||||
@ -1466,9 +1474,11 @@ luabind::scope lua_register_general() {
|
|||||||
luabind::def("stop_timer", (void(*)(const char*))&lua_stop_timer),
|
luabind::def("stop_timer", (void(*)(const char*))&lua_stop_timer),
|
||||||
luabind::def("stop_timer", (void(*)(const char*, Lua_ItemInst))&lua_stop_timer),
|
luabind::def("stop_timer", (void(*)(const char*, Lua_ItemInst))&lua_stop_timer),
|
||||||
luabind::def("stop_timer", (void(*)(const char*, Lua_Mob))&lua_stop_timer),
|
luabind::def("stop_timer", (void(*)(const char*, Lua_Mob))&lua_stop_timer),
|
||||||
|
luabind::def("stop_timer", (void(*)(const char*, Lua_Encounter))&lua_stop_timer),
|
||||||
luabind::def("stop_all_timers", (void(*)(void))&lua_stop_all_timers),
|
luabind::def("stop_all_timers", (void(*)(void))&lua_stop_all_timers),
|
||||||
luabind::def("stop_all_timers", (void(*)(Lua_ItemInst))&lua_stop_all_timers),
|
luabind::def("stop_all_timers", (void(*)(Lua_ItemInst))&lua_stop_all_timers),
|
||||||
luabind::def("stop_all_timers", (void(*)(Lua_Mob))&lua_stop_all_timers),
|
luabind::def("stop_all_timers", (void(*)(Lua_Mob))&lua_stop_all_timers),
|
||||||
|
luabind::def("stop_all_timers", (void(*)(Lua_Encounter))&lua_stop_all_timers),
|
||||||
luabind::def("depop", (void(*)(void))&lua_depop),
|
luabind::def("depop", (void(*)(void))&lua_depop),
|
||||||
luabind::def("depop", (void(*)(int))&lua_depop),
|
luabind::def("depop", (void(*)(int))&lua_depop),
|
||||||
luabind::def("depop_with_timer", (void(*)(void))&lua_depop_with_timer),
|
luabind::def("depop_with_timer", (void(*)(void))&lua_depop_with_timer),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user