Advertisement
RoksasNunes

CrystalWar_Items

May 1st, 2013
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.81 KB | None | 0 0
  1. local crystal_war = 129 -- Crystal Warlord looktype
  2.  
  3. function onUse(cid, item, frompos, item2, topos)
  4.  
  5.     if item.itemid == 18521 then
  6.  
  7.     if canPlayerWearOutfit(cid, crystal_war, 1) then
  8.     doPlayerSendTextMessage(cid, 27, "You already have the first addon {Crystal Warlord}.") return true end
  9.  
  10.     doRemoveItem(item.uid)
  11.         doPlayerAddOutfit(cid, crystal_war, 1)
  12.             doPlayerSendTextMessage(cid, 22, "You won the first addon {Crystal Warlord}.")
  13.         end
  14.  
  15.     if item.itemid == 18522 then
  16.  
  17.     if canPlayerWearOutfit(cid, crystal_war, 2) then
  18.     doPlayerSendTextMessage(cid, 27, "You already have the first addon {Crystal Warlord}.") return true end
  19.  
  20.     doRemoveItem(item.uid)
  21.         doPlayerAddOutfit(cid, crystal_war, 2)
  22.             doPlayerSendTextMessage(cid, 22, "You won the second addon {Crystal Warlord}.")
  23.         end
  24.  
  25.         return true
  26.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement