OK論壇

 找回密碼
 註冊
查看: 4340|回復: 16

[腳本] 小小礦工

[複製鏈接]
  • TA的每日心情
    開心
    2023-12-30 04:16 AM
  • 簽到天數: 1322 天

    連續簽到: 1 天

    [LV.10]以壇為家III

    發表於 2010-7-21 15:03:29 | 顯示全部樓層 |閱讀模式
    本帖最後由 sinya 於 2010-7-21 03:35 PM 編輯

    老外的作品 ...不過腦袋有點笨笨的
    火山3f 挖礦 我看是被怪 扁吧
    我把他改 蟻洞好了
    帶著 十字鎬 跟 礦工帽才能 挖礦....
    晚點發腳本 中文化中

    評分

    參與人數 1積分 +60 現金 +60 積極性 +60 收起 理由
    goddameit + 60 + 60 + 60 原創內容

    查看全部評分

    回復

    使用道具 舉報

  • TA的每日心情

    2010-8-5 07:05 AM
  • 簽到天數: 41 天

    連續簽到: 0 天

    [LV.5]常住居民I

    發表於 2010-7-21 16:49:41 | 顯示全部樓層
    話說,我自己有編寫類似腳本。

    就是判斷穿了某裝備+打了某怪物,會掉礦石…

    O_O|||


    話說,這個繁化的差別差在哪李呢?
    不是就是打怪嗎,還是他有特別NPC@@?
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2023-12-30 04:16 AM
  • 簽到天數: 1322 天

    連續簽到: 1 天

    [LV.10]以壇為家III

     樓主| 發表於 2010-7-21 17:06:44 | 顯示全部樓層
    本帖最後由 sinya 於 2010-7-21 05:24 PM 編輯

    差在 外國月亮比較圓

    沒啦

    怪物不死 這才叫挖礦 那有人礦石會死的
    可以掛網 挖礦  還有挖不到 頭上會有失敗效果
    挖到 會有 成功字眼  還會送exp 還有防雙開

    還會記錄你挖到什東西  還有防外掛功能

    月亮好大 好圓啊



    // MINE HIT CHANCE
    // When you attack a mineral vein, a random number is generated between 0 and
    // 10000. This number is then divided by 100 (so that it becomes a percentage)
    // and becomes your roll. The value below is also divided by 100.
    // Your Roll MUST be higher than the value below to score a successful hit on
    // the vein (i.e. get a piece of ore.)
    // Default: 9300 - 93% = 7% chance to hit at mining level 1
    mine_hit_chance: 9300

    // DEFAULT MINING EXP
    // On successful hit of a vein, exp is awarded.
    // Please Note:
    // This value can be overwritten my a monster spawn.
    mine_default_exp: 10

    // MAX MINING LEVEL
    // Note: There must be enough entries in the DB to support this value
    // otherwise the level is capped at the last entry in the DB
    // i.e. if you set this to 25 and there is only 20 levels in the DB, the max
    // level will become 20.
    mine_max_level: 20

    // ENABLE MINING LOG
    // Set to 1 to save every mined item to a DB
    // Set to 2 to save only items placed in a players inventory.
    mine_loggin: 1

    // ENABLE ERROR LOGGIN
    // Set to 1 to save errors and such to mining error DB
    mine_error_loggin: 1

    // ENABLE CASHSHOP ITEM
    // As default this value is set to 1. This means that ore is dropped beside the
    // player UNLESS they have used an item which gives them a limited number of "autoloot"s
    // Set to 0 and ore will be sent to players inventory instead.
    mine_item_autoloot: 1

    // PICKAXE ID
    // Item id of the WEAPON you wish to use as a pickaxe
    //// (I think i made it 2-handed weapons only or Right hand only. Please report your findings ^^)
    mine_pickaxe: 24822

    // MINE HAT ID
    // Item id of the HEAD TOP item you wish to use as a mining hat
    mine_helm: 5031

    // HIT MINERAL ANIMATION
    // effect id you wish to play on successful hit attempt (0 turns this off)
    mine_hit_id: 610

    // MISS MINERAL ANIMATION
    // effect id you wish to play on failed hit attempt (0 turns this off)
    mine_miss_id: 611

    // MINING LEVEL UP ANIMATION
    // effect id you wish to play on a mine level up (0 turns this off)
    mine_level_id: 337

    // !!! THIS FUNCTION CURRENTLY DOES NOT WORK !!!!
    // PICKAXE MAX ASPD
    // This will cap aspd at a value when using a pickaxe (thus preventing anyone for getting 199 aspd whilst wearing)
    // Value must be between 100 and 199
    // !!! THIS FUNCTION CURRENTLY DOES NOT WORK !!!!
    mine_max_aspd: 140

    // MINING RECLICK EVENT
    // This setting turns reclick event off or to a percentage of the time. For example
    // if set to 10: after every strike on a mineral there will be a 10% chance the player will
    // stop attacking. This will be used in conjuction with moving minerals to help prevent afk
    // miners / bot miners (as they will have to relocate and reclick the mineral at random intervals)
    // Value between 0 and 100. 0 being off, 100 being after every hit, stop attack
    // type: 0 = every time mineral recieves damage
    // type: 1 = every time "Success" is shown
    // type: 2 = every time "Failed" is shown
    // NOTE: This setting does not have to be used in conjuction with the next 2 settings !BUT! the next 2 settings
    // !REQUIRE! this enabled to work.
    mine_afk_type: 1
    mine_afk_click: 50

    // MINERAL RANDOM MOVE SETTING
    // Must be used in conjuction with the above setting. If set to -1; whenever a reclick event occurs, mineral will move
    // to a random new location. If set above 0; whenever a reclick event occurs, mineral will move by the value randomly across
    // either X,Y or X and Y co-ords (+/- randomly). Set to 0 to disable.
    // NOTE: If move path is blocked (Wall, etc etc), random co-ords will be choosen instead.
    mine_afk_move: 0

    // MINERAL RANDOM WARP SETTING
    // The above setting must be set to 0. The reclick setting must be used in conjuction to this.
    // Unlike the above command, this command will randomly warp away the mineral after X number of reclick events
    // have occurred. Setting this to 0 will disable. Max value is 500.
    // NOTE: This setting is global. If set to 2 for example, if X players are hitting the same mineral. After 2
    // reclick events the mineral will move, reguardless of who initiated the event
    mine_afk_warp: 2
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    慵懶
    2012-10-4 02:22 AM
  • 簽到天數: 177 天

    連續簽到: 5 天

    [LV.7]常住居民III

    發表於 2010-7-21 20:36:06 | 顯示全部樓層
    腳本區盡量不要發源碼的東西, 不然就不是腳本區了
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    慵懶
    2017-11-26 04:19 PM
  • 簽到天數: 227 天

    連續簽到: 1 天

    [LV.7]常住居民III

    發表於 2010-7-23 01:31:59 | 顯示全部樓層
    這好像怎打 都打不死....那是怪還是npc=  =?
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2023-12-30 04:16 AM
  • 簽到天數: 1322 天

    連續簽到: 1 天

    [LV.10]以壇為家III

     樓主| 發表於 2010-7-23 10:30:53 | 顯示全部樓層
    這好像怎打 都打不死....那是怪還是npc=  =?
    克雅 發表於 2010-7-23 01:31 AM



       是 怪物 , npc 好像不能打的樣子
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    慵懶
    2013-7-11 12:09 AM
  • 簽到天數: 118 天

    連續簽到: 1 天

    [LV.6]常住居民II

    發表於 2010-7-23 12:38:14 | 顯示全部樓層
    都動到源碼了........................
    :91:
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情

    2022-6-12 07:34 PM
  • 簽到天數: 260 天

    連續簽到: 1 天

    [LV.8]以壇為家I

    發表於 2010-7-23 19:39:24 | 顯示全部樓層
    回復 7# Alopex


    現在流行改源碼:91:
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    慵懶
    2020-7-2 07:05 PM
  • 簽到天數: 71 天

    連續簽到: 1 天

    [LV.6]常住居民II

    發表於 2010-7-24 16:02:12 | 顯示全部樓層
    OAO
    很好奇
    如果沒穿裝備打的話會扣多少(?
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2023-12-30 04:16 AM
  • 簽到天數: 1322 天

    連續簽到: 1 天

    [LV.10]以壇為家III

     樓主| 發表於 2010-7-24 16:12:22 | 顯示全部樓層
    空手 20160     我的str 1001  dex 1001
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    慵懶
    2020-7-2 07:05 PM
  • 簽到天數: 71 天

    連續簽到: 1 天

    [LV.6]常住居民II

    發表於 2010-7-24 16:15:29 | 顯示全部樓層
    空手 20160     我的str 1001  dex 1001
    sinya 發表於 2010-7-24 04:12 PM



        那...為甚麼要穿裝備後才能打~"~(??
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2023-12-30 04:16 AM
  • 簽到天數: 1322 天

    連續簽到: 1 天

    [LV.10]以壇為家III

     樓主| 發表於 2010-7-24 16:33:29 | 顯示全部樓層
    因為挖礦 要穿 專業的裝備 才挖的到  :m04318

    作者的idea
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    慵懶
    2020-7-2 07:05 PM
  • 簽到天數: 71 天

    連續簽到: 1 天

    [LV.6]常住居民II

    發表於 2010-7-24 16:36:00 | 顯示全部樓層
    因為挖礦 要穿 專業的裝備 才挖的到  

    作者的idea
    sinya 發表於 2010-7-24 04:33 PM



        這個沒有源碼吧(?
    感覺前面的大大說了有源碼
    有點好奇到底是哪裡
    (OS:
    1. *autobonus <bonus script>,<rate>,<duration>{,<flag>,{<other script>}};
    複製代碼

    可以達到類似目的
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2023-12-30 04:16 AM
  • 簽到天數: 1322 天

    連續簽到: 1 天

    [LV.10]以壇為家III

     樓主| 發表於 2010-7-24 16:58:15 | 顯示全部樓層
    本帖最後由 sinya 於 2010-7-24 05:00 PM 編輯

    原碼能控制的比較多 比如 挖的速度 怪的hp 不減 還有檢查人物是不是 掛網狀態

    還有能讀取設定文件檔 這樣顯的比較方便
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    慵懶
    2020-7-2 07:05 PM
  • 簽到天數: 71 天

    連續簽到: 1 天

    [LV.6]常住居民II

    發表於 2010-7-24 17:03:38 | 顯示全部樓層
    原碼能控制的比較多 比如 挖的速度 怪的hp 不減 還有檢查人物是不是 掛網狀態

    還有能讀取設定文件檔 這樣 ...
    sinya 發表於 2010-7-24 04:58 PM



        了改>V<((問題結束
    回復 支持 反對

    使用道具 舉報

    您需要登錄後才可以回帖 登錄 | 註冊

    本版積分規則

    Archiver|手機版|小黑屋|OK討論區

    GMT+8, 2024-4-30 02:53 PM , Processed in 0.062618 second(s), 22 queries , Gzip On.

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回復 返回頂部 返回列表