I had an annihilator script, where I was going to add just one chest/item. So it stopped working.
Here is the script where I added an item.
I added item 5. Now it stopped working.
Here is the script where I added an item.
Code:
--[[
Annihaltor Chest's
by Maxi (Shawak)
]]--
config = {
storage = 5010,
items = { -- id,count
item_1 = {2421,1}, -- Thunder Hammer
item_2 = {2415,1}, -- Great Axe
item_3 = {2390,1}, -- Magic Longsword
item_4 = {7735,1} -- Star Shooter
item_5 = {7768,1} -- Assassin Star
}
}
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid,config.storage) == -1 then
if item.uid == 5001 then
newItem = config.items.item_1[1]
count = config.items.item_1[2]
elseif item.uid == 5002 then
newItem = config.items.item_2[1]
count = config.items.item_2[2]
elseif item.uid == 5003 then
newItem = config.items.item_3[1]
count = config.items.item_3[2]
elseif item.uid == 5004 then
newItem = config.items.item_4[1]
count = config.items.item_4[2]
elseif item.uid == 5005 then
newItem = config.items.item_5[1]
count = config.items.item_5[2]
end
I added item 5. Now it stopped working.