haji h ali
Member
- Joined
- Sep 10, 2013
- Messages
- 59
- Reaction score
- 6
Hello, can someone please put this into script.
- I need help with this to put it in a script items ID are ( 7380 , 8930 , 8927 , 7735 , 2410 )
-- Anni-Style Chest
-- Actual annihilator loot. You get one of the following,
-- Magic Sword, Demon Armor, Stonecutter Axe, or a present box containing an annihilation bear
[14] = { aid = 45823, multi_chest = 45823, item_id = 2400 },
[15] = { aid = 45823, multi_chest = 45824, item_id = 2494 },
[16] = { aid = 45823, multi_chest = 45825, item_id = 2431 },
[17] = { aid = 45823, multi_chest = 45826, item_id = 1988, use_container = 1, container = 1990, inside = {
[1] = { item_id = 2326 }
}
},
- I need help with this to put it in a script items ID are ( 7380 , 8930 , 8927 , 7735 , 2410 )
-- Anni-Style Chest
-- Actual annihilator loot. You get one of the following,
-- Magic Sword, Demon Armor, Stonecutter Axe, or a present box containing an annihilation bear
[14] = { aid = 45823, multi_chest = 45823, item_id = 2400 },
[15] = { aid = 45823, multi_chest = 45824, item_id = 2494 },
[16] = { aid = 45823, multi_chest = 45825, item_id = 2431 },
[17] = { aid = 45823, multi_chest = 45826, item_id = 1988, use_container = 1, container = 1990, inside = {
[1] = { item_id = 2326 }
}
},
-----------------------------------------------------------------------------------------------------
- I use this one and it works without any problems.
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, 45823) == 1 then
doPlayerSendCancel(cid, "Quest completed previously.")
return true
end
doPlayerAddItem(cid, 5944, 100, true)
setPlayerStorageValue(cid, 45017, 1)
return true
end