Advertisement
Skymagnum

Untitled

May 19th, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.27 KB | None | 0 0
  1. function doRainbown(cid, delay)
  2.     if not isCreature(cid) then
  3.         return true
  4.     end
  5.  
  6. local delay = delay or 500
  7.  
  8. local countOne = 0
  9. local countTwo = 19
  10. local out = getCreatureOutfit(cid)
  11. local normal = {lookType = out.lookType, lookHead = out.lookHead, lookBody = out.lookBody, lookLegs = out.lookLegs, lookFeet = out.lookFeet, lookAddons = out.lookAddons}
  12.  
  13.     for outfit = 1, 114 do
  14.         if out.lookHead == countOne then
  15.             normal.lookHead = countTwo
  16.         elseif out.lookHead == countTwo then
  17.             normal.lookHead = countOne
  18.         end
  19.         if out.lookBody == countOne then
  20.             normal.lookBody = countTwo
  21.         elseif out.lookBody == countTwo then
  22.             normal.lookBody = countOne
  23.         end
  24.         if out.lookLegs == countOne then
  25.             normal.lookLegs = countTwo
  26.         elseif out.lookLegs == countTwo then
  27.             normal.lookLegs = countOne
  28.         end
  29.         if out.lookFeet == countOne then
  30.             normal.lookFeet = countTwo
  31.         elseif out.lookFeet == countTwo then
  32.             normal.lookFeet = countOne
  33.         end
  34.     countOne = countOne + 1
  35.     countTwo = countTwo + 1
  36.     end
  37.  
  38.     doSetCreatureOutfit(cid, normal, 500)
  39.  
  40.     return addEvent(doRainbown, delay, cid)
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement