Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local crystal_war = 129 -- Crystal Warlord looktype
- function onUse(cid, item, frompos, item2, topos)
- if item.itemid == 18521 then
- if canPlayerWearOutfit(cid, crystal_war, 1) then
- doPlayerSendTextMessage(cid, 27, "You already have the first addon {Crystal Warlord}.") return true end
- doRemoveItem(item.uid)
- doPlayerAddOutfit(cid, crystal_war, 1)
- doPlayerSendTextMessage(cid, 22, "You won the first addon {Crystal Warlord}.")
- end
- if item.itemid == 18522 then
- if canPlayerWearOutfit(cid, crystal_war, 2) then
- doPlayerSendTextMessage(cid, 27, "You already have the first addon {Crystal Warlord}.") return true end
- doRemoveItem(item.uid)
- doPlayerAddOutfit(cid, crystal_war, 2)
- doPlayerSendTextMessage(cid, 22, "You won the second addon {Crystal Warlord}.")
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement