Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local money = {2160, 25}
- local items = {2189, 2191, 2187, 2190, 2181, 2188, 8921}
- local storage = 10003
- local addon_male = 138
- local addon female = 120
- function onUse(cid, item, fromPosition, itemEx, toPosition)
- if getPlayerStorageValue(cid, 100003) < 1 then
- if getPlayerItemCount(cid, money[1]) >= money[2] and getPlayerItemCount(cid, items[1]) >= 1 and getPlayerItemCount(cid, items[2]) >= 1 and getPlayerItemCount(cid, items[3]) >= 1 and getPlayerItemCount(cid, items[4]) >= 1 and getPlayerItemCount(cid, items[5]) >= 1 and getPlayerItemCount(cid, items[6]) >= 1 and getPlayerItemCount(cid, items[7]) >= 1 then
- doPlayerRemoveItem(cid, money[1], money[2])
- doPlayerRemoveItem(cid, items[1], 1)
- doPlayerRemoveItem(cid, items[2], 1)
- doPlayerRemoveItem(cid, items[3], 1)
- doPlayerRemoveItem(cid, items[4], 1)
- doPlayerRemoveItem(cid, items[5], 1)
- doPlayerRemoveItem(cid, items[6], 1)
- doPlayerRemoveItem(cid, items[7], 1)
- doPlayerSendTextMessage(cid, 22, "You won a full mage addon!")
- doSendAnimatedText(getPlayerPosition(cid), "", TEXTCOLOR_ORANGE)
- doPlayerAddOutfit(cid, addon_male, 3)
- doPlayerAddOutfit(cid, 120, 3)
- setPlayerStorageValue(cid, addon female, 1)
- else
- doPlayerSendTextMessage(cid, 22, "I need 1 wand of cosmic energy, 1 wand of draconia, 1 wand of dragonbreath, 1 wanf of inferno, 1 wand of vortex, 1 terra rod, 1 common akilles wand and more 250.000 cash for this addon!")
- end
- else
- doPlayerSendTextMessage(cid, 22, "You own this addon!")
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement