OK論壇

 找回密碼
 註冊
查看: 2150|回復: 12

請問簡單的腳本指令

 關閉 [複製鏈接]

該用戶從未簽到

發表於 2010-8-28 18:35:56 | 顯示全部樓層 |閱讀模式
本帖最後由 MiracleRagnarok 於 2010-8-28 06:59 PM 編輯
  1. mapannounce "schg_dun01", "【幽靈的逆襲】你有10分鐘可以在此地圖進行戰鬥。",bc_map;
  2. monster "schg_dun01.gat",200,125,"--ja--",3003,1,"vs1-1_mob";
  3. monster "schg_dun01.gat",0,0,"--ja--",3004,5,"vs1-1_mob";
  4. monster "schg_dun01.gat",0,0,"--ja--",3005,20,"vs1-1_mob";
  5. sleep2 600000;

  6. mapannounce "schg_dun01", "【幽靈的逆襲】10分鐘的魔法時間到...將傳送離開!!",bc_map;
  7. killmonster "schg_dun01.gat","schg_dun01_mob";
  8. donpcevent ":ghost:OnStart1";
  9. areawarp "gschg_dun01.gat",0,0,300,300,"prontera.gat",116,74;
  10. end;
  11. OnStart1:
  12. stopnpctimer;
  13. end;
複製代碼



Q1:
第二行
  1. monster "schg_dun01.gat",200,125,"--ja--",3003,1,"vs1-1_mob";
複製代碼

該怎麼解釋以下?
  1. "schg_dun01.gat",200,125,"
複製代碼

該怎麼解釋以下?
  1. --ja--",3003,1,"vs1-1_mob";
複製代碼


Q2:
第八行該如何解釋?
  1. killmonster "schg_dun01.gat","schg_dun01_mob";
複製代碼



Q3:
bc_map 如何解釋?

  1. mapannounce "schg_dun01", "【幽靈的逆襲】10分鐘的魔法時間到...將傳送離開!!",bc_map;
複製代碼


A3:
  1. - bc_all: Broadcast message is sent server-wide (default
  2. - bc_map: Message is sent to everyone in the same map as the source of the broadcast (see below).
  3. - bc_area: Message is sent to players in the vecinity of the source.)
  4. - bc_self: Message is sent only to current player.
  5. You cannot use more than one target flag.
複製代碼


Q4:
如何解釋?

  1. donpcevent ":ghost:OnStart1";
複製代碼


A4:
  1. [ goto 的 再 延 伸 ]
  2. 是 移 動 到 標 籤那 如 果 要 移 動 到 某 個 NPC 的 某 個 標 籤 呢
  3. doevent "NPC-name::Onxxxx";
  4. donpcevent "NPC-name::Onxxxx";
複製代碼



Q5:
這個又該如何解釋?

  1. OnStart1:
  2. stopnpctimer;
複製代碼


A5:
  1. 移 動 到 那 標 籤 後 停 止 時 間 器
複製代碼











抱歉,小弟我還在學習,麻煩了 - -"

如有雷同,請告知,我立即改進。

- 我將答案PO到我的Q底下

- 這樣以便我收藏起來之後學系比較方便
回復

使用道具 舉報

  • TA的每日心情
    開心
    2019-8-18 04:57 PM
  • 簽到天數: 2148 天

    連續簽到: 1 天

    [LV.Master]伴壇終老

    發表於 2010-8-28 18:37:59 | 顯示全部樓層
    你 的 問 題 ?
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2019-8-18 04:57 PM
  • 簽到天數: 2148 天

    連續簽到: 1 天

    [LV.Master]伴壇終老

    發表於 2010-8-28 18:45:48 | 顯示全部樓層
    回復 支持 反對

    使用道具 舉報

    該用戶從未簽到

     樓主| 發表於 2010-8-28 18:46:03 | 顯示全部樓層
    回復 2# goddameit

    已經附上了

    您的速度也太快了吧

    1分鐘就回了=  ="傻眼



    對了! 我之前用你的 chess01的旗子腳本導致伺服器會 LAG...沒詳查原因

    後來把那腳本關閉了,現在又好想玩大大的象棋腳本...不知道會不會有類似情形

    p.s. chess02 那個腳本所附上的地圖 我用RE登入器傳送馬上跳窗結束= =
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2019-8-18 04:57 PM
  • 簽到天數: 2148 天

    連續簽到: 1 天

    [LV.Master]伴壇終老

    發表於 2010-8-28 18:46:24 | 顯示全部樓層
    Q2:
    *killmonster "<map name>","<event label>"{,<type>};

    This command will kill all monsters that were spawned with 'monster' or
    'addmonster' and have a specified event label attached to them. Commonly used to
    get rid of remaining quest monsters once the quest is complete.

    If the label is given as "All", all monsters which have their respawn times set
    to -1 (like all the monsters summoned with 'monster' or 'areamonster' script
    command, and all monsters summoned with GM commands, but no other ones - that
    is, all non-permanent monsters) on the specified map will be killed regardless
    of the event label value.

    As of r12876 killmonster now supports an optional argument type. Using 1 for type
    will make the command fire "OnMyMobDead" events from any monsters that do die
    as a result of this command.
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2019-8-18 04:57 PM
  • 簽到天數: 2148 天

    連續簽到: 1 天

    [LV.Master]伴壇終老

    發表於 2010-8-28 18:47:43 | 顯示全部樓層
    Q3:
    簡 單 說 就 是 公 告 給 誰 看
    *announce "<text>",<flag>{,<fontColor>{,<fontType>{,<fontSize>{,<fontAlign>{,<fontY>}}}}}};

    This command will broadcast a message to all or most players, similar to
    @kami/@kamib GM commands.

        announce "This will be shown to everyone at all in yellow.",0;

    The region the broadcast is heard in (target), source of the broadcast
    and the color the message will come up as is determined by the flags.

    The flag values are coded as constants in db/const.txt to make them easier to use.

    Target flags:
    - bc_all: Broadcast message is sent server-wide (default).
    - bc_map: Message is sent to everyone in the same map as the source of the broadcast (see below).
    - bc_area: Message is sent to players in the vecinity of the source.
    - bc_self: Message is sent only to current player.
    You cannot use more than one target flag.


    Source flags:
    - bc_pc: Broadcast source is the attached player (default).
    - bc_npc: Broadcast source is the NPC, not the player attached to the script
      (useful when a player is not attached or the message should be sent to those
      nearby the npc).
    You cannot use more than one source flag.

    Special flags:
    - bc_yellow: Broadcast will be displayed in yellow color (default).
    - bc_blue: Broadcast will be displayed in blue color.
    - bc_woe: Indicates that this broadcast is 'WoE Information' that can be disabled client-side.
    Due to the way client handles broadcasts, it is impossible to set both bc_blue and bc_woe.

    The optional parameters allow usage of broadcasts in custom colors, font-weights, sizes etc.
    If any of the optional parameters is used, special flag is ignored.
    Optional parameters may not work well (or at all) depending on a game client used.

    The color parameter is a single number which can be in hexadecimal notation.
    For example:
        announce "This will be shown to everyone at all in green.",bc_all,0x00FF00;
    Will display a global announce in green. The color format is in RGB (0xRRGGBB).

    In official scripts only two font-weights (types) are used:
    - normal (FW_NORMAL = 400, default),
    - bold (FW_BOLD = 700).

    Default font size is 12.

    Using this for private messages to players is probably not that good an idea,
    but it can be used instead in NPCs to "preview" an announce.

        // This will be a private message to the player using the NPC that made the
        // announcement
        announce "This is my message just for you",bc_blue|bc_self;

        // This will be shown on everyones screen that is in sight of the NPC.
        announce "This is my message just for you people here",bc_npc|bc_area;
    回復 支持 反對

    使用道具 舉報

    該用戶從未簽到

     樓主| 發表於 2010-8-28 18:48:47 | 顯示全部樓層
    回復 5# goddameit


        所謂的 type 怎麼運用...
    回復 支持 反對

    使用道具 舉報

    該用戶從未簽到

     樓主| 發表於 2010-8-28 18:50:48 | 顯示全部樓層
    回復 6# goddameit


        瞭解,所以 bc_map 他的用法有點像是 mapannounce -
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2019-8-18 04:57 PM
  • 簽到天數: 2148 天

    連續簽到: 1 天

    [LV.Master]伴壇終老

    發表於 2010-8-28 18:50:56 | 顯示全部樓層
    Q4:
    [ goto 的 再 延 伸 ]
    goto 是 移 動 到 標 籤
    那 如 果 要 移 動 到 某 個 NPC 的 某 個 標 籤 呢

    doevent "NPC-name::Onxxxx";
    donpcevent "NPC-name::Onxxxx";
    ( 以下可看可不看 )
    [ 收費教學 ]
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2019-8-18 04:57 PM
  • 簽到天數: 2148 天

    連續簽到: 1 天

    [LV.Master]伴壇終老

    發表於 2010-8-28 18:53:16 | 顯示全部樓層
    Q5:
    移 動 到 那 標 籤 後 停 止 時 間 器
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2019-8-18 04:57 PM
  • 簽到天數: 2148 天

    連續簽到: 1 天

    [LV.Master]伴壇終老

    發表於 2010-8-28 18:54:59 | 顯示全部樓層
    回復 8# MiracleRagnarok


       用 mapaanounc 可 以 指 定 地 圖 , 用 announce 就 直 接 是 執 行 者 的 地 圖
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2019-8-18 04:57 PM
  • 簽到天數: 2148 天

    連續簽到: 1 天

    [LV.Master]伴壇終老

    發表於 2010-8-28 18:55:55 | 顯示全部樓層
    回復 7# MiracleRagnarok


       如 果 不 知 道 就 用
    killmonsterall "地圖名稱";
    一 樣 達 到 清 空 怪 物
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2019-8-18 04:57 PM
  • 簽到天數: 2148 天

    連續簽到: 1 天

    [LV.Master]伴壇終老

    發表於 2010-8-28 18:57:44 | 顯示全部樓層
    回復 4# MiracleRagnarok


       西 洋 棋 嗎 ? 會 的 . 因 為 大 量 迴 圈 計 算 .
    暗 棋 地 圖 問 題 , 你 拿 chess01 下 去 改 檔 案 名 稱 改 成 chess02 就 可 或 是 映 射 地 圖 也 可
    回復 支持 反對

    使用道具 舉報

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

    本版積分規則

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

    GMT+8, 2025-7-6 02:43 PM , Processed in 0.066396 second(s), 20 queries , Gzip On.

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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