{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/ed5c82def09fde70f11dae4d7b30867a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"ed5c82def09fde70f11dae4d7b30867a","url":"https://api.github.com/users/Valcorb","login":"Valcorb","id":879667},"milestone":null,"assignee":null,"updated_at":"2011-11-11T20:42:28Z","labels":[],"closed_at":null,"comments":2,"url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/3925","body":"He should say something after getting lower then 20% hp.\r\n\r\n\r\n```sql\r\n\r\n-- [NPC] Fix behaviour of Scarlet Peasant \r\nUPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=28557;\r\nDELETE FROM `smart_scripts` WHERE `entryorguid`=28557 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`)\r\nVALUES\r\n(28557, 0, 0, 0, 2, 0, 20, 1, 0, 20, 1, 1, 1, 0, 10, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'At 0-20% hp- say text'),\r\n(28557, 0, 1, 0, 2, 0, 20, 1, 0, 20, 1, 1, 1, 1, 10, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'At 0-20% hp- say text'),\r\n(28557, 0, 2, 0, 2, 0, 20, 1, 0, 20, 1, 1, 1, 2, 10, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'At 0-20% hp- say text'),\r\n(28557, 0, 3, 0, 2, 0, 20, 1, 0, 20, 1, 1, 1, 3, 10, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'At 0-20% hp- say text'),\r\n(28557, 0, 4, 0, 2, 0, 20, 1, 0, 20, 1, 1, 1, 4, 10, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'At 0-20% hp- say text');\r\n\r\nDELETE FROM `creature_text` WHERE `entry`=28557 AND `type`=12;\r\nINSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`)\r\nVALUES\r\n(28557, 0, 0, 'Ungh! I ... I think I pooped...', 12, 0, 100, 0, 0, 0, 'Scarlet Peasant'),\r\n(28557, 0, 1, 'I... I have a sick grandmother at home... I--I\\'m all she\\'s got.', 12, 0, 100, 0, 0, 0, 'Scarlet Peasant'),\r\n(28557, 0, 2, 'I picked the wrong week to quit drinkin\\'!', 12, 0, 100, 0, 0, 0, 'Scarlet Peasant'),\r\n(28557, 0, 3, 'I\\'ve got five kids lady, they\\'ll die without me!', 12, 0, 100, 0, 0, 0, 'Scarlet Peasant'),\r\n(28557, 0, 4, 'You don\\'t have to do this! Nobody has to die!', 12, 0, 100, 0, 0, 0, 'Scarlet Peasant');\r\n\r\n\r\n\r\n\r\n","html_url":"https://github.com/TrinityCore/TrinityCore/issues/3925","title":"[DB/FIX] Behaviour of Scarlet Peasant (entry 28557)","number":3925,"id":2213206,"created_at":"2011-11-11T20:34:08Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/ed5c82def09fde70f11dae4d7b30867a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"ed5c82def09fde70f11dae4d7b30867a","url":"https://api.github.com/users/Valcorb","login":"Valcorb","id":879667},"updated_at":"2011-11-11T20:42:28Z","url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/comments/2712984","body":"Loll :P\r\n\r\nEdit: added credits","id":2712984,"created_at":"2011-11-11T20:42:28Z"}}