Spo teh pro
New Member
- Joined
- Jan 3, 2008
- Messages
- 319
- Reaction score
- 1
Code:
function onStepIn(cid, item, pos)
---Action by Jovial---
--Config--
voc = 4 --0 = no vocation, 1 = sorcerer, 2 = druida, 3 = paladin, 4 = knight--
voc2 = 1
voc3 = 2
dano = 900 --quanto ira tirar de vida
cor = 180 --cor da letra do hit 5=azul, 180=red, etc
efeito = 3 --numero do efeito desejado
--End Config--
hp = getPlayerHealth(cid)
topos = getPlayerPosition(cid)
pvoc = getPlayerVocation(cid)
pvoc3 = getPlayerVocation(cid)
pvoc2 = getPlayerVocation(cid)
if voc == pvoc or voc2 == pvoc or voc3 == pvoc then
if getPlayerHealth(cid) >= dano then
doPlayerAddHealth(cid, -dano)
doSendAnimatedText(topos, dano, cor)
doSendMagicEffect(topos, efeito)
else
doPlayerAddHealth(cid, -hp)
doSendAnimatedText(topos, hp, cor)
doSendMagicEffect(topos, efeito)
end
end
return 1
end
Well this is the script i got
I think this is for non promoted vocations
could anyone please make it for only promoted vocations?