OK論壇

 找回密碼
 註冊
查看: 1704|回復: 10

腳本錯誤訊息無法得知

 關閉 [複製鏈接]

該用戶從未簽到

發表於 2010-8-25 10:17:18 | 顯示全部樓層 |閱讀模式
本帖最後由 MiracleRagnarok 於 2010-8-25 01:45 PM 編輯

錯誤訊息以下


  1. [錯誤]: 加載NPC文件: npc/RO/XXX.txt
  2. script error on npc/RO/XXX.txt line 200
  3.     parse_simpleexpr: unmatch ')'
  4.    199 : {
  5. *  200 :        if (getpcxy'('getcharid(0),1) != "pvp_n_5-5") {
  6.    201 :        delitem 19221,countitem(19221);
  7.    202 :        close;
  8.    203 :        }
  9.    204 :        if ($@ksc==10) {
  10.    205 :        mes "[提示]";
複製代碼



請問他是錯在哪裡呢?
回復

使用道具 舉報

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

    連續簽到: 1 天

    [LV.Master]伴壇終老

    發表於 2010-8-25 10:55:00 | 顯示全部樓層
    eA沒有getpcxy 那是Ja的
    *getmapxy("<variable for map name>",<variable for x>,<variable for y>,<type>{,"<search string>"})

    This function will locate a character object, NPC object or pet's coordinates
    and place their coordinates into the variables specified when calling it. It
    will return 0 if the search was successful, and -1 if the parameters given were
    not variables or the search was not successful.

    Type is the type of object to search for:

      0 - Character object
      1 - NPC object
      2 - Pet object
      3 - Monster object.
      
    While 3 is meant to look for a monster object, no searching will be done if you
    specify type 3, and the function will always return -1.

    The search string is optional. If it is not specified, the location of the
    invoking character will always be returned for types 0 and 2, the location of
    the NPC running this function for type 1.
    If a search string is specified, for types 0 and 1, the character or NPC with
    the specified name will be located. If type is 3, the search will locate the
    current pet of the character who's name is given in the search string, it will
    NOT locate a pet by name.

    What a mess. Example, a working and tested one now:

        prontera,164,301,3%TAB%script%TAB%Meh%TAB%730,{
            mes "My name is Meh. I'm here so that Nyah can find me.";
            close;
        }

        prontera,164,299,3%TAB%script%TAB%Nyah%TAB%730,{
            mes "My name is Nyah.";
            mes "I will now search for Meh all across the world!";
            if (getmapxy(@mapname$,@mapx,@mapy,1,"Meh")!=0) goto Notfound;
            mes "And I found him on map "+@mapname$+" at X:"+@mapx+" Y:"+@mapy+" !";
            close;
        Notfound:
            mes "I can't seem to find Meh anywhere!";
            close;
       }
       
    Notice that NPC objects disabled with 'disablenpc' will still be located.
    回復 支持 反對

    使用道具 舉報

    該用戶從未簽到

     樓主| 發表於 2010-8-25 13:36:17 | 顯示全部樓層
    瞭解。

    ((怎會再EA腳本找到JA=             =

    ((恩,感謝,但這腳本不是在OK的
    回復 支持 反對

    使用道具 舉報

    該用戶從未簽到

     樓主| 發表於 2010-8-25 13:44:51 | 顯示全部樓層
    那改成

    getmapxy("<variable for map name>",<variable for x>,<variable for y>,<type>{,"<search string>"})

    getmapxy("pvp_n_5-5",0,0,0{,"<search string>"})

    紅色的是什麼意思?
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2016-8-7 08:11 AM
  • 簽到天數: 534 天

    連續簽到: 7 天

    [LV.9]以壇為家II

    發表於 2010-8-25 14:25:33 | 顯示全部樓層
    1.搜尋類型.
    2. #2 裡不是有範例??
    1. if (getmapxy(@mapname$,@mapx,@mapy,1,"Meh")!=0) goto Notfound;
    2. mes "And I found him on map "+@mapname$+" at X:"+@mapx+" Y:"+@mapy+" !";
    3. close;
    4. Notfound:
    5. mes "I can't seem to find Meh anywhere!";
    6. close;
    複製代碼
    回復 支持 反對

    使用道具 舉報

    該用戶從未簽到

     樓主| 發表於 2010-8-25 15:01:58 | 顯示全部樓層



    真的不知道怎麼修改,

    看了好久還是不會設定,

    請幫忙>"<

    本帖子中包含更多資源

    您需要 登錄 才可以下載或查看,沒有帳號?註冊

    x
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2016-8-7 08:11 AM
  • 簽到天數: 534 天

    連續簽到: 7 天

    [LV.9]以壇為家II

    發表於 2010-8-25 19:11:41 | 顯示全部樓層
    1. getmapxy(@xxxx$,@mapx,@mapy,0);
    2. if (@xxxx$ != "pvp_n_5-5.gat"){}
    複製代碼
    回復 支持 反對

    使用道具 舉報

    該用戶從未簽到

     樓主| 發表於 2010-8-25 20:32:14 | 顯示全部樓層
    不太了解

    @xxxx$ 的xxxx 是什麼

    後面直接複製還是?
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2016-8-7 08:11 AM
  • 簽到天數: 534 天

    連續簽到: 7 天

    [LV.9]以壇為家II

    發表於 2010-8-25 21:00:03 | 顯示全部樓層
    那是範例,別複製貼上...=.=
    試著自己修一下,再加上
    回復 支持 反對

    使用道具 舉報

    該用戶從未簽到

     樓主| 發表於 2010-8-25 21:13:44 | 顯示全部樓層
    @xxxx$   代表什麼

    整句話又是什麼意思=          =
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2016-8-7 08:11 AM
  • 簽到天數: 534 天

    連續簽到: 7 天

    [LV.9]以壇為家II

    發表於 2010-8-25 21:31:00 | 顯示全部樓層
    1. getmapxy("@地圖名變數$",地圖x位置,地圖y位置,0);
    2. if (@地圖名變數$ != "遊戲地圖名pvp_n_5-5"){不在此 pvp_n_5-5 地圖的動作}
    複製代碼
    回復 支持 反對

    使用道具 舉報

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

    本版積分規則

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

    GMT+8, 2025-7-2 08:31 AM , Processed in 0.229689 second(s), 21 queries , Gzip On.

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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