29th Aug, 2008

Facebook 辦工室 Online 自動機 by Moochi

辦公室online-auto 試版…
基本上用法同真正john果個一樣…

const jobid = 6; //做第幾件工作
const jobspirit = 2; //工作所需精神
const relaxid = 5; //減壓工作
const relaxspirit = 1; //減壓工作所需精神
const maxpressure = 5; //到達壓力上限會做減壓工作

(有咩事唔好怪我…)

下載

分享這編文章:
  • Facebook
  • Twitter
  • Digg
  • del.icio.us
  • Yahoo! Buzz
  • StumbleUpon

相關文章

回應

個script 唔識得係到達max pressure 時做減pressure 工作喎

eric on 2008-08-29 22:56

係爆壓力先會做唔到野?
仲以為係打工仔咁
不如整個買野食黎-壓力

john on 2008-08-30 00:17

我明喇 ~

因為壓力未到 5 都會做 jobid=6(壓力+3) 果個工作,
所以當 壓力=4, 段script會照做jobid=6一次,
變左 壓力=7…

我試下加番個 offset 落去先…..
(未整好之前就manual加個offset先填maxpressure啦 …^^”)

Moochi on 2008-08-30 00:21

我既意思係你個script 行function check & run 時唔會理佢係咪過左max pressure, 所以會行左function check & run 都唔行function check pressure, 我認為function check & run 要加句 [if (pressure > maxpressure) return spirit;] 但係就咁加佢唔識work (我唔係好識javascript) 所以我直頭將function check pressure 既 pressure define [ pressure_tag = document.getElementById('app21745179649_main');
if ( pressure_tag == null) return;
str = (new RegExp('壓力:[^v]+’)).exec(pressure_tag.innerHTML);
if (str == null) return null;
pressure = parseInt(str.toString().split(‘:’)[1].split(‘/’)[0]);]抄晒上去function check & run 裡面, 咁佢依家就work 喇

eric on 2008-08-30 00:32

function check_and_run() {
// check spirit
spirit_tag = document.getElementById(‘app21745179649_main’);
if ( spirit_tag == null) return;
str = (new RegExp(‘精神:[^v]+’)).exec(spirit_tag.innerHTML);
if (str == null) return null;
spirit = parseInt(str.toString().split(‘:’)[1].split(‘/’)[0]);
pressure_tag = document.getElementById(‘app21745179649_main’);
if ( pressure_tag == null) return;
str = (new RegExp(‘壓力:[^v]+’)).exec(pressure_tag.innerHTML);
if (str == null) return null;
pressure = parseInt(str.toString().split(‘:’)[1].split(‘/’)[0]);
if (pressure > maxpressure) return spirit;
if (spirit < jobspirit) return spirit;
action = document.getElementById(‘app21745179649_mod_action-’ + jobid);
if (action == null) return spirit;
action_link = action.getElementsByTagName(‘a’)[0];
if (action_link == null) return spirit;

// click
GM_setValue(‘reload’, 1);
var evt = document.createEvent(“MouseEvents”);
evt.initMouseEvent(“click”, true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
action_link.dispatchEvent(evt);
return spirit;
}

eric on 2008-08-30 00:34

因為唔識, 用左兩個幾鐘諗同試, 希望幫到你

eric on 2008-08-30 00:40

icic ~~
我諗漏左 jobspirit >= relaxspirit 0既 case ….

thx ~~~~

Moochi on 2008-08-30 00:41

諗漏左 jobspirit >= relaxspirit ???

唔明

eric on 2008-08-30 00:46

我一廂情願咁覺得「想做0既工作」一定大過「減壓工作」,
所以 check_and_run() 比 check_pressure() 行先, 咪好似無問題0羅…

Moochi on 2008-08-30 00:52

明 ^^

eric on 2008-08-30 00:53

0係 eric debug 下,
重新 rearrange 過個 sequence,

http://rapidshare.com/files/141106811/auto_office-wars_v1_1.user.js.html

Moochi on 2008-08-30 01:55

駛唔駛我將個新版本放係個新 post 度?

腦功仔 on 2008-08-30 23:50

好呀 ~
唔該腦功仔 ~~

(個reply0係心裡面讀一讀…
好寒…. XD)

Moochi on 2008-08-31 00:19

請問這程式!會否自動彈左去銀行個part幫你儲錢錢入紅簿仔既?
因為我剛剛試過啊~

慧慧 on 2008-09-01 01:17

絕對會自動幫你儲錢入紅簿仔~
“2008-08-30 1:55 am” 新果個script有個”maxmoney”, 可以改現金去到幾多先入錢 ~

const jobid = 7; //想做邊份工
const jobspirit = 2; //工作所需精神
const relaxid = 5; //減壓工作
const relaxspirit = 1; //減壓工作所需精神
const maxpressure = 5; //到達壓力上限會做減壓工作
const maxmoney = 101; //到達現金上限會入紅簿仔

Moochi on 2008-09-01 01:43

整埋食野版-壓得唔得
知道好煩吧

john on 2008-09-01 13:35

¦Û°Ê¿ì¤u¦s¿ú¾÷ v1.1
唔掂
開到都變亂碼

john on 2008-09-01 13:36

Re John:

你係咪改過個 script ??
要 save 做 “utf-8″
唔好 save 做 “ansi”

Moochi on 2008-09-01 18:34

中文windows 既js 同英文windows 整既js好似有唔同的

eric on 2008-09-01 21:37

依家打交有得揀隻揪, 正

eric on 2008-09-01 21:38

check & run 最尾個行個”health” 我諗應該要改做”spirit”

eric on 2008-09-01 22:00

我又想問問~假設我7 lv~
但係佢依然幫我做3 lv工作既..點解既~

慧慧 on 2008-09-03 11:53

你要自己用notepad 開左個file 改裡面工作既id

eric on 2008-09-03 23:05

Re: 慧慧

如eric所言咁做就應該 ok ~
新果個 script 我加左 d example 入去…
依家我加多一 d 我新見到0既 …

const jobid = 7; //想做邊份工
const jobspirit = 2; //工作所需精神
const relaxid = 5; //減壓工作
const relaxspirit = 1; //減壓工作所需精神
/*
倒垃圾 jobid=1, jobspirit=1
執拾工作地方 jobid=2, jobspirit=1
買六合彩 relaxid=3, relaxspirit=1
整理文件 jobid=4, jobspirit=1
請同事食零食 relaxid=5, relaxspirit=1
睇八卦雜誌 jobid=6, jobspirit=2
記下每個同事的生日 jobid=7, jobspirit=2
比較同事人工 jobid=8, jobspirit=2
睇招聘雜誌搵工 jobid=9, jobspirit=2
同朋友傾電話 relaxid=10, relaxspirit=2
偷偷地去見工 jobid=11, jobspirit=2
請病假 relaxid=12, relaxspirit=2
聽音樂 jobid=13, jobspirit=2
整理Email jobid=14, jobspirit=3
*/

Moochi on 2008-09-04 02:11

const jobid = 8; //想做邊份工
const jobspirit = 2; //工作所需精神
const relaxid = 5; //減壓工作
const relaxspirit = 2; //減壓工作所需精神
/*
倒垃圾 jobid=1, jobspirit=1
執拾工作地方 jobid=2, jobspirit=1
買六合彩 relaxid=3, relaxspirit=1
整理文件 jobid=4, jobspirit=1
請同事食零食 relaxid=5, relaxspirit=1
睇八卦雜誌 jobid=6, jobspirit=2
記下每個同事的生日 jobid=7, jobspirit=2
比較同事人工 jobid=8, jobspirit=2
睇招聘雜誌搵工 jobid=9, jobspirit=2
同朋友傾電話 relaxid=10, relaxspirit=2
偷偷地去見工 jobid=11, jobspirit=2
請病假 relaxid=12, relaxspirit=2
聽音樂 jobid=13, jobspirit=2
整理Email jobid=14, jobspirit=3
*/
const maxpressure = 5; //到達壓力上限會做減壓工作
const maxmoney = 101; //到達現金上限會入紅簿仔

可唔可以幫我看看邊處出錯~~
我8 lv
應該做 睇招聘雜誌搵工
但係佢依然幫我做7LV工作~~

慧慧 on 2008-09-04 18:31

Re: 慧慧

haha ~
因為你(妳?)有 d 野誤會左….
jobid 同 relaxid 唔係相對你角色個 lv ….
id number 只係d工作0係facebook網頁0既排序….
如果你想做”睇招聘雜誌搵工”,
jobid 同 jobspirit 應該睇呢行嘛… =.=
“睇招聘雜誌搵工 jobid=9, jobspirit=2″

你 get 到嗎??

Moochi on 2008-09-05 00:29

Moochi ..我明白了~~
唔該晒你replay我喔~^^”

慧慧 on 2008-09-05 19:44

新版face book~好似用唔到辦工室 Online 自動機

慧慧 on 2008-09-23 12:34

http://orz.hk/2008/09/13/2732/

真正 john on 2008-09-23 14:06

你的回應






Your response: