{"action":"created","comment":{"url":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/comments/23715147","id":23715147,"diff_hunk":"@@ -21,7 +21,33 @@ end;\n -----------------------------------\n \n function onTrigger(player,npc)\n-\tplayer:messageSpecial(ON_WAY_TO_SELBINA,0,0); -- Earth Time, Vana Hours. Needs a get-time function for boat?\n+\n+\tlocal vHour = VanadielHour();\n+\tlocal vMin  = VanadielMinute();\n+\n+\twhile vHour >= 6 do\n+\t\tvHour = vHour - 8;\n+\tend\n+\n+\tif(     vHour == -2) then vHour = 8;","path":"scripts/zones/Ship_bound_for_Selbina/npcs/Bhagirath.lua","position":23,"original_position":23,"commit_id":"9e2d58511543cc333bac1d0816e4a2bf3000040c","original_commit_id":"9e2d58511543cc333bac1d0816e4a2bf3000040c","user":{"login":"TeoTwawki","id":6871475,"avatar_url":"https://avatars.githubusercontent.com/u/6871475?v=3","gravatar_id":"","url":"https://api.github.com/users/TeoTwawki","html_url":"https://github.com/TeoTwawki","followers_url":"https://api.github.com/users/TeoTwawki/followers","following_url":"https://api.github.com/users/TeoTwawki/following{/other_user}","gists_url":"https://api.github.com/users/TeoTwawki/gists{/gist_id}","starred_url":"https://api.github.com/users/TeoTwawki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeoTwawki/subscriptions","organizations_url":"https://api.github.com/users/TeoTwawki/orgs","repos_url":"https://api.github.com/users/TeoTwawki/repos","events_url":"https://api.github.com/users/TeoTwawki/events{/privacy}","received_events_url":"https://api.github.com/users/TeoTwawki/received_events","type":"User","site_admin":false},"body":"Are you trying to vertically align your var names or \"then\"s or something?\r\n```lua\r\nif (vHour == -2) then\r\n    vHour = 8;\r\nelseif (vHour == -1) then\r\n    vHour = 7;\r\nelseif (vHour == 0) then\r\n    vHour = 6;\r\nelseif (vHour == 1) then\r\n    vHour = 5;\r\nelseif (vHour == 2) then\r\n    vHour = 4;\r\nelseif (vHour == 3) then\r\n    vHour = 3;\r\nelseif (vHour == 4) then\r\n    vHour = 2;\r\nelseif (vHour == 5) then\r\n    vHour = 1;\r\nend\r\n```\r\nThis is the style usually used, though not strictly enforced (I wish it were).","created_at":"2015-01-28T19:28:39Z","updated_at":"2015-01-28T19:28:39Z","html_url":"https://github.com/DarkstarProject/darkstar/pull/863#discussion_r23715147","pull_request_url":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/863","_links":{"self":{"href":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/comments/23715147"},"html":{"href":"https://github.com/DarkstarProject/darkstar/pull/863#discussion_r23715147"},"pull_request":{"href":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/863"}}},"pull_request":{"url":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/863","id":28165207,"html_url":"https://github.com/DarkstarProject/darkstar/pull/863","diff_url":"https://github.com/DarkstarProject/darkstar/pull/863.diff","patch_url":"https://github.com/DarkstarProject/darkstar/pull/863.patch","issue_url":"https://api.github.com/repos/DarkstarProject/darkstar/issues/863","number":863,"state":"open","locked":false,"title":"Added Functionality to NPCs Bhagirath and Sahn.  (On Ships to Selbina/Maura)","user":{"login":"JoeCT","id":10385544,"avatar_url":"https://avatars.githubusercontent.com/u/10385544?v=3","gravatar_id":"","url":"https://api.github.com/users/JoeCT","html_url":"https://github.com/JoeCT","followers_url":"https://api.github.com/users/JoeCT/followers","following_url":"https://api.github.com/users/JoeCT/following{/other_user}","gists_url":"https://api.github.com/users/JoeCT/gists{/gist_id}","starred_url":"https://api.github.com/users/JoeCT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoeCT/subscriptions","organizations_url":"https://api.github.com/users/JoeCT/orgs","repos_url":"https://api.github.com/users/JoeCT/repos","events_url":"https://api.github.com/users/JoeCT/events{/privacy}","received_events_url":"https://api.github.com/users/JoeCT/received_events","type":"User","site_admin":false},"body":"Added functionality to NPCs Bhagirath and Sahn.  These NPCs are the captains of the ships bound for either Mhaura or Selbina.  They now accurately relay approximate times to destination.","created_at":"2015-01-28T03:09:05Z","updated_at":"2015-01-28T19:28:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"812d3b5c19f935626253b1eca958aa5bca17fe70","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/863/commits","review_comments_url":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/863/comments","review_comment_url":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/comments/{number}","comments_url":"https://api.github.com/repos/DarkstarProject/darkstar/issues/863/comments","statuses_url":"https://api.github.com/repos/DarkstarProject/darkstar/statuses/9e2d58511543cc333bac1d0816e4a2bf3000040c","head":{"label":"JoeCT:master","ref":"master","sha":"9e2d58511543cc333bac1d0816e4a2bf3000040c","user":{"login":"JoeCT","id":10385544,"avatar_url":"https://avatars.githubusercontent.com/u/10385544?v=3","gravatar_id":"","url":"https://api.github.com/users/JoeCT","html_url":"https://github.com/JoeCT","followers_url":"https://api.github.com/users/JoeCT/followers","following_url":"https://api.github.com/users/JoeCT/following{/other_user}","gists_url":"https://api.github.com/users/JoeCT/gists{/gist_id}","starred_url":"https://api.github.com/users/JoeCT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoeCT/subscriptions","organizations_url":"https://api.github.com/users/JoeCT/orgs","repos_url":"https://api.github.com/users/JoeCT/repos","events_url":"https://api.github.com/users/JoeCT/events{/privacy}","received_events_url":"https://api.github.com/users/JoeCT/received_events","type":"User","site_admin":false},"repo":{"id":29887208,"name":"darkstar","full_name":"JoeCT/darkstar","owner":{"login":"JoeCT","id":10385544,"avatar_url":"https://avatars.githubusercontent.com/u/10385544?v=3","gravatar_id":"","url":"https://api.github.com/users/JoeCT","html_url":"https://github.com/JoeCT","followers_url":"https://api.github.com/users/JoeCT/followers","following_url":"https://api.github.com/users/JoeCT/following{/other_user}","gists_url":"https://api.github.com/users/JoeCT/gists{/gist_id}","starred_url":"https://api.github.com/users/JoeCT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoeCT/subscriptions","organizations_url":"https://api.github.com/users/JoeCT/orgs","repos_url":"https://api.github.com/users/JoeCT/repos","events_url":"https://api.github.com/users/JoeCT/events{/privacy}","received_events_url":"https://api.github.com/users/JoeCT/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JoeCT/darkstar","description":"FFXI Server Emulator","fork":true,"url":"https://api.github.com/repos/JoeCT/darkstar","forks_url":"https://api.github.com/repos/JoeCT/darkstar/forks","keys_url":"https://api.github.com/repos/JoeCT/darkstar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JoeCT/darkstar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JoeCT/darkstar/teams","hooks_url":"https://api.github.com/repos/JoeCT/darkstar/hooks","issue_events_url":"https://api.github.com/repos/JoeCT/darkstar/issues/events{/number}","events_url":"https://api.github.com/repos/JoeCT/darkstar/events","assignees_url":"https://api.github.com/repos/JoeCT/darkstar/assignees{/user}","branches_url":"https://api.github.com/repos/JoeCT/darkstar/branches{/branch}","tags_url":"https://api.github.com/repos/JoeCT/darkstar/tags","blobs_url":"https://api.github.com/repos/JoeCT/darkstar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JoeCT/darkstar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JoeCT/darkstar/git/refs{/sha}","trees_url":"https://api.github.com/repos/JoeCT/darkstar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JoeCT/darkstar/statuses/{sha}","languages_url":"https://api.github.com/repos/JoeCT/darkstar/languages","stargazers_url":"https://api.github.com/repos/JoeCT/darkstar/stargazers","contributors_url":"https://api.github.com/repos/JoeCT/darkstar/contributors","subscribers_url":"https://api.github.com/repos/JoeCT/darkstar/subscribers","subscription_url":"https://api.github.com/repos/JoeCT/darkstar/subscription","commits_url":"https://api.github.com/repos/JoeCT/darkstar/commits{/sha}","git_commits_url":"https://api.github.com/repos/JoeCT/darkstar/git/commits{/sha}","comments_url":"https://api.github.com/repos/JoeCT/darkstar/comments{/number}","issue_comment_url":"https://api.github.com/repos/JoeCT/darkstar/issues/comments/{number}","contents_url":"https://api.github.com/repos/JoeCT/darkstar/contents/{+path}","compare_url":"https://api.github.com/repos/JoeCT/darkstar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JoeCT/darkstar/merges","archive_url":"https://api.github.com/repos/JoeCT/darkstar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JoeCT/darkstar/downloads","issues_url":"https://api.github.com/repos/JoeCT/darkstar/issues{/number}","pulls_url":"https://api.github.com/repos/JoeCT/darkstar/pulls{/number}","milestones_url":"https://api.github.com/repos/JoeCT/darkstar/milestones{/number}","notifications_url":"https://api.github.com/repos/JoeCT/darkstar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JoeCT/darkstar/labels{/name}","releases_url":"https://api.github.com/repos/JoeCT/darkstar/releases{/id}","created_at":"2015-01-26T23:23:54Z","updated_at":"2015-01-28T02:37:45Z","pushed_at":"2015-01-28T02:37:44Z","git_url":"git://github.com/JoeCT/darkstar.git","ssh_url":"git@github.com:JoeCT/darkstar.git","clone_url":"https://github.com/JoeCT/darkstar.git","svn_url":"https://github.com/JoeCT/darkstar","homepage":"https://forums.dspt.info/index.php","size":103139,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DarkstarProject:master","ref":"master","sha":"8b8634e89ba8591ec59593ff232183b0ca07b969","user":{"login":"DarkstarProject","id":6373714,"avatar_url":"https://avatars.githubusercontent.com/u/6373714?v=3","gravatar_id":"","url":"https://api.github.com/users/DarkstarProject","html_url":"https://github.com/DarkstarProject","followers_url":"https://api.github.com/users/DarkstarProject/followers","following_url":"https://api.github.com/users/DarkstarProject/following{/other_user}","gists_url":"https://api.github.com/users/DarkstarProject/gists{/gist_id}","starred_url":"https://api.github.com/users/DarkstarProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarkstarProject/subscriptions","organizations_url":"https://api.github.com/users/DarkstarProject/orgs","repos_url":"https://api.github.com/users/DarkstarProject/repos","events_url":"https://api.github.com/users/DarkstarProject/events{/privacy}","received_events_url":"https://api.github.com/users/DarkstarProject/received_events","type":"Organization","site_admin":false},"repo":{"id":15814642,"name":"darkstar","full_name":"DarkstarProject/darkstar","owner":{"login":"DarkstarProject","id":6373714,"avatar_url":"https://avatars.githubusercontent.com/u/6373714?v=3","gravatar_id":"","url":"https://api.github.com/users/DarkstarProject","html_url":"https://github.com/DarkstarProject","followers_url":"https://api.github.com/users/DarkstarProject/followers","following_url":"https://api.github.com/users/DarkstarProject/following{/other_user}","gists_url":"https://api.github.com/users/DarkstarProject/gists{/gist_id}","starred_url":"https://api.github.com/users/DarkstarProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarkstarProject/subscriptions","organizations_url":"https://api.github.com/users/DarkstarProject/orgs","repos_url":"https://api.github.com/users/DarkstarProject/repos","events_url":"https://api.github.com/users/DarkstarProject/events{/privacy}","received_events_url":"https://api.github.com/users/DarkstarProject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DarkstarProject/darkstar","description":"FFXI Server Emulator","fork":false,"url":"https://api.github.com/repos/DarkstarProject/darkstar","forks_url":"https://api.github.com/repos/DarkstarProject/darkstar/forks","keys_url":"https://api.github.com/repos/DarkstarProject/darkstar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DarkstarProject/darkstar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DarkstarProject/darkstar/teams","hooks_url":"https://api.github.com/repos/DarkstarProject/darkstar/hooks","issue_events_url":"https://api.github.com/repos/DarkstarProject/darkstar/issues/events{/number}","events_url":"https://api.github.com/repos/DarkstarProject/darkstar/events","assignees_url":"https://api.github.com/repos/DarkstarProject/darkstar/assignees{/user}","branches_url":"https://api.github.com/repos/DarkstarProject/darkstar/branches{/branch}","tags_url":"https://api.github.com/repos/DarkstarProject/darkstar/tags","blobs_url":"https://api.github.com/repos/DarkstarProject/darkstar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DarkstarProject/darkstar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DarkstarProject/darkstar/git/refs{/sha}","trees_url":"https://api.github.com/repos/DarkstarProject/darkstar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DarkstarProject/darkstar/statuses/{sha}","languages_url":"https://api.github.com/repos/DarkstarProject/darkstar/languages","stargazers_url":"https://api.github.com/repos/DarkstarProject/darkstar/stargazers","contributors_url":"https://api.github.com/repos/DarkstarProject/darkstar/contributors","subscribers_url":"https://api.github.com/repos/DarkstarProject/darkstar/subscribers","subscription_url":"https://api.github.com/repos/DarkstarProject/darkstar/subscription","commits_url":"https://api.github.com/repos/DarkstarProject/darkstar/commits{/sha}","git_commits_url":"https://api.github.com/repos/DarkstarProject/darkstar/git/commits{/sha}","comments_url":"https://api.github.com/repos/DarkstarProject/darkstar/comments{/number}","issue_comment_url":"https://api.github.com/repos/DarkstarProject/darkstar/issues/comments/{number}","contents_url":"https://api.github.com/repos/DarkstarProject/darkstar/contents/{+path}","compare_url":"https://api.github.com/repos/DarkstarProject/darkstar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DarkstarProject/darkstar/merges","archive_url":"https://api.github.com/repos/DarkstarProject/darkstar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DarkstarProject/darkstar/downloads","issues_url":"https://api.github.com/repos/DarkstarProject/darkstar/issues{/number}","pulls_url":"https://api.github.com/repos/DarkstarProject/darkstar/pulls{/number}","milestones_url":"https://api.github.com/repos/DarkstarProject/darkstar/milestones{/number}","notifications_url":"https://api.github.com/repos/DarkstarProject/darkstar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DarkstarProject/darkstar/labels{/name}","releases_url":"https://api.github.com/repos/DarkstarProject/darkstar/releases{/id}","created_at":"2014-01-11T01:31:17Z","updated_at":"2015-01-27T23:56:12Z","pushed_at":"2015-01-27T23:56:12Z","git_url":"git://github.com/DarkstarProject/darkstar.git","ssh_url":"git@github.com:DarkstarProject/darkstar.git","clone_url":"https://github.com/DarkstarProject/darkstar.git","svn_url":"https://github.com/DarkstarProject/darkstar","homepage":"https://forums.dspt.info/index.php","size":103139,"stargazers_count":74,"watchers_count":74,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":108,"mirror_url":null,"open_issues_count":69,"forks":108,"open_issues":69,"watchers":74,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/863"},"html":{"href":"https://github.com/DarkstarProject/darkstar/pull/863"},"issue":{"href":"https://api.github.com/repos/DarkstarProject/darkstar/issues/863"},"comments":{"href":"https://api.github.com/repos/DarkstarProject/darkstar/issues/863/comments"},"review_comments":{"href":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/863/comments"},"review_comment":{"href":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/DarkstarProject/darkstar/pulls/863/commits"},"statuses":{"href":"https://api.github.com/repos/DarkstarProject/darkstar/statuses/9e2d58511543cc333bac1d0816e4a2bf3000040c"}}}}