{"action":"created","issue":{"url":"https://api.github.com/repos/HerculesWS/Hercules/issues/897","labels_url":"https://api.github.com/repos/HerculesWS/Hercules/issues/897/labels{/name}","comments_url":"https://api.github.com/repos/HerculesWS/Hercules/issues/897/comments","events_url":"https://api.github.com/repos/HerculesWS/Hercules/issues/897/events","html_url":"https://github.com/HerculesWS/Hercules/pull/897","id":119105330,"number":897,"title":"Add color constants for announcement and mes","user":{"login":"AnnieRuru","id":6211477,"avatar_url":"https://avatars.githubusercontent.com/u/6211477?v=3","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":[{"url":"https://api.github.com/repos/HerculesWS/Hercules/labels/status:inprogress","name":"status:inprogress","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-26T22:00:18Z","updated_at":"2015-12-13T15:40:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/HerculesWS/Hercules/pulls/897","html_url":"https://github.com/HerculesWS/Hercules/pull/897","diff_url":"https://github.com/HerculesWS/Hercules/pull/897.diff","patch_url":"https://github.com/HerculesWS/Hercules/pull/897.patch"},"body":"hehehe ... ehehehe .... kekeke ...\r\nremember this ? #364 \r\n1 MORE TIME\r\ntested, confirmed working this time\r\n```\r\nprontera,155,185,5\tscript\tkdjsfksjdfhsdf\t1_F_MARIA,{\r\n\tmes callfunc(\"F_MesColor\", C_BLUE) +\"This message is now in BLUE\";\r\n\tsetarray .@color, C_AQUA, C_BLACK, C_BLUE, C_GRAY, C_GREEN, C_LIME, C_MARRON, C_NAVY, C_OLIVE, C_ORANGE,\r\n\t\t\tC_PURPLE, C_RED, C_SILVER, C_TEAL, C_WHITE, C_YELLOW, C_PINK, C_CHOCOLATE, C_GOLD, C_VIOLET;\r\n\t.@colorsize = getarraysize(.@color);\r\n\tfor ( .@i = 0; .@i < .@colorsize; ++.@i ) {\r\n\t\tannounce \"test\", bc_all, .@color[.@i];\r\n\t\tmes callfunc( \"F_MesColor\", .@color[.@i] ) +\" test\";\r\n\t}\r\n\tclose;\r\n}\r\n```\r\nhttps://github.com/AnnieRuru/customs/blob/master/screenshots/screenRuru_Server012.jpg"},"comment":{"url":"https://api.github.com/repos/HerculesWS/Hercules/issues/comments/164269188","html_url":"https://github.com/HerculesWS/Hercules/pull/897#issuecomment-164269188","issue_url":"https://api.github.com/repos/HerculesWS/Hercules/issues/897","id":164269188,"user":{"login":"MishimaHaruna","id":4590397,"avatar_url":"https://avatars.githubusercontent.com/u/4590397?v=3","gravatar_id":"","url":"https://api.github.com/users/MishimaHaruna","html_url":"https://github.com/MishimaHaruna","followers_url":"https://api.github.com/users/MishimaHaruna/followers","following_url":"https://api.github.com/users/MishimaHaruna/following{/other_user}","gists_url":"https://api.github.com/users/MishimaHaruna/gists{/gist_id}","starred_url":"https://api.github.com/users/MishimaHaruna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MishimaHaruna/subscriptions","organizations_url":"https://api.github.com/users/MishimaHaruna/orgs","repos_url":"https://api.github.com/users/MishimaHaruna/repos","events_url":"https://api.github.com/users/MishimaHaruna/events{/privacy}","received_events_url":"https://api.github.com/users/MishimaHaruna/received_events","type":"User","site_admin":false},"created_at":"2015-12-13T15:40:30Z","updated_at":"2015-12-13T15:40:30Z","body":"How about this variant (that doesn't need edits when new colors are added):\r\n\r\n```\r\nfunction\tscript\tF_MesColor\t{\r\n\treturn sprintf(\"^%06X\", getarg(0));\r\n}\r\n```"}}