[Archive] Adding a certain quest to new Pandaren's?
[Archive] Adding a certain quest to new Pandaren's?
Archived author: Vistalgic • Posted: 2025-11-04T18:16:21.328757
Original source
Is it possible to have it where whenever some makes a Pandaren, they'd be able to start with a certain quest without getting it from an npc? I looked around in the dbc / online but wasn't able to find anything about the topic.
Archived author: Vistalgic • Posted: 2025-11-04T18:16:21.328757
Original source
Hm I've never actually tried to do anything like this. My best bet would be that it is currently not handled, and would have to be scripted in core, in such way that OnLogin it will add the character quest. Take example any other character login script, and edit it so it adds the quest (player->AddQuest(xxx, true) or w/e. (On a phone right now so I cannot provide more info than this currently)
Archived author: Vistalgic • Posted: 2025-11-04T18:16:21.328757
Original source
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.
Quote:Rhisk said:Thank you guys for the suggestions! I might try this when I get home later, don't have the time at the moment, but i'll let you know how it goes in an edit or something!
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.
Click to expand...
Archived author: Vistalgic • Posted: 2025-11-04T18:16:21.328757
Original source
Quote:Rhisk said:Thank you guys for the suggestions! I might try this when I get home later, don't have the time at the moment, but i'll let you know how it goes in an edit or something!
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.
Click to expand...