[SAI] NPC Pontius

Pontius is a questgiver in Vengeance Landing, he is the one at the dog (Fiend) that attacks the dummy.

Pontius has some random text so i will add it.


-- c23938 Pontius
-- missing random text
-- ===============================================
SET @ENTRY := 23938;
-- ===============================================
-- set SAI to npc
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
-- create script to do random text says
DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type`=9 AND `entryorguid`=@ENTRY*100;
INSERT INTO `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`) VALUES 
(@ENTRY,0,0,0,1,0,100,0,1000,1000,60000,120000,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'every 1-2 minutes run script'),
(@ENTRY*100,9,0,0,0,0,100,0,1000,1000,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0, 'random text');
-- add text to DB (source from offy screenshots)
DELETE FROM `creature_text` WHERE `entry`=@ENTRY;
INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES 
(@ENTRY,0,0, 'Easy, boy! Don''t ruin the dummy now!',0,0,100,1,0,0, 'Pontius random text 1'),
(@ENTRY,0,1, 'Get him, Fiend!',0,0,100,1,0,0, 'Pontius random text 2'),
(@ENTRY,0,2, 'That''s it! Bite the sword arm!',0,0,100,1,0,0, 'Pontius random text 3');
[/sql]

No need to call a script /emoticons/default_smile.png

-- c23938 Pontius -- missing random text -- =============================================== SET @ENTRY := 23938; -- =============================================== -- set SAI to npc UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY; -- create script to do random text says DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY; INSERT INTO `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`) VALUES (@ENTRY,0,0,0,1,0,100,0,1000,1000,60000,120000,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Pontius - OOC 1 - 2 min - Say random text'); -- add text to DB (source from offy screenshots) DELETE FROM `creature_text` WHERE `entry`=@ENTRY; INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES (@ENTRY,0,0, 'Easy, boy! Don''t ruin the dummy now!',0,0,100,1,0,0, 'Pontius random text 1'), (@ENTRY,0,1, 'Get him, Fiend!',0,0,100,1,0,0, 'Pontius random text 2'), (@ENTRY,0,2, 'That''s it! Bite the sword arm!',0,0,100,1,0,0, 'Pontius random text 3');[/sql]

6 one way half a doz another. but i will let it go.

Check to see if the language is correct for that npc.

http://www.trinitycore.org/w/Languages.dbc_tc2

May need to be 33 Gutterspeak.

i could be wrong on this… but my orc dk can not understand gutterspeak, lot of it in undercity and silverpine forest (the escort quest was one i couldnt take because of this), but he did the quests in vengeance landing and there was no issue. (this was before cata)

This is ready for push. Works as it should.