mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-09 22:20:24 +00:00
[Quest API] Add DoAnim Overloads to Perl/Lua. (#2627)
# Perl - Add `$mob->DoAnim(animation_id, animation_speed, ackreq)`. - Add `$mob->DoAnim(animation_id, animation_speed, ackreq, filter)`. - Add `quest::doanim(animation_id, animation_speed)`. - Add `quest::doanim(animation_id, animation_speed, ackreq)`. - Add `quest::doanim(animation_id, animation_speed, ackreq, filter)`. # Lua - Add `eq.do_anim(animation_id)`. - Add `eq.do_anim(animation_id, animation_speed)`. - Add `eq.do_anim(animation_id, animation_speed, ackreq)`. - Add `eq.do_anim(animation_id, animation_speed, ackreq, filter)`. # Notes - Adds overloads and cleans up spots where `animation_speed` was named `type` erroneously.
This commit is contained in:
+24
-1
@@ -3628,6 +3628,26 @@ void lua_set_proximity_range(float x_range, float y_range, float z_range, bool e
|
||||
quest_manager.set_proximity_range(x_range, y_range, z_range, enable_say);
|
||||
}
|
||||
|
||||
void lua_do_anim(int animation_id)
|
||||
{
|
||||
quest_manager.doanim(animation_id);
|
||||
}
|
||||
|
||||
void lua_do_anim(int animation_id, int animation_speed)
|
||||
{
|
||||
quest_manager.doanim(animation_id, animation_speed);
|
||||
}
|
||||
|
||||
void lua_do_anim(int animation_id, int animation_speed, bool ackreq)
|
||||
{
|
||||
quest_manager.doanim(animation_id, animation_speed, ackreq);
|
||||
}
|
||||
|
||||
void lua_do_anim(int animation_id, int animation_speed, bool ackreq, int filter)
|
||||
{
|
||||
quest_manager.doanim(animation_id, animation_speed, ackreq, static_cast<eqFilterType>(filter));
|
||||
}
|
||||
|
||||
#define LuaCreateNPCParse(name, c_type, default_value) do { \
|
||||
cur = table[#name]; \
|
||||
if(luabind::type(cur) != LUA_TNIL) { \
|
||||
@@ -4129,7 +4149,10 @@ luabind::scope lua_register_general() {
|
||||
luabind::def("zone_marquee", (void(*)(uint32,uint32,uint32,uint32,uint32,std::string))&lua_zone_marquee),
|
||||
luabind::def("is_hotzone", (bool(*)(void))&lua_is_hotzone),
|
||||
luabind::def("set_hotzone", (void(*)(bool))&lua_set_hotzone),
|
||||
|
||||
luabind::def("do_anim", (void(*)(int))&lua_do_anim),
|
||||
luabind::def("do_anim", (void(*)(int,int))&lua_do_anim),
|
||||
luabind::def("do_anim", (void(*)(int,int,bool))&lua_do_anim),
|
||||
luabind::def("do_anim", (void(*)(int,int,bool,int))&lua_do_anim),
|
||||
/*
|
||||
Cross Zone
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user