[COLOR="#0000FF"]SET[/COLOR] @ENTRY := your npc entry;
[COLOR="#0000FF"]SET[/COLOR] @QUEST := your quest;
[COLOR="#0000FF"]UPDATE[/COLOR] `creature_template` [COLOR="#0000FF"]SET[/COLOR] `AIName`="SmartAI" [COLOR="#0000FF"]WHERE[/COLOR] `entry`=@ENTRY;
[COLOR="#0000FF"]DELETE FROM[/COLOR] `smart_scripts` [COLOR="#0000FF"]WHERE[/COLOR] `entryorguid`=@ENTRY [COLOR="#0000FF"]AND[/COLOR] `source_type`=0;
[COLOR="#0000FF"]INSERT INTO[/COLOR] `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) [COLOR="#0000FF"]VALUES[/COLOR]
(@ENTRY,0,0,0,10,0,100,0,1,10,0,0,7,@QUEST,0,0,0,0,0,7,0,0,0,0,0,0,0,"NPC name - Within 1-10 Range Out of Combat LoS - Add Quest 'Quest name'");
You can add a smartIA to a npc near to Panda Starting Zone for add a quest to a near player when this enter in certain range from it. You can guide from a npc in Dalaran that say a text when a player is near it.
Sorry for my bad english.
Example:
Code:[COLOR="#0000FF"]SET[/COLOR] @ENTRY := your npc entry; [COLOR="#0000FF"]SET[/COLOR] @QUEST := your quest; [COLOR="#0000FF"]UPDATE[/COLOR] `creature_template` [COLOR="#0000FF"]SET[/COLOR] `AIName`="SmartAI" [COLOR="#0000FF"]WHERE[/COLOR] `entry`=@ENTRY; [COLOR="#0000FF"]DELETE FROM[/COLOR] `smart_scripts` [COLOR="#0000FF"]WHERE[/COLOR] `entryorguid`=@ENTRY [COLOR="#0000FF"]AND[/COLOR] `source_type`=0; [COLOR="#0000FF"]INSERT INTO[/COLOR] `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) [COLOR="#0000FF"]VALUES[/COLOR] (@ENTRY,0,0,0,10,0,100,0,1,10,0,0,7,@QUEST,0,0,0,0,0,7,0,0,0,0,0,0,0,"NPC name - Within 1-10 Range Out of Combat LoS - Add Quest 'Quest name'");
Not sure that is correct use TARGET_ACTION_INVOKER 7 or TARGET_CLOSEST_PLAYER 21, I never try this before.