szajker123
New Member
- Joined
- May 12, 2012
- Messages
- 195
- Reaction score
- 0
Hey, I have a question if anyone knew how to rewrite the script for me so that when we have a Box and open it and it gives us a full set? eg (id. xxxx, xxxx, xxxx, xxxx) - all together and not just bp 1 item as it is in the script and this is what the script
Thank you for your help and give you rep (SORY I BAD SAY ENGLISH ) >TRANSLATOR<local reward_table = {
{effect = 43, id = 11815, count = 1},
{effect = 43, id = 11824, count = 1},
{effect = 43, id = 11966, count = 1},
{effect = 43, id = 11975, count = 1},
{effect = 43, id = 11455, count = 1},
{effect = 43, id = 11993, count = 1},
{effect = 43, id = 11506, count = 1},
{effect = 43, id = 11476, count = 1}
}
function onUse(cid, item, frompos, item2, topos)
local reward = reward_table[math.random(#reward_table)]
doSendMagicEffect(getPlayerPosition(cid), reward.effect)
doPlayerAddItem(cid,reward.id, reward.count)
doRemoveItem(item.uid,1)
return true
end