{"action":"created","issue":{"url":"https://api.github.com/repos/HerculesWS/Hercules/issues/2031","repository_url":"https://api.github.com/repos/HerculesWS/Hercules","labels_url":"https://api.github.com/repos/HerculesWS/Hercules/issues/2031/labels{/name}","comments_url":"https://api.github.com/repos/HerculesWS/Hercules/issues/2031/comments","events_url":"https://api.github.com/repos/HerculesWS/Hercules/issues/2031/events","html_url":"https://github.com/HerculesWS/Hercules/pull/2031","id":320289999,"number":2031,"title":"Add MD_NORANDOM_WALK, MD_NOCAST_SKILL & MD_CANATTACK_MOB monster mode flag","user":{"login":"AnnieRuru","id":6211477,"avatar_url":"https://avatars3.githubusercontent.com/u/6211477?v=4","gravatar_id":"","url":"https://api.github.com/users/AnnieRuru","html_url":"https://github.com/AnnieRuru","followers_url":"https://api.github.com/users/AnnieRuru/followers","following_url":"https://api.github.com/users/AnnieRuru/following{/other_user}","gists_url":"https://api.github.com/users/AnnieRuru/gists{/gist_id}","starred_url":"https://api.github.com/users/AnnieRuru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnnieRuru/subscriptions","organizations_url":"https://api.github.com/users/AnnieRuru/orgs","repos_url":"https://api.github.com/users/AnnieRuru/repos","events_url":"https://api.github.com/users/AnnieRuru/events{/privacy}","received_events_url":"https://api.github.com/users/AnnieRuru/received_events","type":"User","site_admin":false},"labels":[{"id":48712198,"url":"https://api.github.com/repos/HerculesWS/Hercules/labels/component:core","name":"component:core","color":"803050","default":false},{"id":287787453,"url":"https://api.github.com/repos/HerculesWS/Hercules/labels/component:core:scriptengine","name":"component:core:scriptengine","color":"803050","default":false},{"id":309194364,"url":"https://api.github.com/repos/HerculesWS/Hercules/labels/status:on-hold","name":"status:on-hold","color":"fef2c0","default":false},{"id":24494842,"url":"https://api.github.com/repos/HerculesWS/Hercules/labels/type:enhancement","name":"type:enhancement","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-05-04T14:10:07Z","updated_at":"2018-05-06T07:08:35Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/HerculesWS/Hercules/pulls/2031","html_url":"https://github.com/HerculesWS/Hercules/pull/2031","diff_url":"https://github.com/HerculesWS/Hercules/pull/2031.diff","patch_url":"https://github.com/HerculesWS/Hercules/pull/2031.patch"},"body":"### Pull Request Prelude\r\n- [x] I have followed [proper Hercules code styling][code].\r\n- [x] I have read and understood the [contribution guidelines][cont] before making this PR.\r\n- [x] I am aware that this PR will be closed if the above-mentioned criteria are not fulfilled.\r\n### Issues addressed\r\nThis is part of unit controller script commands -> https://github.com/HerculesWS/Hercules/issues/998\r\n### Changes Proposed\r\nAdd **MD_NORANDOM_WALK**, **MD_NOCAST_SKILL** & **MD_CANATTACK_MOB** monster mode flag\r\n\r\n### Affected Branches\r\n* Master\r\n\r\n### Tested with\r\n```\r\nprontera,155,185,5\tscript\tjskdhfjshfd\t1_F_MARIA,{\r\n\tif ( .monster_a || .monster_b ) end;\r\n\t.monster_a = monster( \"this\", -1,-1, \"monster A\", PORING,1, strnpcinfo(3)+\"::Onaaa\" );\r\n\t.monster_b = monster( \"this\", -1,-1, \"monster B\", PORING,1, strnpcinfo(3)+\"::Onbbb\" );\r\n//\tsetunitdata .monster_a, UDT_MODE, getunitdata(.monster_a, UDT_MODE) | (MD_AGGRESSIVE|MD_CANATTACK|MD_CANATTACK_MOB);\r\n//\tsetunitdata .monster_b, UDT_MODE, getunitdata(.monster_b, UDT_MODE) | (MD_CANATTACK|MD_CANATTACK_MOB);\r\n//\tsetunitdata .monster_b, UDT_MODE, getunitdata(.monster_b, UDT_MODE) | (MD_CANATTACK);\r\n//\tsetunitdata .monster_b, UDT_MODE, getunitdata(.monster_b, UDT_MODE) | (MD_NORANDOM_WALK);\r\n//\tsetunitdata .monster_b, UDT_MODE, getunitdata(.monster_b, UDT_MODE) | (MD_NORANDOM_WALK);\r\n\t\r\n\t.monster_c = monster( \"this\", -1,-1, \"monster C\", G_KATRINN,1, strnpcinfo(3)+\"::Onccc\" );\r\n\tsetunitdata .monster_c, UDT_MODE, getunitdata(.monster_c, UDT_MODE) | (MD_NOCAST_SKILL);\r\n\tend;\r\nOnaaa:\r\n\t.monster_a = 0;\r\n\tend;\r\nOnbbb:\r\n\t.monster_b = 0;\r\n\tend;\r\nOnccc:\r\n\t.monster_c = 0;\r\n\tend;\r\n}\r\n```\r\n```\r\nprontera\tmapflag\tbattleground\r\nprontera,155,185,5\tscript\tjskdhfjshfd\t1_F_MARIA,{\r\n\tif ( getcharid(4) ) bg_leave;\r\n\t.@test = bg_create_team( .map$, .x, .y );\r\n\tbg_join_team .@test;\r\n\tdispbottom getcharid(4) +\"\";\r\n\tbg_monster 0, .map$, .x +1, .y, \"--ja--\", 1001, strnpcinfo(3) +\"::Onaaa\";\r\n\t.@a = bg_monster(0, .map$, .x +2, .y, \"--ja--\", 1001, strnpcinfo(3) +\"::Onaaa\");\r\n\t.@b = bg_monster(.@test, .map$, .x +3, .y, \"--ja--\", 1001, strnpcinfo(3) +\"::Onaaa\");\r\n\t.@c = bg_monster(.@test, .map$, .x +4, .y, \"--ja--\", 1001, strnpcinfo(3) +\"::Onaaa\");\r\n\tsetunitdata .@a, UDT_MODE, getunitdata(.@a, UDT_MODE) | (MD_AGGRESSIVE|MD_CANATTACK|MD_CANATTACK_MOB);\r\n\tsetunitdata .@b, UDT_MODE, getunitdata(.@b, UDT_MODE) | (MD_AGGRESSIVE|MD_CANATTACK|MD_CANATTACK_MOB);\r\n\tsetunitdata .@c, UDT_MODE, getunitdata(.@c, UDT_MODE) | (MD_AGGRESSIVE|MD_CANATTACK|MD_CANATTACK_MOB);\r\n\tend;\r\nOnaaa:\r\n\tend;\r\nOnInit:\r\n\tgetmapxy .map$, .x, .y, UNITTYPE_NPC;\r\n\t.x += 2;\r\n\tend;\r\n}\r\n```\r\n### Known Issues and TODO List\r\nis it true that bg_monster spawn inside battleground map, the monster will follow you around ?\r\nboth rathena and hercules has this behavior"},"comment":{"url":"https://api.github.com/repos/HerculesWS/Hercules/issues/comments/386859137","html_url":"https://github.com/HerculesWS/Hercules/pull/2031#issuecomment-386859137","issue_url":"https://api.github.com/repos/HerculesWS/Hercules/issues/2031","id":386859137,"user":{"login":"EyesOfAHawk","id":19625018,"avatar_url":"https://avatars3.githubusercontent.com/u/19625018?v=4","gravatar_id":"","url":"https://api.github.com/users/EyesOfAHawk","html_url":"https://github.com/EyesOfAHawk","followers_url":"https://api.github.com/users/EyesOfAHawk/followers","following_url":"https://api.github.com/users/EyesOfAHawk/following{/other_user}","gists_url":"https://api.github.com/users/EyesOfAHawk/gists{/gist_id}","starred_url":"https://api.github.com/users/EyesOfAHawk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EyesOfAHawk/subscriptions","organizations_url":"https://api.github.com/users/EyesOfAHawk/orgs","repos_url":"https://api.github.com/users/EyesOfAHawk/repos","events_url":"https://api.github.com/users/EyesOfAHawk/events{/privacy}","received_events_url":"https://api.github.com/users/EyesOfAHawk/received_events","type":"User","site_admin":false},"created_at":"2018-05-06T07:08:35Z","updated_at":"2018-05-06T07:08:35Z","author_association":"NONE","body":"im not sure which is official behavior, i just remember in old eathena they didnt follow team mates."}}
{"actor":{"display_login":"EyesOfAHawk"}}