mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
Custom changes.
This commit is contained in:
@@ -801,6 +801,14 @@ int lua_count_item(uint32 item_id) {
|
||||
return quest_manager.countitem(item_id);
|
||||
}
|
||||
|
||||
void lua_remove_item(uint32 item_id) {
|
||||
quest_manager.removeitem(item_id);
|
||||
}
|
||||
|
||||
void lua_remove_item(uint32 item_id, uint32 quantity) {
|
||||
quest_manager.removeitem(item_id, quantity);
|
||||
}
|
||||
|
||||
void lua_update_spawn_timer(uint32 id, uint32 new_time) {
|
||||
quest_manager.UpdateSpawnTimer(id, new_time);
|
||||
}
|
||||
@@ -2253,6 +2261,8 @@ luabind::scope lua_register_general() {
|
||||
luabind::def("modify_npc_stat", &lua_modify_npc_stat),
|
||||
luabind::def("collect_items", &lua_collect_items),
|
||||
luabind::def("count_item", &lua_count_item),
|
||||
luabind::def("remove_item", (void(*)(uint32))&lua_remove_item),
|
||||
luabind::def("remove_item", (void(*)(uint32,uint32))&lua_remove_item),
|
||||
luabind::def("update_spawn_timer", &lua_update_spawn_timer),
|
||||
luabind::def("merchant_set_item", (void(*)(uint32,uint32))&lua_merchant_set_item),
|
||||
luabind::def("merchant_set_item", (void(*)(uint32,uint32,uint32))&lua_merchant_set_item),
|
||||
|
||||
Reference in New Issue
Block a user