Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function doRainbown(cid, delay)
- if not isCreature(cid) then
- return true
- end
- local delay = delay or 500
- local countOne = 0
- local countTwo = 19
- local out = getCreatureOutfit(cid)
- local normal = {lookType = out.lookType, lookHead = out.lookHead, lookBody = out.lookBody, lookLegs = out.lookLegs, lookFeet = out.lookFeet, lookAddons = out.lookAddons}
- for outfit = 1, 114 do
- if out.lookHead == countOne then
- normal.lookHead = countTwo
- elseif out.lookHead == countTwo then
- normal.lookHead = countOne
- end
- if out.lookBody == countOne then
- normal.lookBody = countTwo
- elseif out.lookBody == countTwo then
- normal.lookBody = countOne
- end
- if out.lookLegs == countOne then
- normal.lookLegs = countTwo
- elseif out.lookLegs == countTwo then
- normal.lookLegs = countOne
- end
- if out.lookFeet == countOne then
- normal.lookFeet = countTwo
- elseif out.lookFeet == countTwo then
- normal.lookFeet = countOne
- end
- countOne = countOne + 1
- countTwo = countTwo + 1
- end
- doSetCreatureOutfit(cid, normal, 500)
- return addEvent(doRainbown, delay, cid)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement