• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

box-set

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
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
Thank you for your help and give you rep (SORY I BAD SAY ENGLISH ) >TRANSLATOR<
 
Back
Top