Swiftxd
Member
- Joined
- Apr 5, 2014
- Messages
- 85
- Reaction score
- 5
Hey, i have a question, if i uses a item in a item2, how can i made it gives more than 1 item, like, check every item and its counts. Heres an Example:
i need check how much itens have on loot and then uses doPlayerAddItem(cid, loot[1], loot[2]) get it ?
but i dont want to make 100 ifs, or make 3 doPlayerAddItem function, how can i do that ?
Code:
config = {
[item] = {loot={{1145, 5},{8181, 1},{1273, 8}}, level=5, xp=5}
}
but i dont want to make 100 ifs, or make 3 doPlayerAddItem function, how can i do that ?