Skymagnum

Outfit Statue

May 12th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. function onUse(cid, item, fromPosition, itemEx, toPosition)
  2.  
  3. local outfit = 2
  4. local maxOutfit = 367
  5.  
  6.     local blockeds = {302, 75}
  7.  
  8.     if not (isInArray(blockeds, outfit)) then
  9.        if (outfit < maxOutfit) then
  10.            doSetCreatureOutfit(cid, outfit, -1)
  11.            outfit = outfit + 1
  12.        else
  13.            outfit = 2
  14.        end
  15.     else
  16.         outfit = outfit + 1
  17.     end
  18.  
  19.     return true
  20. end
Advertisement
Add Comment
Please, Sign In to add comment