{"action":"closed","issue":{"url":"https://api.github.com/repos/rathena/rathena/issues/751","labels_url":"https://api.github.com/repos/rathena/rathena/issues/751/labels{/name}","comments_url":"https://api.github.com/repos/rathena/rathena/issues/751/comments","events_url":"https://api.github.com/repos/rathena/rathena/issues/751/events","html_url":"https://github.com/rathena/rathena/issues/751","id":116291175,"number":751,"title":"setunitdata doesn't change monster stats","user":{"login":"lordganja","id":11422646,"avatar_url":"https://avatars.githubusercontent.com/u/11422646?v=3","gravatar_id":"","url":"https://api.github.com/users/lordganja","html_url":"https://github.com/lordganja","followers_url":"https://api.github.com/users/lordganja/followers","following_url":"https://api.github.com/users/lordganja/following{/other_user}","gists_url":"https://api.github.com/users/lordganja/gists{/gist_id}","starred_url":"https://api.github.com/users/lordganja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lordganja/subscriptions","organizations_url":"https://api.github.com/users/lordganja/orgs","repos_url":"https://api.github.com/users/lordganja/repos","events_url":"https://api.github.com/users/lordganja/events{/privacy}","received_events_url":"https://api.github.com/users/lordganja/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rathena/rathena/labels/bug:core","name":"bug:core","color":"008000"},{"url":"https://api.github.com/repos/rathena/rathena/labels/status:duplicate","name":"status:duplicate","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-11T08:51:02Z","updated_at":"2015-11-11T15:39:09Z","closed_at":"2015-11-11T15:39:09Z","body":"Git Hash: '27858bd43def9070785841456bb01ce9eeb7bb3d'\r\nPre-Renewal\r\n2013-23-23 client\r\n\r\nI was trying to modify a monster stats using the setunitdata but it can't modify the monster stats. I haven't tried the other parameters since I only tried HP and monster stats. The only parameter that works for me is the HP and MAXHP.\r\n\r\nSCRIPT:\r\n```\r\nprontera,151,179,5\tscript\ttest\t52,{\r\nmonster(\"prontera\",151,179,\"Poring\",1002,1);\r\n.@id = $@mobid[0];\r\nsetunitdata .@id,3,1000; // MaxHP\r\nsetunitdata .@id,2,1000; // HP\r\nsetunitdata .@id,23,50; // STR\r\nsetunitdata .@id,24,50; // AGI\r\nsetunitdata .@id,25,50; // VIT\r\nsetunitdata .@id,26,50; // INT\r\nsetunitdata .@id,27,50; // DEX\r\nsetunitdata .@id,28,20; // LUK\r\ngetunitdata .@id,.@porstats;\r\ndispbottom \"HP: \"+.@porstats[2];\r\ndispbottom \"MAXHP: \"+.@porstats[3];\r\ndispbottom \"STR: \"+.@porstats[23];\r\ndispbottom \"AGI: \"+.@porstats[24];\r\ndispbottom \"VIT: \"+.@porstats[25];\r\ndispbottom \"INT: \"+.@porstats[26];\r\ndispbottom \"DEx: \"+.@porstats[27];\r\ndispbottom \"LUK: \"+.@porstats[28>\r\n}\r\n```\r\nAnd if possible, I think it is better to also add other parameters so it would be more flexible and easily configurable, since if STR,DEX,LUK is increased, it'll also affect the ATTACK. VIT would also affect DEF, DEX would affect both HIT and ATTACK, and other stats affects other parameters.\r\n\r\nSo I think it's more appropriate if some parameters will be added.\r\nlike ATK, MATK, DEF, MDEF, HIT, FLEE, CRITICAL, PERFECT DODGE,ADELAY,AMOTION and others too..\r\n\r\nThank you!\r\n\r\nEDIT:\r\nSorry, I haven't seen the issue here. I think I made a duplicate of it.\r\nhttps://github.com/rathena/rathena/issues/516"}}