{"action":"created","issue":{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/15665","repository_url":"https://api.github.com/repos/TrinityCore/TrinityCore","labels_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/15665/labels{/name}","comments_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/15665/comments","events_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/15665/events","html_url":"https://github.com/TrinityCore/TrinityCore/issues/15665","id":109779216,"number":15665,"title":"[3.3.5] Sunwell - Sunblade Scout behavior.","user":{"login":"ghost","id":10137,"avatar_url":"https://avatars.githubusercontent.com/u/10137?v=3","gravatar_id":"","url":"https://api.github.com/users/ghost","html_url":"https://github.com/ghost","followers_url":"https://api.github.com/users/ghost/followers","following_url":"https://api.github.com/users/ghost/following{/other_user}","gists_url":"https://api.github.com/users/ghost/gists{/gist_id}","starred_url":"https://api.github.com/users/ghost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghost/subscriptions","organizations_url":"https://api.github.com/users/ghost/orgs","repos_url":"https://api.github.com/users/ghost/repos","events_url":"https://api.github.com/users/ghost/events{/privacy}","received_events_url":"https://api.github.com/users/ghost/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/labels/Branch-3.3.5a","name":"Branch-3.3.5a","color":"188846"},{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/labels/Branch-6.x","name":"Branch-6.x","color":"188846"},{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/labels/Comp-Database","name":"Comp-Database","color":"FF6600"},{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/labels/Feedback-PatchFix","name":"Feedback-PatchFix","color":"d7e102"},{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/labels/Sub-Instances","name":"Sub-Instances","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-10-05T11:43:25Z","updated_at":"2016-03-07T18:59:20Z","closed_at":null,"body":"https://github.com/TrinityCore/TrinityCore/commit/ff755dbc07d77703616b83feaec713ce63a93402\r\nhttp://wowwiki.wikia.com/wiki/Sunblade_Scout\r\nhttp://www.wowhead.com/npc=25372/sunblade-scout\r\nNeed change behavior. On Aggro if found alive Sunblade Protector - should movement to Protector and activate this.\r\nYou can try this is script. Not testing.\r\n``` SQL\r\n-- Sunblade Scout.\r\nSET @ENTRY := 25372;\r\nUPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;\r\nDELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;\r\nINSERT 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\r\n(@ENTRY,0,0,6,61,0,100,8,0,0,0,0,49,46475,1,0,0,0,0,5,25507,25,0,0,0,0,0,\"Sunblade Scout - Linked With Previous Event - Attack Start on Hostile Random Target.\"),\r\n(@ENTRY,0,1,0,4,0,100,8,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\"Sunblade Scout - On Aggro - Set React State Passive.\"),\r\n(@ENTRY,0,2,1,61,0,100,8,0,0,0,0,69,1,0,0,0,0,0,19,25507,1000,0,0,0,0,0,\"Sunblade Scout - Linked With Previous Event - Move To Closest Sunblade Protector.\"),\r\n(@ENTRY,0,3,0,25,0,100,8,0,0,0,0,75,45769,0,0,0,0,0,1,0,0,0,0,0,0,0,\"Sunblade Scout - On Reset - Add Aura Sunwell Radiance.\"),\r\n(@ENTRY,0,4,0,0,0,100,8,6000,9000,6000,9000,11,46558,0,0,0,0,0,2,0,0,0,0,0,0,0,\"Sunblade Scout - In Combat - Cast Sinister Strike on Victim.\"),\r\n(@ENTRY,0,5,7,61,0,100,8,0,0,0,0,8,2,0,0,0,0,0,0,0,0,0,0,0,0,0,\"Sunblade Scout - Linked With Previous Event - Set React State Aggressive.\"),\r\n(@ENTRY,0,6,5,61,0,100,8,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\"Sunblade Scout - Linked With Previous Event - Allow Combat Movement.\"),\r\n(@ENTRY,0,7,0,34,0,100,8,0,1,0,0,11,46475,1,0,0,0,0,11,25507,25,0,0,0,0,0,\"Sunblade Scout - On Movement Inform - Point 1 - Cast Activate Sunblade Protector.\"),\r\n(@ENTRY,0,8,0,25,0,100,8,0,0,0,0,21,1,0,0,0,0,0,0,0,0,0,0,0,0,0,\"Sunblade Scout - On Reset - Disallow Combat Movement.\");\r\n\r\nDELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceGroup`=1 AND `SourceEntry`=25372;\r\nINSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES\r\n(22,1,25372,0,0,29,1,25507,1000,0,0,\"\",\"Sunblade Scout - allow run script only if found alive Sunblade Protector in radius = 1000.\");\r\n```"},"comment":{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/comments/193396126","html_url":"https://github.com/TrinityCore/TrinityCore/issues/15665#issuecomment-193396126","issue_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/15665","id":193396126,"user":{"login":"dr-j","id":1444120,"avatar_url":"https://avatars.githubusercontent.com/u/1444120?v=3","gravatar_id":"","url":"https://api.github.com/users/dr-j","html_url":"https://github.com/dr-j","followers_url":"https://api.github.com/users/dr-j/followers","following_url":"https://api.github.com/users/dr-j/following{/other_user}","gists_url":"https://api.github.com/users/dr-j/gists{/gist_id}","starred_url":"https://api.github.com/users/dr-j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dr-j/subscriptions","organizations_url":"https://api.github.com/users/dr-j/orgs","repos_url":"https://api.github.com/users/dr-j/repos","events_url":"https://api.github.com/users/dr-j/events{/privacy}","received_events_url":"https://api.github.com/users/dr-j/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T18:59:20Z","updated_at":"2016-03-07T18:59:20Z","body":"No since as already said what is meant to be linked to line 0 since event is 61, and dont think linking is done properly either or seems backwards ie\r\n\r\n(@ENTRY,0,1,0,4,0,100,8,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\"Sunblade Scout - On Aggro - Set React State Passive.\"),\r\n(@ENTRY,0,2,1,61,0,100,8,0,0,0,0,69,1,0,0,0,0,0,19,25507,1000,0,0,0,0,0,\"Sunblade Scout - Linked With Previous Event - Move To Closest Sunblade Protector.\"),\r\n \r\nshould be \r\n\r\n(@ENTRY,0,1,2,4,0,100,8,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\"Sunblade Scout - On Aggro - Set React State Passive.\"),\r\n(@ENTRY,0,2,0,61,0,100,8,0,0,0,0,69,1,0,0,0,0,0,19,25507,1000,0,0,0,0,0,\"Sunblade Scout - Linked With Previous Event - Move To Closest Sunblade Protector.\"),\r\n\r\n\r\n\r\n"}}