hiphopiove 發表於 2014-5-27 13:28:00

道館頭飾領獎領的東西是UNLL,是不是有語法錯誤?

本帖最後由 hiphopiove 於 2014-5-28 06:33 PM 編輯

已解決~相信看得懂語法的可以知道從哪複製貼過去替代方案@@!

領獎的獎品是unll

是哪裡出問題嗎 ?

應該不是未知物品才對,那些物品都能創的出來

補充此報錯
http://i.imgur.com/QehIPmM.jpg-      script      道館設定      -1,{
OnInit:
      set $@C_Name_0$,"低階";
      set $@C_Name_1$,"中階";
      set $@C_Name_2$,"進階";
      set $@C_Name_3$,"高階";
      set $@C_Name_4$,"神階";
      set $@C_Name_5$,"終階";
      //報名費
      set $@C_Zeny_0,700000;
      set $@C_Zeny_1,2000000;
      set $@C_Zeny_2,6000000;
      set $@C_Zeny_3,15000000;
      set $@C_Zeny_4,30000000;
      set $@C_Zeny_5,50000000;
      //入場費
      set $@C_ZenyMax_0,200000;
      set $@C_ZenyMax_1,500000;
      set $@C_ZenyMax_2,3000000;
      set $@C_ZenyMax_3,7000000;
      set $@C_ZenyMax_4,15000000;
      set $@C_ZenyMax_5,25000000;
      set $@C_People_0,5;
      set $@C_People_1,8;
      set $@C_People_2,12;
      set $@C_People_3,15;
      set $@C_People_4,20;
      set $@C_People_5,30;
      setarray $@C_Mobid_0,1038,1039,1046,1086,1087,1112,1115,1147,1150,1157,1159,1190,1251,1252,1272,1312,1511,1688,1630;
      setarray $@C_Mobid_1,1038,1039,1046,1059,1112,1147,1190,1251,1252,1272,1312,1389,1418,1492,1511,1688,1630,2156,1885,1623,1583,1785;
      setarray $@C_Mobid_2,1658,1685,1708,1719,1734,1751,1768,1779,1832,1871,1873,1990,1917,2087;
      setarray $@C_Mobid_3,1646,1647,1648,1649,1650,1651,1917,1873,1871,1832,1751,1734,1708;
      setarray $@C_Mobid_4,1646,1647,1648,1649,1650,1651,2235,2236,2237,2238,2239,2240,2241;
      setarray $@C_Mobid_5,1646,1647,1648,1649,1650,1651,2235,2236,2237,2238,2239,2240,2241,1646,1647,1648,1649,1650,1651,1917,1873,1871,1832,1751,1734,1708,1658,1685,1708,1719,1734,1751,1768,1779,1832,1871,1873,1990,1917,2087;
      setarray $@C_MobAmount_0,1,1,1,1,1,2,3;
      setarray $@C_MobAmount_1,1,1,1,1,1,1,1,2,2,3;
      setarray $@C_MobAmount_2,1,1,1,1,1,1,2,2,2,3,3,4;
      setarray $@C_MobAmount_3,1,1,1,1,1,1,2,2,2,2,3,3,3,4,4;
      setarray $@C_MobAmount_4,1,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,5;
      setarray $@C_MobAmount_5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1;
      set $@C_MobSum_0,getarraysize($@C_Mobid_0)-1;
      set $@C_MobSum_1,getarraysize($@C_Mobid_1)-1;
      set $@C_MobSum_2,getarraysize($@C_Mobid_2)-1;
      set $@C_MobSum_3,getarraysize($@C_Mobid_3)-1;
      set $@C_MobSum_4,getarraysize($@C_Mobid_4)-1;
      set $@C_MobSum_5,getarraysize($@C_Mobid_5)-1;
      set $@C_LvSum_0,getarraysize($@C_MobAmount_0);
      set $@C_LvSum_1,getarraysize($@C_MobAmount_1);
      set $@C_LvSum_2,getarraysize($@C_MobAmount_2);
      set $@C_LvSum_3,getarraysize($@C_MobAmount_3);
      set $@C_LvSum_4,getarraysize($@C_MobAmount_4);
      set $@C_LvSum_5,getarraysize($@C_MobAmount_5);
      setarray $@C_Rest_0,5;
      setarray $@C_Rest_1,5,10;
      setarray $@C_Rest_2,5,10,12;
      setarray $@C_Rest_3,5,10,15;
      setarray $@C_Rest_4,5,10,15,17,18,19,20;
      setarray $@C_Rest_5,15,30,40,50,60,70,75,80,85,90,95,99,100;
      set $@C_Award_Zeny_0,50;
      set $@C_Award_Zeny_1,100;
      set $@C_Award_Zeny_2,300;
      set $@C_Award_Zeny_3,1000;
      set $@C_Award_Zeny_4,2000;
      set $@C_Award_Zeny_5,4000;
      set $@C_Award_ZenyMax_0,400;
      set $@C_Award_ZenyMax_1,700;
      set $@C_Award_ZenyMax_2,2000;
      set $@C_Award_ZenyMax_3,4000;
      set $@C_Award_ZenyMax_4,8000;
      set $@C_Award_ZenyMax_5,20000;
      set $@C_Award_Cash_0,10;
      set $@C_Award_Cash_1,10;
      set $@C_Award_Cash_2,10;
      set $@C_Award_Cash_3,10;
      set $@C_Award_Cash_4,10;
      set $@C_Award_Cash_5,10;
      set $@C_Award_CashMax_0,60;
      set $@C_Award_CashMax_1,100;
      set $@C_Award_CashMax_2,200;
      set $@C_Award_CashMax_3,400;
      set $@C_Award_CashMax_4,800;
      set $@C_Award_CashMax_5,1500;
      setarray $@C_Award_item_1,26002,26017,14607,607,671,22001,12710,26007,6418;
      setarray $@C_Award_item_c_1,1,1,20,20,50,3,20,1,1;
      setarray $@C_Award_item_2,26002,26017,14608,607,26008,26006,26004,26005,671,22001,12710,24001;
      setarray $@C_Award_item_c_2,3,3,20,40,1,1,1,1,100,10,40,10,1;
      setarray $@C_Award_item_4,26010,26011,26012,26013,26014,26015,26016;
      setarray $@C_Award_item_c_4,1,1,1,1,1,1,1;
      setarray $@C_Award_item_5_1,27035,27036,27037,27038,27039,27042,27043,27044,27045,27046,27047,27048,27049,27051,27059,27060,27061,27062,27063,27064,27070,27071,27072,27073,27080,27081,27082,27084,27087,27088,27089,27093,27094,27096;
      setarray $@C_Award_item_5,26009;
      setarray $@C_Award_item_c_5,1;

      waitingroom "普通道館",0;
}

city,182,93,3      script      低階道館      734,{
      callfunc "challenge","_0";
      end;
OnInit:
      delwaitingroom;
      waitingroom "低階道館",0;
}

city,188,93,3      script      中階道館      734,{
      callfunc "challenge","_1";
      end;
OnInit:
      delwaitingroom;
      waitingroom "中階道館",0;
}

city,194,93,3      script      進階道館      734,{
      callfunc "challenge","_2";
      end;
OnInit:
      delwaitingroom;
      waitingroom "進階道館",0;
}
city,200,93,3      script      高階道館      734,{
      callfunc "challenge","_3";
OnInit:
      delwaitingroom;
      waitingroom "高階道館",0;
}
city,206,93,3      script      神級道館      734,{
      callfunc "challenge","_4";
OnInit:
      delwaitingroom;
      waitingroom "神級道館",0;
}
city,212,93,3      script      終極道館      734,{
      callfunc "challenge","_5";
OnInit:
      delwaitingroom;
      waitingroom "有沒有那麼高~",0;
}

c1_0,50,49,4      script      道館裁判#1_0      758,{ callfunc "ModF_Referee"; }
c2_0,50,49,4      script      道館裁判#2_0      758,{ callfunc "ModF_Referee"; }
c3_0,50,49,4      script      道館裁判#3_0      758,{ callfunc "ModF_Referee"; }
c4_0,50,49,4      script      道館裁判#4_0      758,{ callfunc "ModF_Referee"; }
c5_0,50,49,4      script      道館裁判#5_0      758,{ callfunc "ModF_Referee"; }
c7_0,50,49,4      script      道館裁判#7_0      758,{ callfunc "ModF_Referee"; }
c8_0,50,49,4      script      道館裁判#8_0      758,{ callfunc "ModF_Referee"; }
c9_0,50,49,4      script      道館裁判#9_0      758,{ callfunc "ModF_Referee"; }
c10_0,50,49,4      script      道館裁判#10_0      758,{ callfunc "ModF_Referee"; }
c11_0,50,49,4      script      道館裁判#11_0      758,{ callfunc "ModF_Referee"; }
c13_0,50,49,4      script      道館裁判#13_0      758,{ callfunc "ModF_Referee"; }
c14_0,50,49,4      script      道館裁判#14_0      758,{ callfunc "ModF_Referee"; }
c15_0,50,49,4      script      道館裁判#15_0      758,{ callfunc "ModF_Referee"; }
c16_0,50,49,4      script      道館裁判#16_0      758,{ callfunc "ModF_Referee"; }
c17_0,50,49,4      script      道館裁判#17_0      758,{ callfunc "ModF_Referee"; }
c1_1,50,49,4      script      道館裁判#1_1      758,{ callfunc "ModF_Referee"; }
c2_1,50,49,4      script      道館裁判#2_1      758,{ callfunc "ModF_Referee"; }
c3_1,50,49,4      script      道館裁判#3_1      758,{ callfunc "ModF_Referee"; }
c4_1,50,49,4      script      道館裁判#4_1      758,{ callfunc "ModF_Referee"; }
c5_1,50,49,4      script      道館裁判#5_1      758,{ callfunc "ModF_Referee"; }
c7_1,50,49,4      script      道館裁判#7_1      758,{ callfunc "ModF_Referee"; }
c8_1,50,49,4      script      道館裁判#8_1      758,{ callfunc "ModF_Referee"; }
c9_1,50,49,4      script      道館裁判#9_1      758,{ callfunc "ModF_Referee"; }
c10_1,50,49,4      script      道館裁判#10_1      758,{ callfunc "ModF_Referee"; }
c11_1,50,49,4      script      道館裁判#11_1      758,{ callfunc "ModF_Referee"; }
c13_1,50,49,4      script      道館裁判#13_1      758,{ callfunc "ModF_Referee"; }
c14_1,50,49,4      script      道館裁判#14_1      758,{ callfunc "ModF_Referee"; }
c15_1,50,49,4      script      道館裁判#15_1      758,{ callfunc "ModF_Referee"; }
c16_1,50,49,4      script      道館裁判#16_1      758,{ callfunc "ModF_Referee"; }
c17_1,50,49,4      script      道館裁判#17_1      758,{ callfunc "ModF_Referee"; }
c1_2,50,49,4      script      道館裁判#1_2      758,{ callfunc "ModF_Referee"; }
c2_2,50,49,4      script      道館裁判#2_2      758,{ callfunc "ModF_Referee"; }
c3_2,50,49,4      script      道館裁判#3_2      758,{ callfunc "ModF_Referee"; }
c4_2,50,49,4      script      道館裁判#4_2      758,{ callfunc "ModF_Referee"; }
c5_2,50,49,4      script      道館裁判#5_2      758,{ callfunc "ModF_Referee"; }
c7_2,50,49,4      script      道館裁判#7_2      758,{ callfunc "ModF_Referee"; }
c8_2,50,49,4      script      道館裁判#8_2      758,{ callfunc "ModF_Referee"; }
c9_2,50,49,4      script      道館裁判#9_2      758,{ callfunc "ModF_Referee"; }
c10_2,50,49,4      script      道館裁判#10_2      758,{ callfunc "ModF_Referee"; }
c11_2,50,49,4      script      道館裁判#11_2      758,{ callfunc "ModF_Referee"; }
c13_2,50,49,4      script      道館裁判#13_2      758,{ callfunc "ModF_Referee"; }
c14_2,50,49,4      script      道館裁判#14_2      758,{ callfunc "ModF_Referee"; }
c15_2,50,49,4      script      道館裁判#15_2      758,{ callfunc "ModF_Referee"; }
c16_2,50,49,4      script      道館裁判#16_2      758,{ callfunc "ModF_Referee"; }
c17_2,50,49,4      script      道館裁判#17_2      758,{ callfunc "ModF_Referee"; }
c1_3,50,49,4      script      道館裁判#1_3      758,{ callfunc "ModF_Referee"; }
c2_3,50,49,4      script      道館裁判#2_3      758,{ callfunc "ModF_Referee"; }
c3_3,50,49,4      script      道館裁判#3_3      758,{ callfunc "ModF_Referee"; }
c4_3,50,49,4      script      道館裁判#4_3      758,{ callfunc "ModF_Referee"; }
c5_3,50,49,4      script      道館裁判#5_3      758,{ callfunc "ModF_Referee"; }
c7_3,50,49,4      script      道館裁判#7_3      758,{ callfunc "ModF_Referee"; }
c8_3,50,49,4      script      道館裁判#8_3      758,{ callfunc "ModF_Referee"; }
c9_3,50,49,4      script      道館裁判#9_3      758,{ callfunc "ModF_Referee"; }
c10_3,50,49,4      script      道館裁判#10_3      758,{ callfunc "ModF_Referee"; }
c11_3,50,49,4      script      道館裁判#11_3      758,{ callfunc "ModF_Referee"; }
c13_3,50,49,4      script      道館裁判#13_3      758,{ callfunc "ModF_Referee"; }
c14_3,50,49,4      script      道館裁判#14_3      758,{ callfunc "ModF_Referee"; }
c15_3,50,49,4      script      道館裁判#15_3      758,{ callfunc "ModF_Referee"; }
c16_3,50,49,4      script      道館裁判#16_3      758,{ callfunc "ModF_Referee"; }
c17_3,50,49,4      script      道館裁判#17_3      758,{ callfunc "ModF_Referee"; }
c1_4,50,49,4      script      道館裁判#1_4      758,{ callfunc "ModF_Referee"; }
c2_4,50,49,4      script      道館裁判#2_4      758,{ callfunc "ModF_Referee"; }
c3_4,50,49,4      script      道館裁判#3_4      758,{ callfunc "ModF_Referee"; }
c4_4,50,49,4      script      道館裁判#4_4      758,{ callfunc "ModF_Referee"; }
c5_4,50,49,4      script      道館裁判#5_4      758,{ callfunc "ModF_Referee"; }
c7_4,50,49,4      script      道館裁判#7_4      758,{ callfunc "ModF_Referee"; }
c8_4,50,49,4      script      道館裁判#8_4      758,{ callfunc "ModF_Referee"; }
c9_4,50,49,4      script      道館裁判#9_4      758,{ callfunc "ModF_Referee"; }
c10_4,50,49,4      script      道館裁判#10_4      758,{ callfunc "ModF_Referee"; }
c11_4,50,49,4      script      道館裁判#11_4      758,{ callfunc "ModF_Referee"; }
c13_4,50,49,4      script      道館裁判#13_4      758,{ callfunc "ModF_Referee"; }
c14_4,50,49,4      script      道館裁判#14_4      758,{ callfunc "ModF_Referee"; }
c15_4,50,49,4      script      道館裁判#15_4      758,{ callfunc "ModF_Referee"; }
c16_4,50,49,4      script      道館裁判#16_4      758,{ callfunc "ModF_Referee"; }
c17_4,50,49,4      script      道館裁判#17_4      758,{ callfunc "ModF_Referee"; }
c1_5,50,49,4      script      道館裁判#1_5      758,{ callfunc "ModF_Referee"; }
c2_5,50,49,4      script      道館裁判#2_5      758,{ callfunc "ModF_Referee"; }
c3_5,50,49,4      script      道館裁判#3_5      758,{ callfunc "ModF_Referee"; }
c4_5,50,49,4      script      道館裁判#4_5      758,{ callfunc "ModF_Referee"; }
c5_5,50,49,4      script      道館裁判#5_5      758,{ callfunc "ModF_Referee"; }
c7_5,50,49,4      script      道館裁判#7_5      758,{ callfunc "ModF_Referee"; }
c8_5,50,49,4      script      道館裁判#8_5      758,{ callfunc "ModF_Referee"; }
c9_5,50,49,4      script      道館裁判#9_5      758,{ callfunc "ModF_Referee"; }
c10_5,50,49,4      script      道館裁判#10_5      758,{ callfunc "ModF_Referee"; }
c11_5,50,49,4      script      道館裁判#11_5      758,{ callfunc "ModF_Referee"; }
c13_5,50,49,4      script      道館裁判#13_5      758,{ callfunc "ModF_Referee"; }
c14_5,50,49,4      script      道館裁判#14_5      758,{ callfunc "ModF_Referee"; }
c15_5,50,49,4      script      道館裁判#15_5      758,{ callfunc "ModF_Referee"; }
c16_5,50,49,4      script      道館裁判#16_5      758,{ callfunc "ModF_Referee"; }
c17_5,50,49,4      script      道館裁判#17_5      758,{ callfunc "ModF_Referee"; }
c1_6,50,49,4      script      道館裁判#1_6      758,{ callfunc "ModF_Referee"; }
c2_6,50,49,4      script      道館裁判#2_6      758,{ callfunc "ModF_Referee"; }
c3_6,50,49,4      script      道館裁判#3_6      758,{ callfunc "ModF_Referee"; }
c4_6,50,49,4      script      道館裁判#4_6      758,{ callfunc "ModF_Referee"; }
c5_6,50,49,4      script      道館裁判#5_6      758,{ callfunc "ModF_Referee"; }
c7_6,50,49,4      script      道館裁判#7_6      758,{ callfunc "ModF_Referee"; }
c8_6,50,49,4      script      道館裁判#8_6      758,{ callfunc "ModF_Referee"; }
c9_6,50,49,4      script      道館裁判#9_6      758,{ callfunc "ModF_Referee"; }
c10_6,50,49,4      script      道館裁判#10_6      758,{ callfunc "ModF_Referee"; }
c11_6,50,49,4      script      道館裁判#11_6      758,{ callfunc "ModF_Referee"; }
c13_6,50,49,4      script      道館裁判#13_6      758,{ callfunc "ModF_Referee"; }
c14_6,50,49,4      script      道館裁判#14_6      758,{ callfunc "ModF_Referee"; }
c15_6,50,49,4      script      道館裁判#15_6      758,{ callfunc "ModF_Referee"; }
c16_6,50,49,4      script      道館裁判#16_6      758,{ callfunc "ModF_Referee"; }
c17_6,50,49,4      script      道館裁判#17_6      758,{ callfunc "ModF_Referee"; }

c6_0,330,369,4      script      道館獎勵員(Cash)#0      936,{      callfunc "c_getC","_0"; close; }
c6_1,330,369,4      script      道館獎勵員(Cash)#1      936,{      callfunc "c_getC","_1"; close; }
c6_2,330,369,4      script      道館獎勵員(Cash)#2      936,{      callfunc "c_getC","_2"; close; }
c6_3,330,369,4      script      道館獎勵員(Cash)#3      936,{      callfunc "c_getC","_3"; close; }
c6_4,330,369,4      script      道館獎勵員(Cash)#4      936,{      callfunc "c_getC","_4"; close; }
c6_5,330,369,4      script      道館獎勵員(Cash)#5      936,{      callfunc "c_getC","_5"; close; }

c6_0,313,369,4      script      道館獎勵員(錢)#0      936,{      callfunc "c_getZ","_0"; close; }
c6_1,313,369,4      script      道館獎勵員(錢)#1      936,{      callfunc "c_getZ","_1"; close; }
c6_2,313,369,4      script      道館獎勵員(錢)#2      936,{      callfunc "c_getZ","_2"; close; }
c6_3,313,369,4      script      道館獎勵員(錢)#3      936,{      callfunc "c_getZ","_3"; close; }
c6_4,313,369,4      script      道館獎勵員(錢)#4      936,{      callfunc "c_getZ","_4"; close; }
c6_5,313,369,4      script      道館獎勵員(錢)#5      936,{      callfunc "c_getZ","_5"; close; }

c6_1,321,377,4      script      道館獎勵員(道具)#1      936,{      callfunc "c_getI","_1"; close; }
c6_2,321,377,4      script      道館獎勵員(道具)#2      936,{      callfunc "c_getI","_2"; close; }
c6_3,321,377,4      script      道館獎勵員(頭飾)      936,{      callfunc "c_getH"; close; }
c6_4,321,377,4      script      道館獎勵員(道具)#4      936,{      callfunc "c_getI","_4"; close; }
c6_5,319,377,4      script      道館獎勵員(道具)#5      936,{      callfunc "c_getH2","_5"; close; }
c6_5,323,377,4      script      道館獎勵員(道具)#51      936,{      callfunc "c_getI","_5"; close; }


function      script      challenge      {

      set @c$,getarg(0);
      set @npc$,"^FF00C7[ "+getd("$@C_Name"+@c$+"[      DISCUZ_CODE_0      ]quot;)+"道館報名人員 ]^000000";
      function Inspection
      {
                for ( set @challenge,1; @challenge <= 17; set @challenge,@challenge+1 )
                {
                        if( @challenge % 6 == 0 ) continue;
                        if ( getcharid(1) == getd("$@C_Pid"+@c$+"["+@challenge+"]") )
                        {
                              if ( getd("$@C_Pid"+@c$+"["+@challenge+"]") && getmapusers("c"+@challenge+@c$) == 0 )
                              {
                                        if( getd("$@C_Lv"+@c$+"["+@challenge+"]") )
                                        {
                                                announce "[ 道館 ] 道館冷卻中 , 請耐心等待 60 秒!",bc_self,0xFF0000;
                                                close;
                                        }
                                        else
                                        {
                                                setd "$@C_Pid"+@c$+"["+@challenge+"]",0;
                                                setd "$@C_Cid"+@c$+"["+@challenge+"]",0;
                                                setd "$@C_Status"+@c$+"["+@challenge+"]",0;
                                                return;
                                        }
                              }
                              if ( getd("$@C_Time"+@c$+"["+@challenge+"]") == 1 )
                              {
                                        announce "[ 道館 ] 您的隊友已經開始挑戰了!",bc_self,0xFF0000;
                                        close;
                              }
                              if ( zeny < getd("$@C_ZenyMax"+@c$) )
                              {
                                        announce "[ 道館 ] 您的金錢不夠 "+getd("$@C_ZenyMax"+@c$)+"z !",bc_self,0xFF0000;
                                        close;
                              }
                              query_sql("SELECT last_ip FROM `login` WHERE account_id = "+getcharid(3)+"", .@LastIp$);
                              query_sql("SELECT account_id FROM `login` WHERE last_ip = '"+.@LastIp$+"'", .@AccountId);
                              for(set .@i ,0;.@i<getarraysize(.@AccountId);set .@i,.@i+1){
                              if(isloggedin(.@AccountId[.@i]))set .@j,.@j+1;
                              if(.@j>1){
                              mes "^FF0000檢測雙視窗中^000000";
                              next;
                              mes "抱歉,^FF6600" + strcharinfo(0) + "^000000,IP[^FF6600" + .@LastIp$ + "^000000]";
                              mes "^FF0000相同的IP,系統中已有 1 位在線上.";
                              mes "道館禁止雙開無法報名^000000";
                              mes "關閉雙開即可正常報名,或正常遊戲";
                              close;
                              }
                              }
                              mes @npc$;
                              mes "您是 [ ^FF0000"+getpartyname(getcharid(1))+"^000000 ] 的隊員吧!";
                              mes "進入道館需要繳入場費 [ ^FF0000"+(getd("$@C_ZenyMax"+@c$)/10000)+"^000000 ] 萬唷 !";
                              next;
                              if (select("我要參加!","不小心點到!")==2)
                              {
                                        mes "走開 ! 別在那邊鬧";
                                        close;
                              }
                              if ( getcharid(1) == 0 )
                              {
                                        announce "[ 道館 ] 不好意思,請您先去組隊!",bc_self,0xFF0000;
                                        close;
                              }
                              if ( getmapusers("c"+@challenge+@c$) >= getd("$@C_People"+@c$) )
                              {
                                        announce "[ 道館 ] 場地人數已經超過 [ "+getd("$@C_People"+@c$)+" ] 人!",bc_self,0xFF0000;
                                        close;
                              }
                              set zeny,zeny - getd("$@C_ZenyMax"+@c$);
                              warp "c"+@challenge+@c$,49,47;
                              end;
                        }
                }
      }
      if ( getcharid(1) == 0 )
      {
                announce "[ 道館 ] 不好意思,請您先去組隊!",bc_self,0xFF0000;
                close;
      }
      Inspection();
      /*
      if ( getd("$@C_ReTime"+@c$) == 1 ) {
                announce "[ 道館 ] 有玩家正在報名中,請等待 5 秒鐘!",bc_self,0xFF0000;
                close;
      }
      setd "$@C_ReTime"+@c$,1;
      initnpctimer;
      */
      if ( Zeny < getd("$@C_Zeny"+@c$) )
      {
                announce "[ 道館 ] 您的金錢不夠 "+getd("$@C_Zeny"+@c$)+"z !",bc_self,0xFF0000;
                //setd "$@C_ReTime"+@c$,0;
                close;
      }
      mes @npc$;
      mes "您的隊伍要報名參加"+getd("$@C_Name"+@c$+"[      DISCUZ_CODE_0      ]quot;)+"道館挑戰嗎 ?";
      mes "報名費需要 [ ^FF0000"+(getd("$@C_Zeny"+@c$)/10000)+"^000000 ] 萬唷!";
      mes " ";
      mes getd("$@C_Name"+@c$+"[      DISCUZ_CODE_0      ]quot;)+"道館總共有 [ ^FF0000"+getd("$@C_LvSum"+@c$)+"^000000 ] 關";
      mes "可進場人數為 [ ^FF0000"+getd("$@C_People"+@c$)+"^000000 ] 人";
      mes "^3936D9MVP 列表為:^3688D9";
      for(set .@i,getd("$@C_MobSum"+@c$);.@i>=0;set .@i,.@i-1)
      {
                mes strmobinfo(2,getd("$@C_Mobid"+@c$+"["+.@i+"]"));
      }
      next;
      if (select("我要報名"+getd("$@C_Name"+@c$+"[      DISCUZ_CODE_0      ]quot;)+"道館!","不小心點到!")==2)
      {
                mes "走開 ! 別在那邊鬧";
                //setd "$@C_ReTime"+@c$,0;
                close;
      }
      /*
      if ( getd("$@C_ReTime"+@c$) == 0 )
      {
                announce "[ 道館 ] 已超過報名時間!",bc_self,0xFF0000;
                setd "$@C_ReTime"+@c$,0;
                close;
      }
      */
      Inspection();
      //setd "$@C_ReTime"+@c$,0;
      for ( set @challenge,1; @challenge <= 17; set @challenge,@challenge+1 )
      {
                if( @challenge % 6 == 0 ) continue;
                if ( getmapusers("c"+@challenge+@c$) == 0 )
                {
                        initnpctimer "Mod_Timer",getcharid(0);
                        enablenpc "道館裁判#"+@challenge+@c$;
                        killmonsterall "c"+@challenge+@c$;
                        set Zeny,Zeny - getd("$@C_Zeny"+@c$);
                        setd "$@C_Time"+@c$+"["+@challenge+"]",0;
                        setd "$@C_Pid"+@c$+"["+@challenge+"]",getcharid(1);
                        setd "$@C_Cid"+@c$+"["+@challenge+"]",getcharid(0);
                        setd "$@C_Status"+@c$+"["+@challenge+"]",1;
                        setd "$@C_Lv"+@c$+"["+@challenge+"]",1;

                        callfunc "announce","請 ["+escape_sql(getpartyname(getd("$@C_Pid"+@c$+"["+@challenge+"]")))+"] 隊伍的隊員,在 60 秒內到 [ 道館區 ] 找 [ "+getd("$@C_Name"+@c$+"[      DISCUZ_CODE_0      ]quot;)+"傳送員 ] !",3,0x0099CC,1,0,0,0;
                        warp "c"+@challenge+@c$,49,47;
                        //setd "$@C_ReTime"+@c$,0;
                        end;
                }
      }
      mes @npc$;
      mes "所有場地都有隊伍在挑戰中";
      close;
}

-      script      Mod_Timer      -1,{
OnTimer50000:
      if( getd("$@C_Time"+@c$+"["+@challenge+"]") && getd("$@C_Pid"+@c$+"["+@challenge+"]") ){ setnpctimer 0; setd "$@C_Lv"+@c$+"["+@challenge+"]",0; end; }
      mapannounce "c"+@challenge+@c$,"[ 道館 ] 道館將在 10 秒後開始 !",1;
      end;
OnTimer60000:
      if( getd("$@C_Time"+@c$+"["+@challenge+"]") && getd("$@C_Pid"+@c$+"["+@challenge+"]") ){ setnpctimer 0; setd "$@C_Lv"+@c$+"["+@challenge+"]",0; end; }
      setd "$@C_Time"+@c$+"["+@challenge+"]",1;
      disablenpc "道館裁判#"+@challenge+@c$;
      setd "$@ModFQuantity"+@c$+"["+@challenge+"]",getd("$@C_MobAmount"+@c$+"["+getd("$@C_Status"+@c$+"["+@challenge+"]")+"]");
      doevent "ModF_Mod::OnSummon_ModF";
      setnpctimer 0;
      setd "$@C_Lv"+@c$+"["+@challenge+"]",0;
      end;
}
function      script      ModF_Referee      {

      if ( getcharid(0) != getd("$@C_Cid"+@c$+"["+@challenge+"]" ) )
      {
                if( getd("$@C_Pid"+@c$+"["+@challenge+"]") != getcharid(1) )
                {
                        announce "[ 道館 ] 您不是報名的隊伍",bc_self;
                        close;
                }
                mes "^FF00C7[ 裁判 ]^000000";
                mes "您不是開組的人";
                mes "如果您要更換隊長";
                mes "需要繳交報名費 [ ^FF0000"+(getd("$@C_Zeny"+@c$)/10000)+"^000000 ] 萬z";
                if( Zeny < getd("$@C_Zeny"+@c$) )
                        close;
                if(select("取消:更換")==1)
                        close;
                set Zeny,Zeny-getd("$@C_Zeny"+@c$);
                setd "$@C_Cid"+@c$+"["+@challenge+"]",getcharid(0);
               
      }
      if(select("開始挑戰!","不小心點到!")==1)
      {
                setd "$@C_Time"+@c$+"["+@challenge+"]",1;
                disablenpc "道館裁判#"+@challenge+@c$;
                doevent "ModF_Mod::OnSummon_ModF";
      }
      close;
}

-      script      ModF_Mod      -1,{
OnSummon_ModF:
      if ( getd("$@C_Status"+@c$+"["+@challenge+"]") == getarraysize(getd("$@C_MobAmount"+@c$)))
      {
                mapannounce "c"+@challenge+@c$,"[ 道館 ] 最後一關 , 請繼續努力!",1;
      }
      sleep2 500;
      if( @c$ == "_5" )
      {
                switch( (getd("$@C_Status"+@c$+"["+@challenge+"]")/10)+1 )
                {
                        case 1: set .@r,1; break;
                        case 2: set .@r,rand(1,2); break;
                        case 3: set .@r,rand(1,3); break;
                        case 4: set .@r,rand(1,4); break;
                        case 8: set .@r,rand(1,5); break;
                        case 5: set .@r,rand(2,3); break;
                        case 6: set .@r,rand(2,4); break;
                        case 7: set .@r,rand(2,5); break;
                        case 9: set .@r,rand(2,7); break;
                        case 10: set .@r,rand(3,10); break;
                        case 11: set .@r,15; break;
                }
                setd "$@ModFQuantity_"+@challenge+@c$,.@r;
      }
      else
                setd "$@ModFQuantity_"+@challenge+@c$,getd("$@C_MobAmount"+@c$+"["+ (getd("$@C_Status"+@c$+"["+@challenge+"]")-1)+"]");
      for(set .@i,0; .@i < getd("$@ModFQuantity_"+@challenge+@c$); set .@i,.@i+1)
      {
                monster "c"+@challenge+@c$,50,50,"--ja--",getd("$@C_Mobid"+@c$+"["+rand(0,getd("$@C_MobSum"+@c$))+"]"),1,"ModF_Mod::OnKill_ModF";
      }
      mapannounce "c"+@challenge+@c$,"[ 道館 ] 第 [ "+getd("$@C_Status"+@c$+"["+@challenge+"]")+" ] 關挑戰開始 , 放出 [ "+getd("$@ModFQuantity_"+@challenge+@c$)+" ] 隻 M V P !",1;
      end;
OnKill_ModF:
      setd "$@ModFQuantity_"+@challenge+@c$,getd("$@ModFQuantity_"+@challenge+@c$)-1;
      if( getd("$@ModFQuantity_"+@challenge+@c$) > 0 )
      {
                mapannounce "c"+@challenge+@c$,"   剩餘 [ "+getd("$@ModFQuantity_"+@challenge+@c$)+" ] 隻 M V P",1,0x00CC00;
                end;
      }
      if ( getd("$@C_Status"+@c$+"["+@challenge+"]") == getd("$@C_LvSum"+@c$) )
      {
               
                callfunc "announce","[ 道館 ] 恭喜隊伍 [ "+escape_sql(getpartyname(getd("$@C_Pid"+@c$+"["+@challenge+"]")))+" ] ,挑戰"+getd("$@C_Name"+@c$+"[      DISCUZ_CODE_0      ]quot;)+"道館成功!",3,0x0099CC,1,0,0,0;
                        
                query_sql "INSERT INTO `reward` (`char_name`, `type`) VALUES ( '"+escape_sql(getpartyname(getd("$@C_Pid"+@c$+"["+@challenge+"]")))+"', 99)";
                sleep2 2000;
                areawarp "c"+@challenge+@c$,0,0,300,300,"c6"+@c$,322,368;
                end;
      }
      //mapannounce "c"+@challenge+@c$,"[ 道館 ] 第 [ "+getd("$@C_Status"+@c$+"["+@challenge+"]")+" ] 關挑戰成功!",1;
      setd "$@C_Status"+@c$+"["+@challenge+"]",getd("$@C_Status"+@c$+"["+@challenge+"]")+1;
      for(set .@i,0; .@i < getarraysize(getd("$@C_Rest"+@c$)); set .@i,.@i+1 )
      {
                if ( getd("$@C_Status"+@c$+"["+@challenge+"]") == getd("$@C_Rest"+@c$+"["+.@i+"]") )
                {
                        announce "[ 道館 ] 休息時間! 休息完畢再來找我",17;
                        announce "[ 道館 ] 強調一次 ! 道館嚴格禁止雙開 ( 抓到凍結 )",17;
                        enablenpc "道館裁判#"+@challenge+@c$;
                        end;
                }
      }
      addtimer 300,"ModF_Mod::OnSummon_ModF";
      end;
}
function      script      c_getC      {
      if(getarg(0)=="_0")
                set .@typei,3;
      else if(getarg(0)=="_1")
                set .@typei,13;
      else if(getarg(0)=="_2")
                set .@typei,23;
      else if(getarg(0)=="_3")
                set .@typei,33;
      else
                set .@typei,43;
      set .@npc$,"^FF00C7[ 道館獎勵員 ]^000000";
      mes .@npc$;
      percentheal 100,100;
      mes "我是負責 Cash 點數的獎勵員";
      mes "你將會隨機獲得 "+getd("$@C_Award_Cash"+getarg(0))+" ~ "+getd("$@C_Award_CashMax"+getarg(0))+" 不等的Cash";
      if( select("我要領 Cash !","我在想想好了") ==2) close;
      set .@Get,rand( getd( "$@C_Award_Cash"+getarg(0)) , getd("$@C_Award_CashMax"+getarg(0)) );
      if( rand(3)!=0 )
      {
                set .@Get,rand( getd("$@C_Award_Cash"+getarg(0)) , ( getd("$@C_Award_CashMax"+getarg(0)) /2 ) );
      }
      announce "[ 道館獎勵員 ]: 恭喜獲得獎勵 Cash "+.@Get+" 點",bc_self;
      callfunc "getIP";
      query_sql "INSERT INTO `reward` (`char_name`, `type`, `value`,`ip`) VALUES ( '"+strcharinfo(0)+"', "+.@typei+", "+.@Get+",'"+@ip$+"')";
      set #CASHPOINTS,#CASHPOINTS + .@Get;
      set .@map$, ( getsavepoint(0) == "city2" ? "city2" : "city" );
      warp .@map$,201,89;
      close;
}

function      script      c_getZ      {
      if(getarg(0)=="_0")
                set .@typei,3;
      else if(getarg(0)=="_1")
                set .@typei,13;
      else if(getarg(0)=="_2")
                set .@typei,23;
      else if(getarg(0)=="_3")
                set .@typei,33;
      else
                set .@typei,43;
      set .@npc$,"^FF00C7[ 道館獎勵員 ]^000000";
      mes .@npc$;
      percentheal 100,100;
      mes "我是負責金錢的獎勵員";
      mes "你將會隨機獲得 "+getd("$@C_Award_Zeny"+getarg(0))+" ~ "+getd("$@C_Award_ZenyMax"+getarg(0))+"萬 z";
      if( select("我要領金錢 !","我在想想好了") ==2) close;
      set .@Get,rand( getd("$@C_Award_Zeny"+getarg(0)) , getd("$@C_Award_ZenyMax"+getarg(0)) );
      if( rand(3)!=0 )
      {
                set .@Get,rand( getd("$@C_Award_Zeny"+getarg(0)) , ( getd("$@C_Award_ZenyMax"+getarg(0)) /2 ) );
      }
      announce "[ 道館獎勵員 ]: 恭喜獲得獎勵金錢 "+.@Get+"萬 z",bc_self;
      callfunc "getIP";
      query_sql "INSERT INTO `reward` (`char_name`, `type`, `value`,`ip`) VALUES ( '"+strcharinfo(0)+"', "+.@typei+", "+.@Get+",'"+@ip$+"')";
      set Zeny,Zeny + .@Get*10000;
      set .@map$, ( getsavepoint(0) == "city2" ? "city2" : "city" );
      warp .@map$,201,89;
      close;
}

function      script      c_getI      {
      if(getarg(0)=="_0")
                set .@typei,3;
      else if(getarg(0)=="_1")
                set .@typei,13;
      else if(getarg(0)=="_2")
                set .@typei,23;
      else if(getarg(0)=="_3")
                set .@typei,33;
      else
                set .@typei,43;
      set .@npc$,"^FF00C7[ 道館獎勵員 ]^000000";
      mes .@npc$;
      percentheal 100,100;
      mes "我是負責物品的獎勵員";
      mes "你將會隨機獲得以下物品 :";
      set .@size,getarraysize(getd("$@C_Award_item"+getarg(0)));
      for(set .@i,0;.@i<.@size;set .@i,.@i+1)
      {
                mes "^9825CA"+getitemname( getd("$@C_Award_item"+getarg(0)+"["+.@i+"]") )+"^000000 × ^2566CA"+getd("$@C_Award_item_c"+getarg(0)+"["+.@i+"]");
      }
      if( select("我要領道具 !","我在想想好了") ==2) close;
      set .@Get,rand( .@size );
      announce "[ 道館獎勵員 ]: 恭喜獲得獎勵道具 "+getitemname(getd("$@C_Award_item"+getarg(0)+"["+.@Get+"]")) + " × "+getd("$@C_Award_item_c"+getarg(0)+"["+.@Get+"]"),bc_self;      
      callfunc "getIP";
      query_sql "INSERT INTO `reward` (`char_name`, `type`, `value`, `value2`,`ip`) VALUES ( '"+strcharinfo(0)+"', "+.@typei+", "+getd("$@C_Award_item"+getarg(0)+"["+.@Get+"]")+", "+ getd("$@C_Award_item_c"+getarg(0)+"["+.@Get+"]") +",'"+@ip$+"')";
      getitem getd("$@C_Award_item"+getarg(0)+"["+.@Get+"]"),getd("$@C_Award_item_c"+getarg(0)+"["+.@Get+"]");
      set .@map$, ( getsavepoint(0) == "city2" ? "city2" : "city" );
      warp .@map$,201,89;
      close;
}
function      script      c_getH      {
      mes "^FF00C7[ 道館獎勵員 ]^000000";
      mes "恭喜過關,點我領頭飾吧";
      menu "抽頭飾",et,"再考慮",at;
      
et:
      set @gf,rand(5000);
      if (@gf > 1 && @gf < 500) getitem 5225,1;
      if (@gf > 501 && @gf < 700) getitem 5307,1;
      if (@gf > 701 && @gf < 1400) getitem 5450,1;
      if (@gf > 1401 && @gf < 2100) getitem 5484,1;
      if (@gf > 2101 && @gf < 2800) getitem 5495,1;
      if (@gf > 2801 && @gf < 3500) getitem 5496,1;
      if (@gf > 3501 && @gf < 4200) getitem 5497,1;
      if (@gf > 4201 && @gf < 5000) getitem 5410,1;
      if (@gf > 5001 && @gf < 5500) getitem 5371,1;
      if (@gf > 5501 && @gf < 6000) getitem 5610,1;
      if (@gf > 6001 && @gf < 6500) getitem 5611,1;
      if (@gf > 6501 && @gf < 7000) getitem 5401,1;
      if (@gf > 7001 && @gf < 7500) getitem 5403,1;
      if (@gf > 7501 && @gf < 8000) getitem 5367,1;
      if (@gf > 8001 && @gf < 8500) getitem 5508,1;
      if (@gf > 8501 && @gf < 9000) getitem 5474,1;
      if (@gf > 9001 && @gf < 9500) getitem 5531,1;
      if (@gf > 9501 && @gf < 10000) getitem 5392,1;
      if (@gf > 10501 && @gf < 11000) getitem 5847,1;
      if (@gf > 11001 && @gf < 11500) getitem 5530,1;
      if (@gf > 11501 && @gf < 12000) getitem 5783,1;
      if (@gf > 12001 && @gf < 12500) getitem 5784,1;
      if (@gf > 12501 && @gf < 13000) getitem 5785,1;
      if (@gf > 13001 && @gf < 13500) getitem 5658,1;
      if (@gf > 13501 && @gf < 14000) getitem 5856,1;
      if (@gf > 14001 && @gf < 14500) getitem 5857,1;
      if (@gf > 14501 && @gf < 15000) getitem 5858,1;
      if (@gf > 15001 && @gf < 15500) getitem 5859,1;
      if (@gf > 15501 && @gf < 16000) getitem 5659,1;
      if (@gf > 16001 && @gf < 16500) getitem 5660,1;
      if (@gf > 16501 && @gf < 17000) getitem 5580,1;
      if (@gf > 17001 && @gf < 17500) getitem 5500,1;
      if (@gf > 17501 && @gf < 18000) getitem 5588,1;
      if (@gf > 18001 && @gf < 18500) getitem 5589,1;
      if (@gf > 18501 && @gf < 19000) getitem 5598,1;
      if (@gf > 19001 && @gf < 19500) getitem 5599,1;
      if (@gf > 19501 && @gf < 20000) getitem 5416,1;
      if (@gf > 20001 && @gf < 20500) getitem 5464,1;
      if (@gf > 20501 && @gf < 21000) getitem 5671,1;
      if (@gf > 21001 && @gf < 21500) getitem 5674,1;
      if (@gf > 21501 && @gf < 22000) getitem 5766,1;
      if (@gf > 22001 && @gf < 22500) getitem 5776,1;
      if (@gf > 22501 && @gf < 23000) getitem 5594,1;
      if (@gf > 23001 && @gf < 23500) getitem 18508,1;
      if (@gf > 23501 && @gf < 24000) getitem 18509,1;
      if (@gf > 24001 && @gf < 24500) getitem 5591,1;
      if (@gf > 24501 && @gf < 25000) getitem 5769,1;
      if (@gf > 25001 && @gf < 25500) getitem 5458,1;
      if (@gf > 25501 && @gf < 26000) getitem 5529,1;
      if (@gf > 26001 && @gf < 26500) getitem 5761,1;
      if (@gf > 26501 && @gf < 27000) getitem 5511,1;
      if (@gf > 27001 && @gf < 27500) getitem 5466,1;
      if (@gf > 27501 && @gf < 28000) getitem 5473,1;
      if (@gf > 28001 && @gf < 28500) getitem 5430,1;
      if (@gf > 28501 && @gf < 29000) getitem 5370,1;
      if (@gf > 29001 && @gf < 29500) getitem 5762,1;
      if (@gf > 29501 && @gf < 30000) getitem 5778,1;
      if (@gf > 30001 && @gf < 30500) getitem 5779,1;
      if (@gf > 30501 && @gf < 31000) getitem 5780,1;
      if (@gf > 31001 && @gf < 31500) getitem 5654,1;
      if (@gf > 31501 && @gf < 32000) getitem 5538,1;
      if (@gf > 32001 && @gf < 32500) getitem 5417,1;
      if (@gf > 32501 && @gf < 33000) getitem 5414,1;
      if (@gf > 33001 && @gf < 33500) getitem 5571,1;
      if (@gf > 33501 && @gf < 34000) getitem 5775,1;
      if (@gf > 34001 && @gf < 34500) getitem 18543,1;
      if (@gf > 34501 && @gf < 35000) getitem 5422,1;
      if (@gf > 35001 && @gf < 35500) getitem 5501,1;
      if (@gf > 35501 && @gf < 36000) getitem 5772,1;
      if (@gf > 36001 && @gf < 36500) getitem 5773,1;
      if (@gf > 36501 && @gf < 37000) getitem 18554,1;
      if (@gf > 37001 && @gf < 37500) getitem 5676,1;
      if (@gf > 37501 && @gf < 38000) getitem 5306,1;
      if (@gf > 38001 && @gf < 38500) getitem 5319,1;
      if (@gf > 38501 && @gf < 39000) getitem 5404,1;
      if (@gf > 39001 && @gf < 39500) getitem 5430,1;
      if (@gf > 39501 && @gf < 40000) getitem 5471,1;
      if (@gf > 40001 && @gf < 40500) getitem 5472,1;
      if (@gf > 40501 && @gf < 41000) getitem 5475,1;
      if (@gf > 41001 && @gf < 41500) getitem 5511,1;
      if (@gf > 41501 && @gf < 42000) getitem 5512,1;
      if (@gf > 42001 && @gf < 42500) getitem 5513,1;
      if (@gf > 42501 && @gf < 43000) getitem 5514,1;
      if (@gf > 43001 && @gf < 43500) getitem 5515,1;
      if (@gf > 43501 && @gf < 44000) getitem 5519,1;
      if (@gf > 44001 && @gf < 44500) getitem 5521,1;
      if (@gf > 44501 && @gf < 45000) getitem 5539,1;
      if (@gf > 45001 && @gf < 45500) getitem 5544,1;
      if (@gf > 45501 && @gf < 46000) getitem 5545,1;
      if (@gf > 46001 && @gf < 46500) getitem 5546,1;
      if (@gf > 46501 && @gf < 47000) getitem 5549,1;
      if (@gf > 47001 && @gf < 47500) getitem 5550,1;
      if (@gf > 47501 && @gf < 48000) getitem 5551,1;
      if (@gf > 48001 && @gf < 48500) getitem 5569,1;
      if (@gf > 48501 && @gf < 49000) getitem 5570,1;
      if (@gf > 49001 && @gf < 49500) getitem 5581,1;
      if (@gf > 49501 && @gf < 50000) getitem 5582,1;
      if (@gf > 50001 && @gf < 50500) getitem 5662,1;
      if (@gf > 50501 && @gf < 51000) getitem 5663,1;
      if (@gf > 51001 && @gf < 51500) getitem 5676,1;
      if (@gf > 51501 && @gf < 52000) getitem 5677,1;
      if (@gf > 52001 && @gf < 52500) getitem 5681,1;
      if (@gf > 52501 && @gf < 53000) getitem 5682,1;
      if (@gf > 53001 && @gf < 53500) getitem 5684,1;
      if (@gf > 53501 && @gf < 54000) getitem 5686,1;
      if (@gf > 54001 && @gf < 54500) getitem 5815,1;
      if (@gf > 54501 && @gf < 55000) getitem 5600,1;
      if (@gf > 55001 && @gf < 55500) getitem 18525,1;
      if (@gf > 55501 && @gf < 56000) getitem 18527,1;
      if (@gf > 56001 && @gf < 56500) getitem 18521,1;
      if (@gf > 56501 && @gf < 57000) getitem 5475,1;
      if (@gf > 57001 && @gf < 57500) getitem 18531,1;
      if (@gf > 57501 && @gf < 58000) getitem 18537,1;
      if (@gf > 58001 && @gf < 58500) getitem 18543,1;
      if (@gf > 58501 && @gf < 59000) getitem 18553,1;
      if (@gf > 59001 && @gf < 59500) getitem 18554,1;
      warp "city",200,87;
close;

at:
      next;
      mes "^FF00C7[ 道館獎勵員 ]^000000";
      mes "考慮好再找我吧。";
      close;
}
function      script      c_getH2      {
      set .@npc$,"^FF00C7[ 道館獎勵員 ]^000000";
      mes .@npc$;
      percentheal 100,100;
      mes "我是負責頭飾的獎勵員";
      mes "你將會隨機獲得以下物品 :";
      set .@size,getarraysize($@C_Award_item_5_1);
      for(set .@i,0;.@i<.@size;set .@i,.@i+1)
      {
                mes "   ^2566CA"+.@i+". ^9825CA"+getitemname($@C_Award_item_5_1[.@i]);
      }
      if( select("我要領頭飾 !","我在想想好了") ==2) close;
      set .@Get,rand( .@size );
      announce "[ 道館獎勵員 ]: 恭喜獲得獎勵頭飾 "+getitemname(getd("$@C_Award_item_5_1["+.@Get+"]")),bc_self;      
      callfunc "getIP";
      query_sql "INSERT INTO `reward` (`char_name`, `type`, `value`, `value2`,`ip`) VALUES ( '"+strcharinfo(0)+"', 34, "+getd("$@C_Award_item_5_1["+.@Get+"]")+", 1,'"+@ip$+"')";
      getitem getd("$@C_Award_item_5_1["+.@Get+"]"),1;
      set .@map$, ( getsavepoint(0) == "city2" ? "city2" : "city" );
      warp .@map$,201,89;
      close;
}
function      script      getIP      {
      if(@ip$=="")
      {
                query_sql "SELECT `last_ip`FROM `login` WHERE `account_id` = "+getcharid(3),@ip$;
      }
      return @ip$;
}

city      mapflag      nobranch

c1_0      mapflag      nobranch
c1_0      mapflag      nomobloot
c1_0      mapflag      nomemo
c1_0      mapflag      nopenalty
c1_0      mapflag      noteleport
c1_0      mapflag      nosave      SavePoint
c1_0      mapflag      monster_noteleport
c2_0      mapflag      nobranch
c2_0      mapflag      nomobloot
c2_0      mapflag      nomemo
c2_0      mapflag      nopenalty
c2_0      mapflag      noteleport
c2_0      mapflag      nosave      SavePoint
c2_0      mapflag      monster_noteleport
c3_0      mapflag      nobranch
c3_0      mapflag      nomobloot
c3_0      mapflag      nomemo
c3_0      mapflag      nopenalty
c3_0      mapflag      noteleport
c3_0      mapflag      nosave      SavePoint
c3_0      mapflag      monster_noteleport
c4_0      mapflag      nobranch
c4_0      mapflag      nomobloot
c4_0      mapflag      nomemo
c4_0      mapflag      nopenalty
c4_0      mapflag      noteleport
c4_0      mapflag      nosave      SavePoint
c4_0      mapflag      monster_noteleport
c5_0      mapflag      nobranch
c5_0      mapflag      nomobloot
c5_0      mapflag      nomemo
c5_0      mapflag      nopenalty
c5_0      mapflag      noteleport
c5_0      mapflag      nosave      SavePoint
c5_0      mapflag      monster_noteleport
c6_0      mapflag      nobranch
c6_0      mapflag      nomobloot
c6_0      mapflag      nomemo
c6_0      mapflag      nopenalty
c6_0      mapflag      noteleport
c6_0      mapflag      nosave      SavePoint
c6_0      mapflag      monster_noteleport
c7_0      mapflag      nobranch
c7_0      mapflag      nomobloot
c7_0      mapflag      nomemo
c7_0      mapflag      nopenalty
c7_0      mapflag      noteleport
c7_0      mapflag      nosave      SavePoint
c7_0      mapflag      monster_noteleport
c8_0      mapflag      nobranch
c8_0      mapflag      nomobloot
c8_0      mapflag      nomemo
c8_0      mapflag      nopenalty
c8_0      mapflag      noteleport
c8_0      mapflag      nosave      SavePoint
c8_0      mapflag      monster_noteleport
c9_0      mapflag      nobranch
c9_0      mapflag      nomobloot
c9_0      mapflag      nomemo
c9_0      mapflag      nopenalty
c9_0      mapflag      noteleport
c9_0      mapflag      nosave      SavePoint
c9_0      mapflag      monster_noteleport
c10_0      mapflag      nobranch
c10_0      mapflag      nomobloot
c10_0      mapflag      nomemo
c10_0      mapflag      nopenalty
c10_0      mapflag      noteleport
c10_0      mapflag      nosave      SavePoint
c10_0      mapflag      monster_noteleport
c11_0      mapflag      nobranch
c11_0      mapflag      nomobloot
c11_0      mapflag      nomemo
c11_0      mapflag      nopenalty
c11_0      mapflag      noteleport
c11_0      mapflag      nosave      SavePoint
c11_0      mapflag      monster_noteleport
c12_0      mapflag      nobranch
c12_0      mapflag      nomobloot
c12_0      mapflag      nomemo
c12_0      mapflag      nopenalty
c12_0      mapflag      noteleport
c12_0      mapflag      nosave      SavePoint
c12_0      mapflag      monster_noteleport
c13_0      mapflag      nobranch
c13_0      mapflag      nomobloot
c13_0      mapflag      nomemo
c13_0      mapflag      nopenalty
c13_0      mapflag      noteleport
c13_0      mapflag      nosave      SavePoint
c13_0      mapflag      monster_noteleport
c14_0      mapflag      nobranch
c14_0      mapflag      nomobloot
c14_0      mapflag      nomemo
c14_0      mapflag      nopenalty
c14_0      mapflag      noteleport
c14_0      mapflag      nosave      SavePoint
c14_0      mapflag      monster_noteleport
c15_0      mapflag      nobranch
c15_0      mapflag      nomobloot
c15_0      mapflag      nomemo
c15_0      mapflag      nopenalty
c15_0      mapflag      noteleport
c15_0      mapflag      nosave      SavePoint
c15_0      mapflag      monster_noteleport
c16_0      mapflag      nobranch
c16_0      mapflag      nomobloot
c16_0      mapflag      nomemo
c16_0      mapflag      nopenalty
c16_0      mapflag      noteleport
c16_0      mapflag      nosave      SavePoint
c16_0      mapflag      monster_noteleport
c17_0      mapflag      nobranch
c17_0      mapflag      nomobloot
c17_0      mapflag      nomemo
c17_0      mapflag      nopenalty
c17_0      mapflag      noteleport
c17_0      mapflag      nosave      SavePoint
c17_0      mapflag      monster_noteleport
c1_1      mapflag      nobranch
c1_1      mapflag      nomobloot
c1_1      mapflag      nomemo
c1_1      mapflag      nopenalty
c1_1      mapflag      noteleport
c1_1      mapflag      nosave      SavePoint
c1_1      mapflag      monster_noteleport
c2_1      mapflag      nobranch
c2_1      mapflag      nomobloot
c2_1      mapflag      nomemo
c2_1      mapflag      nopenalty
c2_1      mapflag      noteleport
c2_1      mapflag      nosave      SavePoint
c2_1      mapflag      monster_noteleport
c3_1      mapflag      nobranch
c3_1      mapflag      nomobloot
c3_1      mapflag      nomemo
c3_1      mapflag      nopenalty
c3_1      mapflag      noteleport
c3_1      mapflag      nosave      SavePoint
c3_1      mapflag      monster_noteleport
c4_1      mapflag      nobranch
c4_1      mapflag      nomobloot
c4_1      mapflag      nomemo
c4_1      mapflag      nopenalty
c4_1      mapflag      noteleport
c4_1      mapflag      nosave      SavePoint
c4_1      mapflag      monster_noteleport
c5_1      mapflag      nobranch
c5_1      mapflag      nomobloot
c5_1      mapflag      nomemo
c5_1      mapflag      nopenalty
c5_1      mapflag      noteleport
c5_1      mapflag      nosave      SavePoint
c5_1      mapflag      monster_noteleport
c6_1      mapflag      nobranch
c6_1      mapflag      nomobloot
c6_1      mapflag      nomemo
c6_1      mapflag      nopenalty
c6_1      mapflag      noteleport
c6_1      mapflag      nosave      SavePoint
c6_1      mapflag      monster_noteleport
c7_1      mapflag      nobranch
c7_1      mapflag      nomobloot
c7_1      mapflag      nomemo
c7_1      mapflag      nopenalty
c7_1      mapflag      noteleport
c7_1      mapflag      nosave      SavePoint
c7_1      mapflag      monster_noteleport
c8_1      mapflag      nobranch
c8_1      mapflag      nomobloot
c8_1      mapflag      nomemo
c8_1      mapflag      nopenalty
c8_1      mapflag      noteleport
c8_1      mapflag      nosave      SavePoint
c8_1      mapflag      monster_noteleport
c9_1      mapflag      nobranch
c9_1      mapflag      nomobloot
c9_1      mapflag      nomemo
c9_1      mapflag      nopenalty
c9_1      mapflag      noteleport
c9_1      mapflag      nosave      SavePoint
c9_1      mapflag      monster_noteleport
c10_1      mapflag      nobranch
c10_1      mapflag      nomobloot
c10_1      mapflag      nomemo
c10_1      mapflag      nopenalty
c10_1      mapflag      noteleport
c10_1      mapflag      nosave      SavePoint
c10_1      mapflag      monster_noteleport
c11_1      mapflag      nobranch
c11_1      mapflag      nomobloot
c11_1      mapflag      nomemo
c11_1      mapflag      nopenalty
c11_1      mapflag      noteleport
c11_1      mapflag      nosave      SavePoint
c11_1      mapflag      monster_noteleport
c12_1      mapflag      nobranch
c12_1      mapflag      nomobloot
c12_1      mapflag      nomemo
c12_1      mapflag      nopenalty
c12_1      mapflag      noteleport
c12_1      mapflag      nosave      SavePoint
c12_1      mapflag      monster_noteleport
c13_1      mapflag      nobranch
c13_1      mapflag      nomobloot
c13_1      mapflag      nomemo
c13_1      mapflag      nopenalty
c13_1      mapflag      noteleport
c13_1      mapflag      nosave      SavePoint
c13_1      mapflag      monster_noteleport
c14_1      mapflag      nobranch
c14_1      mapflag      nomobloot
c14_1      mapflag      nomemo
c14_1      mapflag      nopenalty
c14_1      mapflag      noteleport
c14_1      mapflag      nosave      SavePoint
c14_1      mapflag      monster_noteleport
c15_1      mapflag      nobranch
c15_1      mapflag      nomobloot
c15_1      mapflag      nomemo
c15_1      mapflag      nopenalty
c15_1      mapflag      noteleport
c15_1      mapflag      nosave      SavePoint
c15_1      mapflag      monster_noteleport
c16_1      mapflag      nobranch
c16_1      mapflag      nomobloot
c16_1      mapflag      nomemo
c16_1      mapflag      nopenalty
c16_1      mapflag      noteleport
c16_1      mapflag      nosave      SavePoint
c16_1      mapflag      monster_noteleport
c17_1      mapflag      nobranch
c17_1      mapflag      nomobloot
c17_1      mapflag      nomemo
c17_1      mapflag      nopenalty
c17_1      mapflag      noteleport
c17_1      mapflag      nosave      SavePoint
c17_1      mapflag      monster_noteleport
c1_2      mapflag      nobranch
c1_2      mapflag      nomobloot
c1_2      mapflag      nomemo
c1_2      mapflag      nopenalty
c1_2      mapflag      noteleport
c1_2      mapflag      nosave      SavePoint
c1_2      mapflag      monster_noteleport
c2_2      mapflag      nobranch
c2_2      mapflag      nomobloot
c2_2      mapflag      nomemo
c2_2      mapflag      nopenalty
c2_2      mapflag      noteleport
c2_2      mapflag      nosave      SavePoint
c2_2      mapflag      monster_noteleport
c3_2      mapflag      nobranch
c3_2      mapflag      nomobloot
c3_2      mapflag      nomemo
c3_2      mapflag      nopenalty
c3_2      mapflag      noteleport
c3_2      mapflag      nosave      SavePoint
c3_2      mapflag      monster_noteleport
c4_2      mapflag      nobranch
c4_2      mapflag      nomobloot
c4_2      mapflag      nomemo
c4_2      mapflag      nopenalty
c4_2      mapflag      noteleport
c4_2      mapflag      nosave      SavePoint
c4_2      mapflag      monster_noteleport
c5_2      mapflag      nobranch
c5_2      mapflag      nomobloot
c5_2      mapflag      nomemo
c5_2      mapflag      nopenalty
c5_2      mapflag      noteleport
c5_2      mapflag      nosave      SavePoint
c5_2      mapflag      monster_noteleport
c6_2      mapflag      nobranch
c6_2      mapflag      nomobloot
c6_2      mapflag      nomemo
c6_2      mapflag      nopenalty
c6_2      mapflag      noteleport
c6_2      mapflag      nosave      SavePoint
c6_2      mapflag      monster_noteleport
c7_2      mapflag      nobranch
c7_2      mapflag      nomobloot
c7_2      mapflag      nomemo
c7_2      mapflag      nopenalty
c7_2      mapflag      noteleport
c7_2      mapflag      nosave      SavePoint
c7_2      mapflag      monster_noteleport
c8_2      mapflag      nobranch
c8_2      mapflag      nomobloot
c8_2      mapflag      nomemo
c8_2      mapflag      nopenalty
c8_2      mapflag      noteleport
c8_2      mapflag      nosave      SavePoint
c8_2      mapflag      monster_noteleport
c9_2      mapflag      nobranch
c9_2      mapflag      nomobloot
c9_2      mapflag      nomemo
c9_2      mapflag      nopenalty
c9_2      mapflag      noteleport
c9_2      mapflag      nosave      SavePoint
c9_2      mapflag      monster_noteleport
c10_2      mapflag      nobranch
c10_2      mapflag      nomobloot
c10_2      mapflag      nomemo
c10_2      mapflag      nopenalty
c10_2      mapflag      noteleport
c10_2      mapflag      nosave      SavePoint
c10_2      mapflag      monster_noteleport
c11_2      mapflag      nobranch
c11_2      mapflag      nomobloot
c11_2      mapflag      nomemo
c11_2      mapflag      nopenalty
c11_2      mapflag      noteleport
c11_2      mapflag      nosave      SavePoint
c11_2      mapflag      monster_noteleport
c12_2      mapflag      nobranch
c12_2      mapflag      nomobloot
c12_2      mapflag      nomemo
c12_2      mapflag      nopenalty
c12_2      mapflag      noteleport
c12_2      mapflag      nosave      SavePoint
c12_2      mapflag      monster_noteleport
c13_2      mapflag      nobranch
c13_2      mapflag      nomobloot
c13_2      mapflag      nomemo
c13_2      mapflag      nopenalty
c13_2      mapflag      noteleport
c13_2      mapflag      nosave      SavePoint
c13_2      mapflag      monster_noteleport
c14_2      mapflag      nobranch
c14_2      mapflag      nomobloot
c14_2      mapflag      nomemo
c14_2      mapflag      nopenalty
c14_2      mapflag      noteleport
c14_2      mapflag      nosave      SavePoint
c14_2      mapflag      monster_noteleport
c15_2      mapflag      nobranch
c15_2      mapflag      nomobloot
c15_2      mapflag      nomemo
c15_2      mapflag      nopenalty
c15_2      mapflag      noteleport
c15_2      mapflag      nosave      SavePoint
c15_2      mapflag      monster_noteleport
c16_2      mapflag      nobranch
c16_2      mapflag      nomobloot
c16_2      mapflag      nomemo
c16_2      mapflag      nopenalty
c16_2      mapflag      noteleport
c16_2      mapflag      nosave      SavePoint
c16_2      mapflag      monster_noteleport
c17_2      mapflag      nobranch
c17_2      mapflag      nomobloot
c17_2      mapflag      nomemo
c17_2      mapflag      nopenalty
c17_2      mapflag      noteleport
c17_2      mapflag      nosave      SavePoint
c17_2      mapflag      monster_noteleport
c1_3      mapflag      nobranch
c1_3      mapflag      nomobloot
c1_3      mapflag      nomemo
c1_3      mapflag      nopenalty
c1_3      mapflag      noteleport
c1_3      mapflag      nosave      SavePoint
c1_3      mapflag      monster_noteleport
c2_3      mapflag      nobranch
c2_3      mapflag      nomobloot
c2_3      mapflag      nomemo
c2_3      mapflag      nopenalty
c2_3      mapflag      noteleport
c2_3      mapflag      nosave      SavePoint
c2_3      mapflag      monster_noteleport
c3_3      mapflag      nobranch
c3_3      mapflag      nomobloot
c3_3      mapflag      nomemo
c3_3      mapflag      nopenalty
c3_3      mapflag      noteleport
c3_3      mapflag      nosave      SavePoint
c3_3      mapflag      monster_noteleport
c4_3      mapflag      nobranch
c4_3      mapflag      nomobloot
c4_3      mapflag      nomemo
c4_3      mapflag      nopenalty
c4_3      mapflag      noteleport
c4_3      mapflag      nosave      SavePoint
c4_3      mapflag      monster_noteleport
c5_3      mapflag      nobranch
c5_3      mapflag      nomobloot
c5_3      mapflag      nomemo
c5_3      mapflag      nopenalty
c5_3      mapflag      noteleport
c5_3      mapflag      nosave      SavePoint
c5_3      mapflag      monster_noteleport
c6_3      mapflag      nobranch
c6_3      mapflag      nomobloot
c6_3      mapflag      nomemo
c6_3      mapflag      nopenalty
c6_3      mapflag      noteleport
c6_3      mapflag      nosave      SavePoint
c6_3      mapflag      monster_noteleport
c7_3      mapflag      nobranch
c7_3      mapflag      nomobloot
c7_3      mapflag      nomemo
c7_3      mapflag      nopenalty
c7_3      mapflag      noteleport
c7_3      mapflag      nosave      SavePoint
c7_3      mapflag      monster_noteleport
c8_3      mapflag      nobranch
c8_3      mapflag      nomobloot
c8_3      mapflag      nomemo
c8_3      mapflag      nopenalty
c8_3      mapflag      noteleport
c8_3      mapflag      nosave      SavePoint
c8_3      mapflag      monster_noteleport
c9_3      mapflag      nobranch
c9_3      mapflag      nomobloot
c9_3      mapflag      nomemo
c9_3      mapflag      nopenalty
c9_3      mapflag      noteleport
c9_3      mapflag      nosave      SavePoint
c9_3      mapflag      monster_noteleport
c10_3      mapflag      nobranch
c10_3      mapflag      nomobloot
c10_3      mapflag      nomemo
c10_3      mapflag      nopenalty
c10_3      mapflag      noteleport
c10_3      mapflag      nosave      SavePoint
c10_3      mapflag      monster_noteleport
c11_3      mapflag      nobranch
c11_3      mapflag      nomobloot
c11_3      mapflag      nomemo
c11_3      mapflag      nopenalty
c11_3      mapflag      noteleport
c11_3      mapflag      nosave      SavePoint
c11_3      mapflag      monster_noteleport
c12_3      mapflag      nobranch
c12_3      mapflag      nomobloot
c12_3      mapflag      nomemo
c12_3      mapflag      nopenalty
c12_3      mapflag      noteleport
c12_3      mapflag      nosave      SavePoint
c12_3      mapflag      monster_noteleport
c13_3      mapflag      nobranch
c13_3      mapflag      nomobloot
c13_3      mapflag      nomemo
c13_3      mapflag      nopenalty
c13_3      mapflag      noteleport
c13_3      mapflag      nosave      SavePoint
c13_3      mapflag      monster_noteleport
c14_3      mapflag      nobranch
c14_3      mapflag      nomobloot
c14_3      mapflag      nomemo
c14_3      mapflag      nopenalty
c14_3      mapflag      noteleport
c14_3      mapflag      nosave      SavePoint
c14_3      mapflag      monster_noteleport
c15_3      mapflag      nobranch
c15_3      mapflag      nomobloot
c15_3      mapflag      nomemo
c15_3      mapflag      nopenalty
c15_3      mapflag      noteleport
c15_3      mapflag      nosave      SavePoint
c15_3      mapflag      monster_noteleport
c16_3      mapflag      nobranch
c16_3      mapflag      nomobloot
c16_3      mapflag      nomemo
c16_3      mapflag      nopenalty
c16_3      mapflag      noteleport
c16_3      mapflag      nosave      SavePoint
c16_3      mapflag      monster_noteleport
c17_3      mapflag      nobranch
c17_3      mapflag      nomobloot
c17_3      mapflag      nomemo
c17_3      mapflag      nopenalty
c17_3      mapflag      noteleport
c17_3      mapflag      nosave      SavePoint
c17_3      mapflag      monster_noteleport
c1_4      mapflag      nobranch
c1_4      mapflag      nomobloot
c1_4      mapflag      nomemo
c1_4      mapflag      nopenalty
c1_4      mapflag      noteleport
c1_4      mapflag      nosave      SavePoint
c1_4      mapflag      monster_noteleport
c2_4      mapflag      nobranch
c2_4      mapflag      nomobloot
c2_4      mapflag      nomemo
c2_4      mapflag      nopenalty
c2_4      mapflag      noteleport
c2_4      mapflag      nosave      SavePoint
c2_4      mapflag      monster_noteleport
c3_4      mapflag      nobranch
c3_4      mapflag      nomobloot
c3_4      mapflag      nomemo
c3_4      mapflag      nopenalty
c3_4      mapflag      noteleport
c3_4      mapflag      nosave      SavePoint
c3_4      mapflag      monster_noteleport
c4_4      mapflag      nobranch
c4_4      mapflag      nomobloot
c4_4      mapflag      nomemo
c4_4      mapflag      nopenalty
c4_4      mapflag      noteleport
c4_4      mapflag      nosave      SavePoint
c4_4      mapflag      monster_noteleport
c5_4      mapflag      nobranch
c5_4      mapflag      nomobloot
c5_4      mapflag      nomemo
c5_4      mapflag      nopenalty
c5_4      mapflag      noteleport
c5_4      mapflag      nosave      SavePoint
c5_4      mapflag      monster_noteleport
c6_4      mapflag      nobranch
c6_4      mapflag      nomobloot
c6_4      mapflag      nomemo
c6_4      mapflag      nopenalty
c6_4      mapflag      noteleport
c6_4      mapflag      nosave      SavePoint
c6_4      mapflag      monster_noteleport
c7_4      mapflag      nobranch
c7_4      mapflag      nomobloot
c7_4      mapflag      nomemo
c7_4      mapflag      nopenalty
c7_4      mapflag      noteleport
c7_4      mapflag      nosave      SavePoint
c7_4      mapflag      monster_noteleport
c8_4      mapflag      nobranch
c8_4      mapflag      nomobloot
c8_4      mapflag      nomemo
c8_4      mapflag      nopenalty
c8_4      mapflag      noteleport
c8_4      mapflag      nosave      SavePoint
c8_4      mapflag      monster_noteleport
c9_4      mapflag      nobranch
c9_4      mapflag      nomobloot
c9_4      mapflag      nomemo
c9_4      mapflag      nopenalty
c9_4      mapflag      noteleport
c9_4      mapflag      nosave      SavePoint
c9_4      mapflag      monster_noteleport
c10_4      mapflag      nobranch
c10_4      mapflag      nomobloot
c10_4      mapflag      nomemo
c10_4      mapflag      nopenalty
c10_4      mapflag      noteleport
c10_4      mapflag      nosave      SavePoint
c10_4      mapflag      monster_noteleport
c11_4      mapflag      nobranch
c11_4      mapflag      nomobloot
c11_4      mapflag      nomemo
c11_4      mapflag      nopenalty
c11_4      mapflag      noteleport
c11_4      mapflag      nosave      SavePoint
c11_4      mapflag      monster_noteleport
c12_4      mapflag      nobranch
c12_4      mapflag      nomobloot
c12_4      mapflag      nomemo
c12_4      mapflag      nopenalty
c12_4      mapflag      noteleport
c12_4      mapflag      nosave      SavePoint
c12_4      mapflag      monster_noteleport
c13_4      mapflag      nobranch
c13_4      mapflag      nomobloot
c13_4      mapflag      nomemo
c13_4      mapflag      nopenalty
c13_4      mapflag      noteleport
c13_4      mapflag      nosave      SavePoint
c13_4      mapflag      monster_noteleport
c14_4      mapflag      nobranch
c14_4      mapflag      nomobloot
c14_4      mapflag      nomemo
c14_4      mapflag      nopenalty
c14_4      mapflag      noteleport
c14_4      mapflag      nosave      SavePoint
c14_4      mapflag      monster_noteleport
c15_4      mapflag      nobranch
c15_4      mapflag      nomobloot
c15_4      mapflag      nomemo
c15_4      mapflag      nopenalty
c15_4      mapflag      noteleport
c15_4      mapflag      nosave      SavePoint
c15_4      mapflag      monster_noteleport
c16_4      mapflag      nobranch
c16_4      mapflag      nomobloot
c16_4      mapflag      nomemo
c16_4      mapflag      nopenalty
c16_4      mapflag      noteleport
c16_4      mapflag      nosave      SavePoint
c16_4      mapflag      monster_noteleport
c17_4      mapflag      nobranch
c17_4      mapflag      nomobloot
c17_4      mapflag      nomemo
c17_4      mapflag      nopenalty
c17_4      mapflag      noteleport
c17_4      mapflag      nosave      SavePoint
c17_4      mapflag      monster_noteleport
c1_5      mapflag      nobranch
c1_5      mapflag      nomobloot
c1_5      mapflag      nomemo
c1_5      mapflag      nopenalty
c1_5      mapflag      noteleport
c1_5      mapflag      nosave      SavePoint
c1_5      mapflag      monster_noteleport
c2_5      mapflag      nobranch
c2_5      mapflag      nomobloot
c2_5      mapflag      nomemo
c2_5      mapflag      nopenalty
c2_5      mapflag      noteleport
c2_5      mapflag      nosave      SavePoint
c2_5      mapflag      monster_noteleport
c3_5      mapflag      nobranch
c3_5      mapflag      nomobloot
c3_5      mapflag      nomemo
c3_5      mapflag      nopenalty
c3_5      mapflag      noteleport
c3_5      mapflag      nosave      SavePoint
c3_5      mapflag      monster_noteleport
c4_5      mapflag      nobranch
c4_5      mapflag      nomobloot
c4_5      mapflag      nomemo
c4_5      mapflag      nopenalty
c4_5      mapflag      noteleport
c4_5      mapflag      nosave      SavePoint
c4_5      mapflag      monster_noteleport
c5_5      mapflag      nobranch
c5_5      mapflag      nomobloot
c5_5      mapflag      nomemo
c5_5      mapflag      nopenalty
c5_5      mapflag      noteleport
c5_5      mapflag      nosave      SavePoint
c5_5      mapflag      monster_noteleport
c6_5      mapflag      nobranch
c6_5      mapflag      nomobloot
c6_5      mapflag      nomemo
c6_5      mapflag      nopenalty
c6_5      mapflag      noteleport
c6_5      mapflag      nosave      SavePoint
c6_5      mapflag      monster_noteleport
c7_5      mapflag      nobranch
c7_5      mapflag      nomobloot
c7_5      mapflag      nomemo
c7_5      mapflag      nopenalty
c7_5      mapflag      noteleport
c7_5      mapflag      nosave      SavePoint
c7_5      mapflag      monster_noteleport
c8_5      mapflag      nobranch
c8_5      mapflag      nomobloot
c8_5      mapflag      nomemo
c8_5      mapflag      nopenalty
c8_5      mapflag      noteleport
c8_5      mapflag      nosave      SavePoint
c8_5      mapflag      monster_noteleport
c9_5      mapflag      nobranch
c9_5      mapflag      nomobloot
c9_5      mapflag      nomemo
c9_5      mapflag      nopenalty
c9_5      mapflag      noteleport
c9_5      mapflag      nosave      SavePoint
c9_5      mapflag      monster_noteleport
c10_5      mapflag      nobranch
c10_5      mapflag      nomobloot
c10_5      mapflag      nomemo
c10_5      mapflag      nopenalty
c10_5      mapflag      noteleport
c10_5      mapflag      nosave      SavePoint
c10_5      mapflag      monster_noteleport
c11_5      mapflag      nobranch
c11_5      mapflag      nomobloot
c11_5      mapflag      nomemo
c11_5      mapflag      nopenalty
c11_5      mapflag      noteleport
c11_5      mapflag      nosave      SavePoint
c11_5      mapflag      monster_noteleport
c12_5      mapflag      nobranch
c12_5      mapflag      nomobloot
c12_5      mapflag      nomemo
c12_5      mapflag      nopenalty
c12_5      mapflag      noteleport
c12_5      mapflag      nosave      SavePoint
c12_5      mapflag      monster_noteleport
c13_5      mapflag      nobranch
c13_5      mapflag      nomobloot
c13_5      mapflag      nomemo
c13_5      mapflag      nopenalty
c13_5      mapflag      noteleport
c13_5      mapflag      nosave      SavePoint
c13_5      mapflag      monster_noteleport
c14_5      mapflag      nobranch
c14_5      mapflag      nomobloot
c14_5      mapflag      nomemo
c14_5      mapflag      nopenalty
c14_5      mapflag      noteleport
c14_5      mapflag      nosave      SavePoint
c14_5      mapflag      monster_noteleport
c15_5      mapflag      nobranch
c15_5      mapflag      nomobloot
c15_5      mapflag      nomemo
c15_5      mapflag      nopenalty
c15_5      mapflag      noteleport
c15_5      mapflag      nosave      SavePoint
c15_5      mapflag      monster_noteleport
c16_5      mapflag      nobranch
c16_5      mapflag      nomobloot
c16_5      mapflag      nomemo
c16_5      mapflag      nopenalty
c16_5      mapflag      noteleport
c16_5      mapflag      nosave      SavePoint
c16_5      mapflag      monster_noteleport
c17_5      mapflag      nobranch
c17_5      mapflag      nomobloot
c17_5      mapflag      nomemo
c17_5      mapflag      nopenalty
c17_5      mapflag      noteleport
c17_5      mapflag      nosave      SavePoint
c17_5      mapflag      monster_noteleport
c1_6      mapflag      nobranch
c1_6      mapflag      nomobloot
c1_6      mapflag      nomemo
c1_6      mapflag      nopenalty
c1_6      mapflag      noteleport
c1_6      mapflag      nosave      SavePoint
c1_6      mapflag      monster_noteleport
c2_6      mapflag      nobranch
c2_6      mapflag      nomobloot
c2_6      mapflag      nomemo
c2_6      mapflag      nopenalty
c2_6      mapflag      noteleport
c2_6      mapflag      nosave      SavePoint
c2_6      mapflag      monster_noteleport
c3_6      mapflag      nobranch
c3_6      mapflag      nomobloot
c3_6      mapflag      nomemo
c3_6      mapflag      nopenalty
c3_6      mapflag      noteleport
c3_6      mapflag      nosave      SavePoint
c3_6      mapflag      monster_noteleport
c4_6      mapflag      nobranch
c4_6      mapflag      nomobloot
c4_6      mapflag      nomemo
c4_6      mapflag      nopenalty
c4_6      mapflag      noteleport
c4_6      mapflag      nosave      SavePoint
c4_6      mapflag      monster_noteleport
c5_6      mapflag      nobranch
c5_6      mapflag      nomobloot
c5_6      mapflag      nomemo
c5_6      mapflag      nopenalty
c5_6      mapflag      noteleport
c5_6      mapflag      nosave      SavePoint
c5_6      mapflag      monster_noteleport
c6_6      mapflag      nobranch
c6_6      mapflag      nomobloot
c6_6      mapflag      nomemo
c6_6      mapflag      nopenalty
c6_6      mapflag      noteleport
c6_6      mapflag      nosave      SavePoint
c6_6      mapflag      monster_noteleport
c7_6      mapflag      nobranch
c7_6      mapflag      nomobloot
c7_6      mapflag      nomemo
c7_6      mapflag      nopenalty
c7_6      mapflag      noteleport
c7_6      mapflag      nosave      SavePoint
c7_6      mapflag      monster_noteleport
c8_6      mapflag      nobranch
c8_6      mapflag      nomobloot
c8_6      mapflag      nomemo
c8_6      mapflag      nopenalty
c8_6      mapflag      noteleport
c8_6      mapflag      nosave      SavePoint
c8_6      mapflag      monster_noteleport
c9_6      mapflag      nobranch
c9_6      mapflag      nomobloot
c9_6      mapflag      nomemo
c9_6      mapflag      nopenalty
c9_6      mapflag      noteleport
c9_6      mapflag      nosave      SavePoint
c9_6      mapflag      monster_noteleport
c10_6      mapflag      nobranch
c10_6      mapflag      nomobloot
c10_6      mapflag      nomemo
c10_6      mapflag      nopenalty
c10_6      mapflag      noteleport
c10_6      mapflag      nosave      SavePoint
c10_6      mapflag      monster_noteleport
c11_6      mapflag      nobranch
c11_6      mapflag      nomobloot
c11_6      mapflag      nomemo
c11_6      mapflag      nopenalty
c11_6      mapflag      noteleport
c11_6      mapflag      nosave      SavePoint
c11_6      mapflag      monster_noteleport
c12_6      mapflag      nobranch
c12_6      mapflag      nomobloot
c12_6      mapflag      nomemo
c12_6      mapflag      nopenalty
c12_6      mapflag      noteleport
c12_6      mapflag      nosave      SavePoint
c12_6      mapflag      monster_noteleport
c13_6      mapflag      nobranch
c13_6      mapflag      nomobloot
c13_6      mapflag      nomemo
c13_6      mapflag      nopenalty
c13_6      mapflag      noteleport
c13_6      mapflag      nosave      SavePoint
c13_6      mapflag      monster_noteleport
c14_6      mapflag      nobranch
c14_6      mapflag      nomobloot
c14_6      mapflag      nomemo
c14_6      mapflag      nopenalty
c14_6      mapflag      noteleport
c14_6      mapflag      nosave      SavePoint
c14_6      mapflag      monster_noteleport
c15_6      mapflag      nobranch
c15_6      mapflag      nomobloot
c15_6      mapflag      nomemo
c15_6      mapflag      nopenalty
c15_6      mapflag      noteleport
c15_6      mapflag      nosave      SavePoint
c15_6      mapflag      monster_noteleport
c16_6      mapflag      nobranch
c16_6      mapflag      nomobloot
c16_6      mapflag      nomemo
c16_6      mapflag      nopenalty
c16_6      mapflag      noteleport
c16_6      mapflag      nosave      SavePoint
c16_6      mapflag      monster_noteleport
c17_6      mapflag      nobranch
c17_6      mapflag      nomobloot
c17_6      mapflag      nomemo
c17_6      mapflag      nopenalty
c17_6      mapflag      noteleport
c17_6      mapflag      nosave      SavePoint
c17_6      mapflag      monster_noteleport

game1993 發表於 2014-5-27 13:38:23

setarray $@BOSSName??
setarray $@ModFName
setarray $@GuanShuMod
冒似少了什麼

hiphopiove 發表於 2014-5-27 13:51:47

game1993 發表於 2014-5-27 01:38 PM static/image/common/back.gif
setarray $@BOSSName??
setarray $@ModFName
setarray $@GuanShuMod


大大我不太懂你這語法的意思

是有少嗎 ?

resona 發表於 2014-5-27 15:13:32

先確定你的array裡是不是真的有放進物品編號

emistry 發表於 2014-5-27 15:21:54

你的NPC在給物品前,應該是有顯示什麽頭飾能夠獲取吧??
檢查所顯示出來的頭飾名里有沒有 “NULL” 的
如果有就從setarray裏面刪除該不存在的頭飾

hiphopiove 發表於 2014-5-27 15:38:46

resona 發表於 2014-5-27 03:13 PM static/image/common/back.gif
先確定你的array裡是不是真的有放進物品編號

大大我的array放很多東西呀~

編號滿滿滿= =你應該會注意到吧~撲

hiphopiove 發表於 2014-5-27 15:39:50

emistry 發表於 2014-5-27 03:21 PM static/image/common/back.gif
你的NPC在給物品前,應該是有顯示什麽頭飾能夠獲取吧??
檢查所顯示出來的頭飾名里有沒有 “NULL” ...

大大是的確有顯示~而且全部都正常顯示~

但是抽出來卻是null

不知道原因~"~

不知道是哪裡沒有接到語法 ?

resona 發表於 2014-5-27 15:49:32

hiphopiove 發表於 2014-5-27 03:38 PM static/image/common/back.gif
大大我的array放很多東西呀~

編號滿滿滿= =你應該會注意到吧~撲

你語法有他不一定有存進去...
setarray $@Qzstoxitem,...,...,...   ?

hiphopiove 發表於 2014-5-27 15:51:45

resona 發表於 2014-5-27 03:49 PM static/image/common/back.gif
你語法有他不一定有存進去...
setarray $@Qzstoxitem,...,...,...   ?

存進去 ? 什麼意思 ?

意思是要改 setarray $@Qzstoxitem

這樣才能讀取到@@?

emistry 發表於 2014-5-27 16:16:07

可以 POST完整的腳本嗎??
你POST的腳本是 FUNCTION 來的, 而你的錯誤信息是來自NPC

還有是全部頭飾頭變成NULL嗎??還是一部份??

setarray 有沒有添加 【0】 是一樣的。問題不在於有沒有添加【0】

hiphopiove 發表於 2014-5-27 16:20:43

本帖最後由 hiphopiove 於 2014-5-27 04:24 PM 編輯

emistry 發表於 2014-5-27 04:16 PM static/image/common/back.gif
可以 POST完整的腳本嗎??
你POST的腳本是 FUNCTION 來的, 而你的錯誤信息是來自NPC



了解~

大大我已經重POST了~

現在的是完整的整個道館腳本~

麻煩大大幫我看看了 !!~謝謝 !!

補充>>NULL是全部@@!! 我重複打好幾次~領的都是NULL ~"~!!

resona 發表於 2014-5-27 16:24:14

emistry 發表於 2014-5-27 04:16 PM
可以 POST完整的腳本嗎??
你POST的腳本是 FUNCTION 來的, 而你的錯誤信息是來自NPC


嗯嗯      

emistry 發表於 2014-5-27 16:45:25

你確保你的 item_db.txt 裏面有所有的頭飾嗎?? ID 27035 ~ 27096 ?? 能用@item 得到??

hiphopiove 發表於 2014-5-27 16:49:43

本帖最後由 hiphopiove 於 2014-5-27 04:51 PM 編輯

emistry 發表於 2014-5-27 04:45 PM static/image/common/back.gif
你確保你的 item_db.txt 裏面有所有的頭飾嗎?? ID 27035 ~ 27096 ?? 能用@item 得到??
確定物品都有~我已全部都創過哩~

http://i.imgur.com/Jo8MXk7.jpg

http://i.imgur.com/loeHUFs.jpg

hiphopiove 發表於 2014-5-27 17:05:46

emistry 發表於 2014-5-27 04:45 PM static/image/common/back.gif
你確保你的 item_db.txt 裏面有所有的頭飾嗎?? ID 27035 ~ 27096 ?? 能用@item 得到??

感謝兩位大大的幫忙 emistry 、resona

小弟用裡面其他語法複製貼上再做修改

目前已可以正常使用~並且能顯示抽到什麼頭飾 !!

多謝指導!!!
頁: [1]
查看完整版本: 道館頭飾領獎領的東西是UNLL,是不是有語法錯誤?