mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 07:38:36 +00:00
[Quest API] Add attuned/augment support to client->SummonBaggedItems() in Perl/Lua. (#1580)
Perl Example:
```pl
my @bag_items = (
{ item_id => 33649, charges => 1, attuned => 1, augment_one => 32940 }
);
```
Lua Example:
```lua
local bag_items = {
{ item_id = 33649, charges = 1, attuned = 1, augment_one = 32940 }
}
This commit is contained in:
+11
-1
@@ -10660,7 +10660,17 @@ void Client::SummonBaggedItems(uint32 bag_item_id, const std::vector<ServerLootI
|
||||
}
|
||||
else
|
||||
{
|
||||
EQ::ItemInstance* summoned_bag_item = database.CreateItem(item.item_id, item.charges);
|
||||
EQ::ItemInstance* summoned_bag_item = database.CreateItem(
|
||||
item.item_id,
|
||||
item.charges,
|
||||
item.aug_1,
|
||||
item.aug_2,
|
||||
item.aug_3,
|
||||
item.aug_4,
|
||||
item.aug_5,
|
||||
item.aug_6,
|
||||
item.attuned
|
||||
);
|
||||
if (summoned_bag_item)
|
||||
{
|
||||
summoned_bag->PutItem(open_slot, *summoned_bag_item);
|
||||
|
||||
Reference in New Issue
Block a user