for test i use delete "Mace" ....server elysuim , kronos
number = 5;
i=1;
for bag = 0,4,1 do
for slot = 1, GetContainerNumSlots(bag), 1 do
local name = GetContainerItemLink(bag,slot);
if name and string.find(name,"Mace") then
if i > number then PickupContainerItem(bag,slot);
DeleteCursorItem();
end;
i=i+1;
end;
end;
and dont do nothing/ have lua error window - 'end' expected(to close 'for' at line 8)near '<eof>'
or maybe exist cs# plugin for this? if lua is hard....