kakashihatak
New Member
- Joined
- Nov 18, 2010
- Messages
- 12
- Reaction score
- 0
I'm having a little problem ...
I'm trying to stage the event mosnter condition_drunk had with him can not atack
and the condition disappears after he returns to attack
fis more so I did not have much success
if anyone can help me
thx
I'm trying to stage the event mosnter condition_drunk had with him can not atack
and the condition disappears after he returns to attack
fis more so I did not have much success
Code:
function onAttack(cid, target)
local pos = getCreaturePosition(cid)
if getCreatureCondition(cid, CONDITION_DRUNK) == TRUE then
doSendAnimatedText(pos, 'Fail', 215)
end
return TRUE
end
if anyone can help me
thx