{"action":"created","comment":{"url":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/comments/183593457","pull_request_review_id":114619423,"id":183593457,"diff_hunk":"@@ -232,6 +236,51 @@ public void Guri(GuriPacket guriPacket)\n                 }\n             }\n         }\n+\n+        /// <summary>\n+        /// say packet\n+        /// </summary>\n+        /// <param name=\"sayPacket\"></param>\n+        public void Say(SayPacket sayPacket)\n+        {\n+            string message = sayPacket.Message;\n+            byte type = sayPacket.Type;\n+\n+            if (Session.Account.Authority == AuthorityType.Moderator)\n+            {\n+                type = 12;\n+                Session.CurrentMapInstance?.Broadcast(Session, Session.Character.GenerateSay(message.Trim(), 1), ReceiverType.AllExceptMe);\n+                message = $\"[Support {Session.Character.Name}]: {message}\";\n+            }\n+\n+            Session.CurrentMapInstance?.Broadcast(Session, Session.Character.GenerateSay(message.Trim(), type), ReceiverType.AllExceptMe);\n+            \n+        }\n+\n+        /// <summary>\n+        /// / packet\n+        /// </summary>\n+        /// <param name=\"whisperPacket\"></param>\n+        public void Whisper(WhisperPacket whisperPacket)\n+        {\n+            string characterName = whisperPacket.Message.Split(' ')[whisperPacket.Message.StartsWith(\"GM \", StringComparison.CurrentCulture) ? 1 : 0].Replace(\"[Support]\", string.Empty);\n+            string message = string.Empty;\n+            string[] packetsplit = whisperPacket.Message.Split(' ');\n+            for (int i = packetsplit[0] == \"GM\" ? 2 : 1; i < packetsplit.Length; i++)\n+            {\n+                message += packetsplit[i] + \" \";\n+            }\n+            if (message.Length > 60)\n+            {\n+                message = message.Substring(0, 60);\n+            }\n+            message = message.Trim();\n+            Session.SendPacket(Session.Character.GenerateSpk(message, 5));\n+            int? sentChannelId = null;\n+                \n+            // TO DO: Send Message system","path":"src/NosCore.Handler/DefaultPacketHandler.cs","position":62,"original_position":62,"commit_id":"0e4deb81459db5b0cbd8885715fc19ce3dd364f1","original_commit_id":"0e4deb81459db5b0cbd8885715fc19ce3dd364f1","user":{"login":"0Lucifer0","id":15112753,"avatar_url":"https://avatars0.githubusercontent.com/u/15112753?v=4","gravatar_id":"","url":"https://api.github.com/users/0Lucifer0","html_url":"https://github.com/0Lucifer0","followers_url":"https://api.github.com/users/0Lucifer0/followers","following_url":"https://api.github.com/users/0Lucifer0/following{/other_user}","gists_url":"https://api.github.com/users/0Lucifer0/gists{/gist_id}","starred_url":"https://api.github.com/users/0Lucifer0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0Lucifer0/subscriptions","organizations_url":"https://api.github.com/users/0Lucifer0/orgs","repos_url":"https://api.github.com/users/0Lucifer0/repos","events_url":"https://api.github.com/users/0Lucifer0/events{/privacy}","received_events_url":"https://api.github.com/users/0Lucifer0/received_events","type":"User","site_admin":false},"body":"TODO without space","created_at":"2018-04-24T03:02:02Z","updated_at":"2018-04-24T03:02:02Z","html_url":"https://github.com/NosCoreIO/NosCore/pull/51#discussion_r183593457","pull_request_url":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/51","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/comments/183593457"},"html":{"href":"https://github.com/NosCoreIO/NosCore/pull/51#discussion_r183593457"},"pull_request":{"href":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/51","id":183608224,"html_url":"https://github.com/NosCoreIO/NosCore/pull/51","diff_url":"https://github.com/NosCoreIO/NosCore/pull/51.diff","patch_url":"https://github.com/NosCoreIO/NosCore/pull/51.patch","issue_url":"https://api.github.com/repos/NosCoreIO/NosCore/issues/51","number":51,"state":"open","locked":false,"title":"Add talk manager","user":{"login":"Zagith","id":17141965,"avatar_url":"https://avatars2.githubusercontent.com/u/17141965?v=4","gravatar_id":"","url":"https://api.github.com/users/Zagith","html_url":"https://github.com/Zagith","followers_url":"https://api.github.com/users/Zagith/followers","following_url":"https://api.github.com/users/Zagith/following{/other_user}","gists_url":"https://api.github.com/users/Zagith/gists{/gist_id}","starred_url":"https://api.github.com/users/Zagith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zagith/subscriptions","organizations_url":"https://api.github.com/users/Zagith/orgs","repos_url":"https://api.github.com/users/Zagith/repos","events_url":"https://api.github.com/users/Zagith/events{/privacy}","received_events_url":"https://api.github.com/users/Zagith/received_events","type":"User","site_admin":false},"body":"- Implemented SayPacket system\r\n\r\n- Added WhisperPacket\r\n\r\n- Optimized SpkPacket","created_at":"2018-04-24T02:57:28Z","updated_at":"2018-04-24T03:02:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"85a11770f7539922c4ae664f176b85682c69f030","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/51/commits","review_comments_url":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/51/comments","review_comment_url":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NosCoreIO/NosCore/issues/51/comments","statuses_url":"https://api.github.com/repos/NosCoreIO/NosCore/statuses/0e4deb81459db5b0cbd8885715fc19ce3dd364f1","head":{"label":"NosCoreIO:AddTalkManager","ref":"AddTalkManager","sha":"0e4deb81459db5b0cbd8885715fc19ce3dd364f1","user":{"login":"NosCoreIO","id":37359054,"avatar_url":"https://avatars3.githubusercontent.com/u/37359054?v=4","gravatar_id":"","url":"https://api.github.com/users/NosCoreIO","html_url":"https://github.com/NosCoreIO","followers_url":"https://api.github.com/users/NosCoreIO/followers","following_url":"https://api.github.com/users/NosCoreIO/following{/other_user}","gists_url":"https://api.github.com/users/NosCoreIO/gists{/gist_id}","starred_url":"https://api.github.com/users/NosCoreIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NosCoreIO/subscriptions","organizations_url":"https://api.github.com/users/NosCoreIO/orgs","repos_url":"https://api.github.com/users/NosCoreIO/repos","events_url":"https://api.github.com/users/NosCoreIO/events{/privacy}","received_events_url":"https://api.github.com/users/NosCoreIO/received_events","type":"Organization","site_admin":false},"repo":{"id":118317381,"name":"NosCore","full_name":"NosCoreIO/NosCore","owner":{"login":"NosCoreIO","id":37359054,"avatar_url":"https://avatars3.githubusercontent.com/u/37359054?v=4","gravatar_id":"","url":"https://api.github.com/users/NosCoreIO","html_url":"https://github.com/NosCoreIO","followers_url":"https://api.github.com/users/NosCoreIO/followers","following_url":"https://api.github.com/users/NosCoreIO/following{/other_user}","gists_url":"https://api.github.com/users/NosCoreIO/gists{/gist_id}","starred_url":"https://api.github.com/users/NosCoreIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NosCoreIO/subscriptions","organizations_url":"https://api.github.com/users/NosCoreIO/orgs","repos_url":"https://api.github.com/users/NosCoreIO/repos","events_url":"https://api.github.com/users/NosCoreIO/events{/privacy}","received_events_url":"https://api.github.com/users/NosCoreIO/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NosCoreIO/NosCore","description":"NosCore is an emulator in c# (dotnet core) using DotNetty / Entity Framework / WebAPI","fork":false,"url":"https://api.github.com/repos/NosCoreIO/NosCore","forks_url":"https://api.github.com/repos/NosCoreIO/NosCore/forks","keys_url":"https://api.github.com/repos/NosCoreIO/NosCore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NosCoreIO/NosCore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NosCoreIO/NosCore/teams","hooks_url":"https://api.github.com/repos/NosCoreIO/NosCore/hooks","issue_events_url":"https://api.github.com/repos/NosCoreIO/NosCore/issues/events{/number}","events_url":"https://api.github.com/repos/NosCoreIO/NosCore/events","assignees_url":"https://api.github.com/repos/NosCoreIO/NosCore/assignees{/user}","branches_url":"https://api.github.com/repos/NosCoreIO/NosCore/branches{/branch}","tags_url":"https://api.github.com/repos/NosCoreIO/NosCore/tags","blobs_url":"https://api.github.com/repos/NosCoreIO/NosCore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NosCoreIO/NosCore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NosCoreIO/NosCore/git/refs{/sha}","trees_url":"https://api.github.com/repos/NosCoreIO/NosCore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NosCoreIO/NosCore/statuses/{sha}","languages_url":"https://api.github.com/repos/NosCoreIO/NosCore/languages","stargazers_url":"https://api.github.com/repos/NosCoreIO/NosCore/stargazers","contributors_url":"https://api.github.com/repos/NosCoreIO/NosCore/contributors","subscribers_url":"https://api.github.com/repos/NosCoreIO/NosCore/subscribers","subscription_url":"https://api.github.com/repos/NosCoreIO/NosCore/subscription","commits_url":"https://api.github.com/repos/NosCoreIO/NosCore/commits{/sha}","git_commits_url":"https://api.github.com/repos/NosCoreIO/NosCore/git/commits{/sha}","comments_url":"https://api.github.com/repos/NosCoreIO/NosCore/comments{/number}","issue_comment_url":"https://api.github.com/repos/NosCoreIO/NosCore/issues/comments{/number}","contents_url":"https://api.github.com/repos/NosCoreIO/NosCore/contents/{+path}","compare_url":"https://api.github.com/repos/NosCoreIO/NosCore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NosCoreIO/NosCore/merges","archive_url":"https://api.github.com/repos/NosCoreIO/NosCore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NosCoreIO/NosCore/downloads","issues_url":"https://api.github.com/repos/NosCoreIO/NosCore/issues{/number}","pulls_url":"https://api.github.com/repos/NosCoreIO/NosCore/pulls{/number}","milestones_url":"https://api.github.com/repos/NosCoreIO/NosCore/milestones{/number}","notifications_url":"https://api.github.com/repos/NosCoreIO/NosCore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NosCoreIO/NosCore/labels{/name}","releases_url":"https://api.github.com/repos/NosCoreIO/NosCore/releases{/id}","deployments_url":"https://api.github.com/repos/NosCoreIO/NosCore/deployments","created_at":"2018-01-21T08:28:57Z","updated_at":"2018-04-23T08:33:10Z","pushed_at":"2018-04-24T02:57:28Z","git_url":"git://github.com/NosCoreIO/NosCore.git","ssh_url":"git@github.com:NosCoreIO/NosCore.git","clone_url":"https://github.com/NosCoreIO/NosCore.git","svn_url":"https://github.com/NosCoreIO/NosCore","homepage":"","size":399,"stargazers_count":6,"watchers_count":6,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":4,"open_issues":13,"watchers":6,"default_branch":"master"}},"base":{"label":"NosCoreIO:master","ref":"master","sha":"a681403ce39df38f4f8b0f93effd289b5898e66c","user":{"login":"NosCoreIO","id":37359054,"avatar_url":"https://avatars3.githubusercontent.com/u/37359054?v=4","gravatar_id":"","url":"https://api.github.com/users/NosCoreIO","html_url":"https://github.com/NosCoreIO","followers_url":"https://api.github.com/users/NosCoreIO/followers","following_url":"https://api.github.com/users/NosCoreIO/following{/other_user}","gists_url":"https://api.github.com/users/NosCoreIO/gists{/gist_id}","starred_url":"https://api.github.com/users/NosCoreIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NosCoreIO/subscriptions","organizations_url":"https://api.github.com/users/NosCoreIO/orgs","repos_url":"https://api.github.com/users/NosCoreIO/repos","events_url":"https://api.github.com/users/NosCoreIO/events{/privacy}","received_events_url":"https://api.github.com/users/NosCoreIO/received_events","type":"Organization","site_admin":false},"repo":{"id":118317381,"name":"NosCore","full_name":"NosCoreIO/NosCore","owner":{"login":"NosCoreIO","id":37359054,"avatar_url":"https://avatars3.githubusercontent.com/u/37359054?v=4","gravatar_id":"","url":"https://api.github.com/users/NosCoreIO","html_url":"https://github.com/NosCoreIO","followers_url":"https://api.github.com/users/NosCoreIO/followers","following_url":"https://api.github.com/users/NosCoreIO/following{/other_user}","gists_url":"https://api.github.com/users/NosCoreIO/gists{/gist_id}","starred_url":"https://api.github.com/users/NosCoreIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NosCoreIO/subscriptions","organizations_url":"https://api.github.com/users/NosCoreIO/orgs","repos_url":"https://api.github.com/users/NosCoreIO/repos","events_url":"https://api.github.com/users/NosCoreIO/events{/privacy}","received_events_url":"https://api.github.com/users/NosCoreIO/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NosCoreIO/NosCore","description":"NosCore is an emulator in c# (dotnet core) using DotNetty / Entity Framework / WebAPI","fork":false,"url":"https://api.github.com/repos/NosCoreIO/NosCore","forks_url":"https://api.github.com/repos/NosCoreIO/NosCore/forks","keys_url":"https://api.github.com/repos/NosCoreIO/NosCore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NosCoreIO/NosCore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NosCoreIO/NosCore/teams","hooks_url":"https://api.github.com/repos/NosCoreIO/NosCore/hooks","issue_events_url":"https://api.github.com/repos/NosCoreIO/NosCore/issues/events{/number}","events_url":"https://api.github.com/repos/NosCoreIO/NosCore/events","assignees_url":"https://api.github.com/repos/NosCoreIO/NosCore/assignees{/user}","branches_url":"https://api.github.com/repos/NosCoreIO/NosCore/branches{/branch}","tags_url":"https://api.github.com/repos/NosCoreIO/NosCore/tags","blobs_url":"https://api.github.com/repos/NosCoreIO/NosCore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NosCoreIO/NosCore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NosCoreIO/NosCore/git/refs{/sha}","trees_url":"https://api.github.com/repos/NosCoreIO/NosCore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NosCoreIO/NosCore/statuses/{sha}","languages_url":"https://api.github.com/repos/NosCoreIO/NosCore/languages","stargazers_url":"https://api.github.com/repos/NosCoreIO/NosCore/stargazers","contributors_url":"https://api.github.com/repos/NosCoreIO/NosCore/contributors","subscribers_url":"https://api.github.com/repos/NosCoreIO/NosCore/subscribers","subscription_url":"https://api.github.com/repos/NosCoreIO/NosCore/subscription","commits_url":"https://api.github.com/repos/NosCoreIO/NosCore/commits{/sha}","git_commits_url":"https://api.github.com/repos/NosCoreIO/NosCore/git/commits{/sha}","comments_url":"https://api.github.com/repos/NosCoreIO/NosCore/comments{/number}","issue_comment_url":"https://api.github.com/repos/NosCoreIO/NosCore/issues/comments{/number}","contents_url":"https://api.github.com/repos/NosCoreIO/NosCore/contents/{+path}","compare_url":"https://api.github.com/repos/NosCoreIO/NosCore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NosCoreIO/NosCore/merges","archive_url":"https://api.github.com/repos/NosCoreIO/NosCore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NosCoreIO/NosCore/downloads","issues_url":"https://api.github.com/repos/NosCoreIO/NosCore/issues{/number}","pulls_url":"https://api.github.com/repos/NosCoreIO/NosCore/pulls{/number}","milestones_url":"https://api.github.com/repos/NosCoreIO/NosCore/milestones{/number}","notifications_url":"https://api.github.com/repos/NosCoreIO/NosCore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NosCoreIO/NosCore/labels{/name}","releases_url":"https://api.github.com/repos/NosCoreIO/NosCore/releases{/id}","deployments_url":"https://api.github.com/repos/NosCoreIO/NosCore/deployments","created_at":"2018-01-21T08:28:57Z","updated_at":"2018-04-23T08:33:10Z","pushed_at":"2018-04-24T02:57:28Z","git_url":"git://github.com/NosCoreIO/NosCore.git","ssh_url":"git@github.com:NosCoreIO/NosCore.git","clone_url":"https://github.com/NosCoreIO/NosCore.git","svn_url":"https://github.com/NosCoreIO/NosCore","homepage":"","size":399,"stargazers_count":6,"watchers_count":6,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":4,"open_issues":13,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/51"},"html":{"href":"https://github.com/NosCoreIO/NosCore/pull/51"},"issue":{"href":"https://api.github.com/repos/NosCoreIO/NosCore/issues/51"},"comments":{"href":"https://api.github.com/repos/NosCoreIO/NosCore/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/NosCoreIO/NosCore/statuses/0e4deb81459db5b0cbd8885715fc19ce3dd364f1"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"0Lucifer0"}}