{"action":"closed","issue":{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/18659","repository_url":"https://api.github.com/repos/TrinityCore/TrinityCore","labels_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/18659/labels{/name}","comments_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/18659/comments","events_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/18659/events","html_url":"https://github.com/TrinityCore/TrinityCore/issues/18659","id":198008009,"number":18659,"title":"[NPC][SAI] Wrong Movement OOC for creatures with SAI and Waypoints","user":{"login":"Rushor","id":5568820,"avatar_url":"https://avatars.githubusercontent.com/u/5568820?v=3","gravatar_id":"","url":"https://api.github.com/users/Rushor","html_url":"https://github.com/Rushor","followers_url":"https://api.github.com/users/Rushor/followers","following_url":"https://api.github.com/users/Rushor/following{/other_user}","gists_url":"https://api.github.com/users/Rushor/gists{/gist_id}","starred_url":"https://api.github.com/users/Rushor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rushor/subscriptions","organizations_url":"https://api.github.com/users/Rushor/orgs","repos_url":"https://api.github.com/users/Rushor/repos","events_url":"https://api.github.com/users/Rushor/events{/privacy}","received_events_url":"https://api.github.com/users/Rushor/received_events","type":"User","site_admin":false},"labels":[{"id":36087725,"url":"https://api.github.com/repos/TrinityCore/TrinityCore/labels/Branch-3.3.5a","name":"Branch-3.3.5a","color":"188846","default":false},{"id":26232657,"url":"https://api.github.com/repos/TrinityCore/TrinityCore/labels/Comp-Database","name":"Comp-Database","color":"FF6600","default":false},{"id":124090,"url":"https://api.github.com/repos/TrinityCore/TrinityCore/labels/Feedback-PatchFix","name":"Feedback-PatchFix","color":"d7e102","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-29T13:34:04Z","updated_at":"2016-12-30T20:54:46Z","closed_at":"2016-12-30T20:54:46Z","body":"Desc.:\r\n\r\nRef: https://github.com/TrinityCore/TrinityCore/issues/18658\r\n\r\nShitload of npcs simply don't start their movement because of outdated SAI\r\n\r\nExample:\r\n\r\n```sql\r\n-- Steamwheedle Bruiser SAI\r\nSET @ENTRY := 16096;\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,1,1,0,100,513,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\"Steamwheedle Bruiser - Out of Combat - Disable Combat Movement (No Repeat)\"),\r\n(@ENTRY,0,1,0,61,0,100,512,0,0,0,0,20,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\"Steamwheedle Bruiser - Out of Combat - Stop Attacking (No Repeat)\"),\r\n(@ENTRY,0,2,3,4,0,100,1,0,0,0,0,11,6660,0,0,0,0,0,2,0,0,0,0,0,0,0,\"Steamwheedle Bruiser - On Aggro - Cast 'Shoot' (No Repeat)\"),\r\n(@ENTRY,0,3,0,61,0,100,512,0,0,0,0,23,1,0,0,0,0,0,1,0,0,0,0,0,0,0,\"Steamwheedle Bruiser - On Aggro - Increment Phase By 1 (No Repeat)\"),\r\n(@ENTRY,0,4,5,9,1,100,0,5,30,2200,3800,11,6660,0,0,0,0,0,2,0,0,0,0,0,0,0,\"Steamwheedle Bruiser - Within 5-30 Range - Cast 'Shoot' (Phase 1)\"),\r\n(@ENTRY,0,5,0,61,1,100,0,0,0,0,0,40,2,0,0,0,0,0,1,0,0,0,0,0,0,0,\"Steamwheedle Bruiser - Within 5-30 Range - Set Sheath Ranged (Phase 1)\"),\r\n(@ENTRY,0,6,7,9,1,100,512,25,80,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,\"Steamwheedle Bruiser - Within 25-80 Range - Enable Combat Movement (Phase 1)\"),\r\n(@ENTRY,0,7,0,61,1,100,512,0,0,0,0,20,1,0,0,0,0,0,1,0,0,0,0,0,0,0,\"Steamwheedle Bruiser - Within 25-80 Range - Start Attacking (Phase 1)\"),\r\n(@ENTRY,0,8,9,9,1,100,512,0,5,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,\"Steamwheedle Bruiser - Within 0-5 Range - Enable Combat Movement (Phase 1)\"),\r\n(@ENTRY,0,9,10,61,1,100,512,0,0,0,0,40,1,0,0,0,0,0,1,0,0,0,0,0,0,0,\"Steamwheedle Bruiser - Within 0-5 Range - Set Sheath Melee (Phase 1)\"),\r\n(@ENTRY,0,10,0,61,1,100,512,0,0,0,0,20,1,0,0,0,0,0,1,0,0,0,0,0,0,0,\"Steamwheedle Bruiser - Within 0-5 Range - Start Attacking (Phase 1)\"),\r\n(@ENTRY,0,11,12,9,1,100,512,5,15,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\"Steamwheedle Bruiser - Within 5-15 Range - Disable Combat Movement (Phase 1)\"),\r\n(@ENTRY,0,12,0,61,1,100,512,0,0,0,0,20,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\"Steamwheedle Bruiser - Within 5-15 Range - Stop Attacking (Phase 1)\"),\r\n(@ENTRY,0,13,0,0,0,100,0,500,1800,11000,18000,11,12024,0,0,0,0,0,2,0,0,0,0,0,0,0,\"Steamwheedle Bruiser - In Combat - Cast 'Net' (Phase 1)\"),\r\n(@ENTRY,0,14,15,2,0,100,513,0,15,0,0,23,1,0,0,0,0,0,1,0,0,0,0,0,0,0,\"Steamwheedle Bruiser - Between 0-15% Health - Increment Phase By 1 (No Repeat)\"),\r\n(@ENTRY,0,15,16,61,0,100,512,0,0,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,\"Steamwheedle Bruiser - Between 0-15% Health - Enable Combat Movement (No Repeat)\"),\r\n(@ENTRY,0,16,0,61,0,100,512,0,0,0,0,25,1,0,0,0,0,0,0,0,0,0,0,0,0,0,\"Steamwheedle Bruiser - Between 0-15% Health - Flee For Assist (No Repeat)\"),\r\n(@ENTRY,0,17,0,7,0,100,1,0,0,0,0,40,1,0,0,0,0,0,1,0,0,0,0,0,0,0,\"Steamwheedle Bruiser - On Evade - Set Sheath Melee (No Repeat)\");\r\n```\r\n\r\n```sql\r\n(@ENTRY,0,0,1,1,0,100,513,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\"Steamwheedle Bruiser - Out of Combat - Disable Combat Movement (No Repeat)\"),\r\n```\r\n\r\nThis line prevents them from moving at all.\r\n\r\nFull list affected by this issue currently:\r\n\r\n```sql\r\n16096,\r\n16912,\r\n18313,\r\n19428,\r\n19705,\r\n20872,\r\n23022,\r\n23956,\r\n26295,\r\n26389,\r\n26448,\r\n26493,\r\n26679,\r\n27178,\r\n27202,\r\n```\r\n\r\nThey need to be converted to SAI with CMC Flag.\r\n\r\n\r\n\r\n\r\n**Branch(es):** 3.3.5 / master (Tell us which branch(es) this issue affects.)\r\n3.3.5\r\n**TC rev. hash/commit:**  \r\nhttps://github.com/TrinityCore/TrinityCore/commit/bddf15d6965d7deafed3f0da3efda6b8e41de9e0\r\n\r\n**Operating system:**  \r\nwin 10"}}
{"actor":{"display_login":"Rushor"}}