Facebook 辦工室 Online 自動機 by Moochi

You may also like...

29 Responses

  1. eric says:

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

  2. john says:

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

  3. Moochi says:

    我明喇 ~

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

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

  4. eric says:

    我既意思係你個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 喇

  5. eric says:

    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;
    }

  6. eric says:

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

  7. Moochi says:

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

    thx ~~~~

  8. eric says:

    諗漏左 jobspirit >= relaxspirit ???

    唔明

  9. Moochi says:

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

  10. eric says:

    明 ^^

  11. Moochi says:

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

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

  12. 腦功仔 says:

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

  13. Moochi says:

    好呀 ~
    唔該腦功仔 ~~

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

  14. 慧慧 says:

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

  15. Moochi says:

    絕對會自動幫你儲錢入紅簿仔~
    “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; //到達現金上限會入紅簿仔

  16. john says:

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

  17. john says:

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

  18. Moochi says:

    Re John:

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

  19. eric says:

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

  20. eric says:

    依家打交有得揀隻揪, 正

  21. eric says:

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

  22. 慧慧 says:

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

  23. eric says:

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

  24. Moochi says:

    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
    */

  25. 慧慧 says:

    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工作~~

  26. Moochi says:

    Re: 慧慧

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

    你 get 到嗎??

  27. 慧慧 says:

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

  28. 慧慧 says:

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

Leave a Reply

Your email address will not be published. Required fields are marked *