viewing paste Face Worm | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274
//===== Hercules Script ======================================
//= Faceworm Nest Instance 'Episode 14.3'  (jRO Servers)
//===== By: ==================================================
//= pengc2010
//===== Current Version: =====================================
//= 1.2 (Chinese version)
//===== Compatible With: =====================================
//= Hercules
//===== Additional Comments: =================================
//= [jRO Playing Conversion]
//= Translated to Chinese [pengc2010]
//= 1.0 First Version [pengc2010]
//= 1.1 Implemented special skills for MVPs [pengc2010]
//= 1.2 Added jRO quests, translation is not completed [pengc2010]
//============================================================
1@eom   mapflag src4instance
 
//===========================================================================================
// Instance part
//===========================================================================================
 
1@face  mapflag src4instance
 
dali,83,67,5    script  Racing scoreboard#1     857,{
        mes "[Faceworm Nests Scores]";
  for(.@i = 1; .@i <= 5; .@i++) {
    mes "================================";
    mes "Party " + .@i + " Name: " + (($facewormparty$[.@i] == "")?"^ff0044No Record^000000":("队伍 ^ff0044"+$facewormparty$[.@i]+"^000000"));
    mes "Clearance Time: ^0000ff" + $facewormtime[.@i]/60 + "Mins "+$facewormtime[.@i]%60 + "sec^000000";
    mes "Team Members : ^ff9900" + $facewormmember$[.@i] +"^000000";
        }
        mes "================================";
        if(getgmlevel()<.GMAccess || !getgmlevel())
    close;
  next;
  switch(select("Reset Records","Delete a specific record","Cancel")) {
    case 1:
      for(.@i = 1; .@i <= 5; .@i++) {
          $facewormparty$[.@i] = "";
          $facewormtime[.@i] = 0;
          $facewormmember$[.@i] = "";      
      }
      mes "- Records have all been reset -";
      close;
    case 2:
      .@menu$ = "";
      for(.@i = 1; .@i <= 5; .@i++) {
         .@menu$ += $facewormparty$[.@i] + ":";
      }
      .@menu$ += "Cancel";
      mes "- Which teams record to be deleted ? -";
      .@select = select(.@menu$);
      if(.@select > 5 || .@select < 1)
          close;
      for(.@i = .@select; .@i < 5; .@i++) {
          $facewormparty$[.@i] = $facewormparty$[.@i+1];
          $facewormtime[.@i] = $facewormtime[.@i+1];
          $facewormmember$[.@i] = $facewormmember$[.@i+1];
      }
      $facewormparty$[5] = "";
      $facewormtime[5] = 0;
      $facewormmember$[5] = "";
      mes "- The selected record has been deleted -";
      close;
    case 3:
      mes "Cancel";
      close;
  }
}
 
 
dali,80,60,4    script  Magic Scholar   755,{
  if(checkquest(12325, PLAYTIME) == 2) {
        mes "- ^0000ff Dimensional movement traces have disappeared , you can use the device again ^000000- dimensional ." ;
    erasequest 12325;
    close;
  }
        mes "[Magic Scholar]";
        mes "Hello , what do you want ?";
        next;
        switch(select("Open Dimensional Device","You are doing here ?","About the human face insect nests","Nothing")) {
        case 1:
    if(BaseLevel < 140) {
      mes "[Magic Scholar]";
      mes "You are not capable of entering the Dimensional Device.";
      mes "Level required : ^ff0000 140 ^000000";
      close;
    }
    .@party_id = getcharid(1);
    .@md_name$ = "Faceworm";
                if(checkquest(12325)) {
                        mes "[Magic Scholar]";
                        mes "Dimensional movement of a great burden on the body ,";
                        mes "You need to take a break in order to use it again.";
                        next;
                        mes "[Magic Scholar]";
                        mes "From the beginning of last use Dimensional Device , rest for at least 23 hours .";
                        close;
                }
    if (!.@party_id) {
      mes "[Magic Scholar]";
      mes "Please form a team to enter";
      close;
    }
    if (getcharid(0) != getpartyleader(.@party_id,2)) {
      mes "[Magic Scholar]";
      mes "Tell your Party Leader to apply for Dimensional Device";
      close;
    }
                        if (instance_create(.@md_name$) < 0) {
                                mes "Party Name: "+.@p_name$;
                                mes "Party Leader: "+strcharinfo(0);
                                mes "^0000ff"+.@md_name$+" ^000000- Reservation Failed!";
                                close;
                        }
                        mes "[Hugin]";
                        mes "The time gap was created. When you're ready, talk to me again.";
                        close;
        case 2:
                mes "[Magic Scholar]";
                mes "I am a research scholar dimensional crack phenomenon .";
                mes "It appears next to the Dimensional Device can travel freely to the past.";
                next;
                mes "[Magic Scholar]";
                mes "不过这不是我的研究成果...";
                next;
                mes "[Magic Scholar]";
                mes "我曾经试图干涉这里自然产生的次元裂缝。";
                mes "但大多都失败了。";
                next;
                mes "[Magic Scholar]";
                mes "裂缝所涉及的能量太过于庞大,";
                mes "完全无法驾驭,很长时间之内研究都毫无进展。";
                next;
                mes "[Magic Scholar]";
                mes "但是最近出现了一名研究者,";
                mes "还有一名历史学者。";
                mes "在他们的研究之下,控制裂缝的能量也成为了可行的事情。";
                next;
                mes "[Magic Scholar]";
                mes "他们的研究成果,就是旁边这个Dimensional Device。";
                next;
                mes "[Magic Scholar]";
                mes "我负责的这个Dimensional Device,";
                mes "连接着距离现在不近也不远的过去。";
                mes "那时的斐扬,还栖息着一种叫做人面虫的奇异生物。";
                next;
                mes "[Magic Scholar]";
                mes "通过这个Dimensional Device狩猎人面虫的冒险者非常多。";
                next;
                mes "[Magic Scholar]";
                mes "他们甚至还为此设立了竞速比赛,";
                mes "旁边的记录板就记载着排名最靠前的冒险者,和他们的记录。";
                next;
                mes "[Magic Scholar]";
                mes "啊,不好意思。";
                mes "一不小心说了这么多。";
                mes "你来也是想进入人面虫巢穴的么?";
                next;
                mes "[Magic Scholar]";
                mes "巢穴中的怪物非常强力。";
                mes "先做好充分的准备比较好。";
                mes " ";
                mes "‐^ff0000只有140级以上才能进入^000000‐";
                close;
        case 3:
                mes "[Magic Scholar]";
                mes "以前,斐扬附近常有路人被巨大怪物袭击的事件,";
                mes "而这些,大多是人面虫干的好事。";
                next;
                mes "[Magic Scholar]";
                mes "你在人面虫巢穴中,可能会发现很多被害人的遗物。";
                mes "如果把这些遗物交还给被害人家属的话,他们可能也会得到一些慰藉吧。";
                next;
                mes "[Magic Scholar]";
                mes "如果需要的话,我可以把你传送至斐扬。";
                next;
                if(select("Cancel","拜托了") == 2) {
                        mes "[Magic Scholar]";
                        mes "是么,如果有需要可以再找我。";
                        close;
                }
                mes "[Magic Scholar]";
                mes "那这就开始了。";
                close2;
                warp "payon",150,58;
                end;
        case 4:
                mes "[Magic Scholar]";
                mes "是么,如果有需要可以再找我。";
                close;
        }
}
 
 
dali,77,58,4    script  Dimensional Device      10007,{
        .@party_id = getcharid(1);
        if (!.@party_id) {
                mes "[Dimensional Device]";
                mes "Dimensional Device Only in the case of the composition of the team will be able to use .";
                close;
        }
        mes "[Dimensional Device]";
        mes "Accreditation...";
        next;
        if(checkquest(12325)) {
                mes "[Dimensional Device]";
                mes "Dimensional movement traces still remain. Please wait for some time to use it again.";
                close;
        }
        mes "Dimensional Device Normal operation";
        next;
        if(select("Into the human face insect nests","Cancel") == 2) {
                mes "- Away from the sub-element device -";
                close;
        }
switch(instance_enter(.@md_name$)) {
                        case 3:
                                mes "An unknown error has occurred.";
                                close;
                        case 2:
                                mes "The memorial dungeon "+.@md_name$+" does not exist.";
                                mes "The party leader did not generate the dungeon yet.";
                                close;
                        case 1:
                                mes "Only the registered members can enter the instance "+.@md_name$+".";
                                close;
                        case 0:
                                mapannounce "dali",getpartyname(getcharid(1))+"Team members "+strcharinfo(0)+" Into the copy of the human face insect nests.",bc_map,"0x00ff99"; //FW_NORMAL 12 0 0
                                setquest 12325;
                                //warp "1@gl_k",150,20;
                                close;
                        }
       
}
 
1@face,109,348,5        script  卡奥斯#face  683,{
        if(getpartyleader(getcharid(1),2) != getcharid(0)) {
                        cutin "H_CHAOS01", 2;
                        mes "[卡奥斯]";
                        mes "你们也是来狩猎人面虫的?";
                        mes "让我见见你们队长吧";
                        close2;
                        cutin "", 255;
                        end;
        }
        switch('progress) {
                case 0:
        .@partyid = getcharid(1);
        getpartymember .@partyid,0;
        'members = $@partymembercount;
        'partyname$ = getpartyname(.@partyid);
        'membername$ = $@partymembername$[0];
        for(.@i = 1; .@i < 'members; .@i++) {
          'membername$ += "  " + $@partymembername$[.@i];
        }
        cutin "H_CHAOS01", 2;
        mes "[卡奥斯]";
        mes "嗯?我可没听说过其他赏金猎人会来这。";
        npctalk "嗯?我可没听说过其他赏金猎人会来这。";
        next;
        unittalk getcharid(3),"这一定是有什么误会,我们不是赏金猎人。";
        select("这一定是有什么误会,我们不是赏金猎人。");
        mes "[卡奥斯]";
        mes "没什么好辩解的,人面虫属于所有人。";
        npctalk "没什么好辩解的,人面虫属于所有人。";
        next;
        unittalk getcharid(3),"人面虫?这是什么?我可是第一次听到。";
        select("人面虫?这是什么?我可是第一次听到。");
        mes "[卡奥斯]";
        mes "哈哈!你看你,傻傻的就跑进来了啊?人面虫是这附近出没的怪物啊!";
        npctalk "哈哈!你看你,傻傻的就跑进来了啊?人面虫是这附近出没的怪物啊!";
        next;
        mes "[卡奥斯]";
        mes "算了,不管了,只要你不妨碍到我们,我们也不会管你的。";
        npctalk "算了,不管了,只要你不妨碍到我们,我们也不会管你的。";
        next;
        cutin "H_IRIS02", 2;
        mes "[艾瑞丝]";
        mes "啊~真是秋高气爽!";
        donpcevent instance_npcname("艾瑞丝#face")+"::OnTalk1";
        next;
        mes "[艾瑞丝]";
        mes "嘿嘿!最近天气真好,艾瑞丝的心情也好棒哟~";
        donpcevent instance_npcname("艾瑞丝#face")+"::OnTalk2";
        next;
        mes "[艾瑞丝]";
        mes "卡奥斯你不觉得吗?";
        donpcevent instance_npcname("艾瑞丝#face")+"::OnTalk3";
        next;
        cutin "H_CHAOS01", 2;
        mes "[卡奥斯]";
        mes "那应该也只是现在而已";
        npctalk "那应该也只是现在而已";
        next;
        cutin "H_CHAOS02", 2;
        mes "[卡奥斯]";
        mes "我感到一阵黑色的风吹过来";
        npctalk "我感到一阵黑色的风吹过来";
        next;
        cutin "H_CHAOS03", 2;  
        mes "[卡奥斯]";
        mes "艾瑞丝!附近似乎有人面虫的动静,皇后的巢穴大概就在这森林里!";
        npctalk "艾瑞丝!附近似乎有人面虫的动静,皇后的巢穴大概就在这森林里!";
        next;
        cutin "H_IRIS01", 2;
        mes "[艾瑞丝]";
        mes "啊!只要像以前那样处理就对了吧?";
        donpcevent instance_npcname("艾瑞丝#face")+"::OnTalk4";
        next;
        cutin "H_CHAOS02", 2;
        mes "[卡奥斯]";
        mes "嗯!我们快去把他们解决吧!那边的冒险家们,你们要小心了,人面虫群已经开始活动了!";
        npctalk "嗯!我们快去把他们解决吧!那边的冒险家们,你们要小心了,因为人面虫现在正在排山倒海涌过来呢!";
        close2;
        cutin "", 255;
        hideonnpc instance_npcname("卡奥斯#face");
        hideonnpc instance_npcname("艾瑞丝#face");
        sleep2 2000;
        donpcevent instance_npcname("#faceworm") + "::OnStart";
        end;   
                case 1:
        cutin "H_CHAOS01", 2;
        mes "[卡奥斯]";
        mes  "哇~你解决的真快!果然厉害!";
        npctalk "哇~你解决的真快!果然厉害!";
        next;
        unittalk getcharid(3),"刚刚那隻怪物是这边的首领吗?";
        select("刚刚那只怪物是它们的首领吗?");
        mes "[卡奥斯]";
        mes  "不不~ 人面虫国王才没那么简单";
        npctalk "不不~ 人面虫国王才没那么简单";
        next;
        mes "[卡奥斯]";
        mes  "刚刚的只是人面虫的突变种,但可不能因此就小看它们";
        npctalk "刚刚的只是人面虫的突变种,但可不能因此就小看它们";
        next;
        mes "[卡奥斯]";
        mes "对了!杀了突变种之后不是拿到了它的皮吗?那个可是非常有用的东西";
        npctalk "对了!杀了突变种之后不是拿到了它的皮吗?那个可是非常有用的东西";
        next;
        cutin "H_IRIS01", 2;
        mes "[艾瑞丝]";
        mes "不过如果战斗时间太长,鳞片就会受损,也就变成一件没用的古董了";
        donpcevent instance_npcname("艾瑞丝#face")+"::OnTalk5";
        next;
        mes "[艾瑞丝]";
        mes "听说厉害的猎人们能够迅速正确地把价值不斐的鳞片剥下来呢!";
        donpcevent instance_npcname("艾瑞丝#face")+"::OnTalk6";
        next;
        cutin "H_IRIS02", 2;
        mes "[艾瑞丝]";
        mes "卡奥斯你有信心吗?";
        donpcevent instance_npcname("艾瑞丝#face")+"::OnTalk7";
        next;
        cutin "H_CHAOS01", 2;
        mes "[卡奥斯]";
        mes "太勉强了!实在强人所难!而且我只会用怒爆! 我想那些鳞片应该都被烧毁了…";
        npctalk "太勉强了!实在强人所难!而且我只会用怒爆! 我想那些鳞片应该都被烧毁了…";
        next;
        cutin "H_IRIS02", 2;
        mes "[艾瑞丝]";
        mes "真没用耶~卡奥斯";
        donpcevent instance_npcname("艾瑞丝#face")+"::OnTalk8";
        next;
        cutin "H_CHAOS01", 2;
        mes "[卡奥斯]";
        mes "总之这里看来并没有我们想狩猎的怪物,所以我们先走一步了,你就在这里处理这些小不点吧!";
        npctalk "总之这里看来并没有我们想狩猎的怪物,所以我们先走一步了,你就在这里处理这些小不点吧!";
        next;
        cutin "",255;
        mes "-卡奥斯离开了。-";
        hideonnpc instance_npcname("卡奥斯#face");
        next;
        cutin "H_IRIS02",2;
        mes "[艾瑞丝]";
        mes "卡奥斯!你又要自己先走了吗?";
        donpcevent instance_npcname("艾瑞丝#face")+"::OnTalk9";
        close2;
        cutin "",255;
        hideonnpc instance_npcname("艾瑞丝#face");
        // 第二区域小怪
        sleep2 2000;
        donpcevent instance_npcname("#faceworm") + "::OnStart";
        end;
                case 2:
        cutin "H_CHAOS01", 2;
        mes "[卡奥斯]";
        mes "你们的实力真不错~不过现在开始可要小心了!这狭窄的峡谷可是处处暗藏危机的!?";
        npctalk "你们的实力真不错~不过现在开始可要小心了!这狭窄的峡谷可是处处暗藏危机的!?";
        close2;
        cutin "",255;
        hideonnpc instance_npcname("卡奥斯#face");
        hideonnpc instance_npcname("艾瑞丝#face");
        sleep2 2000;
        donpcevent instance_npcname("#faceworm") + "::OnStart";
        end;
                case 3: end;
                case 4:
        cutin "H_IRIS01", 2;
        mes "[艾瑞丝]";
        mes "这个嘛…说是人面虫巢穴好像又太大了点";
        donpcevent instance_npcname("艾瑞丝#face")+"::OnTalk10";
        next;
        cutin "H_CHAOS01", 2;
        mes "[卡奥斯]";
        mes "哼,既然来了我就下去看看吧!";
        npctalk "哼,既然来了我就下去看看吧!";
        next;
        cutin "H_IRIS01", 2;
        mes "[艾瑞丝]";
        mes "卡奥斯!别再开玩笑了!";
        donpcevent instance_npcname("艾瑞丝#face")+"::OnTalk11";
        next;
        cutin "H_CHAOS01", 2;
        mes "[卡奥斯]";
        mes "不会怎样的啦!看起来根本不危险,我一下就回来了,这里就交给你啦!";
        npctalk "不会怎样的啦!看起来根本不危险,我一下就回来了,这里就交给你啦!";
        next;
        hideonnpc instance_npcname("卡奥斯#face");
        movenpc instance_npcname("卡奥斯#face"),213,157;
        next;
        cutin "H_IRIS01", 2;
        mes "[艾瑞丝]";
        mes "啊啊!卡奥斯这个冒失鬼,又这么莽撞!";
        donpcevent instance_npcname("艾瑞丝#face")+"::OnTalk12";
        next;
        cutin "", 255;
        mes "[卡奥斯]";
        mes "啊!哎哟喂呀!这是什么啊!?";
        mapannounce instance_mapname("1@face"),"卡奥斯 : 啊!哎哟喂呀!这是什么啊!?",bc_map,0xFF1493;
        next;
        cutin "H_IRIS01", 2;
        mes "[艾瑞丝]";
        mes "卡奥斯!发生什么事了?";
        donpcevent instance_npcname("艾瑞丝#face")+"::OnTalk13";
        next;
        cutin "", 255;
        mes "[卡奥斯]";
        mes "啊…";
        mapannounce instance_mapname("1@face"),"卡奥斯 : 啊…",bc_map,0xFF1493;
        sleep2 300;
        mes "啊啊…";
        mapannounce instance_mapname("1@face"),"卡奥斯 : 啊啊…",bc_map,0xFF1493;
        sleep2 400;
        mes "啊啊啊…";
        mapannounce instance_mapname("1@face"),"卡奥斯 : 啊啊啊…",bc_map,0xFF1493;
        sleep2 500;
        mes "啊啊啊啊…";
        mapannounce instance_mapname("1@face"),"卡奥斯 : 啊啊啊啊…",bc_map,0xFF1493;
        sleep2 600;
        mes "啊啊啊啊啊…";
        mapannounce instance_mapname("1@face"),"卡奥斯 : 啊啊啊啊啊…",bc_map,0xFF1493;
        sleep2 700;
        mes "啊啊啊啊啊啊…";
        mapannounce instance_mapname("1@face"),"卡奥斯 : 啊啊啊啊啊啊…",bc_map,0xFF1493;
        sleep2 800;
        mes "啊啊啊啊啊啊啊!!";
        mapannounce instance_mapname("1@face"),"卡奥斯 : 啊啊啊啊啊啊啊!!",bc_map,0xFF1493;
        next;
        movenpc instance_npcname("卡奥斯#face"),208,149;
        hideoffnpc instance_npcname("卡奥斯#face");
        cutin "H_CHAOS03", 2;
        mes "[卡奥斯]";
        mes "可恶,差一点我就成为活人大餐了";
        npctalk "可恶,差一点我就成为活人大餐了";
        next;
        cutin "H_IRIS01", 2;
        mes "[艾瑞丝]";
        mes "我问你到底发生了什么事!?";
        donpcevent instance_npcname("艾瑞丝#face")+"::OnTalk14";
        next;
        cutin "H_CHAOS01", 2;
        mes "[卡奥斯]";
        mes "嘿嘿~人面虫皇后发怒了,正往咱们这边来呢!看起来很恐怖,我们暂时找地方躲起来吧!";
        npctalk "嘿嘿~人面虫皇后发怒了,正往咱们这边来呢!看起来很恐怖,我们暂时找地方躲起来吧!";
        next;
        cutin "",255;
        mes "-卡奥斯隐藏起来了。-";
        hideonnpc instance_npcname("卡奥斯#face");
        next;
        cutin "H_IRIS01", 2;
        mes "[艾瑞丝]";
        mes "卡奥斯你这笨蛋!!";
        donpcevent instance_npcname("艾瑞丝#face")+"::OnTalk15";
        close2;
        cutin "", 255;
        hideonnpc instance_npcname("艾瑞丝#face");
        movenpc instance_npcname("卡奥斯#face"),213,157;
        specialeffect 1021;
        sleep2 9000;
        specialeffect 247;
        sleep2 10000;
        movenpc instance_npcname("卡奥斯#face"),208,149;
        donpcevent instance_npcname("卡奥斯#facehelp") + "::OnEnable";
        // 人面虫皇后
        donpcevent instance_npcname("#faceworm") + "::OnQueen";
        end;
                case 5:
        cutin "H_CHAOS01", 2;
        mes "[卡奥斯]";
        mes "呼…真是艰难啊…";
                                npctalk "呼…真是艰难啊…";
                                next;
        cutin "H_IRIS01", 2;
        mes "[艾瑞丝]";
        mes "不过这好像不是我们想打的怪物耶~";
                                donpcevent instance_npcname("艾瑞丝#face")+"::OnTalk16";
        cutin "H_CHAOS01", 2;
        next;
        mes "[卡奥斯]";
        mes "也没办法了,装备都耗损了,看来今天差不多要撤退了";
                                npctalk "也没办法了,装备都耗损了,看来今天差不多要撤退了";
                                next;
        cutin "H_IRIS02", 2;
        mes "[艾瑞丝]";
        mes "虽然没遇到人面虫国王有点可惜,但还好我们没有受伤";
                                donpcevent instance_npcname("艾瑞丝#face")+"::OnTalk17";
                                next;
        cutin "H_CHAOS01", 2;
        mes "[卡奥斯]";
        mes "啊!对了,你…你的实力还挺不错的!";
                                npctalk "啊!对了,你…你的实力还挺不错的!";
                                next;
        cutin "H_CHAOS01", 2;
        mes "[卡奥斯]";
        mes "今天的战斗你们功不可没,我不会再小看你们了";
                                npctalk "今天的战斗你们功不可没,我不会再小看你们了";
                                next;
        mes "[卡奥斯]";
        mes "啊啊~我还在想能不能消灭国王什么的,真是可惜了";
                                npctalk "啊啊~我还在想能不能消灭国王什么的,真是可惜了";
                                next;
        cutin "H_IRIS01", 2;
        mes "[艾瑞丝]";
        mes "卡奥斯,我累了,我们还是快回村里吧!?";
                                donpcevent instance_npcname("艾瑞丝#face")+"::OnTalk18";
                                next;
        cutin "H_CHAOS01", 2;
        mes "[卡奥斯]";
        mes "啊!抱歉抱歉~我们走吧!";
                                npctalk "啊!抱歉抱歉~我们走吧!";
                                close2;
                                cutin "",255;
                                hideonnpc instance_npcname("卡奥斯#face");
                                hideonnpc instance_npcname("艾瑞丝#face");
                                enablenpc instance_npcname("Dimensional Device#face");
                                end;
 
        }
        end;
       
        OnInstanceInit:
                'progress = 0;
                .@map$ = instance_mapname("1@face");
                disablenpc instance_npcname("区域一传送点#face");
                disablenpc instance_npcname("区域二传送点#face");
                disablenpc instance_npcname("区域三传送点#face");
                disablenpc instance_npcname("区域四传送点#face");
                monster .@map$,0,0,"--ja--",1166,20;
                monster .@map$,0,0,"--ja--",1277,20;
                monster .@map$,0,0,"--ja--",1494,20;
                end;
                end;
}
 
1@face,115,347,4        script  艾瑞丝#face  666,{
                end;
        OnTalk1:
                npctalk "啊~真是秋高气爽!";
                end;
        OnTalk2:
                npctalk "嘿嘿!最近天气真好,艾瑞丝的心情也好棒哟~";
                end;
        OnTalk3:
                npctalk "卡奥斯你不觉得吗?";
                end;
        OnTalk4:
                npctalk "啊!只要像以前那样处理就对了吧?";
                end;
        OnTalk5:
                npctalk "不过如果战斗时间太长,鳞片就会受损,也就变成一件没用的古董了";
                end;
        OnTalk6:
                npctalk "听说厉害的猎人们能够快速、正确的把价值不斐的鳞片剥下来呢!";
                end;
        OnTalk7:
                npctalk "卡奥斯你有信心吗?";
                end;
        OnTalk8:
                npctalk "真没用耶~卡奥斯";
                end;
        OnTalk9:
                npctalk "卡奥斯!你又要自己先走了吗?";
                end;
        OnTalk10:
                npctalk "这个嘛…说是人面虫巢穴好像又太大了点";
                end;
        OnTalk11:
                npctalk "卡奥斯!别再开玩笑了!";
                end;
        OnTalk12:
                npctalk "啊啊!卡奥斯这个冒失鬼,又这么莽撞!";
                end;
        OnTalk13:
                npctalk "卡奥斯!发生什么事了?";
                end;
        OnTalk14:
                npctalk "我问你到底发生了什么事!?";
                end;
        OnTalk15:
                npctalk "卡奥斯你这笨蛋!!";
                end;
        OnTalk16:
                npctalk "不过这好像不是我们想打的怪物耶~";
                end;
        OnTalk17:
                npctalk "也好,虽然没遇到人面虫国王有点可惜,但还好我们没有人员伤亡";
                end;
        OnTalk18:
                npctalk "卡奥斯,我累了,我们回去村子里!?";
                end;
}
 
1@face,0,0,0    script  卡奥斯#facehelp      683,3,3,{
                end;
        OnEnable:
                enablenpc instance_npcname("卡奥斯#facehelp");
                initnpctimer;
                end;
               
        OnTouch_:
    if(!'trigger) {
      sleep2 2000;
      getmapxy(.@map$,.@x,.@y,1);
      if(!'BossID) {
                                end;
                        }
      getunitdata 'BossID,.@array;
      if(distance(.@x,.@y,.@array[6],.@array[7]) < 7){
        //specialeffect3 90,'BossID;
        set .@num,rand(60,200)*10000;
        mapannounce .@map$,"卡奥斯必杀伤害命中!,造成了"+.@num+"伤害",bc_map,0x00ff99;
        setunitdata 'BossID,2,.@array[2]-.@num;
      }
      else
        mapannounce .@map$,"卡奥斯的呐喊 : 怎么那么不中用,连引诱都不会!",bc_map,0xFF1493;
      disablenpc instance_npcname("卡奥斯#facehelp");
      initnpctimer;
                }
                end;
               
        OnTimer30000:
                enablenpc instance_npcname("卡奥斯#facehelp");
                'trigger = 0;
                .@map$ = instance_mapname("1@face");
                set .@dec,rand(1,4);
                switch(.@dec){
                        case 1:
                                movenpc instance_npcname("卡奥斯#facehelp"),228,159;
                                break;
                        case 2:
                                movenpc instance_npcname("卡奥斯#facehelp"),212,143;
                                break;
                        case 3:
                                movenpc instance_npcname("卡奥斯#facehelp"),202,163;
                                break;
                        case 4:
                                movenpc instance_npcname("卡奥斯#facehelp"),215,172;
                                break;
                }
                mapannounce .@map$,"卡奥斯的呐喊 : 啊!快去引诱怪物来"+(.@dec==1?"东":.@dec==2?"南":.@dec==3?"西":"北")+"边!由我来送它一拳!",bc_map,0x00FFFF;
                end;
               
        OnDisable:
        OnInstanceInit:
                disablenpc instance_npcname("卡奥斯#facehelp");
                end;
}
 
1@face,0,0,0    script  #BlackLogic     -1,{
  end;
  OnInstanceInit:
    disablenpc instance_npcname("#BlackLogic");
    end;
   
  OnStart:
    enablenpc instance_npcname("#BlackLogic");
    end;
 
  OnEnd:
    .@map$ = instance_mapname("1@face");
    .@label = instance_npcname("#BlackLogic") + "::OnSkillunit";
    killmonster .@map$, .@label$;
    disablenpc instance_npcname("#BlackLogic");
    end;
   
  OnTimer10000:
    .@map$ = instance_mapname("1@face");
    .@label = instance_npcname("#BlackLogic") + "::OnSkillunit";
    getunitdata 'BossID,.@bossdata;
    .@x = .@bossdata[6];
    .@y = .@bossdata[7];
    switch('progress) {
        case 0:
          if(mobcount(.@map$,.@label$) < 10)
            areamonster .@map$, .@x-3,.@y-3,.@x+3,.@y+3,"--ja--",2540,4,.@label$;
          break;
        case 1:
          killmonster .@map$, .@label$;
          monster .@map$, .@x,.@y,"--ja--",2537,4,.@label$;
          for(.@i = 0; .@i < 4; .@i++)
            setunitdata $@mobid[.@i],29,1;
          break;
        case 2:
          if(mobcount(.@map$,.@label$) < 100) {
              for(.@i = 0; .@i < 6; .@i++)
                for(.@j = 0; .@j < 6; .@j++)
                    monster(.@map$, .@x-5+.@i*2,.@y-5+.@j*2,"--ja--",2531,1,.@label$);
          }
          break;        
        case 3:
          movenpc instance_npcname("#Blackpoison"),.@x,.@y;
          break;    
    }
    end;
}
 
 
1@face,0,0,0    script  #QueenLogic     -1,{
  end;
  OnInstanceInit:
    disablenpc instance_npcname("#QueenLogic");
    end;
   
  OnStart:
    enablenpc instance_npcname("#QueenLogic");
    end;
 
  OnEnd:
    .@map$ = instance_mapname("1@face");
    .@label = instance_npcname("#QueenLogic") + "::OnSkillunit";
    killmonster .@map$, .@label$;
    donpcevent instance_npcname("#Queenpoison") + "::OnDisable";
    disablenpc instance_npcname("#QueenLogic");
    end;
   
  OnTimer15000:
    'SkillLv = rand(0,1);
    .@map$ = instance_mapname("1@face");
    .@label = instance_npcname("#QueenLogic") + "::OnSkillunit";
    getunitdata 'BossID,.@bossdata;
    .@x = .@bossdata[6];
    .@y = .@bossdata[7];
    switch(rand(1,3)) {
        case 1:
          if(mobcount(.@map$,.@label$) < 10)
            areamonster .@map$, .@x-3,.@y-3,.@x+3,.@y+3,"--ja--",2540,('SkillLv)?4:2,.@label$;
          break;
        case 2:
          if(mobcount(.@map$,.@label$) < 100) {
              if(!'SkillLv) {
                    for(.@i = 0; .@i < 6; .@i++)
                      for(.@j = 0; .@j < 6; .@j++)
                          monster(.@map$, .@x-5+.@i*2,.@y-5+.@j*2,"--ja--",2531,1,.@label$);
                }
              else {
                    for(.@i = 0; .@i < 8; .@i++)
                      for(.@j = 0; .@j < 8; .@j++)
                          monster(.@map$, .@x-7+.@i*2,.@y-7+.@j*2,"--ja--",2531,1,.@label$);
              }
          }
          break;        
        case 3:
          movenpc instance_npcname("#Queenpoison"),.@x,.@y;
          break;    
    }
    end;
}
 
 
1@face,0,0,0    script  #faceworm       -1,{
                end;
        OnStart:
                        .@map$ = instance_mapname("1@face");
                        switch('progress) {
                                case 0:
                                        mapannounce .@map$,"人面虫竞速战斗开始,作战速度越快,越有机会拿到高级奖励!",bc_map,0xFFFF90;
                                        // 第一区域小怪
                                        monster .@map$,76,332,"--ja--",2528,2 + 2*'members,instance_npcname("#faceworm")+"::OnMyMobDead";
                                        monster .@map$,70,279,"--ja--",2528,2 + 2*'members,instance_npcname("#faceworm")+"::OnMyMobDead";
                                        monster .@map$,73,215,"--ja--",2528,2 + 2*'members,instance_npcname("#faceworm")+"::OnMyMobDead";
                                        monster .@map$,71,129,"--ja--",2528,2 + 2*'members,instance_npcname("#faceworm")+"::OnMyMobDead";
                                        monster .@map$,86,68,"--ja--",2528,2 + 2*'members,instance_npcname("#faceworm")+"::OnMyMobDead";
                                        monster .@map$,146,68,"--ja--",2528,2 + 2*'members,instance_npcname("#faceworm")+"::OnMyMobDead";
                                        break;
                                case 1:
                                        monster .@map$,119,290,"--ja--",2528,2 + 2*'members,instance_npcname("#faceworm")+"::OnMyMobDead";
                                        monster .@map$,196,277,"--ja--",2528,2 + 2*'members,instance_npcname("#faceworm")+"::OnMyMobDead";
                                        monster .@map$,144,225,"--ja--",2528,2 + 2*'members,instance_npcname("#faceworm")+"::OnMyMobDead";
                                        monster .@map$,111,175,"--ja--",2528,2 + 2*'members,instance_npcname("#faceworm")+"::OnMyMobDead";
                                        monster .@map$,107,126,"--ja--",2528,4 + 2*'members,instance_npcname("#faceworm")+"::OnMyMobDead";
                                        break;
                                case 2:
                                        monster .@map$,227,336,"--ja--",2528,2 + 2*'members,instance_npcname("#faceworm")+"::OnMyMobDead";
                                        monster .@map$,314,317,"--ja--",2528,2 + 2*'members,instance_npcname("#faceworm")+"::OnMyMobDead";
                                        monster .@map$,231,213,"--ja--",2528,2 + 2*'members,instance_npcname("#faceworm")+"::OnMyMobDead";
                                        monster .@map$,169,190,"--ja--",2528,2 + 2*'members,instance_npcname("#faceworm")+"::OnMyMobDead";
                                        monster .@map$,161,132,"--ja--",2528,4 + 2*'members,instance_npcname("#faceworm")+"::OnMyMobDead";
                        }
                        'time = gettimetick(2);
                        end;
 
        OnMyMobDead:
                .@map$ = instance_mapname("1@face");
                .@mob = mobcount(.@map$,instance_npcname("#faceworm")+"::OnMyMobDead");
                if(!.@mob){
                        switch('progress){
                                case 0:
                                        mapannounce .@map$,"人面虫已经纷纷退却,有更巨大的家伙出现了!",bc_map,0xFFFF90;
                                        'BossID = monster(.@map$,140,72,"--ja--",2530,1,instance_npcname("#faceworm")+"::OnBlackFace");
                                        break;
                                case 1:
                                        mapannounce .@map$,"人面虫已经纷纷退却,有更巨大的家伙出现了!",bc_map,0xFFFF90;
                                        'BossID = monster(.@map$,161,274,"--ja--",2530,1,instance_npcname("#faceworm")+"::OnBlackFace");
                                        break;
                                case 2:
                                        mapannounce .@map$,"人面虫已经纷纷退却,有更巨大的家伙出现了!",bc_map,0xFFFF90;
                                        'BossID = monster(.@map$,276,308,"--ja--",2530,1,instance_npcname("#faceworm")+"::OnBlackFace");
                                        break;
                                case 3:
                                        mapannounce .@map$,"西边突然传来嚎啕大哭的声音",bc_map,0xFFFF90;
                                        'BossID = monster(.@map$,214,105,"--ja--",2530,1,instance_npcname("#faceworm")+"::OnBlackFace");
                                        donpcevent instance_npcname("#Blackpoison") + "::OnEnable";
                                        break;
                        }
                        donpcevent instance_npcname("#BlackLogic") + "::OnStart";
                }
                else
                        mapannounce .@map$,.@mob+"只人面虫还活著",bc_map,0xFFFF90;
                end;
               
        OnQueen:
                        .@map$ = instance_mapname("1@face");
                        'BossID = monster(.@map$,213,157,"--ja--",2529,1,instance_npcname("#faceworm")+"::OnQueenDead");
                        setunitdata 'BossID,3,26000000 + 'members*2000000;
                        setunitdata 'BossID,2,26000000 + 'members*2000000;
                        monster .@map$,226,143,"--ja--",2536,1,instance_npcname("#faceworm") + "::OnTrap";
                        setunitdata $@mobid[0],29,1;
                        monster .@map$,226,169,"--ja--",2536,1,instance_npcname("#faceworm") + "::OnTrap";
                        setunitdata $@mobid[0],29,1;
                        monster .@map$,204,169,"--ja--",2536,1,instance_npcname("#faceworm") + "::OnTrap";
                        setunitdata $@mobid[0],29,1;
                        monster .@map$,203,143,"--ja--",2536,1,instance_npcname("#faceworm") + "::OnTrap";
                        setunitdata $@mobid[0],29,1;
                        monster .@map$,213,149,"--ja--",2536,1,instance_npcname("#faceworm") + "::OnTrap";
                        setunitdata $@mobid[0],29,1;
                        monster .@map$,213,165,"--ja--",2536,1,instance_npcname("#faceworm") + "::OnTrap";
                        setunitdata $@mobid[0],29,1;
                        monster .@map$,220,157,"--ja--",2536,1,instance_npcname("#faceworm") + "::OnTrap";
                        setunitdata $@mobid[0],29,1;
                        monster .@map$,206,157,"--ja--",2536,1,instance_npcname("#faceworm") + "::OnTrap";
                        setunitdata $@mobid[0],29,1;
                        initnpctimer;
                        'time = gettimetick(2);
                        donpcevent instance_npcname("#QueenLogic") + "::OnStart";
                        donpcevent instance_npcname("#Queenpoison") + "::OnEnable";
                        end;   
 
        OnBlackFace:
                'progress++;
                donpcevent instance_npcname("#BlackLogic") + "::OnEnd";
                .@map$ = instance_mapname("1@face");
                .@time2 = gettimetick(2)-'time;
                .@hour = .@time2/3600;
                .@min = .@time2/60;
                .@sec = .@time2%60;
                mapannounce .@map$,"[人面虫巢穴],第"+'progress+"区域通关花费时间是「"+(.@hour<10?"0"+.@hour:.@hour)+":"+(.@min<10?"0"+.@min:.@min)+":"+(.@sec<10?"0"+.@sec:.@sec)+"」",bc_map,0x0fff8c;
                // 纪录 1-4 关通过时间
                'time['progress]=.@time2;
                switch('progress){
                        case 1:
                                mapannounce .@map$,"打败巨大躯干的怪物后,发现了它出入的洞口,这真是一个大到足以通往另一个地区的巨大地穴呢!",bc_map,0xFFFF00;
                                enablenpc instance_npcname("人面虫宝箱#1");
                                enablenpc instance_npcname("区域一传送点#face");
                                movenpc instance_npcname("卡奥斯#face"),120,97;
                                movenpc instance_npcname("艾瑞丝#face"),127,99;
                                hideoffnpc instance_npcname("卡奥斯#face");
                                hideoffnpc instance_npcname("艾瑞丝#face");
                                break;
                        case 2:
                                mapannounce .@map$,"从南方传来很大的声响,可能是刚才被杀怪物的巢穴",bc_map,0xFFFF00;
                                enablenpc instance_npcname("人面虫宝箱#2");
                                enablenpc instance_npcname("区域二传送点#face");
                                movenpc instance_npcname("卡奥斯#face"),153,113;
                                movenpc instance_npcname("艾瑞丝#face"),160,113;
                                hideoffnpc instance_npcname("卡奥斯#face");
                                hideoffnpc instance_npcname("艾瑞丝#face");
                                break;
                        case 3:
                                mapannounce .@map$,"南方传来了石堆崩解的声音,或许是条连结其他地方的通道呢!",bc_map,0xFFFF00;
                                enablenpc instance_npcname("人面虫宝箱#3");
                                enablenpc instance_npcname("区域三传送点#face");
                                sleep 5000;
                                mapannounce .@map$,"卡奥斯的呐喊 : 育!冒险家们!到那边要小心一点,到处都是剧毒呢",bc_map,0x00FFFF;
                                sleep 3000;
                                mapannounce .@map$,"卡奥斯的呐喊 : 我们正在找其他巢穴,如果有什么发现再告诉我们吧!",bc_map,0x00FFFF;
                                // 第四区域小怪
                                areamonster .@map$,252,165,304,57,"--ja--",2528,11*'members,instance_npcname("#faceworm")+"::OnMyMobDead";
                                areamonster .@map$,211,114,272,60,"--ja--",2528,11*'members,instance_npcname("#faceworm")+"::OnMyMobDead";
                                break;
                        case 4:
                                mapannounce .@map$,"听到石堆崩解的声音,好像发现了其他条通道",bc_map,0xFFFF00;
        donpcevent instance_npcname("#Blackpoison") + "::OnDisable";
                                enablenpc instance_npcname("人面虫宝箱#4");
                                enablenpc instance_npcname("区域四传送点#face");
                                movenpc instance_npcname("卡奥斯#face"),208,149;
                                movenpc instance_npcname("艾瑞丝#face"),220,149;
                                hideoffnpc instance_npcname("卡奥斯#face");
                                hideoffnpc instance_npcname("艾瑞丝#face");
                                break;
                        }
                end;
 
        OnQueenDead:
                stopnpctimer;
                'BossID = 0;
                donpcevent instance_npcname("#QueenLogic") + "::OnEnd";
    'progress++;
                .@time2 = gettimetick(2)-'time;
                donpcevent instance_npcname("卡奥斯#facehelp") + "::OnDisable";
    killmonster instance_mapname("1@face"),instance_npcname("#faceworm") + "::OnTrap";
                .@hour = .@time2/3600;
                .@min = .@time2/60;
                .@sec = .@time2%60;
                mapannounce instance_mapname("1@face"),"[人面虫巢穴] 副本完成!最后区域通关花费时间是「"+(.@hour<10?"0"+.@hour:.@hour)+":"+(.@min<10?"0"+.@min:.@min)+":"+(.@sec<10?"0"+.@sec:.@sec)+"」",bc_map,0x0fff8c;
                // 纪录 1-4 关通过时间
                'time[5]=.@time2;
                .@totaltime = 0;
                for(.@i = 0; .@i < 5; .@i++)
      .@totaltime += 'time[.@i+1];
    .@rank = 0;
    for(.@i = 1; .@i <= 5; .@i++) {
      if(.@totaltime < $facewormtime[.@i] || !$facewormtime[.@i]) {
         .@rank = .@i;
         break;
      }
    }
    if(.@rank) {
        for(.@i = 5; .@i > rank; .@i -= 1) {
          if($facewormtime[.@i]) {
              $facewormtime[.@i+1] = $facewormtime[.@i];
              $facewormparty$[.@i+1] = $facewormparty$[.@i];
              $facewormmember$[.@i+1] = $facewommember$[.@i];
          }
        }
        $facewormtime[.@rank] = .@totaltime;
        $facewormparty$[.@rank] = 'partyname$;
        $facewormmember$[.@rank] = 'membername$;
        .@hour = .@totaltime/3600;
        .@min = .@totaltime/60;
        .@sec = .@totaltime%60;
        announce "恭喜队伍"+'partyname$+"在[人面虫巢穴]竞速中获得了第"+.@rank+"名!总花费时间是「"+(.@hour<10?"0"+.@hour:.@hour)+":"+(.@min<10?"0"+.@min:.@min)+":"+(.@sec<10?"0"+.@sec:.@sec)+"」",bc_all,0xFFFF00;
    }
                enablenpc instance_npcname("人面虫宝箱#5");
                movenpc instance_npcname("卡奥斯#face"),208,161;
                movenpc instance_npcname("艾瑞丝#face"),221,158;
                hideoffnpc instance_npcname("卡奥斯#face");
                hideoffnpc instance_npcname("艾瑞丝#face");
                end;
       
        OnTimer65000:
    if('progress < 5 && 'BossID) {
      stopnpctimer instance_npcname("#QueenLogic");
      getunitdata 'BossID,.@bossdata;
      mobremove 'BossID;
      .@hp = .@bossdata[2];
      .@mhp = .@bossdata[3];
      .@x = .@bossdata[6];
      .@y = .@bossdata[7];
      .@mob = rand(2532,2535);
      'BossID = monster(instance_mapname("1@face"),.@x,.@y,"--ja--",.@mob,1,instance_npcname("#faceworm")+"::OnQueenDead");
      setunitdata 'BossID,3,.@mhp;
      setunitdata 'BossID,2,.@hp;
      initnpctimer instance_npcname("#QueenLogic");
      switch(.@mob) {
        case 2532: .@element$ = "火"; break;
        case 2533: .@element$ = "地"; break;
        case 2534: .@element$ = "水"; break;
        case 2535: .@element$ = "风"; break;
      }
      mapannounce instance_mapname("1@face"),"人面虫女皇试图用"+.@element$+"属性外壳包裹住自己!",bc_map,0xffff90;
                } else
      stopnpctimer;
                end;
               
 
 
}
 
 
1@face,0,0,0    script  人面虫宝箱::Facebox        10005,{
        specialeffect 10;
        specialeffect2 10;
        getmapxy (.@map$,.@x,.@y,1);
        switch(atoi(strnpcinfo(2))){
                case 1:
                case 2:
                case 3:
                case 4:
                        setarray .@card,4700,4710,4720,4730,4740,4750,4701,4711,4721,4731,4741,4751,4702,4712,4722,4732,4742,4752,4703,4713,4723,4733,4743,4753,4704,4714,4724,4734,4744,4754;
                        if('time[atoi(strnpcinfo(2))]<121){
                                if(rand(1,100) <= 70) makeitem2 20717,1,.@map$,.@x+rand(-2,2),.@y+rand(-2,2),0,rand(2,5),0,0,0,.@card[rand(getarraysize(.@card))],.@card[rand(getarraysize(.@card))];
                                else makeitem2 rand(20717,20718),1,.@map$,.@x+rand(-2,2),.@y+rand(-2,2),0,rand(4,6),0,0,rand(4853,4858),.@card[rand(getarraysize(.@card))],.@card[rand(getarraysize(.@card))];
                        } else {
                                if(rand(1,100) <= 70) makeitem2 20717,1,.@map$,.@x+rand(-2,2),.@y+rand(-2,2),0,rand(0,3),0,0,0,0,.@card[rand(getarraysize(.@card))];
                                else makeitem2 rand(20717,20718),1,.@map$,.@x+rand(-2,2),.@y+rand(-2,2),0,rand(2,4),0,0,0,.@card[rand(getarraysize(.@card))],.@card[rand(getarraysize(.@card))];
                        }
                        break;
                // 皇后的宝箱
                case 5:
                        setarray .@card,4700,4710,4720,4730,4740,4750,4701,4711,4721,4731,4741,4751,4702,4712,4722,4732,4742,4752,4703,4713,4723,4733,4743,4753,4704,4714,4724,4734,4744,4754,4705,4715,4725,4735,4745,4755,4706,4716,4726,4736,4746,4756;
                        if('time[atoi(strnpcinfo(2))]<271){
                                set .@rate,rand(1,100);
                                set .@amount,rand(1,100)<=20?2:1;
                                if(.@rate <= 20){
                                        for(set .@i,0; .@i<.@amount; set .@i,.@i+1) makeitem2 rand(20717,20718),1,.@map$,.@x+rand(-2,2),.@y+rand(-2,2),0,rand(9,11),0,0,rand(4853,4858),.@card[rand(getarraysize(.@card))],.@card[rand(getarraysize(.@card))];
                                } else if(.@rate <= 50){
                                        for(set .@i,0; .@i<.@amount; set .@i,.@i+1) makeitem2 rand(20717,20718),1,.@map$,.@x+rand(-2,2),.@y+rand(-2,2),0,rand(5,9),0,0,0,.@card[rand(getarraysize(.@card))],.@card[rand(getarraysize(.@card))];
                                } else {
                                        for(set .@i,0; .@i<.@amount; set .@i,.@i+1) makeitem2 rand(20717,20718),1,.@map$,.@x+rand(-2,2),.@y+rand(-2,2),0,rand(3,7),0,0,0,0,.@card[rand(getarraysize(.@card))];
                                }
                        } else {
                                set .@rate,rand(1,100);
                                if(.@rate <= 5) makeitem2 rand(20717,20718),1,.@map$,.@x+rand(-2,2),.@y+rand(-2,2),0,rand(9,11),0,0,rand(4853,4858),.@card[rand(getarraysize(.@card))],.@card[rand(getarraysize(.@card))];
                                 else if(.@rate <= 25) makeitem2 rand(20717,20718),1,.@map$,.@x+rand(-2,2),.@y+rand(-2,2),0,rand(5,9),0,0,0,.@card[rand(getarraysize(.@card))],.@card[rand(getarraysize(.@card))];
                                 else makeitem2 rand(20717,20718),1,.@map$,.@x+rand(-2,2),.@y+rand(-2,2),0,rand(3,7),0,0,0,0,.@card[rand(getarraysize(.@card))];
                        }
                        break;
        }
        end;
OnInstanceInit:
        end;
}
 
1@face,154,82,5 duplicate(Facebox)      人面虫宝箱#1       10005
1@face,160,271,5        duplicate(Facebox)      人面虫宝箱#2       10005
1@face,276,308,5        duplicate(Facebox)      人面虫宝箱#3       10005
1@face,215,107,5        duplicate(Facebox)      人面虫宝箱#4       10005
1@face,211,159,5        duplicate(Facebox)      人面虫宝箱#5       10005
 
1@face,216,160,0        script  Dimensional Device#face 10007,{
        mes "[Dimensional Device]";
        mes "人面虫巢穴已通关,请选择离开或是留下";
        next;
        if(select("留下","离开")==2) {
    if(checkquest(40018)) completequest 40018;
    warp "dali",84,62;
    end;
        }
        mes "-没有使用Dimensional Device-";
        close;
OnInstanceInit:
        disablenpc instance_npcname("Dimensional Device#face");
        end;
}
 
1@face,149,92,0 warp    区域一传送点#face 1,1,1@face,127,95
1@face,131,86,0 warp    回区域一传送点#face      1,1,1@face,155,87
1@face,139,100,0        warp    区域二传送点#face 1,1,1@face,156,115
1@face,148,107,0        warp    回区域二传送点1#face     1,1,1@face,127,95
1@face,249,186,0        warp    区域三传送点#face 1,1,1@face,260,170;
1@face,254,175,0        warp    回区域三传送点1#face     1,1,1@face,246,192
1@face,204,122,0        warp    区域四传送点#face 1,1,1@face,210,145
 
// 第一区域陷阱
1@face,0,0,0    script  人面虫幼虫的洞穴::Facewormhole  557,4,4,{
        end;
OnTouch:
        getmapxy (.@map$,.@x,.@y,1);
        monster .@map$,.@x,.@y,"--ja--",2541,rand(2,5);
        end;
}
 
// 第一区域 人面虫幼虫
1@face,68,240,0 duplicate(Facewormhole) 人面虫幼虫的洞穴#1      557,4,4
1@face,81,263,0 duplicate(Facewormhole) 人面虫幼虫的洞穴#2      557,4,4
1@face,67,284,0 duplicate(Facewormhole) 人面虫幼虫的洞穴#3      557,4,4
1@face,76,315,0 duplicate(Facewormhole) 人面虫幼虫的洞穴#4      557,4,4
1@face,91,333,0 duplicate(Facewormhole) 人面虫幼虫的洞穴#5      557,4,4
1@face,75,208,0 duplicate(Facewormhole) 人面虫幼虫的洞穴#6      557,4,4
1@face,60,186,0 duplicate(Facewormhole) 人面虫幼虫的洞穴#7      557,4,4
1@face,74,160,0 duplicate(Facewormhole) 人面虫幼虫的洞穴#8      557,4,4
1@face,65,130,0 duplicate(Facewormhole) 人面虫幼虫的洞穴#9      557,4,4
1@face,69,107,0 duplicate(Facewormhole) 人面虫幼虫的洞穴#10     557,4,4
1@face,86,77,0  duplicate(Facewormhole) 人面虫幼虫的洞穴#11     557,4,4
1@face,100,74,0 duplicate(Facewormhole) 人面虫幼虫的洞穴#12     557,4,4
1@face,127,69,0 duplicate(Facewormhole) 人面虫幼虫的洞穴#13     557,4,4
1@face,145,79,0 duplicate(Facewormhole) 人面虫幼虫的洞穴#14     557,4,4
 
// 第二区域陷阱
1@face,0,0,0    script  毒囊袋::VenomBug     139,4,4,{
        end;
OnTouch:
        getmapxy (.@map$,.@x,.@y,1);
        for(.@i = 0; .@i< 3; .@i++) monster .@map$,rand(.@x-5,.@x+5),rand(.@y-5,.@y+5),"--ja--",2531,1;
        end;
}
 
// 第二区域 人面虫幼虫
1@face,110,300,0        duplicate(Facewormhole) 人面虫幼虫的洞穴#15     557,4,4
1@face,116,286,0        duplicate(Facewormhole) 人面虫幼虫的洞穴#16     557,4,4
1@face,120,273,0        duplicate(Facewormhole) 人面虫幼虫的洞穴#17     557,4,4
1@face,122,255,0        duplicate(Facewormhole) 人面虫幼虫的洞穴#18     557,4,4
1@face,136,236,0        duplicate(Facewormhole) 人面虫幼虫的洞穴#19     557,4,4
1@face,125,218,0        duplicate(Facewormhole) 人面虫幼虫的洞穴#20     557,4,4
1@face,123,201,0        duplicate(Facewormhole) 人面虫幼虫的洞穴#21     557,4,4
1@face,110,183,0        duplicate(Facewormhole) 人面虫幼虫的洞穴#22     557,4,4
1@face,123,157,0        duplicate(Facewormhole) 人面虫幼虫的洞穴#23     557,4,4
1@face,100,131,0        duplicate(Facewormhole) 人面虫幼虫的洞穴#24     557,4,4
1@face,128,86,0 duplicate(Facewormhole) 人面虫幼虫的洞穴#25     557,4,4
1@face,130,191,0        duplicate(Facewormhole) 人面虫幼虫的洞穴#26     557,4,4
1@face,142,214,0        duplicate(Facewormhole) 人面虫幼虫的洞穴#27     557,4,4
1@face,147,235,0        duplicate(Facewormhole) 人面虫幼虫的洞穴#28     557,4,4
1@face,173,266,0        duplicate(Facewormhole) 人面虫幼虫的洞穴#29     557,4,4
1@face,195,275,0        duplicate(Facewormhole) 人面虫幼虫的洞穴#30     557,4,4
 
// 第三区域陷阱
1@face,0,0,0    script  毒雾沼泽::Poisonsmoke       139,{
        end;
OnInstanceInit:
        if(!atoi(strnpcinfo(2))) end;
        initnpctimer instance_npcname("毒雾沼泽#"+strnpcinfo(2));
        end;
OnTimer700:
        initnpctimer instance_npcname("毒雾沼泽#"+strnpcinfo(2));
        getmapxy (.@map$,.@x,.@y,1);
        areapercentheal .@map$,.@x-3,.@y+3,.@x+3,.@y-3,-1,0;
        for(set .@i,0; .@i<20; set .@i,.@i+1){
                specialeffect 1020;
                movenpc instance_npcname(strnpcinfo(0)),rand(.@x-3,.@x+3),rand(.@y-3,.@y+3);
        }
        movenpc instance_npcname(strnpcinfo(0)),.@x,.@y;
        end;
}
 
1@face,0,0,0    script  #Blackpoison    139,{
    end;
  OnDisable:
  OnInstanceInit:
    disablenpc instance_npcname("#Blackpoison");
    end;
   
  OnEnable:
    enablenpc instance_npcname("#Blackpoison");
    end;
   
  OnTimer700:
    getmapxy (.@map$,.@x,.@y,1);
    areapercentheal .@map$,.@x-7,.@y+7,.@x+7,.@y-7,-2,0;
    for(.@i = 0; .@i < 50; .@i++){
      specialeffect 1020;
      movenpc instance_npcname(strnpcinfo(0)),rand(.@x-7,.@x+7),rand(.@y-7,.@y+7);
    }
    end;
}
 
 
1@face,0,0,0    script  #Queenpoison    139,{
    end;
  OnDisable:
  OnInstanceInit:
    disablenpc instance_npcname("#Queenpoison");
    end;
   
  OnEnable:
    enablenpc instance_npcname("#Queenpoison");
    end;
   
  OnTimer700:
    getmapxy (.@map$,.@x,.@y,1);
    if('SkillLv) {
        .@range = 7;
        .@damage = -3;
        .@numbers = 60;
    }
    else {
        .@range = 5;
        .@damage = -1;
        .@numbers = 30;
    }
    areapercentheal .@map$,.@x-.@range,.@y+.@range,.@x+.@range,.@y-.@range,.@damage,0;
    for(.@i = 0; .@i < .@numbers; .@i++){
      specialeffect 1020;
      movenpc instance_npcname(strnpcinfo(0)),rand(.@x-.@range,.@x+.@range),rand(.@y-.@range,.@y+.@range);
    }
    end;
}
 
// 第三区域毒囊袋 毒囊袋
1@face,154,132,0        duplicate(VenomBug)     毒囊袋#1     139,4,4
1@face,167,137,0        duplicate(VenomBug)     毒囊袋#2     139,4,4
1@face,162,149,0        duplicate(VenomBug)     毒囊袋#3     139,4,4
1@face,168,162,0        duplicate(VenomBug)     毒囊袋#4     139,4,4
1@face,165,175,0        duplicate(VenomBug)     毒囊袋#5     139,4,4
1@face,178,189,0        duplicate(VenomBug)     毒囊袋#6     139,4,4
1@face,183,204,0        duplicate(VenomBug)     毒囊袋#7     139,4,4
1@face,203,205,0        duplicate(VenomBug)     毒囊袋#8     139,4,4
1@face,220,206,0        duplicate(VenomBug)     毒囊袋#9     139,4,4
1@face,234,208,0        duplicate(VenomBug)     毒囊袋#10    139,4,4
1@face,246,218,0        duplicate(VenomBug)     毒囊袋#11    139,4,4
1@face,244,230,0        duplicate(VenomBug)     毒囊袋#12    139,4,4
1@face,246,245,0        duplicate(VenomBug)     毒囊袋#13    139,4,4
1@face,240,262,0        duplicate(VenomBug)     毒囊袋#14    139,4,4
1@face,238,276,0        duplicate(VenomBug)     毒囊袋#15    139,4,4
1@face,244,287,0        duplicate(VenomBug)     毒囊袋#16    139,4,4
1@face,259,292,0        duplicate(VenomBug)     毒囊袋#17    139,4,4
1@face,269,299,0        duplicate(VenomBug)     毒囊袋#18    139,4,4
1@face,276,309,0        duplicate(VenomBug)     毒囊袋#19    139,4,4
1@face,294,316,0        duplicate(VenomBug)     毒囊袋#20    139,4,4
1@face,305,322,0        duplicate(VenomBug)     毒囊袋#21    139,4,4
1@face,300,335,0        duplicate(VenomBug)     毒囊袋#22    139,4,4
1@face,288,339,0        duplicate(VenomBug)     毒囊袋#23    139,4,4
1@face,274,339,0        duplicate(VenomBug)     毒囊袋#24    139,4,4
1@face,262,330,0        duplicate(VenomBug)     毒囊袋#25    139,4,4
1@face,244,343,0        duplicate(VenomBug)     毒囊袋#26    139,4,4
1@face,225,348,0        duplicate(VenomBug)     毒囊袋#27    139,4,4
1@face,222,326,0        duplicate(VenomBug)     毒囊袋#28    139,4,4
1@face,226,303,0        duplicate(VenomBug)     毒囊袋#29    139,4,4
1@face,237,297,0        duplicate(VenomBug)     毒囊袋#30    139,4,4
 
// 第四区域 毒雾沼泽
1@face,265,161,0        duplicate(Poisonsmoke)  毒雾沼泽#1  139
1@face,290,159,0        duplicate(Poisonsmoke)  毒雾沼泽#2  139
1@face,306,145,0        duplicate(Poisonsmoke)  毒雾沼泽#3  139
1@face,311,119,0        duplicate(Poisonsmoke)  毒雾沼泽#4  139
1@face,281,117,0        duplicate(Poisonsmoke)  毒雾沼泽#5  139
1@face,253,118,0        duplicate(Poisonsmoke)  毒雾沼泽#6  139
1@face,245,98,0 duplicate(Poisonsmoke)  毒雾沼泽#7  139
1@face,265,93,0 duplicate(Poisonsmoke)  毒雾沼泽#8  139
1@face,287,87,0 duplicate(Poisonsmoke)  毒雾沼泽#9  139
1@face,301,74,0 duplicate(Poisonsmoke)  毒雾沼泽#10 139
1@face,308,59,0 duplicate(Poisonsmoke)  毒雾沼泽#11 139
1@face,284,60,0 duplicate(Poisonsmoke)  毒雾沼泽#12 139
1@face,262,69,0 duplicate(Poisonsmoke)  毒雾沼泽#13 139
1@face,235,73,0 duplicate(Poisonsmoke)  毒雾沼泽#14 139
1@face,221,90,0 duplicate(Poisonsmoke)  毒雾沼泽#15 139
1@face,211,106,0        duplicate(Poisonsmoke)  毒雾沼泽#16 139
1@face,216,117,0        duplicate(Poisonsmoke)  毒雾沼泽#17 139
1@face,230,105,0        duplicate(Poisonsmoke)  毒雾沼泽#18 139
1@face,251,103,0        duplicate(Poisonsmoke)  毒雾沼泽#19 139
1@face,272,108,0        duplicate(Poisonsmoke)  毒雾沼泽#20 139
 
 
Viewed 1503 times, submitted by iubantot.