Advertisement
dalvorsn

Untitled

Apr 3rd, 2012
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. function onSay(cid, words, param, channel)
  2.     local p_pos = getCreatureLookPosition(cid)
  3.     local delay = 400 -- valor de intervalor em miliseconds para execuรงรฃo de effect de sangue
  4.     local stor_exhaust = 12456
  5.     local time = 2 -- 2 segundos de exhaustion
  6.    
  7.     --if(isPlayer(getTopCreature(p_pos)))then
  8.         --if(exhaustion.get(cid, stor_exhaust))then
  9.             exhaustion.set(cid, stor_exhaust, timer)
  10.             doSendAnimatedText(p_pos, "CREW!", math.random(255))
  11.             for i=0,4 do addEvent(function() doSendMagicEffect(p_pos, effect) end, i*delay) end
  12.         --else
  13.             return RETURNVALUE_YOUAREEXHAUSTED
  14.         --end
  15.     --end
  16.     return true
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement