Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onStepIn(cid, item, pos)
- voc = 1 --0 = no vocation, 1 = sorcerer, 2 = druida, 3 = paladin, 4 = knight--
- voc2 = 3
- voc3 = 4
- voc4 = 5
- voc5 = 7
- voc6 = 8
- dano = 5900
- cor = 180
- efeito = 3
- hp = getCreatureHealth(cid)
- topos = getPlayerPosition(cid)
- pvoc = getPlayerVocation(cid)
- pvoc3 = getPlayerVocation(cid)
- pvoc2 = getPlayerVocation(cid)
- if voc == pvoc or voc2 == pvoc or voc3 == pvoc or voc4 == pvoc or voc5 == pvoc or voc6 == pvoc then
- if getCreatureHealth(cid) >= dano then
- doCreatureAddHealth(cid, -dano)
- doSendAnimatedText(topos, dano, cor)
- doSendMagicEffect(topos, efeito)
- else
- doCreatureAddHealth(cid, -hp)
- doSendAnimatedText(topos, hp, cor)
- doSendMagicEffect(topos, efeito)
- end
- end
- return 1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement