bizao030188
Member
- Joined
- Jun 4, 2012
- Messages
- 50
- Solutions
- 2
- Reaction score
- 7
I am working on a script that when a player talk something close to a monster it casts a spell to damage that player. I've checked the spells.xml and in monster spells I've found for example:
I was wondering if that "words" entry means the same as it means for player (cast the spell) then I've made a script that makes the monster say that word (monster:say("###2", TALKTYPE_SAY)) to see if the spell is conjured but nothing happens. Do you guys know something I could try to, for example, make djinn cast "djinn electrify" spell?
Thanks in advance
Code:
<instant name="djinn electrify" words="###2" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/djinn_electrify.lua" />
I was wondering if that "words" entry means the same as it means for player (cast the spell) then I've made a script that makes the monster say that word (monster:say("###2", TALKTYPE_SAY)) to see if the spell is conjured but nothing happens. Do you guys know something I could try to, for example, make djinn cast "djinn electrify" spell?
Thanks in advance