function onUse(cid, item, frompos, item2, topos)
container = doPlayerAddItem(cid, 2003, 1) -- 2003 is the BACKPACK ID. CAN BE CHANGED
if item.itemid == 1945 and doPlayerRemoveMoney(cid,6500) == 1 then -- 6500 THE PRICE
for i = 1,20 do
doAddContainerItem(container, 2268, 3) -- 2268, 3 is SD with 3 charges
end
doTransformItem(item.uid,item.itemid+1)
elseif item.itemid == 1946 and doPlayerRemoveMoney(cid,6500) == 1 then -- 6500 THE PRICE
for i = 1,20 do
doAddContainerItem(container, 2268, 3) -- 2268, 3 is SD with 3 charges
end
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"A backpack of sudden death runes costs 6500 gps.")
end
return 1
end