OK論壇

 找回密碼
 註冊
查看: 1677|回復: 3

物品兌換npc

[複製鏈接]

該用戶從未簽到

發表於 2008-11-1 18:20:01 | 顯示全部樓層 |閱讀模式
這是我自己練習寫的腳本

可是我只要讀取這個腳本 MAP私服開啟的就會跳掉

請問可以幫我看看哪裡有誤嘛




lighthalzen.gat,167,100,4 script 物品兌換Npc 809,{
mes "物品兌換Npc";
mes "你好,我的工作是讓你換取喜歡的物品";
mes "為了方便請你把所需的東西放在身上";
next;
        menu "我要兌換銀幣",A01,
             "我要兌換金幣",A02,
              "我要兌換天果",A03,
              "我要兌換天芽",A031,
              "我要兌換紫箱",A04,
              "我要兌換卡冊",A041,
              "我要兌換藍箱",A042,
              "我要兌換ALL5戒指",A05,
              "我要換取洞ALL5戒指,A051,
              "我要兌換女生榮耀,A06,
              "我要兌換週歲戒指,A061,
              "我要換取粉色戒指,A07,
              "我要換取女神頸鏈,A071,
              "我要換取石中劍R,A08,
              "我要換取織天使弓R,A081,
              "我要換取S妖耳,A09,
              "我要換取S煙斗,A091,
              "我不要服務",A10,
              "查看物品兌換規則",A11;

//銅換銀
  A01:
   if (countitem(673)<100) goto A10;

         mes "物品兌換Npc";
         mes "一次請用100個為單位定量換取喔";
  next;
  input @number;
         mes "物品兌換Npc";
         mes "你已經換取了銀幣,";
         mes "下次有空再來找我。再見!";
  delitem 673,100;
  getitem 675,1;
         close;
//銀換金
A02:
   if (countitem(675)<100) goto A10;

         mes "物品兌換Npc";
         mes "一次請用100個為單位定量換取喔";
  next;
  input @number;
         mes "物品兌換Npc";
         mes "你已經換取了金幣,";
         mes "下次有空再來找我。再見!";
  delitem 675,100;
  getitem 671,1;
         close;

//銅換天果
A03:
   if (countitem(673)<100) goto A10;

         mes "物品兌換Npc";
         mes "一次請用100個為單位定量換取喔";
  next;
  input @number;
         mes "物品兌換Npc";
         mes "你已經換取了天果,";
         mes "下次有空再來找我。再見!";
  delitem 675,100;
  getitem 607,50;
         close;
//銅換天芽
A031:
   if (countitem(673)<100) goto A10;

         mes "物品兌換Npc";
         mes "一次請用100個為單位定量換取喔";
  next;
  input @number;
         mes "物品兌換Npc";
         mes "你已經換取了天芽,";
         mes "下次有空再來找我。再見!";
  delitem 675,100;
  getitem 608,100;
         close;


//銀換紫箱
A04:
   if (countitem(675)<100) goto A10;

         mes "物品兌換Npc";
         mes "一次請用100個為單位定量換取喔";
  next;
  input @number;
         mes "物品兌換Npc";
         mes "你已經換取了紫箱,";
         mes "下次有空再來找我。再見!";
  delitem 675,100;
  getitem 617,50;
         close;

//銀換卡冊
A041:
   if (countitem(675)<100) goto A10;
         mes "物品兌換Npc";
         mes "一次請用100個為單位定量換取喔";
  next;
  input @number;
         mes "物品兌換Npc";
         mes "你已經換取了卡冊,";
         mes "下次有空再來找我。再見!";
  delitem 675,100;
  getitem 616,70;
         close;

//銀換卡冊
A042:
   if (countitem(675)<100) goto A10;

         mes "物品兌換Npc";
         mes "一次請用100個為單位定量換取喔";
  next;
  input @number;
         mes "物品兌換Npc";
         mes "你已經換取了藍箱,";
         mes "下次有空再來找我。再見!";
  delitem 675,100;
  getitem 603,100;
         close;

//銀換ALL5
A05:
   if (countitem(675)<50) goto A10;

         mes "物品兌換Npc";
         mes "一次請用50個為單位定量換取喔";
  next;
  input @number;
         mes "物品兌換Npc";
         mes "你已經換取了ALL5戒指,";
         mes "下次有空再來找我。再見!";
  delitem 675,50;
  getitem 2672,1;
         close;

//金換洞ALL5
A051:
   if (countitem(671)<@number) goto A10;

         mes "物品兌換Npc";
         mes "一次請用1個為單位定量換取喔";
  next;
  input @number;
         mes "物品兌換Npc";
         mes "你已經換取了ALL5戒指,";
         mes "下次有空再來找我。再見!";
  delitem 671,@number;
  getitem 2647,@number;
         close;

//金換ALL7
A06:
   if (countitem(671)<10) goto A10;

         mes "物品兌換Npc";
         mes "一次請用10個為單位定量換取喔";
  next;
  input @number;
         mes "物品兌換Npc";
         mes "你已經換取了ALL7戒指,";
         mes "下次有空再來找我。再見!";
  delitem 671,10;
  getitem 2668,1;
         close;

//金換週歲
A061:
   if (countitem(671)<15) goto A10;

         mes "物品兌換Npc";
         mes "一次請用15個為單位定量換取喔";
  next;
  input @number;
         mes "物品兌換Npc";
         mes "你已經換取了週歲戒指,";
         mes "下次有空再來找我。再見!";
  delitem 671,15;
  getitem 2631,1;
         close;

//金換粉色
A07:
   if (countitem(671)<150) goto A10;

         mes "物品兌換Npc";
         mes "一次請用150個為單位定量換取喔";
  next;
  input @number;
         mes "物品兌換Npc";
         mes "你已經換取了粉色戒指,";
         mes "下次有空再來找我。再見!";
  delitem 671,150;
  getitem 2670,1;
         close;

//金換女神
A071:
   if (countitem(671)<150) goto A10;

         mes "物品兌換Npc";
         mes "一次請用150個為單位定量換取喔";
  next;
  input @number;
         mes "物品兌換Npc";
         mes "你已經換取了女神頸鏈,";
         mes "下次有空再來找我。再見!";
  delitem 671,150;
  getitem 2630,1;
         close;

//金換石中劍R
A08:
   if (countitem(671)<60) goto A10;

         mes "物品兌換Npc";
         mes "一次請用60個為單位定量換取喔";
  next;
  input @number;
         mes "物品兌換Npc";
         mes "你已經換取了石中劍R,";
         mes "下次有空再來找我。再見!";
  delitem 671,60;
  getitem 13401,1;
         close;

//金換織天使弓R
A081:
   if (countitem(671)<25) goto A10;

         mes "物品兌換Npc";
         mes "一次請用25個為單位定量換取喔";
  next;
  input @number;
         mes "物品兌換Npc";
         mes "你已經換取了織天使弓R,";
         mes "下次有空再來找我。再見!";
  delitem 671,25;
  getitem 1729,1;
         close;

//銅換S妖耳
  A09:
   if (countitem(673)<50) goto A10;

         mes "物品兌換Npc";
         mes "一次請用100個為單位定量換取喔";
  next;
  input @number;
         mes "物品兌換Npc";
         mes "你已經換取了S妖耳,";
         mes "下次有空再來找我。再見!";
  delitem 673,50;
  getitem 2686,1;
         close;

//銅換S煙斗
  A09:
   if (countitem(673)<50) goto A10;

         mes "物品兌換Npc";
         mes "一次請用100個為單位定量換取喔";
  next;
  input @number;
         mes "物品兌換Npc";
         mes "你已經換取了S煙斗,";
         mes "下次有空再來找我。再見!";
  delitem 673,50;
  getitem 5220,1;
         close;



A10:
mes "物品兌換Npc";
mes "天底下可沒白吃的午餐阿";
close;

        A11:
        mes "物品兌換Npc";
        mse "50個銅幣換取S妖耳";
        mse "50個銅幣換取S煙斗";
        mes "100個銅幣換1銀幣";
        mes "100個銀幣換1金幣";
        mse "100個銅幣換取天芽100個";
        mes "100個銅幣換取天果50個";
        mes "100個銀幣換取50個紫箱";
        mes "100個銀幣換取100個籃箱";
        mes "100個銀幣換取70本卡冊";
        mse "50個銀幣換取1個all5戒指";
        mse "1個金幣換取1個洞all5戒指";
        mse "10個金幣換取all7戒指";
        mse "15個金幣換取週歲戒指";
        mse "150個金幣換取女神頸鏈";
        mse "150個金幣換取粉色戒指";
        mse "60個金幣換取石中劍R";
        mse "25個金幣換取織天使弓R";
        

        close;
}




那個 我分段了 可是還是讀取到這個腳本後跳掉


最後跳掉只有顯示 issing ''' at line 14 ..

[ 本帖最後由 qoo19890502 於 2008-11-2 01:00 AM 編輯 ]

本帖子中包含更多資源

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

x
  • TA的每日心情
    開心
    2021-12-17 05:30 AM
  • 簽到天數: 237 天

    連續簽到: 1 天

    [LV.7]常住居民III

    發表於 2008-11-1 18:44:03 | 顯示全部樓層
    lighthalzen.gat,167,100,4 script 物品兌換Npc 809,{

    用TAB分段

    另外請修改你的標題
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2021-12-17 05:30 AM
  • 簽到天數: 237 天

    連續簽到: 1 天

    [LV.7]常住居民III

    發表於 2008-11-1 19:56:33 | 顯示全部樓層
    你其他很多地方也要用TAB分段

    另外在跟你說一個問題

    你的input 是一個多餘的東西

    就算你輸入1000

    他也只會換一個給你
    回復 支持 反對

    使用道具 舉報

    該用戶從未簽到

     樓主| 發表於 2008-11-2 00:57:01 | 顯示全部樓層

    回覆 3樓的 pan00017 的帖子

    謝謝 我晚點再重寫一個試試看
    回復 支持 反對

    使用道具 舉報

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

    本版積分規則

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

    GMT+8, 2024-4-29 11:35 PM , Processed in 0.057251 second(s), 20 queries , Gzip On.

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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