Hi,
im currently trying to create my own chest that can drop adders (1-5) and attribute changers.
The drop is created into inventory, when the specific chest is opened (via quest).
I Implemented support for stacking those adders and changers (c++ / python) . Now I can manually drag and drop them over each other and they will add.
But they do not stack when added directly to inventory.
My special_item_group.txt does not contain any of these vnums (its actually empty)
Antiflags are 0 (serverside and clientside)
Flags are 4 (serverside and clientside)
Is there a way to stack them automatically, when given from a chest via pc.give_item2(vnum) ?
chest.quest
quest chest begin
state start begin
when 50184.use begin
if pc.get_empty_inventory_count() >= 1 then
local rnd = number(1,10)
if rnd >= 0 and rnd < 2 then
pc.give_item2(39029, 2)
pc.remove_item(50184,1)
elseif rnd >= 2 and rnd <= 3 then
pc.give_item2(39004,1)
pc.remove_item(50184,1)
else
pc.give_item2(39028,5)
pc.remove_item(50184,1)
end
else
chat("Not enough inventory space.")
end
end
end
end
Kind regards
LISA