mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 02:31:03 +00:00
[Quest API] Add DoAugmentSlotsMatch() to Perl/Lua. (#2687)
# Perl - Add `quest::do_augment_slots_match(item_one, item_two)`. # Lua - Add `eq.do_augment_slots_match(item_one, item_two)`. # Notes - Allows operators to see if augments slots across two items match for something like moving augments from one item to another.
This commit is contained in:
@@ -3686,6 +3686,11 @@ std::string lua_item_link(uint32 item_id, int16 charges, uint32 aug1, uint32 aug
|
||||
return quest_manager.varlink(item_id, charges, aug1, aug2, aug3, aug4, aug5, aug6, attuned);
|
||||
}
|
||||
|
||||
bool lua_do_augment_slots_match(uint32 item_one, uint32 item_two)
|
||||
{
|
||||
return quest_manager.DoAugmentSlotsMatch(item_one, item_two);
|
||||
}
|
||||
|
||||
#define LuaCreateNPCParse(name, c_type, default_value) do { \
|
||||
cur = table[#name]; \
|
||||
if(luabind::type(cur) != LUA_TNIL) { \
|
||||
@@ -4201,6 +4206,7 @@ luabind::scope lua_register_general() {
|
||||
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),
|
||||
luabind::def("do_augment_slots_match", &lua_do_augment_slots_match),
|
||||
/*
|
||||
Cross Zone
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user