{"action":"created","comment":{"url":"https://api.github.com/repos/otland/forgottenserver/pulls/comments/29550675","id":29550675,"diff_hunk":"@@ -7,58 +7,33 @@ function destroyItem(cid, target, toPosition)\n \t\treturn false\n \tend\n \n-\tlocal targetId = target:getId()\n-\tif (targetId >= 1724 and targetId <= 1741) or (targetId >= 2581 and targetId <= 2588) or targetId == 1770 or targetId == 2098 or targetId == 1774 or targetId == 1775 or targetId == 2064 or (targetId >= 1747 and targetId <= 1753) or (targetId >= 1714 and targetId <= 1717) or (targetId >= 1650 and targetId <= 1653) or (targetId >= 1666 and targetId <= 1677) or (targetId >= 1614 and targetId <= 1616) or (targetId >= 3813 and targetId <= 3820) or (targetId >= 3807 and targetId <= 3810) or (targetId >= 2080 and targetId <= 2085) or (targetId >= 2116 and targetId <= 2119) or targetId == 2094 or targetId == 2095 or targetId == 1619 or targetId == 2602 or targetId == 3805 or targetId == 3806 then\n-\t\tif math.random(1, 7) == 1 then\n-\t\t\ttarget:remove(1)\n-\t\t\tif targetId == 1738 or targetId == 1739 or (targetId >= 2581 and targetId <= 2588) or targetId == 1770 or targetId == 2098 or targetId == 1774 or targetId == 1775 or targetId == 2064 then\n-\t\t\t\tGame.createItem(2250, 1, toPosition)\n-\t\t\telseif (targetId >= 1747 and targetId <= 1749) or targetId == 1740 then\n-\t\t\t\tGame.createItem(2251, 1, toPosition)\n-\t\t\telseif (targetId >= 1714 and targetId <= 1717) then\n-\t\t\t\tGame.createItem(2252, 1, toPosition)\n-\t\t\telseif (targetId >= 1650 and targetId <= 1653) or (targetId >= 1666 and targetId <= 1677) or (targetId >= 1614 and targetId <= 1616) or (targetId >= 3813 and targetId <= 3820) or (targetId >= 3807 and targetId <= 3810) then\n-\t\t\t\tGame.createItem(2253, 1, toPosition)\n-\t\t\telseif (targetId >= 1724 and targetId <= 1737) or (targetId >= 2080 and targetId <= 2085) or (targetId >= 2116 and targetId <= 2119) or targetId == 2094 or targetId == 2095 then\n-\t\t\t\tGame.createItem(2254, 1, toPosition)\n-\t\t\telseif (targetId >= 1750 and targetId <= 1753) or targetId == 1619 or targetId == 1741 then\n-\t\t\t\tGame.createItem(2255, 1, toPosition)\n-\t\t\telseif targetId == 2602 then\n-\t\t\t\tGame.createItem(2257, 1, toPosition)\n-\t\t\telseif targetId == 3805 or targetId == 3806 then\n-\t\t\t\tGame.createItem(2259, 1, toPosition)\n-\t\t\tend\n-\t\tend\n-\t\ttoPosition:sendMagicEffect(CONST_ME_POFF)\n+\tif toPosition.x == CONTAINER_POSITION then\n+\t\tplayer:sendCancelMessage(Game.getReturnMessage(RETURNVALUE_NOTPOSSIBLE))\n \t\treturn true\n \tend\n+\tlocal destroyId = ItemType(target.itemid):getDestroyId()\n+\tif destroyId == 0 then\n+\t\treturn false\n+\tend\n \n-\t--spider web\n-\tif targetId == 7538 or targetId == 7539 then \n-\t\tif math.random(1, 7) == 1 then\n-\t\t\tif targetId == 7538 then\n-\t\t\t\ttarget:transform(7544)\n-\t\t\telseif targetId == 7539 then\n-\t\t\t\ttarget:transform(7545)\n-\t\t\tend\n-\t\t\ttarget:decay()\n+\tif math.random(1) == 7 then","path":"data/actions/lib/actions.lua","position":51,"original_position":51,"commit_id":"3b75dee054ad1ed6fd1f40426d1eb95ffd1e32d5","original_commit_id":"3b75dee054ad1ed6fd1f40426d1eb95ffd1e32d5","user":{"login":"marksamman","id":636597,"avatar_url":"https://avatars.githubusercontent.com/u/636597?v=3","gravatar_id":"","url":"https://api.github.com/users/marksamman","html_url":"https://github.com/marksamman","followers_url":"https://api.github.com/users/marksamman/followers","following_url":"https://api.github.com/users/marksamman/following{/other_user}","gists_url":"https://api.github.com/users/marksamman/gists{/gist_id}","starred_url":"https://api.github.com/users/marksamman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marksamman/subscriptions","organizations_url":"https://api.github.com/users/marksamman/orgs","repos_url":"https://api.github.com/users/marksamman/repos","events_url":"https://api.github.com/users/marksamman/events{/privacy}","received_events_url":"https://api.github.com/users/marksamman/received_events","type":"User","site_admin":false},"body":"Please enlighten me how this can ever be true.","created_at":"2015-05-02T21:00:45Z","updated_at":"2015-05-02T21:00:45Z","html_url":"https://github.com/otland/forgottenserver/pull/1321#discussion_r29550675","pull_request_url":"https://api.github.com/repos/otland/forgottenserver/pulls/1321","_links":{"self":{"href":"https://api.github.com/repos/otland/forgottenserver/pulls/comments/29550675"},"html":{"href":"https://github.com/otland/forgottenserver/pull/1321#discussion_r29550675"},"pull_request":{"href":"https://api.github.com/repos/otland/forgottenserver/pulls/1321"}}},"pull_request":{"url":"https://api.github.com/repos/otland/forgottenserver/pulls/1321","id":34589212,"html_url":"https://github.com/otland/forgottenserver/pull/1321","diff_url":"https://github.com/otland/forgottenserver/pull/1321.diff","patch_url":"https://github.com/otland/forgottenserver/pull/1321.patch","issue_url":"https://api.github.com/repos/otland/forgottenserver/issues/1321","number":1321,"state":"open","locked":false,"title":"Destroying Containers (chests, boxes, barrels etc) https://github.com/ot...","user":{"login":"PrinterLUA","id":3219662,"avatar_url":"https://avatars.githubusercontent.com/u/3219662?v=3","gravatar_id":"","url":"https://api.github.com/users/PrinterLUA","html_url":"https://github.com/PrinterLUA","followers_url":"https://api.github.com/users/PrinterLUA/followers","following_url":"https://api.github.com/users/PrinterLUA/following{/other_user}","gists_url":"https://api.github.com/users/PrinterLUA/gists{/gist_id}","starred_url":"https://api.github.com/users/PrinterLUA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrinterLUA/subscriptions","organizations_url":"https://api.github.com/users/PrinterLUA/orgs","repos_url":"https://api.github.com/users/PrinterLUA/repos","events_url":"https://api.github.com/users/PrinterLUA/events{/privacy}","received_events_url":"https://api.github.com/users/PrinterLUA/received_events","type":"User","site_admin":false},"body":"...land/forgottenserver/issues/1014\r\n\r\nThis should be a continue of what @EvulMastah started.","created_at":"2015-05-02T18:02:38Z","updated_at":"2015-05-02T21:00:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3af978ebc499049dffae95a9394d3b139ff0b379","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/otland/forgottenserver/pulls/1321/commits","review_comments_url":"https://api.github.com/repos/otland/forgottenserver/pulls/1321/comments","review_comment_url":"https://api.github.com/repos/otland/forgottenserver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/otland/forgottenserver/issues/1321/comments","statuses_url":"https://api.github.com/repos/otland/forgottenserver/statuses/3b75dee054ad1ed6fd1f40426d1eb95ffd1e32d5","head":{"label":"PrinterLUA:master","ref":"master","sha":"3b75dee054ad1ed6fd1f40426d1eb95ffd1e32d5","user":{"login":"PrinterLUA","id":3219662,"avatar_url":"https://avatars.githubusercontent.com/u/3219662?v=3","gravatar_id":"","url":"https://api.github.com/users/PrinterLUA","html_url":"https://github.com/PrinterLUA","followers_url":"https://api.github.com/users/PrinterLUA/followers","following_url":"https://api.github.com/users/PrinterLUA/following{/other_user}","gists_url":"https://api.github.com/users/PrinterLUA/gists{/gist_id}","starred_url":"https://api.github.com/users/PrinterLUA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrinterLUA/subscriptions","organizations_url":"https://api.github.com/users/PrinterLUA/orgs","repos_url":"https://api.github.com/users/PrinterLUA/repos","events_url":"https://api.github.com/users/PrinterLUA/events{/privacy}","received_events_url":"https://api.github.com/users/PrinterLUA/received_events","type":"User","site_admin":false},"repo":{"id":34957264,"name":"forgottenserver","full_name":"PrinterLUA/forgottenserver","owner":{"login":"PrinterLUA","id":3219662,"avatar_url":"https://avatars.githubusercontent.com/u/3219662?v=3","gravatar_id":"","url":"https://api.github.com/users/PrinterLUA","html_url":"https://github.com/PrinterLUA","followers_url":"https://api.github.com/users/PrinterLUA/followers","following_url":"https://api.github.com/users/PrinterLUA/following{/other_user}","gists_url":"https://api.github.com/users/PrinterLUA/gists{/gist_id}","starred_url":"https://api.github.com/users/PrinterLUA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrinterLUA/subscriptions","organizations_url":"https://api.github.com/users/PrinterLUA/orgs","repos_url":"https://api.github.com/users/PrinterLUA/repos","events_url":"https://api.github.com/users/PrinterLUA/events{/privacy}","received_events_url":"https://api.github.com/users/PrinterLUA/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PrinterLUA/forgottenserver","description":"A free and open-source MMORPG server emulator written in C++","fork":true,"url":"https://api.github.com/repos/PrinterLUA/forgottenserver","forks_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/forks","keys_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/teams","hooks_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/hooks","issue_events_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/issues/events{/number}","events_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/events","assignees_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/assignees{/user}","branches_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/branches{/branch}","tags_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/tags","blobs_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/statuses/{sha}","languages_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/languages","stargazers_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/stargazers","contributors_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/contributors","subscribers_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/subscribers","subscription_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/subscription","commits_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/contents/{+path}","compare_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/merges","archive_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/downloads","issues_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/issues{/number}","pulls_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/pulls{/number}","milestones_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/milestones{/number}","notifications_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/labels{/name}","releases_url":"https://api.github.com/repos/PrinterLUA/forgottenserver/releases{/id}","created_at":"2015-05-02T17:42:11Z","updated_at":"2015-05-02T19:24:39Z","pushed_at":"2015-05-02T19:24:38Z","git_url":"git://github.com/PrinterLUA/forgottenserver.git","ssh_url":"git@github.com:PrinterLUA/forgottenserver.git","clone_url":"https://github.com/PrinterLUA/forgottenserver.git","svn_url":"https://github.com/PrinterLUA/forgottenserver","homepage":"","size":23046,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"otland:master","ref":"master","sha":"e4bec60db8a3cce8f2c9f080e6bfe4ca5677fd38","user":{"login":"otland","id":4956302,"avatar_url":"https://avatars.githubusercontent.com/u/4956302?v=3","gravatar_id":"","url":"https://api.github.com/users/otland","html_url":"https://github.com/otland","followers_url":"https://api.github.com/users/otland/followers","following_url":"https://api.github.com/users/otland/following{/other_user}","gists_url":"https://api.github.com/users/otland/gists{/gist_id}","starred_url":"https://api.github.com/users/otland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otland/subscriptions","organizations_url":"https://api.github.com/users/otland/orgs","repos_url":"https://api.github.com/users/otland/repos","events_url":"https://api.github.com/users/otland/events{/privacy}","received_events_url":"https://api.github.com/users/otland/received_events","type":"Organization","site_admin":false},"repo":{"id":11081909,"name":"forgottenserver","full_name":"otland/forgottenserver","owner":{"login":"otland","id":4956302,"avatar_url":"https://avatars.githubusercontent.com/u/4956302?v=3","gravatar_id":"","url":"https://api.github.com/users/otland","html_url":"https://github.com/otland","followers_url":"https://api.github.com/users/otland/followers","following_url":"https://api.github.com/users/otland/following{/other_user}","gists_url":"https://api.github.com/users/otland/gists{/gist_id}","starred_url":"https://api.github.com/users/otland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otland/subscriptions","organizations_url":"https://api.github.com/users/otland/orgs","repos_url":"https://api.github.com/users/otland/repos","events_url":"https://api.github.com/users/otland/events{/privacy}","received_events_url":"https://api.github.com/users/otland/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/otland/forgottenserver","description":"A free and open-source MMORPG server emulator written in C++","fork":false,"url":"https://api.github.com/repos/otland/forgottenserver","forks_url":"https://api.github.com/repos/otland/forgottenserver/forks","keys_url":"https://api.github.com/repos/otland/forgottenserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/otland/forgottenserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/otland/forgottenserver/teams","hooks_url":"https://api.github.com/repos/otland/forgottenserver/hooks","issue_events_url":"https://api.github.com/repos/otland/forgottenserver/issues/events{/number}","events_url":"https://api.github.com/repos/otland/forgottenserver/events","assignees_url":"https://api.github.com/repos/otland/forgottenserver/assignees{/user}","branches_url":"https://api.github.com/repos/otland/forgottenserver/branches{/branch}","tags_url":"https://api.github.com/repos/otland/forgottenserver/tags","blobs_url":"https://api.github.com/repos/otland/forgottenserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/otland/forgottenserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/otland/forgottenserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/otland/forgottenserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/otland/forgottenserver/statuses/{sha}","languages_url":"https://api.github.com/repos/otland/forgottenserver/languages","stargazers_url":"https://api.github.com/repos/otland/forgottenserver/stargazers","contributors_url":"https://api.github.com/repos/otland/forgottenserver/contributors","subscribers_url":"https://api.github.com/repos/otland/forgottenserver/subscribers","subscription_url":"https://api.github.com/repos/otland/forgottenserver/subscription","commits_url":"https://api.github.com/repos/otland/forgottenserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/otland/forgottenserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/otland/forgottenserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/otland/forgottenserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/otland/forgottenserver/contents/{+path}","compare_url":"https://api.github.com/repos/otland/forgottenserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/otland/forgottenserver/merges","archive_url":"https://api.github.com/repos/otland/forgottenserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/otland/forgottenserver/downloads","issues_url":"https://api.github.com/repos/otland/forgottenserver/issues{/number}","pulls_url":"https://api.github.com/repos/otland/forgottenserver/pulls{/number}","milestones_url":"https://api.github.com/repos/otland/forgottenserver/milestones{/number}","notifications_url":"https://api.github.com/repos/otland/forgottenserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/otland/forgottenserver/labels{/name}","releases_url":"https://api.github.com/repos/otland/forgottenserver/releases{/id}","created_at":"2013-07-01T01:57:06Z","updated_at":"2015-05-02T16:52:30Z","pushed_at":"2015-05-02T20:45:07Z","git_url":"git://github.com/otland/forgottenserver.git","ssh_url":"git@github.com:otland/forgottenserver.git","clone_url":"https://github.com/otland/forgottenserver.git","svn_url":"https://github.com/otland/forgottenserver","homepage":"","size":23046,"stargazers_count":233,"watchers_count":233,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":261,"mirror_url":null,"open_issues_count":61,"forks":261,"open_issues":61,"watchers":233,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/otland/forgottenserver/pulls/1321"},"html":{"href":"https://github.com/otland/forgottenserver/pull/1321"},"issue":{"href":"https://api.github.com/repos/otland/forgottenserver/issues/1321"},"comments":{"href":"https://api.github.com/repos/otland/forgottenserver/issues/1321/comments"},"review_comments":{"href":"https://api.github.com/repos/otland/forgottenserver/pulls/1321/comments"},"review_comment":{"href":"https://api.github.com/repos/otland/forgottenserver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/otland/forgottenserver/pulls/1321/commits"},"statuses":{"href":"https://api.github.com/repos/otland/forgottenserver/statuses/3b75dee054ad1ed6fd1f40426d1eb95ffd1e32d5"}}}}