<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Facebook 古惑仔 Online 自動存錢機 Version 1.0</title>
	<atom:link href="http://orz.hk/2008/07/17/2194/feed/" rel="self" type="application/rss+xml" />
	<link>http://orz.hk/2008/07/17/2194/</link>
	<description>每天都努力用腦用功的打工仔</description>
	<lastBuildDate>Mon, 06 Feb 2012 07:24:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: 腦功仔</title>
		<link>http://orz.hk/2008/07/17/2194/comment-page-1/#comment-367</link>
		<dc:creator>腦功仔</dc:creator>
		<pubDate>Tue, 19 Aug 2008 05:56:40 +0000</pubDate>
		<guid isPermaLink="false">http://orz.hk/?p=2194#comment-367</guid>
		<description>thx, updated in 
http://orz.hk/2008/08/19/2608/</description>
		<content:encoded><![CDATA[<p>thx, updated in<br />
<a href="http://orz.hk/2008/08/19/2608/" >http://orz.hk/2008/08/19/2608/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 真正 john</title>
		<link>http://orz.hk/2008/07/17/2194/comment-page-1/#comment-366</link>
		<dc:creator>真正 john</dc:creator>
		<pubDate>Tue, 19 Aug 2008 05:28:05 +0000</pubDate>
		<guid isPermaLink="false">http://orz.hk/?p=2194#comment-366</guid>
		<description>I think you used word to update the file, which changed all quotation marks to the windows quotation marks.

I have sent you an email with the script zipped. I hope it helps everyone. =)</description>
		<content:encoded><![CDATA[<p>I think you used word to update the file, which changed all quotation marks to the windows quotation marks.</p>
<p>I have sent you an email with the script zipped. I hope it helps everyone. =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 腦功仔</title>
		<link>http://orz.hk/2008/07/17/2194/comment-page-1/#comment-365</link>
		<dc:creator>腦功仔</dc:creator>
		<pubDate>Tue, 19 Aug 2008 04:25:06 +0000</pubDate>
		<guid isPermaLink="false">http://orz.hk/?p=2194#comment-365</guid>
		<description>我已經將段 javascript 放左係:
http://orz.hk/2008/08/19/2608/

同埋加個 &lt;=

thx</description>
		<content:encoded><![CDATA[<p>我已經將段 javascript 放左係:<br />
<a href="http://orz.hk/2008/08/19/2608/" >http://orz.hk/2008/08/19/2608/</a></p>
<p>同埋加個 &lt;=</p>
<p>thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 真正 john</title>
		<link>http://orz.hk/2008/07/17/2194/comment-page-1/#comment-362</link>
		<dc:creator>真正 john</dc:creator>
		<pubDate>Tue, 19 Aug 2008 03:37:59 +0000</pubDate>
		<guid isPermaLink="false">http://orz.hk/?p=2194#comment-362</guid>
		<description>上面個  script 的 current.getseconds() 之後個細過等於 好似冇左</description>
		<content:encoded><![CDATA[<p>上面個  script 的 current.getseconds() 之後個細過等於 好似冇左</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 真正 john</title>
		<link>http://orz.hk/2008/07/17/2194/comment-page-1/#comment-361</link>
		<dc:creator>真正 john</dc:creator>
		<pubDate>Tue, 19 Aug 2008 03:17:31 +0000</pubDate>
		<guid isPermaLink="false">http://orz.hk/?p=2194#comment-361</guid>
		<description>// ==UserScript==
// @name           auto-mission
// @namespace      hk.orz
// @description    by neo@orz.hk, please visit http://orz.hk
// @include        http://apps.facebook.com/street-wars/job.php
// @include        http://apps.facebook.com/street-wars/bank.php
// Version 1.0
// ==/UserScript==

/*
Function:
- check strength and gold every loading and in 5 minutes. if you have strength, auto run the default job.
- if you have over $100 cash, auto throw them in the bank

Known problem:
- may stop at &quot;Try again&quot; error message when the game is busy at night
- does not work with Facebook new user interface

What you should know about the game:
- when you want to get cash from bank, disable greasemoney first, or your money will go back to the bank with 10% cut off.
- if you do not have enough strength, a job won&#039;t run
- if you do not have ALL the required equipment, a job won&#039;t run
- if you do not meet the level / buddy requirement, a job won&#039;t run
- you generate 5 health, 1 strength, and 1 mind every 5 minutes
- the hourly pay always take place at 0 minutes every hour, if your computer clock syn with the world clock
- if you use this script and got banned, don&#039;t blame us
*/

// Things you can change
//---------------------------------------------------------------------------------------------
// 工作代號，可選: 1 至 9. job 5 是走水貨
const jobid = 5;   //&lt;- 改這個的話，記得改埋體力要求.
// 該工作最低體力要求. if you have this wrong the script will fail to work
// - job 5 need 10,  job 6 need 15, job 7 need 18,  job 8 need 25,  etc...
const needstrength = 10; // 
//---------------------------------------------------------------------------------------------

var last_check = new Date();
var check_time = (last_check.getMinutes() % 5)

// setup a count down box
var htmlElement = document.createElement(&#039;div&#039;);
htmlElement.id = &#039;neotimer&#039;;
htmlElement.style.font = &quot;11px arial&quot;
htmlElement.style.color = &#039;black&#039;;
htmlElement.style.Top = &#039;3px&#039;;
htmlElement.style.Left = &#039;2px&#039;;
htmlElement.style.position = &#039;absolute&#039;;
htmlElement.style.width = &#039;200px&#039;;
htmlElement.style.height = &#039;42px&#039;;
htmlElement.style.paddingTop = &#039;3px&#039;;
htmlElement.style.paddingLeft = &#039;2px&#039;;
htmlElement.style.background = &#039;#CCFFCC&#039;;
htmlElement.style.zIndex = 100;
window.parent.document.body.appendChild(htmlElement);

// start up check
window.setTimeout(function() { tick() }, 300);


function check_and_run() {
  // check strength
  health_tag = document.getElementById(&#039;app17326627347_main&#039;);
  if ( health_tag == null) return;
  str = (new RegExp(&#039;體力:[^&lt;]+&#039;)).exec(health_tag.innerHTML);
  if (str == null) return null;
  health = parseInt(str.toString().split(&#039;:&#039;)[1].split(&#039;/&#039;)[0]);
  if (health &lt; needstrength) return health;
  action = document.getElementById(&#039;app17326627347_mod_action-&#039; + jobid);
  if (action == null) return health;
  action_link = action.getElementsByTagName(&#039;a&#039;)[0];
  if (action_link == null) return health;

  // click
  GM_setValue(&#039;reload&#039;, 1);
  var evt = document.createEvent(&quot;MouseEvents&quot;);
  evt.initMouseEvent(&quot;click&quot;, true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
  action_link.dispatchEvent(evt);
  return health;
}

function check_money() {
  // check money
  money_tag = document.getElementById(&#039;app17326627347_main&#039;);
  if ( money_tag == null) return;
  str = (new RegExp(&#039;現金:[^v]+&#039;)).exec(money_tag.innerHTML);
  if (str == null) return null;
  money = parseInt(str.toString().split(&#039;$&#039;)[1].split(&#039;&lt;&#039;)[0].replace(/,/,&quot;&quot;));
  if (money &lt; 101) return money;
  if (location.href!=&#039;http://apps.facebook.com/street-wars/bank.php&#039;)
    location.href=&#039;http://apps.facebook.com/street-wars/bank.php&#039;;
  return money;	
 }


function tick() {
  current = new Date();
  seconds = (current - last_check) / 1000;
  health = check_and_run();
  money = check_money();

  // display 
  htmlElement.innerHTML = &#039;古惑自動做嘢 + 銀行機 v1.2 by neo@orz.hk (merged by john)&#039; 
  htmlElement.innerHTML += &#039;Time: &#039; + current.getHours()
  htmlElement.innerHTML += &#039;:&#039; + checkTime(current.getMinutes()) + &#039;:&#039; + checkTime(current.getSeconds());
  if (health != null)
    htmlElement.innerHTML += &#039; &#160; 體力: &#039; + health;
  if (money != null)
    htmlElement.innerHTML += &#039; &#160; 現金: &#039; + money;

  // reload on error
  if (document.getElementById(&#039;error_message&#039;) != null) {
    GM_setValue(&#039;reload&#039;, 0);
    location.href=&#039;http://apps.facebook.com/street-wars/job.php&#039;;
    return;
  }

  // reload if a job ran
  if (GM_getValue(&#039;reload&#039;) == 1) {
    GM_setValue(&#039;reload&#039;, 0);
    location.href=&#039;http://apps.facebook.com/street-wars/job.php&#039;;
    return;
  }  
  
  // reload every 10 minutes, so that hourly income will save to bank and reset the script from error
  if (((current.getMinutes() % 5) == check_time ) &amp;&amp; (current.getSeconds() 1) {
      if (parseInt(document.getElementsByName(&quot;amount&quot;)[1].value) &gt; 100) {
		document.getElementsByName(&quot;deposit&quot;)[0].click();
		return;
	  } else {
		GM_setValue(&#039;reload&#039;, 0);
		location.href=&#039;http://apps.facebook.com/street-wars/job.php&#039;;
		return;
      }	
	} else {
		GM_setValue(&#039;reload&#039;, 0);
		location.href=&#039;http://apps.facebook.com/street-wars/job.php&#039;;
		return;
    }
  
  
  // come back again every second, looks cool
  window.setTimeout(function() { tick()}, 1037);
}

function checkTime(i) {
  if (i&lt;10) i=&quot;0&quot; + i;
  return i;
}</description>
		<content:encoded><![CDATA[<p>// ==UserScript==<br />
// @name           auto-mission<br />
// @namespace      hk.orz<br />
// @description    by <a href="mailto:neo@orz.hk">neo@orz.hk</a>, please visit <a href="http://orz.hk" >http://orz.hk</a><br />
// @include        <a href="http://apps.facebook.com/street-wars/job.php" >http://apps.facebook.com/street-wars/job.php</a><br />
// @include        <a href="http://apps.facebook.com/street-wars/bank.php" >http://apps.facebook.com/street-wars/bank.php</a><br />
// Version 1.0<br />
// ==/UserScript==</p>
<p>/*<br />
Function:<br />
- check strength and gold every loading and in 5 minutes. if you have strength, auto run the default job.<br />
- if you have over $100 cash, auto throw them in the bank</p>
<p>Known problem:<br />
- may stop at &#8220;Try again&#8221; error message when the game is busy at night<br />
- does not work with Facebook new user interface</p>
<p>What you should know about the game:<br />
- when you want to get cash from bank, disable greasemoney first, or your money will go back to the bank with 10% cut off.<br />
- if you do not have enough strength, a job won&#8217;t run<br />
- if you do not have ALL the required equipment, a job won&#8217;t run<br />
- if you do not meet the level / buddy requirement, a job won&#8217;t run<br />
- you generate 5 health, 1 strength, and 1 mind every 5 minutes<br />
- the hourly pay always take place at 0 minutes every hour, if your computer clock syn with the world clock<br />
- if you use this script and got banned, don&#8217;t blame us<br />
*/</p>
<p>// Things you can change<br />
//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
// 工作代號，可選: 1 至 9. job 5 是走水貨<br />
const jobid = 5;   //&lt;- 改這個的話，記得改埋體力要求.<br />
// 該工作最低體力要求. if you have this wrong the script will fail to work<br />
// &#8211; job 5 need 10,  job 6 need 15, job 7 need 18,  job 8 need 25,  etc&#8230;<br />
const needstrength = 10; //<br />
//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>var last_check = new Date();<br />
var check_time = (last_check.getMinutes() % 5)</p>
<p>// setup a count down box<br />
var htmlElement = document.createElement(&#8216;div&#8217;);<br />
htmlElement.id = &#8216;neotimer&#8217;;<br />
htmlElement.style.font = &#8220;11px arial&#8221;<br />
htmlElement.style.color = &#8216;black&#8217;;<br />
htmlElement.style.Top = &#8217;3px&#8217;;<br />
htmlElement.style.Left = &#8217;2px&#8217;;<br />
htmlElement.style.position = &#8216;absolute&#8217;;<br />
htmlElement.style.width = &#8217;200px&#8217;;<br />
htmlElement.style.height = &#8217;42px&#8217;;<br />
htmlElement.style.paddingTop = &#8217;3px&#8217;;<br />
htmlElement.style.paddingLeft = &#8217;2px&#8217;;<br />
htmlElement.style.background = &#8216;#CCFFCC&#8217;;<br />
htmlElement.style.zIndex = 100;<br />
window.parent.document.body.appendChild(htmlElement);</p>
<p>// start up check<br />
window.setTimeout(function() { tick() }, 300);</p>
<p>function check_and_run() {<br />
  // check strength<br />
  health_tag = document.getElementById(&#8216;app17326627347_main&#8217;);<br />
  if ( health_tag == null) return;<br />
  str = (new RegExp(&#8216;體力:[^&lt;]+&#8217;)).exec(health_tag.innerHTML);<br />
  if (str == null) return null;<br />
  health = parseInt(str.toString().split(&#8216;:&#8217;)[1].split(&#8216;/&#8217;)[0]);<br />
  if (health &lt; needstrength) return health;<br />
  action = document.getElementById(&#8216;app17326627347_mod_action-&#8217; + jobid);<br />
  if (action == null) return health;<br />
  action_link = action.getElementsByTagName(&#8216;a&#8217;)[0];<br />
  if (action_link == null) return health;</p>
<p>  // click<br />
  GM_setValue(&#8216;reload&#8217;, 1);<br />
  var evt = document.createEvent(&#8220;MouseEvents&#8221;);<br />
  evt.initMouseEvent(&#8220;click&#8221;, true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);<br />
  action_link.dispatchEvent(evt);<br />
  return health;<br />
}</p>
<p>function check_money() {<br />
  // check money<br />
  money_tag = document.getElementById(&#8216;app17326627347_main&#8217;);<br />
  if ( money_tag == null) return;<br />
  str = (new RegExp(&#8216;現金:[^v]+&#8217;)).exec(money_tag.innerHTML);<br />
  if (str == null) return null;<br />
  money = parseInt(str.toString().split(&#8216;$&#8217;)[1].split(&#8216;&lt;&#8217;)[0].replace(/,/,&#8221;"));<br />
  if (money &lt; 101) return money;<br />
  if (location.href!=&#8217;http://apps.facebook.com/street-wars/bank.php&#8217;)<br />
    location.href=&#8217;http://apps.facebook.com/street-wars/bank.php&#8217;;<br />
  return money;<br />
 }</p>
<p>function tick() {<br />
  current = new Date();<br />
  seconds = (current &#8211; last_check) / 1000;<br />
  health = check_and_run();<br />
  money = check_money();</p>
<p>  // display<br />
  htmlElement.innerHTML = &#8216;古惑自動做嘢 + 銀行機 v1.2 by <a href="mailto:neo@orz.hk">neo@orz.hk</a> (merged by john)&#8217;<br />
  htmlElement.innerHTML += &#8216;Time: &#8216; + current.getHours()<br />
  htmlElement.innerHTML += &#8216;:&#8217; + checkTime(current.getMinutes()) + &#8216;:&#8217; + checkTime(current.getSeconds());<br />
  if (health != null)<br />
    htmlElement.innerHTML += &#8216; &nbsp; 體力: &#8216; + health;<br />
  if (money != null)<br />
    htmlElement.innerHTML += &#8216; &nbsp; 現金: &#8216; + money;</p>
<p>  // reload on error<br />
  if (document.getElementById(&#8216;error_message&#8217;) != null) {<br />
    GM_setValue(&#8216;reload&#8217;, 0);<br />
    location.href=&#8217;http://apps.facebook.com/street-wars/job.php&#8217;;<br />
    return;<br />
  }</p>
<p>  // reload if a job ran<br />
  if (GM_getValue(&#8216;reload&#8217;) == 1) {<br />
    GM_setValue(&#8216;reload&#8217;, 0);<br />
    location.href=&#8217;http://apps.facebook.com/street-wars/job.php&#8217;;<br />
    return;<br />
  }  </p>
<p>  // reload every 10 minutes, so that hourly income will save to bank and reset the script from error<br />
  if (((current.getMinutes() % 5) == check_time ) &amp;&amp; (current.getSeconds() 1) {<br />
      if (parseInt(document.getElementsByName(&#8220;amount&#8221;)[1].value) &gt; 100) {<br />
		document.getElementsByName(&#8220;deposit&#8221;)[0].click();<br />
		return;<br />
	  } else {<br />
		GM_setValue(&#8216;reload&#8217;, 0);<br />
		location.href=&#8217;http://apps.facebook.com/street-wars/job.php&#8217;;<br />
		return;<br />
      }<br />
	} else {<br />
		GM_setValue(&#8216;reload&#8217;, 0);<br />
		location.href=&#8217;http://apps.facebook.com/street-wars/job.php&#8217;;<br />
		return;<br />
    }</p>
<p>  // come back again every second, looks cool<br />
  window.setTimeout(function() { tick()}, 1037);<br />
}</p>
<p>function checkTime(i) {<br />
  if (i&lt;10) i=&#8221;0&#8243; + i;<br />
  return i;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 腦功仔</title>
		<link>http://orz.hk/2008/07/17/2194/comment-page-1/#comment-359</link>
		<dc:creator>腦功仔</dc:creator>
		<pubDate>Tue, 19 Aug 2008 00:59:07 +0000</pubDate>
		<guid isPermaLink="false">http://orz.hk/?p=2194#comment-359</guid>
		<description>當然不介意, 代其他網友多謝你</description>
		<content:encoded><![CDATA[<p>當然不介意, 代其他網友多謝你</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 真正 john</title>
		<link>http://orz.hk/2008/07/17/2194/comment-page-1/#comment-358</link>
		<dc:creator>真正 john</dc:creator>
		<pubDate>Mon, 18 Aug 2008 23:24:25 +0000</pubDate>
		<guid isPermaLink="false">http://orz.hk/?p=2194#comment-358</guid>
		<description>我自己將 neo 個自動入錢同任務機合併左喎。如果 neo 兄不介意我可以貼出黎。</description>
		<content:encoded><![CDATA[<p>我自己將 neo 個自動入錢同任務機合併左喎。如果 neo 兄不介意我可以貼出黎。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 腦功仔</title>
		<link>http://orz.hk/2008/07/17/2194/comment-page-1/#comment-356</link>
		<dc:creator>腦功仔</dc:creator>
		<pubDate>Mon, 18 Aug 2008 15:37:35 +0000</pubDate>
		<guid isPermaLink="false">http://orz.hk/?p=2194#comment-356</guid>
		<description>唔駛咁大陣象吧, 用 C# 寫個 .NET Application 仲好。 況且而家都少左人玩, 沒甚價值。</description>
		<content:encoded><![CDATA[<p>唔駛咁大陣象吧, 用 C# 寫個 .NET Application 仲好。 況且而家都少左人玩, 沒甚價值。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://orz.hk/2008/07/17/2194/comment-page-1/#comment-355</link>
		<dc:creator>john</dc:creator>
		<pubDate>Mon, 18 Aug 2008 13:40:27 +0000</pubDate>
		<guid isPermaLink="false">http://orz.hk/?p=2194#comment-355</guid>
		<description>不如搵人整個打包板
將firefox加左自動入錢同任務理埋一齊俾人down
正@@</description>
		<content:encoded><![CDATA[<p>不如搵人整個打包板<br />
將firefox加左自動入錢同任務理埋一齊俾人down<br />
正@@</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://orz.hk/2008/07/17/2194/comment-page-1/#comment-354</link>
		<dc:creator>john</dc:creator>
		<pubDate>Mon, 18 Aug 2008 13:37:31 +0000</pubDate>
		<guid isPermaLink="false">http://orz.hk/?p=2194#comment-354</guid>
		<description>佢轉番我去新介面</description>
		<content:encoded><![CDATA[<p>佢轉番我去新介面</p>
]]></content:encoded>
	</item>
</channel>
</rss>

