染色腳本錯誤
本帖最後由 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;
} (這段發現錯誤)
請大大幫修正 map 錯 誤 回 報 圖 呢 ? 本帖最後由 CLAMP1028 於 2009-5-19 05:22 AM 編輯
最後面在補上一個}就可以了
如下:
http://1.0px.cn/mgt/245B2E238EC9CC33C085023C6D155FC7.gif
knight_1-1.gat,59,101,4《TAB》script《TAB》服裝設計師《TAB》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;
}
}
頁:
[1]