i dont know if its already posted but in the similar threads there is no other like this so this is done by me i dont steal anything from anyone hope this help some people, i know almost everyone already know this but i want to contribute something ok lets start for the guide.
First i will explain how to make a monster say something while being attacked...
Open you navicat,SQLyog or whatever and open you npc_monstersay table just add a new line at the bottom and make a ney entry in my screenshot of example i used 99999, then at the event type just type 0 for the NPC to say something when attacked, chance is the percentage chance for the NPC to say it language just leave it in 0 or in 1 ,type 11 is the "say in chat mode" this can be change to yell or ather.. just leave it in 11, then its the monster name so its displayed in game like whatevermonster say: blablabla, the next one is what you want it to say and mostly everything else most be leave it as is...
Here is an Screenshot http://img297.imageshack.us/img297/5810/guia1eu8.jpg
OK now i will explain how to make an npc say something in a scroll... first you need to open you npc_text table and at the bottom add another entry in my case again 9999 for example, then its the prob0 column just type 1 if you want it to say text0_0 and text0_1 or type 0 if you want it to say just text0_0 then you will se all emotes when they say something (refer to "all emotes states) here in MMwoned to know which one to use...and then you will se more prob1 etc. i dont know how those work i suppose they are the same as the first one but just leave them alone :P
Screenshot
http://img244.imageshack.us/img244/1346/guia1ep1.jpg
After done with that you will need to open npc_gossip_txt table (i dont need screenchot in this one) just add a new line first put the NPC ID and then the TEXT ID you put in the previous table thats all
Here i will explain how to make a monster say something when you get close to him
Open you navicat,SQLyog or whatever and open you npc_monstersay table just add a new line at the bottom and make a ney entry in my screenshot of example i used 99999, now for the event type you need to type 1 for the NPC to say something when getting close to him, chance is the percentage chance for the NPC to say it language just leave it in 0 or in 1 ,type 11 is the "say in chat mode" this can be change to yell or ather.. just leave it in 11, then its the monster name so its displayed in game like whatevermonster say: blablabla, the next one is what you want it to say and mostly everything else most be leave it as is...
hope this help someone and i havent checked all of this just guessing some like the walking near the monster thing but this should work :P