(before we start, the | breaks mean the grid line on navicat)
Ok well. Obviously with the state of this guide, i made it myself because it looks bad!!!!!111111one
First create your mob (Table: Creature_Name)(Table: Creature_Proto)
Then next, we'll add a few spells to it ok?
Lets say 1039 is our new Creature's ID, open up (Table: ai_agents)
goto the last page in SQLyog / Navicat(pref) do not use any random number, we need to use the ID of our creature that we want casting the spell
so far we have 1039|0|0|0|0|0|0|0|0|0|0
the next 2 numbers are set to 4 and 2, i don't know what it does but it's found all over and it's worked for me
now we have 1039|4|2|0|0|0|0|0|0|0|0
the next 0 will be changed to the % that the mob will choose to cast that particular spell, i.e 25 will be a 25% chance to cast that spell (1/4)
for this we will just set it to 50 (50% | 1/2)
so far: 1039|4|2|50|0|0|0|0|0|0|0
well many people might not know how to get spell ID's, so ill tell you quick and clear right now.
1. Thottbot: World of Warcraft
2. search up your spell's name
3. go down to the spell section
4. click on your spell that you wanted from the spell section
5. up on the Navigation toolbar on your internet browser, it should be something like... "http://thottbot.com/s41374" (hehe mindblast)
and your set to put in your spell id
1039|4|2|50|41374|0|0|0|0|0|0
the next 2 numbers are what type of spells they are, i haven't gotten the jist of this yet, but imo i think it means "AoE, Friendly AoE, Direct, Direct Friendly, AoE Ranged, AoE Ranged friendly etc"
for direct and enemy it is 8|1 (default i think)
1039|4|2|50|41374|8|1|0|0|0|0
spell cooldown is in milliseconds im pretty sure of, well im going to set it to 20,000
1039|4|2|50|41374|8|1|20000|0|0
the last 2 numbers mean nothing i have come across, so leave them at 0
if you have followed this "bad guide to success" then you might know how to make your creature cast spells now
1039|4|2|50|41374|8|1|20000|0|0 = Your creature 1039 will cast spell 41374(50% chance) on its current target every 20,000 milliseconds
Hey! go ahead if you know how to make scripts cast their spells, but a bad loss for you =). .npc possess and you wont be able to use their skills manually haha, anyways goodluck and safe travels:wave: