OK論壇

 找回密碼
 註冊
查看: 1722|回復: 2

染色腳本錯誤

 關閉 [複製鏈接]
  • TA的每日心情

    2010-5-27 07:21 PM
  • 簽到天數: 4 天

    連續簽到: 0 天

    [LV.2]偶爾看看I

    發表於 2009-5-18 20:39:18 | 顯示全部樓層 |閱讀模式
    JA
    私服版號: Jathena.Net+v1.05MySQLMSSQLAccess【繁體】【完整版】
    問題內容: 腳本問題
    本帖最後由 firemusic 於 2009-5-19 07:20 PM 編輯

    這個腳本我在開私服的時候偵測到錯誤

    我稍微看了一下似乎是這段


    knight_1-1.gat,59,101,4    script    服裝設計師    71,{
       mes "[服裝設計師]";
       mes "我是服裝設計師果果,請問你要染衣服嗎?";
       next;
       switch(select("把衣服染顏色","把衣服還原顏色")) {
       case 1:
           mes "[服裝設計師";
           mes "很好,請選擇1種方式...";
           next;
           switch(select("邊看邊選","直接輸入顏色代號"))
           {
           case 1:
               do {
               if(@yanse >= 77) {
               mes "[服裝設計師]";
               mes "所有的顏色你都看過了,你決定要哪款了嗎?";
               close;
               break;
               }
        if(class ==29 ) {
        mes "[服裝設計師]";
        mes "Sorry!您的職業並不適合使用唷";
        mes "謝謝您的支持,歡迎在度光臨";
        close;
        }
               set @yanse,@yanse+1;
               setlook 7,@yanse;
               mes "[服裝設計師]";
               mes "覺得這款如何?";
               next;
               } while(select("下一款","確定")==1);
               mes "[服裝設計師]";
               mes "完成了,希望你對它也比較滿意吧!";
               close;
               break;
           case 2:
               mes "[服裝設計師]";
               mes "請輸入一個大於0,小於77的?字";
               next;
               do {
               input @yanse;
               if((@yanse <0) || (@yanse >77)) {
               mes "[服裝設計師]";
               mes "對不起,輸入的範圍有誤.";
               close;
               break;
               }
        if(class ==29 ) {
        mes "[服裝設計師]";
        mes "Sorry!您的職業並不適合使用唷";
        mes "謝謝您的支持,歡迎在度光臨";
        close;
        }
               setlook 7,@yanse;
               mes "[服裝設計師]";
               mes "你決定要這款了嗎?";
               next;
               } while(select("確定","重新輸入")==2);
               mes "[服裝設計師]";
               mes "完成了,希望你對它也比較滿意吧!";
               close;
               break;
    }
       case 2:
           mes "[服裝設計師]";
           mes "是否確定要把衣服顏色還原呢?";
           next;
           menu "是的,我要還原",-,"?束對話",G_end;
           setlook 7,0;
           mes "[服裝設計師]";
           mes "好的,完成了...";
       G_end:
           close;
    } (這段發現錯誤)

    請大大幫修正
    回復

    使用道具 舉報

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

    連續簽到: 1 天

    [LV.Master]伴壇終老

    發表於 2009-5-18 20:41:34 | 顯示全部樓層
    map 錯 誤 回 報 圖 呢 ?
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情

    2010-8-8 12:04 AM
  • 簽到天數: 5 天

    連續簽到: 0 天

    [LV.2]偶爾看看I

    發表於 2009-5-19 05:20:32 | 顯示全部樓層
    本帖最後由 CLAMP1028 於 2009-5-19 05:22 AM 編輯

    最後面在補上一個}就可以了

    如下:

    1. knight_1-1.gat,59,101,4《TAB》script《TAB》服裝設計師《TAB》71,{
    2.    mes "[服裝設計師]";
    3.    mes "我是服裝設計師果果,請問你要染衣服嗎?";
    4.    next;
    5.    switch(select("把衣服染顏色","把衣服還原顏色")) {
    6.    case 1:
    7.        mes "[服裝設計師";
    8.        mes "很好,請選擇1種方式...";
    9.        next;
    10.        switch(select("邊看邊選","直接輸入顏色代號"))
    11.        {
    12.        case 1:
    13.            do {
    14.            if(@yanse >= 77) {
    15.            mes "[服裝設計師]";
    16.            mes "所有的顏色你都看過了,你決定要哪款了嗎?";
    17.            close;
    18.            break;
    19.            }
    20.     if(class ==29 ) {
    21.     mes "[服裝設計師]";
    22.     mes "Sorry!您的職業並不適合使用唷";
    23.     mes "謝謝您的支持,歡迎在度光臨";
    24.     close;
    25.     }
    26.            set @yanse,@yanse+1;
    27.            setlook 7,@yanse;
    28.            mes "[服裝設計師]";
    29.            mes "覺得這款如何?";
    30.            next;
    31.            } while(select("下一款","確定")==1);
    32.            mes "[服裝設計師]";
    33.            mes "完成了,希望你對它也比較滿意吧!";
    34.            close;
    35.            break;
    36.        case 2:
    37.            mes "[服裝設計師]";
    38.            mes "請輸入一個大於0,小於77的?字";
    39.            next;
    40.            do {
    41.            input @yanse;
    42.            if((@yanse <0) || (@yanse >77)) {
    43.            mes "[服裝設計師]";
    44.            mes "對不起,輸入的範圍有誤.";
    45.            close;
    46.            break;
    47.            }
    48.     if(class ==29 ) {
    49.     mes "[服裝設計師]";
    50.     mes "Sorry!您的職業並不適合使用唷";
    51.     mes "謝謝您的支持,歡迎在度光臨";
    52.     close;
    53.     }
    54.            setlook 7,@yanse;
    55.            mes "[服裝設計師]";
    56.            mes "你決定要這款了嗎?";
    57.            next;
    58.            } while(select("確定","重新輸入")==2);
    59.            mes "[服裝設計師]";
    60.            mes "完成了,希望你對它也比較滿意吧!";
    61.            close;
    62.            break;
    63. }
    64.    case 2:
    65.        mes "[服裝設計師]";
    66.        mes "是否確定要把衣服顏色還原呢?";
    67.        next;
    68.        menu "是的,我要還原",-,"?束對話",G_end;
    69.        setlook 7,0;
    70.        mes "[服裝設計師]";
    71.        mes "好的,完成了...";
    72.    G_end:
    73.        close;
    74. }
    75.         }
    複製代碼
    回復 支持 反對

    使用道具 舉報

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

    本版積分規則

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

    GMT+8, 2024-4-30 06:23 PM , Processed in 0.059970 second(s), 21 queries , Gzip On.

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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