mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-11 10:13:52 +00:00
eq.follow() and eq.stop_follow()
This commit is contained in:
parent
1868d0e7a3
commit
b7fcd5b02a
@ -1,5 +1,8 @@
|
||||
EQEMu Changelog (Started on Sept 24, 2003 15:50)
|
||||
-------------------------------------------------------
|
||||
== 07/02/2013 ==
|
||||
KLS: Exported eq.follow(entity_id, [distance]) and eq.stop_follow() to lua.
|
||||
|
||||
== 07/01/2013 ==
|
||||
demonstar55: Fix Monster Summoning related to giants/cyclops
|
||||
demonstar55: Prevent Monster Summoning from summoning a portal in bothunder
|
||||
|
||||
@ -981,6 +981,18 @@ void lua_attack_npc_type(int npc_type) {
|
||||
quest_manager.attacknpctype(npc_type);
|
||||
}
|
||||
|
||||
void lua_follow(int entity_id) {
|
||||
quest_manager.follow(entity_id, 10);
|
||||
}
|
||||
|
||||
void lua_follow(int entity_id, int distance) {
|
||||
quest_manager.follow(entity_id, distance);
|
||||
}
|
||||
|
||||
void lua_stop_follow() {
|
||||
quest_manager.sfollow();
|
||||
}
|
||||
|
||||
luabind::scope lua_register_general() {
|
||||
return luabind::namespace_("eq")
|
||||
[
|
||||
@ -1132,7 +1144,10 @@ luabind::scope lua_register_general() {
|
||||
luabind::def("remove_spawn_point", &lua_remove_spawn_point),
|
||||
luabind::def("attack", &lua_attack),
|
||||
luabind::def("attack_npc", &lua_attack_npc),
|
||||
luabind::def("attack_npc_type", &lua_attack_npc_type)
|
||||
luabind::def("attack_npc_type", &lua_attack_npc_type),
|
||||
luabind::def("follow", (void(*)(int))&lua_follow),
|
||||
luabind::def("follow", (void(*)(int,int))&lua_follow),
|
||||
luabind::def("stop_follow", &lua_stop_follow)
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user