OK論壇

 找回密碼
 註冊
查看: 3508|回復: 0

[腳本] [筆記]OnPCLoadMapEvent的使用

[複製鏈接]
  • TA的每日心情
    開心
    2019-8-18 04:57 PM
  • 簽到天數: 2148 天

    連續簽到: 1 天

    [LV.Master]伴壇終老

    發表於 2010-12-11 00:59:56 | 顯示全部樓層 |閱讀模式
    原文說明
    This special label will trigger once a player steps in a map marked with the
    'loadevent' mapflag and attach its RID. The fact that this label requires a
    mapflag for it to work is because, otherwise, it'd be server-wide and trigger
    everytime a player would change maps. Imagine the server load with 1,000 players
    (oh the pain...)


    功能說明
    當玩家進入特定地圖時候, 自動執行本標籤


    範例
    1. OnPCLoadMapEvent:
    2. getmapxy(.@m$,.@x,.@y,0);
    3. if(.@m$=="prontera"){
    4.   mes "歡迎光臨普德隆拉";
    5.   close;
    6. }
    7. end;
    複製代碼
    注意
    該地圖必須有loadevent這mapflag
    1. prontera mapflag loadevent
    複製代碼
    回復

    使用道具 舉報

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

    本版積分規則

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

    GMT+8, 2024-4-25 01:22 AM , Processed in 0.055663 second(s), 23 queries , Gzip On.

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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