The connection between npc and lua.If you see here :
RegisterUnitGossipEvent(8, 1, "matrix_on_gossip_talk")
RegisterUnitGossipEvent(8, 2, "matrix_on_gossip_select")
This source cod make the LUA connect with the npc into your db.After you will make the lua you need to get your Npc into your database.Like this.
The number 8 make the connection.Have Fun.Code:INSERT INTO `creature_names` VALUES ('8', 'Nemesis Taxi', 'WoW', '', '0', '0', '0', '3', '0', '0', '20177', '0', '0', '0', '1', '1', '0', null); INSERT INTO `creature_proto` VALUES ('8', '255', '255', '35', '100000', '100000', '100000', '1', '3', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '360000', '2002', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '100', '0', '0', '2.5', '8', '14', '0', '0', '0', '0', '0', '0', '0');