• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Make monsters cast spells when player talk to it (TFS 1.2)

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:

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
 
Back
Top