Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local card_id = {12599, 12731, 12743, 12870, 12871, 12876, 12878, 12880, 12881, 12882, 12883, 12884, 12885, 12886, 12887, 12888, 12892, 12893, 12895, 12897, 12898, 12899, 12900, 12901, 12902, 12905, 12906, 12911, 12913, 12915, 12916, 12921, 12922, 12926, 12930, 12931, 12932, 12939, 12940, 12942, 12979}
- local lv = 20
- function onUse(cid, item, frompos, item2, topos)
- if getPlayerLevel(cid) >= lv then
- local rand = card_id[math.random(1, #card_id)]
- doPlayerAddItem(cid, rand)
- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You opened the Addon Box Type: strong. And came ["..getItemNameById(rand).."]")
- doRemoveItem(item.uid, 1)
- else
- doPlayerSendCancel(cid,"You must be at least level "..lv)
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment