everything is just answered a plenty of times before

use the search function if i got this right ..
1- cq_user - PK
(change for whatever u want)
2- cq_NPC , cq_action , npc.ini
(create a new ID in cq_NPC with the name and type of the NPC and do the same at npc.ini input the ID and type as the db and take 1 as a template then connect cq_npc to the cq_action , ofc u need to know the data types for the action )
3- use the lottery as a sample
4- ofc u can change the mysql username and password nothing's in that ..
i quit eo long time ago , i apologize for any unaccurate point
BestRegards ^^