Advertisement
RoksasNunes

SoilGuardian_Items

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