helmut7414
Member
- Joined
- Mar 3, 2012
- Messages
- 27
- Solutions
- 1
- Reaction score
- 8
Hello Otlanders,
I need a little bit help with a spell I am working on but I can´t get it to work. it should be a monster spell
To explain it I need a spell which only do damage when the vocation matches I have tryed a lot but can´t get it to work. Seems like I can not get any target info when the spell is triggered.
I would appreciate it if someone could help me.
Best regards
helmut
I need a little bit help with a spell I am working on but I can´t get it to work. it should be a monster spell
To explain it I need a spell which only do damage when the vocation matches I have tryed a lot but can´t get it to work. Seems like I can not get any target info when the spell is triggered.
LUA:
function onCastSpell(cid, var)
if target:getVocation() == 2 then
return doCombat(cid, combat, var)
end
return false
end
I would appreciate it if someone could help me.
Best regards
helmut
Last edited: