Hiho Comminty,

In this tutorial i wanna show you how to make npc's casting spells without any c++ scripts.

Conditions: You know how to Navicat / You have a working Trinity Database

So let's go:

1.) Open the database connection in navicat and open the "world" database and open the table "creature_ai_scripts".

2.) create a new clean line where you can fill in your datas.

Now its time to work:

3.) In the column "ID" you enter a ID that doesn't exist in the table (example: 999999 )

4.) In "Creature_ID" you type in the Entry of the NPC that you wanna let cast.

5.) In "event_type"type you the number of the type when the spell should be casted:

1= Only in the battle
2= if the NPC is not in a battle
3= If the HP of the NPC has reached a special % value.
4= If the Mana of the NPC has reached a special % value.

6.) "event_inverse_phase_mask" this column isnt importand so type in "0"

7.) In column "event_chance" you have to enter "100" that the npc will cast every time.

8.) In column "event_flags" you type in "3"

9.) In "event_param1" you type in the min. timezone when the npc have to cast (example. 3000 = 3 seconds / 80 = 80% mana, or hp)

10.) In "event_param2" you type in in the max. timezone when the npc have to cast the spell (so event_param1 = 3000 and event_param2 = 4000 : the npc will cast the spell the spell between this 2 timezones)

11.) In "event_param3" you type in how much the spell have to be min. casted. (if you have chosen event_type 4 leave it blank)

12.) In "event_param4" you type in how much the spell have to be max. casted. (if you have chosen event_type 4 leave it blank) ( same example like event_param1 - 2 this time the difference how much times the npc cast it)

13.) In "action1_type " you type in "11"

14.) In "action1_param2" You type in the Spell ID for the cast

15.) In "action1_param3" you type in who is the target of the spell
0= on the casting npc (ideal for buff's)
1= on the enemy (with the most aggro)



Greets: Dreadii

before you post any issues here first look on your combination of values.