viewing paste Unknown #22704 | 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 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323
 
 
function        script  F_HeroicTrophy_Item     {
        setarray .@CashPetScroll[1],
                522,    1,      0,      21,     // Mastela Fruit
                547,    1,      0,      21,     // Condensed White Potion
                608,    1,      0,      21,     // Yggdrasil Seed
                607,    1,      0,      21,     // Yggdrasil Fruit
                678,    1,      0,      21,     // Poison Bottle
                547,    10,     0,      12,     // Condensed White Potion
                120751,      0,      12,     // Steamed Tongue
                120801,      0,      12,     // Dragon Breath Cocktail
                120851,      0,      12,     // Immortal Stew
                120901,      0,      12,     // Steamed Desert Scorpions
                120951,      0,      12,     // Hwergelmir's Tonic
                121001,      0,      12,     // Cooked Nine Tail
                //12530,        1,      0,      3,      // Mastela Fruit Box
                //12534,        1,      0,      3,      // Yggdrasil Seed Box
                142321,      0,      3,      // Yggdrasil Berry Box
                126791,      0,      3,      // WoE White Potion Box
                126761,      0,      3,      // WoE Violet Potion Box
                //12623,        1,      0,      3,      // High Weapon Box
                150931,      0,      1,      // Heroic Plate
                150941,      0,      1,      // Heroic Magic Coat
                150951,      0,      1,      // Heroic Judgement Shawl
                150961,      0,      1,      // Heroic Trade-Mail
                150971,      0,      1,      // Heroic Hidden Cloth
                150981,      0,      1,      // Heroic Target Suit
                220351,      0,      1,      // Heoric Nepenthes Shoes
                220361,      0,      1,      // Heroic Silver Fox Leather Boots
                220371,      0,      1,      // Heroic Ungoliant Upgrade Boots
                0;
 
        for ( set .@r,0; .@r < getarraysize(.@CashPetScroll); set .@r,.@r+4)
        {
                set .@ps_rate,.@ps_rate+.@CashPetScroll[.@r];
        }
 
        // Case No Info.
        if(.@ps_rate == 0) { getitem 909,1; return; }
 
        set .@i,rand(1,.@ps_rate);
 
        for (set .@ps_id,1; .@ps_id < getarraysize(.@CashPetScroll); set .@ps_id,.@ps_id+4)
        {
                set .@rt,.@rt+.@CashPetScroll[.@ps_id+3];
                if(.@rt >= .@i) break;
        }
        if(.@CashPetScroll[.@ps_id] == -1) {
                dispbottom "Nothing found in Sealed Mind Box...";
        }
        else{
                if((getiteminfo(.@CashPetScroll[.@ps_id],2) == IT_WEAPON) || (getiteminfo(.@CashPetScroll[.@ps_id],2) == IT_ARMOR))
                        getitem2 .@CashPetScroll[.@ps_id],.@CashPetScroll[.@ps_id+1],0,0,0,0,0,0,0;
                else
                        getitem .@CashPetScroll[.@ps_id],.@CashPetScroll[.@ps_id+1];
        }
        return;
}
 
moro_cav,61,69,3        script  Senior Tracker#mors     730,{
        set .@party_id,getcharid(1);
        set .@ins_mas,getpartyleader(.@party_id,2);
        set .@p_name$,getpartyname(.@party_id);
        set .@p_reader$,strcharinfo(0);
        set .@md_name$,"Mors Cave";
 
        getpartymember(.@party_id),2;
        set .@partymembercount,$@partymembercount;
        copyarray .@partymemberaid[0],$@partymemberaid[0],.@partymembercount;
        for(set .@i,0; .@i < .@partymembercount; set .@i,.@i+1){
                if(isloggedin(.@partymemberaid[.@i])){
                        set .@loggedin,.@loggedin+1;
                }
        }
        set .@mcave_time,checkquest(9319,PLAYTIME); //23 Hours
 
        if(BaseLevel < 160) {
                mes "[Senior Tracker]";
                mes "This is our advance base to stop Morroc.";
                mes "I'm a tracker charged with leading my army to Morroc's lair.";
                close;
        }
        if((checkquest(9318) == 0) || (checkquest(9318) == 1))  {
                mes "[Senior Tracker]";
                mes "Finally you're back!";
                mes "What happened in there?";
                next;
                mes "- You relay your experience in the Red Flower. -";
                next;
                if(checkquest(9318,HUNTING) == 2) {
                        mes "[Senior Tracker]";
                        mes "So Morroc got away, but you killed his Necromancer.";
                        mes "That's one good news anyway.";
                        next;
                        mes "[Senior Tracker]";
                        mes "We're nowhere near close to stopping Morroc's resurrection.";
                        mes "I can't sleep at night, knowing Morroc is doing everything he can to recover his strength.";
                        mes "Could you come back tomorrow?";
                        if(ins_morscave == 0) set ins_morscave,1;
                        getitem 6684,1; // 勇者之证
                        erasequest 9318;
                        setquest 9319;
                        close;
                }
                else {
                        mes "[Senior Tracker]";
                        mes "So Morroc got away.";
                        mes "That's a shame.";
                        next;
                        mes "[Senior Tracker]";
                        mes "At least we know where he is.";
                        mes "Could you come back tomorrow and help me track him down gain?";
                        mes "I'll be waiting here.";
                        erasequest 9318;
                        setquest 9319;
                        close;
                }
        }
        if((checkquest(9319,PLAYTIME) == 0) || (checkquest(9319,PLAYTIME) == 1)) {
                mes "[Senior Tracker]";
                mes "We're nowhere near close to stopping Morroc's resurrection.";
                mes "I can't sleep at night, knowing Morroc is doing everything he can to recover his strength.";
                mes "Could you come back tomorrow?";
                close;
        }
        if(ins_morscave == 0) {
                mes "[Senior Tracker]";
                mes "This is our advance base to stop Morroc.";
                mes "I'm a tracker charged with leading my army to Morroc's lair.";
                next;
                mes "[Senior Tracker]";
                mes "After a painstaking search, I've located the place with the highest chance of hiding Morroc inside.";
                next;
                mes "[Senior Tracker]";
                mes "According to my intel, Morroc is hiding out in this place, trying to recover his full strength.";
                next;
                mes "[Senior Tracker]";
                mes "Even though I've located this place myself, I have to admit that I'm not equipped to explore it by myself.";
                mes "I'm a tracker after all, not a fighter.";
                next;
                mes "[Senior Tracker]";
                mes "You look like a warrior spoiling for a good fight with Morroc, and I think you have a chance at winning it.";
                next;
                mes "[Senior Tracker]";
                mes "How'd you like to enter Morroc's lair, defeat him, and become the hero who saved the world from evil?";
        }
        else {/*todo*/
                mes "[Senior Tracker]";
                mes "I know you would be back.";
        }
        next;
        mes "[Senior Tracker]";
        mes "Morroc may not have recovered his full strength,, but fighting him still takes more than a few warriors, no matter how strong they are.";
        mes "I recommend you join forces with as many comrades as you can find.";
        mes "Are you ready to enter the Red Flower where Morroc is believed to hiding?";
        next;
        switch(select("Generate Memorial Dungeon.:Cancel")) {
        case 1:
 
                callfunc "F_MtimeChek";
 
                if((.@party_id == 0) || (getcharid(0) != .@ins_mas)) {
                        mes "You need to be a party leader in order to continue.";
                        close;
                }
                if(has_instance("1@rev") != "") {
                        mes "The entrance to the Red Flower has opened.";
                        mes "It will only stay open for a while.";
                        mes "You'd better use it while you can.";
                        close;
                }
                set .@instance, instance_create(.@md_name$, .@party_id);
                if(.@instance < 0) {
                        mes "Failed to book Memorial Dungeon, '^0000ff"+.@md_name$+"^000000'.";
                        close;
                }
                else {
                        if( instance_attachmap("1@rev", .@instance) == "" ) {
                                mes "^0000ff"+.@md_name$+"^000000 - Reservation Failed!";
                                instance_destroy(.@instance);
                                close;
                        }
                        instance_attach(.@instance);
                        instance_set_timeout 3600,300,.@instance;
                        instance_init(.@instance);
                        debugmes strcharinfo(0)+" made an Mors Cave";
 
                        // Zone 1
                        donpcevent instance_npcname("#RZEvent_1", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("Reaper Ankou#mors", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#RZWarp_11", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#RZWarp_12", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#RZWarp_13", instance_id())+"::OnInstanceInit";
 
                        // Zone 2
                        donpcevent instance_npcname("#RZEvent_3", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("Weakened Morroc#mors", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#RZWarp_21", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#RZWarp_22", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#RZWarp_23", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#RZWarp_24", instance_id())+"::OnInstanceInit";
 
                        // Zone 3
                        donpcevent instance_npcname("#Battle_1RZ1", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#SoulEffect", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#Battle_1RZ1", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#Battle_1RZ1_Timer", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#RZWarp_31", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#RZWarp_32", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#RZWarp_33", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#RZWarp_34", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("Reaper Ankou#RZEvent_3", instance_id())+"::OnInstanceInit";
 
                        // Zone 4
                        donpcevent instance_npcname("#Battle_2RZ1", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#SoulEffect2", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#Battle_2RZ1_Timer", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#RZWarp_41", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#RZWarp_42", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#RZWarp_43", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#RZWarp_44", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("Reaper Ankou#RZEvent_4", instance_id())+"::OnInstanceInit";
 
                        // Final Zone
                        donpcevent instance_npcname("#Battle_3RZ1", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("Morroc's Necromancer#RZ2", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#mors_finalmob", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#mors_finalmobctrl", instance_id())+"::OnInstanceInit";
 
                        // Exit
                        donpcevent instance_npcname("Reaper Ankou#RZEvent_5", instance_id())+"::OnInstanceInit";
                        donpcevent instance_npcname("#exitmors", instance_id())+"::OnInstanceInit";
 
                        mes "The entrance to the Red Flower has opened.";
                        mes "It will only stay open for a while.";
                        mes "You'd better use it while you can.";
                        close;
                }
        case 2:
                mes "[Senior Tracker]";
                mes "Come back if you change your mind.";
                close;
        }
}
 
moro_cav,57,69,3        script  Red Flower#mors 111,{
        set .@party_id,getcharid(1);
        set .@ins_mas,getpartyleader(.@party_id,2);
        set .@p_name$,getpartyname(.@party_id);
        set .@p_reader$,strcharinfo(0);
        set .@md_name$,"Mors Cave";
        set .@mcave_time,checkquest(9319,PLAYTIME); //23 Hours
 
        getpartymember(.@party_id),2;
        set .@partymembercount,$@partymembercount;
        copyarray .@partymemberaid[0],$@partymemberaid[0],.@partymembercount;
        for(set .@i,0; .@i < .@partymembercount; set .@i,.@i+1){
                if(isloggedin(.@partymemberaid[.@i])){
                        set .@loggedin,.@loggedin+1;
                }
        }
        if(BaseLevel < 160) {
                mes "[Senior Tracker]";
                mes "This is our advance base to stop Morroc.";
                mes "I'm a tracker charged with leading my army to Morroc's lair.";
                close;
        }
        if(((checkquest(9318) == 0) || (checkquest(9318) == 1)) || (checkquest(9319,PLAYTIME) == 0) || (checkquest(9319,PLAYTIME) == 1)) {
                mes "- The Red Flower is closed. You cannot enter it yet. -";
                close;
        }
        if(checkquest(9319,PLAYTIME) == 2) erasequest 9319;
        if(.@party_id == 0)
                set .@menu$,"Do not enter the Crack.:Enter the Time Crack.";
        else
                set .@menu$,"Do not enter the Red Flower.:Enter the Red Flower.";
        if(select(.@menu$) == 1) {
                mes "- You can sense some sinister energy. -";
                close;
        }
        if(has_instance("1@rev") == "") {
                mes "The Memorial Dungeon Mors Cave does not exist.";
                mes "Your party leader has not yet create the Memorial Dungeon.";
                close;
        }
        if(.@party_id == 0) {
                mes "Only party members can enter this Memorial Dungeon.";
                close;
        }
        mapannounce "moro_cav", .@p_reader$ + "  member of the party, " + .@p_name$ + " is entering " + .@md_name$ + ".",bc_map,"0x00ff99";
        setquest 9318;
        warp "1@rev",26,181;
        close;
 
OnInit:
        initnpctimer;
        end;
 
OnTimer5000:
OnTimer10000:
        specialeffect EF_BOTTOM_VO;
        end;
 
OnTimer11000:
        stopnpctimer;
        initnpctimer;
        end;
}
 
// Memorial Start
//============================================================
1@rev,27,181,0  script  #RZMemorialStart        139,5,5,{
        end;
OnTouch_:
        if('ins_mors == 0) {
                set 'ins_mors,1;
                set 'ins_mors_gid,getcharid(3);
                initnpctimer;
        }
        end;
 
OnTimer1000:
        instance_announce 0, "Morroc: Who dares to disrupt my sleep?!",bc_map,"0x00ebff";
        unittalk 'ins_mors_gid,"We came to the right place!";
        end;
OnTimer4000:
        donpcevent instance_npcname("#RZEvent_1", instance_id())+"::OnEnable";
        unittalk 'ins_mors_gid,"Wait! There's something ahead of us!";
        end;
OnTimer7000:
        unittalk 'ins_mors_gid,"Are these hideous monsters Morroc's lackeys?";
        end;
}
 
// 1st Zone
//============================================================
1@rev,31,181,0  script  #RZEvent_1      -1,{
        end;
OnInstanceInit:
        disablenpc instance_npcname("#RZEvent_1", instance_id());
        end;
OnEnable:
        enablenpc instance_npcname("#RZEvent_1", instance_id());
        monster "1@rev",38,180,"Morroc's Ghoul",3001,1,instance_npcname("#RZEvent_1", instance_id())+"::OnMyMobDead";
        monster "1@rev",38,181,"Morroc's Ghoul",3001,1,instance_npcname("#RZEvent_1", instance_id())+"::OnMyMobDead";
        monster "1@rev",38,182,"Morroc's Ghoul",3001,1,instance_npcname("#RZEvent_1", instance_id())+"::OnMyMobDead";
        monster "1@rev",38,183,"Morroc's Ghoul",3001,1,instance_npcname("#RZEvent_1", instance_id())+"::OnMyMobDead";
        monster "1@rev",54,180,"Morroc's Ghoul",3001,1,instance_npcname("#RZEvent_1", instance_id())+"::OnMyMobDead";
        monster "1@rev",54,181,"Morroc's Ghoul",3001,1,instance_npcname("#RZEvent_1", instance_id())+"::OnMyMobDead";
        monster "1@rev",54,182,"Morroc's Ghoul",3001,1,instance_npcname("#RZEvent_1", instance_id())+"::OnMyMobDead";
        monster "1@rev",54,183,"Morroc's Ghoul",3001,1,instance_npcname("#RZEvent_1", instance_id())+"::OnMyMobDead";
        monster "1@rev",70,180,"Morroc's Ghoul",3001,1,instance_npcname("#RZEvent_1", instance_id())+"::OnMyMobDead";
        monster "1@rev",70,181,"Morroc's Ghoul",3001,1,instance_npcname("#RZEvent_1", instance_id())+"::OnMyMobDead";
        monster "1@rev",70,182,"Morroc's Ghoul",3001,1,instance_npcname("#RZEvent_1", instance_id())+"::OnMyMobDead";
        monster "1@rev",70,183,"Morroc's Ghoul",3001,1,instance_npcname("#RZEvent_1", instance_id())+"::OnMyMobDead";
        end;
OnDisable:
        killmonster "1@rev", instance_npcname("#RZEvent_1", instance_id())+"::OnMyMobDead";
        disablenpc instance_npcname("#RZEvent_1", instance_id());
        end;
 
OnMyMobDead:
        set .@mob_num,mobcount("1@rev",instance_npcname("#RZEvent_1", instance_id())+"::OnMyMobDead");
        if(.@mob_num < 1) {
                donpcevent instance_npcname("Reaper Ankou#mors", instance_id())+"::OnEnable";
                donpcevent instance_npcname("#RZEvent_3", instance_id())+"::OnEnable";
                disablenpc instance_npcname("#RZEvent_1", instance_id());
        }
        end;
}
 
1@rev,64,181,4  script  Reaper Ankou#mors       10028,{
        end;
OnInstanceInit:
        donpcevent instance_npcname("Reaper Ankou#mors", instance_id())+"::OnDisable";
        end;
OnEnable:
        enablenpc instance_npcname("Reaper Ankou#mors", instance_id());
        hideoffnpc instance_npcname("Reaper Ankou#mors", instance_id());
        initnpctimer;
        end;
OnDisable:
        hideonnpc instance_npcname("Reaper Ankou#mors", instance_id());
        disablenpc instance_npcname("Reaper Ankou#mors", instance_id());
        end;
 
OnTimer3000:
        npctalk "*Chuckle* We meet again!";
        end;
OnTimer6000:
        npctalk "This world resides in his mind.";
        end;
OnTimer9000:
        npctalk "You can't do anything against his will. *Chuckle*";
        end;
OnTimer12000:
        npctalk "Lord Morroc is expecting you. Let me take you to him. *Chuckle*";
        end;
OnTimer15000:
        hideonnpc instance_npcname("Reaper Ankou#mors", instance_id());
        end;
OnTimer18000:
        donpcevent instance_npcname("Weakened Morroc#mors", instance_id())+"::OnEnable";
        donpcevent instance_npcname("#RZWarp_11", instance_id())+"::OnEnable";
        donpcevent instance_npcname("#RZWarp_12", instance_id())+"::OnEnable";
        donpcevent instance_npcname("#RZWarp_13", instance_id())+"::OnEnable";
        end;
OnTimer20000:
        stopnpctimer;
        donpcevent instance_npcname("Reaper Ankou#mors", instance_id())+"::OnDisable";
        end;
}
 
1@rev,63,181,0  script  #RZWarp_11      139,8,8,{
        end;
OnInstanceInit:
        donpcevent instance_npcname(strnpcinfo(0), instance_id())+"::OnDisable";
        end;
OnEnable:
        end;
OnDisable:
        end;
 
OnTouch:
        warp "1@rev",103,177;
        end;
}
1@rev,47,181,0  duplicate(#RZWarp_11)   #RZWarp_12      139,8,8
1@rev,31,181,2  duplicate(#RZWarp_11)   #RZWarp_13      139,8,8
 
// 2nd Zone
//============================================================
1@rev,104,176,0 script  #RZEvent_3      139,5,5,{
        end;
OnInstanceInit:
        donpcevent instance_npcname("#RZEvent_3", instance_id())+"::OnDisable";
        end;
OnEnable:
        enablenpc instance_npcname("#RZEvent_3", instance_id());
        end;
OnDisable:
        disablenpc instance_npcname("#RZEvent_3", instance_id());
        end;
 
OnTouch_:
        if('ins_mors == 1) {
                set 'ins_mors,2;
                set 'ins_mors_gid,getcharid(3);
                pcblockmove 'ins_mors_gid,1;
                initnpctimer;
        }
        end;
 
OnTimer1000:
        unittalk 'ins_mors_gid,"Finally, here we are, Morroc.";
        end;
OnTimer4000:
        unittalk 'ins_mors_gid,"It's been almost too easy to find you.";
        end;
OnTimer7000:
        unittalk 'ins_mors_gid,"But it doesn't matter. you'll die today!";
        end;
OnTimer8000:
        pcblockmove 'ins_mors_gid,0;
        end;
OnTimer10000:
        donpcevent instance_npcname("Weakened Morroc#mors", instance_id())+"::OnChat1";
        end;
OnTimer13000:
        donpcevent instance_npcname("Weakened Morroc#mors", instance_id())+"::OnChat2";
        end;
OnTimer16000:
        donpcevent instance_npcname("Weakened Morroc#mors", instance_id())+"::OnChat3";
        end;
OnTimer19000:
        donpcevent instance_npcname("Weakened Morroc#mors", instance_id())+"::OnChat4";
        end;
OnTimer22000:
        donpcevent instance_npcname("Weakened Morroc#mors", instance_id())+"::OnChat5";
        end;
OnTimer25000:
        donpcevent instance_npcname("Weakened Morroc#mors", instance_id())+"::OnChat6";
        end;
OnTimer27000:
        donpcevent instance_npcname("Weakened Morroc#mors", instance_id())+"::OnSummon";
        end;
OnTimer30000:
        stopnpctimer;
        disablenpc instance_npcname("#RZEvent_3", instance_id());
        end;
}
 
1@rev,111,178,4 script  Weakened Morroc#mors    1916,{
        end;
OnInstanceInit:
        donpcevent instance_npcname("Weakened Morroc#mors", instance_id())+"::OnDisable";
        end;
OnEnable:
        enablenpc instance_npcname("Weakened Morroc#mors", instance_id());
        hideoffnpc instance_npcname("Weakened Morroc#mors", instance_id());
        end;
OnDisable:
        hideonnpc instance_npcname("Weakened Morroc#mors", instance_id());
        disablenpc instance_npcname("Weakened Morroc#mors", instance_id());
        end;
OnHideOn:
        hideonnpc instance_npcname("Weakened Morroc#mors", instance_id());
        end;
OnHideOff:
        hideoffnpc instance_npcname("Weakened Morroc#mors", instance_id());
        end;
 
OnSummon:
        donpcevent instance_npcname("Weakened Morroc#mors", instance_id())+"::OnHideOn";
        monster "1@rev",111,177,"Weakened Morroc",2998,1,instance_npcname("Weakened Morroc#mors", instance_id())+"::OnMyMobDead";
        end;
 
OnMyMobDead:
        donpcevent instance_npcname("Weakened Morroc#mors", instance_id())+"::OnHideOff";
        donpcevent instance_npcname("#Battle_1RZ1", instance_id())+"::OnEnable";
        initnpctimer;
        end;
 
OnChat1:
        npctalk "I should punish you for disturbing my slumber.";
        end;
OnChat2:
        npctalk "Do you really think you can stop me?";
        end;
OnChat3:
        npctalk "I'll make you regret ever coming here.";
        end;
OnChat4:
        npctalk "I may have not recovered my full strength.";
        end;
OnChat5:
        npctalk "But I still can take down a bunch of you easily.";
        end;
OnChat6:
        npctalk "Death is your only escape!";
        end;
 
OnTimer1000:
        npctalk "I'm sorry, but I haven't recovered my full strength.";
        end;
OnTimer4000:
        npctalk "I'll have to leave you to my soldiers for now.";
        end;
OnTimer7000:
        npctalk "Do your worst to get out of my world!";
        end;
OnTimer10000:
        npctalk "In the end, you'll learn the meaning of helplessness in the most painful way!";
        end;
OnTimer13000:
        npctalk "And your souls will be mine! Mwah hah hah!";
        end;
OnTimer15000:
        donpcevent instance_npcname("Weakened Morroc#mors", instance_id())+"::OnHideOn";
        end;
OnTimer18000:
        donpcevent instance_npcname("#RZWarp_21", instance_id())+"::OnEnable";
        donpcevent instance_npcname("#RZWarp_22", instance_id())+"::OnEnable";
        donpcevent instance_npcname("#RZWarp_23", instance_id())+"::OnEnable";
        donpcevent instance_npcname("#RZWarp_24", instance_id())+"::OnEnable";
        end;
OnTimer20000:
        stopnpctimer;
        donpcevent instance_npcname("Weakened Morroc#mors", instance_id())+"::OnDisable";
        end;
}
 
1@rev,106,183,0 script  #RZWarp_21      139,5,5,{
        end;
OnInstanceInit:
        donpcevent instance_npcname(strnpcinfo(0), instance_id())+"::OnDisable";
        end;
OnEnable:
        end;
OnDisable:
        end;
 
OnTouch:
        warp "1@rev",33,117;
        end;
}
1@rev,106,172,0 duplicate(#RZWarp_21)   #RZWarp_22      139,5,5
1@rev,117,172,2 duplicate(#RZWarp_21)   #RZWarp_23      139,5,5
1@rev,117,183,2 duplicate(#RZWarp_21)   #RZWarp_24      139,5,5
 
// 3rd Zone
//============================================================
1@rev,35,119,0  script  #Battle_1RZ1    139,4,4,{
        end;
OnInstanceInit:
        donpcevent instance_npcname("#Battle_1RZ1", instance_id())+"::OnDisable";
        end;
OnEnable:
        enablenpc instance_npcname("#Battle_1RZ1", instance_id());
        end;
OnDisable:
        disablenpc instance_npcname("#Battle_1RZ1", instance_id());
        end;
 
OnTouch_:
        if('ins_mors == 2) {
                set 'ins_mors,3;
                set 'ins_mors_gname$,strcharinfo(0);
                initnpctimer;
        }
        end;
 
OnTimer1000:
        donpcevent instance_npcname("#RZMemorialEffect1", instance_id())+"::OnEffect";
        donpcevent instance_npcname("#SoulEffect", instance_id())+"::OnEnable";
        instance_announce 0, "Morroc: How do you like to be separated from each other and have your bodies and minds bound?",bc_map,"0xF01838"; //FW_NORMAL 15 0 0
        end;
OnTimer4000:
        instance_announce 0, "Morroc: You're trespassing! Riff-raff like you have no business in here!",bc_map,"0xF01838"; //FW_NORMAL 15 0 0
        end;
OnTimer7000:
        instance_announce 0, "Morroc: Your bodies are mine to control!",bc_map,"0xF01838"; //FW_NORMAL 15 0 0
        end;
OnTimer10000:
        instance_announce 0, "Morroc: Your souls are food for my resurrection!",bc_map,"0xF01838"; //FW_NORMAL 15 0 0
        end;
OnTimer13000:
        donpcevent instance_npcname("#Battle_1RZ1_Timer", instance_id())+"::OnEnable";
        end;
OnTimer15000:
        stopnpctimer;
        donpcevent instance_npcname("#Battle_1RZ1", instance_id())+"::OnDisable";
        end;
}
 
1@rev,34,120,0  script  #RZMemorialEffect1      139,{
        end;
OnDisable:
        disablenpc instance_npcname("#RZMemorialEffect1", instance_id());
        end;
 
OnEffect:
        specialeffect EF_STORMGUST,AREA;
        end;
}
 
1@rev,34,120,0  script  #SoulEffect     139,{
        end;
OnInstanceInit:
        donpcevent instance_npcname("#SoulEffect", instance_id())+"::OnDisable";
        end;
OnEnable:
        enablenpc instance_npcname("#SoulEffect", instance_id());
        monster "1@rev",34,120,'ins_mors_gname$+"'s Soul",3007,1,instance_npcname("#SoulEffect", instance_id())+"::OnMyMobDead";
        hideoffnpc instance_npcname("#SoulEffect", instance_id());
        end;
OnDisable:
        hideonnpc instance_npcname("#SoulEffect", instance_id());
        disablenpc instance_npcname("#SoulEffect", instance_id());
        end;
 
OnMyMobDead:
        monster "1@rev",34,120,'ins_mors_gname$+"'s Soul",3007,1,instance_npcname("#SoulEffect", instance_id())+"::OnMyMobDead";
        end;
}
 
1@rev,35,119,0  script  #Battle_1RZ1_Timer      -1,{
        end;
OnInstanceInit:
        donpcevent instance_npcname("#Battle_1RZ1_Timer", instance_id())+"::OnDisable";
        end;
OnEnable:
        set 'MyMobs1,42;
        enablenpc instance_npcname("#Battle_1RZ1_Timer", instance_id());
        initnpctimer;
        end;
OnDisable:
        disablenpc instance_npcname("#Battle_1RZ1_Timer", instance_id());
        end;
 
OnTimer100:
        instance_announce 0, "Morroc: My soldiers, tear their bodies asunder and bring their souls to me!",bc_map,"0xFFFF00";
        callsub S_Summon;
        end;
OnTimer30000:
        callsub S_Summon;
        end;
OnTimer60000:
        instance_announce 0, "Morroc: My soldiers, make them suffer! Feast on their bodies and souls!",bc_map,"0xFFFF00";
        callsub S_Summon;
        end;
OnTimer90000:
        callsub S_Summon;
        end;
OnTimer120000:
        instance_announce 0, "Morroc: Not enough. Make them feel terror!",bc_map,"0xFFFF00";
        callsub S_Summon;
        end;
OnTimer150000:
        callsub S_Summon;
        end;
OnTimer180000:
        instance_announce 0, "Morroc: Resist me! Fight to the death!",bc_map,"0xFFFF00";
        callsub S_Summon;
        end;
OnTimer210000:
        callsub S_Summon;
        end;
OnTimer240000:
        instance_announce 0, "Morroc: Mwa hah hah, I can feel my power returning!",bc_map,"0xFFFF00";
        callsub S_Summon;
        monster "1@rev",30,112,"Morroc's Ghoul",3003,1,instance_npcname("#Battle_1RZ1_Timer", instance_id())+"::OnMyMobDead";
        end;
OnTimer270000:
        callsub S_Summon;
        monster "1@rev",30,127,"Morroc's Ghoul",3003,1,instance_npcname("#Battle_1RZ1_Timer", instance_id())+"::OnMyMobDead";
        end;
OnTimer300000:
        set .@mob_num,mobcount("1@rev",instance_npcname("#Battle_1RZ1_Timer", instance_id())+"::OnMyMobDead");
        if(.@mob_num > 20) {
                stopnpctimer;
                donpcevent instance_npcname("Reaper Ankou#RZEvent_3", instance_id())+"::OnEnable";
                donpcevent instance_npcname("#Battle_1RZ1_Timer", instance_id())+"::OnDisable";
        }
        end;
 
S_Summon:
        monster "1@rev",28,125,"Morroc's Ghoul",3001,1,instance_npcname("#Battle_1RZ1_Timer", instance_id())+"::OnMyMobDead";
        monster "1@rev",28,114,"Morroc's Ghoul",3001,1,instance_npcname("#Battle_1RZ1_Timer", instance_id())+"::OnMyMobDead";
        monster "1@rev",39,114,"Morroc's Ghoul",3001,1,instance_npcname("#Battle_1RZ1_Timer", instance_id())+"::OnMyMobDead";
        monster "1@rev",39,125,"Morroc's Ghoul",3001,1,instance_npcname("#Battle_1RZ1_Timer", instance_id())+"::OnMyMobDead";
        return;
 
OnMyMobDead:
        set 'MyMobs1,'MyMobs1-1;
        if('MyMobs1 < 0) end;
        if('MyMobs1 == 0) {
                donpcevent instance_npcname("#Battle_2RZ1", instance_id())+"::OnEnable";
                donpcevent instance_npcname("#RZWarp_31", instance_id())+"::OnEnable";
                donpcevent instance_npcname("#RZWarp_32", instance_id())+"::OnEnable";
                donpcevent instance_npcname("#RZWarp_33", instance_id())+"::OnEnable";
                donpcevent instance_npcname("#RZWarp_34", instance_id())+"::OnEnable";
        }
        end;
}
 
1@rev,28,125,0  script  #RZWarp_31      139,5,5,{
        end;
OnInstanceInit:
        donpcevent instance_npcname(strnpcinfo(0), instance_id())+"::OnDisable";
        end;
OnEnable:
        end;
OnDisable:
        end;
 
OnTouch:
        warp "1@rev",31,50;
        end;
}
1@rev,28,114,0  duplicate(#RZWarp_31)   #RZWarp_32      139,5,5
1@rev,39,114,2  duplicate(#RZWarp_31)   #RZWarp_33      139,5,5
1@rev,39,125,2  duplicate(#RZWarp_31)   #RZWarp_34      139,5,5
 
1@rev,34,126,4  script  Reaper Ankou#RZEvent_3  3029,{
        end;
OnInstanceInit:
        donpcevent instance_npcname("Reaper Ankou#RZEvent_3", instance_id())+"::OnDisable";
        end;
OnEnable:
        enablenpc instance_npcname("Reaper Ankou#RZEvent_3", instance_id());
        hideoffnpc instance_npcname("Reaper Ankou#RZEvent_3", instance_id());
        initnpctimer;
        end;
OnDisable:
        hideonnpc instance_npcname("Reaper Ankou#RZEvent_3", instance_id());
        disablenpc instance_npcname("Reaper Ankou#RZEvent_3", instance_id());
        end;
 
OnTimer1000:
        npctalk "You're pathetic.";
        end;
OnTimer4000:
        npctalk "Weaklings like you aren't enough food for Lord Morroc...";
        end;
OnTimer7000:
        npctalk "To get the energy he needs for a full recovery.";
        end;
OnTimer10000:
        npctalk "I'll give you one chance to leave. NOW!";
        end;
OnTimer13000:
        instance_warpall "SavePoint",0,0;
        end;
OnTimer15000:
        stopnpctimer;
        donpcevent instance_npcname("Reaper Ankou#RZEvent_3", instance_id())+"::OnDisable";
        end;
}
 
// 4th Zone
//============================================================
1@rev,34,47,0   script  #Battle_2RZ1    139,5,5,{
        end;
OnInstanceInit:
        donpcevent instance_npcname("#Battle_2RZ1", instance_id())+"::OnDisable";
        end;
OnEnable:
        enablenpc instance_npcname("#Battle_2RZ1", instance_id());
        end;
OnDisable:
        disablenpc instance_npcname("#Battle_2RZ1", instance_id());
        end;
 
OnTouch_:
        if('ins_mors == 3) {
                set 'ins_mors,4;
                initnpctimer;
        }
        end;
 
OnTimer100:
        donpcevent instance_npcname("#RZMemorialEffect2", instance_id())+"::OnEffect";
        donpcevent instance_npcname("#SoulEffect2", instance_id())+"::OnEnable";
        instance_announce 0, "Morroc: How do you like to be separated from each other and have your bodies and minds bound?",bc_map,"0xF01838"; //FW_NORMAL 15 0 0
        end;
OnTimer4000:
        instance_announce 0, "Morroc: You're trespassing! Riff-raff like you have no business in here!",bc_map,"0xF01838"; //FW_NORMAL 15 0 0
        end;
OnTimer7000:
        instance_announce 0, "Morroc: Your bodies are mine to control!",bc_map,"0xF01838"; //FW_NORMAL 15 0 0
        end;
OnTimer10000:
        instance_announce 0, "Morroc: Your souls are food for my resurrection!",bc_map,"0xF01838"; //FW_NORMAL 15 0 0
        end;
OnTimer13000:
        donpcevent instance_npcname("#Battle_2RZ1_Timer", instance_id())+"::OnEnable";
        end;
OnTimer15000:
        stopnpctimer;
        donpcevent instance_npcname("#Battle_2RZ1", instance_id())+"::OnDisable";
        end;
}
 
1@rev,34,48,0   script  #RZMemorialEffect2      139,{
        end;
OnDisable:
        disablenpc instance_npcname("#RZMemorialEffect2", instance_id());
        end;
 
OnEffect:
        specialeffect EF_STORMGUST,AREA;
        end;
}
 
1@rev,34,49,0   script  #SoulEffect2    139,{
        end;
OnInstanceInit:
        donpcevent instance_npcname("#SoulEffect2", instance_id())+"::OnDisable";
        end;
OnEnable:
        enablenpc instance_npcname("#SoulEffect2", instance_id());
        monster "1@rev",34,49,'ins_mors_gname$+"'s Soul",3007,1,instance_npcname("#SoulEffect2", instance_id())+"::OnMyMobDead";
        hideoffnpc instance_npcname("#SoulEffect2", instance_id());
        end;
OnDisable:
        hideonnpc instance_npcname("#SoulEffect2", instance_id());
        disablenpc instance_npcname("#SoulEffect2", instance_id());
        end;
 
OnMyMobDead:
        monster "1@rev",34,49,'ins_mors_gname$+"'s Soul",3007,1,instance_npcname("#SoulEffect2", instance_id())+"::OnMyMobDead";
        end;
}
 
1@rev,35,119,0  script  #Battle_2RZ1_Timer      -1,{
        end;
OnInstanceInit:
        donpcevent instance_npcname("#Battle_2RZ1_Timer", instance_id())+"::OnDisable";
        end;
OnEnable:
        set 'MyMobs2,42;
        enablenpc instance_npcname("#Battle_2RZ1_Timer", instance_id());
        initnpctimer;
        end;
OnDisable:
        disablenpc instance_npcname("#Battle_2RZ1_Timer", instance_id());
        end;
 
OnTimer100:
        instance_announce 0, "Morroc: Aren't you curious about what I'm doing at the moment?",bc_map,"0xFFFF00";
        callsub S_Summon;
        end;
OnTimer30000:
        callsub S_Summon;
        end;
OnTimer60000:
        instance_announce 0, "Morroc: I am recuperating...",bc_map,"0xFFFF00";
        callsub S_Summon;
        monster "1@rev",26,53,"Morroc Verit",3005,1,instance_npcname("#Battle_2RZ1_Timer", instance_id())+"::OnMyMobDead";
        end;
OnTimer90000:
        callsub S_Summon;
        monster "1@rev",40,41,"Morroc Verit",3005,1,instance_npcname("#Battle_2RZ1_Timer", instance_id())+"::OnMyMobDead";
        end;
OnTimer120000:
        instance_announce 0, "Morroc: It's funny to see how despicable you can get when you're pushed to a corner.",bc_map,"0xFFFF00";
        callsub S_Summon;
        monster "1@rev",24,47,"Morroc Verit",3005,1,instance_npcname("#Battle_2RZ1_Timer", instance_id())+"::OnMyMobDead";
        monster "1@rev",33,57,"Morroc Verit",3005,1,instance_npcname("#Battle_2RZ1_Timer", instance_id())+"::OnMyMobDead";
        end;
OnTimer150000:
        callsub S_Summon;
        monster "1@rev",24,47,"Morroc Verit",3005,1,instance_npcname("#Battle_2RZ1_Timer", instance_id())+"::OnMyMobDead";
        monster "1@rev",33,57,"Morroc Verit",3005,1,instance_npcname("#Battle_2RZ1_Timer", instance_id())+"::OnMyMobDead";
        end;
OnTimer180000:
        set .@mob_num,mobcount("1@rev",instance_npcname("#Battle_2RZ1_Timer", instance_id())+"::OnMyMobDead");
        if(.@mob_num > 20) {
                stopnpctimer;
                donpcevent instance_npcname("Reaper Ankou#RZEvent_4", instance_id())+"::OnEnable";
                donpcevent instance_npcname("#Battle_2RZ1_Timer", instance_id())+"::OnDisable";
        }
        end;
 
S_Summon:
        monster "1@rev",24,47,"Morroc's Ghoul",3001,1,instance_npcname("#Battle_2RZ1_Timer", instance_id())+"::OnMyMobDead";
        monster "1@rev",26,41,"Morroc's Ghoul",3001,1,instance_npcname("#Battle_2RZ1_Timer", instance_id())+"::OnMyMobDead";
        monster "1@rev",40,41,"Morroc's Ghoul",3001,1,instance_npcname("#Battle_2RZ1_Timer", instance_id())+"::OnMyMobDead";
        monster "1@rev",40,59,"Morroc's Ghoul",3001,1,instance_npcname("#Battle_2RZ1_Timer", instance_id())+"::OnMyMobDead";
        monster "1@rev",41,53,"Morroc Archer Skeleton",3003,1,instance_npcname("#Battle_2RZ1_Timer", instance_id())+"::OnMyMobDead";
        monster "1@rev",43,47,"Morroc Archer Skeleton",3003,1,instance_npcname("#Battle_2RZ1_Timer", instance_id())+"::OnMyMobDead";
        return;
 
OnMyMobDead:
        set 'MyMobs2,'MyMobs2-1;
        if('MyMobs2 < 0) end;
        if('MyMobs2 == 0) {
                instance_announce 0, "Morroc: Good....my powers are returning...!!",bc_map,"0xFFFF00";
                donpcevent instance_npcname("#Battle_3RZ1", instance_id())+"::OnEnable";
                donpcevent instance_npcname("#RZWarp_41", instance_id())+"::OnEnable";
                donpcevent instance_npcname("#RZWarp_42", instance_id())+"::OnEnable";
                donpcevent instance_npcname("#RZWarp_43", instance_id())+"::OnEnable";
                donpcevent instance_npcname("#RZWarp_44", instance_id())+"::OnEnable";
        }
        end;
}
 
1@rev,28,53,0   script  #RZWarp_41      139,5,5,{
        end;
OnInstanceInit:
        donpcevent instance_npcname(strnpcinfo(0), instance_id())+"::OnDisable";
        end;
OnEnable:
        end;
OnDisable:
        end;
 
OnTouch:
        warp "1@rev",104,48;
        end;
}
1@rev,28,42,0   duplicate(#RZWarp_31)   #RZWarp_42      139,5,5
1@rev,39,42,2   duplicate(#RZWarp_31)   #RZWarp_43      139,5,5
1@rev,39,53,2   duplicate(#RZWarp_31)   #RZWarp_44      139,5,5
 
1@rev,34,55,4   script  Reaper Ankou#RZEvent_4  3029,{
        end;
OnInstanceInit:
        donpcevent instance_npcname("Reaper Ankou#RZEvent_4", instance_id())+"::OnDisable";
        end;
OnEnable:
        enablenpc instance_npcname("Reaper Ankou#RZEvent_4", instance_id());
        hideoffnpc instance_npcname("Reaper Ankou#RZEvent_4", instance_id());
        initnpctimer;
        end;
OnDisable:
        hideonnpc instance_npcname("Reaper Ankou#RZEvent_4", instance_id());
        disablenpc instance_npcname("Reaper Ankou#RZEvent_4", instance_id());
        end;
 
OnTimer1000:
        npctalk "You're pathetic.";
        end;
OnTimer4000:
        npctalk "Weaklings like you aren't enough food for Lord Morroc...";
        end;
OnTimer7000:
        npctalk "To get the energy he needs for a full recovery.";
        end;
OnTimer10000:
        npctalk "I'll give you one chance to leave. NOW!";
        end;
OnTimer13000:
        instance_warpall "SavePoint",0,0;
        end;
OnTimer15000:
        stopnpctimer;
        donpcevent instance_npcname("Reaper Ankou#RZEvent_4", instance_id())+"::OnDisable";
        end;
}
 
// Final Zone
//============================================================
1@rev,112,47,0  script  #Battle_3RZ1    139,9,9,{
        end;
OnInstanceInit:
        donpcevent instance_npcname("#Battle_3RZ1", instance_id())+"::OnDisable";
        end;
OnEnable:
        enablenpc instance_npcname("#Battle_3RZ1", instance_id());
        end;
OnDisable:
        disablenpc instance_npcname("#Battle_3RZ1", instance_id());
        end;
 
OnTouch_:
        if('ins_mors == 4) {
                set 'ins_mors,5;
                initnpctimer;
        }
        end;
 
OnTimer100:
        instance_announce 0, "Morroc: Our Necromancer! I'm going to recover my powers!",bc_map,"0xF01838"; //FW_NORMAL 15 0 0
        end;
OnTimer4000:
        instance_announce 0, "Morroc: Now you can play with our guesses!",bc_map,"0xF01838"; //FW_NORMAL 15 0 0
        end;
OnTimer7000:
        donpcevent instance_npcname("Morroc's Necromancer#RZ1", instance_id())+"::OnDisable";
        donpcevent instance_npcname("Morroc's Necromancer#RZ2", instance_id())+"::OnEnable";
        end;
OnTimer7100:
        donpcevent instance_npcname("Morroc's Necromancer#RZ2", instance_id())+"::OnChat1";
        end;
OnTimer8000:
        donpcevent instance_npcname("Morroc's Necromancer#RZ2", instance_id())+"::OnChat2";
        end;
OnTimer10000:
        donpcevent instance_npcname("Morroc's Necromancer#RZ2", instance_id())+"::OnChat3";
        end;
OnTimer12000:
        donpcevent instance_npcname("Morroc's Necromancer#RZ2", instance_id())+"::OnChat4";
        end;
OnTimer14000:
        stopnpctimer;
        donpcevent instance_npcname("Morroc's Necromancer#RZ2", instance_id())+"::OnHideOn";
        monster "1@rev",112,47,"Morroc's Necromancer",2999,1,instance_npcname("#Battle_3RZ1", instance_id())+"::OnMyMobDead";
        end;
 
OnMyMobDead:
        donpcevent instance_npcname("Morroc's Necromancer#RZ2", instance_id())+"::OnHideOff";
        donpcevent instance_npcname("#Battle_4RZ1", instance_id())+"::OnEnable";
        donpcevent instance_npcname("#Battle_3RZ1", instance_id())+"::OnDisable";
        end;
}
 
1@rev,112,47,0  script  #Battle_4RZ1    -1,{
        end;
OnEnable:
        initnpctimer;
        end;
 
OnTimer1000:
        donpcevent instance_npcname("Morroc's Necromancer#RZ2", instance_id())+"::OnChat5";
        end;
OnTimer3000:
        donpcevent instance_npcname("Morroc's Necromancer#RZ2", instance_id())+"::OnChat6";
        end;
OnTimer5000:
        stopnpctimer;
        donpcevent instance_npcname("Morroc's Necromancer#RZ2", instance_id())+"::OnHideOn";
        monster "1@rev",112,47,"Morroc's Necromancer",3000,1,instance_npcname("#Battle_4RZ1", instance_id())+"::OnMyMobDead";
        donpcevent instance_npcname("#mors_finalmob", instance_id())+"::OnEnable";
        donpcevent instance_npcname("#mors_finalmobctrl", instance_id())+"::OnEnable";
        end;
 
OnMyMobDead:
        donpcevent instance_npcname("#mors_finalmobctrl", instance_id())+"::OnDisable";
        donpcevent instance_npcname("#mors_finalmob", instance_id())+"::OnDisable";
        donpcevent instance_npcname("Reaper Ankou#RZEvent_5", instance_id())+"::OnEnable";
        donpcevent instance_npcname("#Battle_4RZ1", instance_id())+"::OnDisable";
        end;
}
 
1@rev,112,48,4  script  Morroc's Necromancer#RZ1        3007,{
        end;
OnEnable:
        enablenpc instance_npcname("Morroc's Necromancer#RZ1", instance_id());
        hideoffnpc instance_npcname("Morroc's Necromancer#RZ1", instance_id());
        end;
OnDisable:
        hideonnpc instance_npcname("Morroc's Necromancer#RZ1", instance_id());
        disablenpc instance_npcname("Morroc's Necromancer#RZ1", instance_id());
        end;
}
 
1@rev,112,48,4  script  Morroc's Necromancer#RZ2        10029,{
        end;
OnInstanceInit:
        donpcevent instance_npcname("Morroc's Necromancer#RZ2", instance_id())+"::OnDisable";
        end;
OnEnable:
        enablenpc instance_npcname("Morroc's Necromancer#RZ2", instance_id());
        hideoffnpc instance_npcname("Morroc's Necromancer#RZ2", instance_id());
        end;
OnDisable:
        hideonnpc instance_npcname("Morroc's Necromancer#RZ2", instance_id());
        disablenpc instance_npcname("Morroc's Necromancer#RZ2", instance_id());
        end;
OnHideOn:
        hideonnpc instance_npcname("Morroc's Necromancer#RZ2", instance_id());
        end;
OnHideOff:
        hideoffnpc instance_npcname("Morroc's Necromancer#RZ2", instance_id());
        end;
 
OnChat1:
        npctalk "Yes sir!!";
        end;
OnChat2:
        npctalk "Haha...It seems you didn't realize that you were tricked!!";
        end;
OnChat3:
        npctalk "We were stalling you while Lord Morroc is healing himself!";
        end;
OnChat4:
        npctalk "Haha...You are extremely foolish! Thanks~! You will all meet your end here!!";
        end;
 
OnChat5:
        npctalk "I shall teach you true fear!!";
        end;
OnChat6:
        npctalk "Your life and death is all within my grasp...Hehehe...";
        end;
}
 
1@rev,0,0,0     script  #mors_finalmobctrl      -1,{
        end;
OnInstanceInit:
        donpcevent instance_npcname("#mors_finalmobctrl", instance_id())+"::OnDisable";
        end;
OnEnable:
        enablenpc instance_npcname("#mors_finalmobctrl", instance_id());
        initnpctimer;
        end;
OnDisable:
        stopnpctimer;
        disablenpc instance_npcname("#mors_finalmobctrl", instance_id());
        end;
OnTimer20000:
        instance_announce 0, "Morroc Minions: Behold the terror of the Morroc Minions!!",bc_map,"0xFFFF00";
        donpcevent instance_npcname("#mors_finalmob", instance_id())+"::OnRespawn1";
        end;
OnTimer40000:
        instance_announce 0, "Morroc Minions: We shall protect out Lord!!",bc_map,"0xFFFF00";
        donpcevent instance_npcname("#mors_finalmob", instance_id())+"::OnRespawn2";
        end;
OnTimer60000:
        instance_announce 0, "Morroc Minions: Why are you so Stubborn?",bc_map,"0xFFFF00";
        donpcevent instance_npcname("#mors_finalmob", instance_id())+"::OnRespawn3";
        end;
OnTimer80000:
        instance_announce 0, "Morroc Minions: ...Give up already!!",bc_map,"0xFFFF00";
        donpcevent instance_npcname("#mors_finalmob", instance_id())+"::OnRespawn4";
        end;
OnTimer100000:
        instance_announce 0, "Morroc Minions: We shall protect out Lord!!",bc_map,"0xFFFF00";
        donpcevent instance_npcname("#mors_finalmob", instance_id())+"::OnRespawn5";
        stopnpctimer;
        initnpctimer;
        end;
}
 
1@rev,0,0,0     script  #mors_finalmob  -1,{
        end;
OnInstanceInit:
        donpcevent instance_npcname("#mors_finalmob", instance_id())+"::OnDisable";
        end;
OnEnable:
        enablenpc instance_npcname("#mors_finalmob", instance_id());
        end;
OnDisable:
        killmonster "1@rev",instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        disablenpc instance_npcname("#mors_finalmob", instance_id());
        end;
OnRespawn1:
        monster "1@rev",101,47,"Morroc's Ghoul",3001,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",112,38,"Morroc's Ghoul",3001,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",121,47,"Morroc's Ghoul",3001,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",118,42,"Morroc's Verit",3005,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",104,42,"Morroc's Wraith",3004,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",119,54,"Morroc's Wraith",3004,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        end;
OnRespawn2:
        monster "1@rev",101,47,"Morroc's Ghoul",3001,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",112,38,"Morroc's Wraith",3004,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",121,47,"Morroc's Wraith",3004,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",118,42,"Morroc's Lude",3006,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",104,42,"Morroc's Lude",3006,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",119,54,"Morroc's Lude",3006,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        end;
OnRespawn3:
        monster "1@rev",101,47,"Morroc's Wraith",3004,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",112,38,"Morroc's Archer Skeleton",3003,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",121,47,"Morroc's Archer Skeleton",3003,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",118,42,"Morroc's Verit",3005,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",104,42,"Morroc's Verit",3005,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        end;
OnRespawn4:
        monster "1@rev",101,47,"Morroc's Ghoul",3001,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",112,38,"Morroc's Ghoul",3001,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",121,47,"Morroc's Osiris",3002,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",118,42,"Morroc's Archer Skeleton",3003,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",104,42,"Morroc's Wraith",3004,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",119,54,"Morroc's Wraith",3004,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        end;
OnRespawn5:
        monster "1@rev",101,47,"Morroc's Wraith",3004,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",112,38,"Morroc's Wraith",3004,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",121,47,"Morroc's Osiris",3002,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",118,42,"Morroc's Osiris",3002,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",104,42,"Morroc's Archer Skeleton",3003,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        monster "1@rev",119,54,"Morroc's Archer Skeleton",3003,1,instance_npcname("#mors_finalmob", instance_id())+"::OnMyMobDead";
        end;
OnMyMobDead:
        end;
}
 
1@rev,111,47,4  script  Reaper Ankou#RZEvent_5  10028,{
        end;
OnInstanceInit:
        donpcevent instance_npcname("Reaper Ankou#RZEvent_5", instance_id())+"::OnDisable";
        end;
OnEnable:
        enablenpc instance_npcname("Reaper Ankou#RZEvent_5", instance_id());
        hideoffnpc instance_npcname("Reaper Ankou#RZEvent_5", instance_id());
        initnpctimer;
        end;
OnDisable:
        hideonnpc instance_npcname("Reaper Ankou#RZEvent_5", instance_id());
        disablenpc instance_npcname("Reaper Ankou#RZEvent_5", instance_id());
        end;
OnHideOn:
        hideonnpc instance_npcname("Reaper Ankou#RZEvent_5", instance_id());
        end;
OnHideOff:
        hideoffnpc instance_npcname("Reaper Ankou#RZEvent_5", instance_id());
        end;
OnTimer2000:
        npctalk "...The illusionist shouldn't have been......";
        end;
OnTimer4000:
        npctalk "Don't be relieved just yet...";
        end;
OnTimer6000:
        npctalk "Our Lord Morroc has regained his strength, you have failed!!";
        end;
OnTimer8000:
        npctalk "Until next time~ Hehe...";
        end;
OnTimer11000:
        specialeffect 30;
        donpcevent instance_npcname("Reaper Ankou#RZEvent_5", instance_id())+"::OnHideOn";
        end;
OnTimer13000:
        specialeffect 90;
        donpcevent instance_npcname("#exitmors", instance_id())+"::OnEnable";
        end;
OnTimer16000:
        instance_announce 0, "Senior Tracker: Great work! I have some rewards for you when you get out of here.",bc_map,"0xF1F533";
        stopnpctimer;
        donpcevent instance_npcname("Reaper Ankou#RZEvent_5", instance_id())+"::OnDisable";
        end;
}
 
1@rev,112,56,0  script  #exitmors       10007,{
        if(checkquest(9318,HUNTING) == 2) {
                mes "^ff0000You will be rewarded with a Proof of the Heroic if you leave.^000000";
        }
        mes "What will you do?";
        next;
        if(select("Stay:Leave") == 1) {
                mes "You decided to stay on for a bit.";
                close;
        }
        mes "You decided to leave.";
        close2;
        //set morscavecomplete,1;
        warp "moro_cav",59,63;
        end;
OnInstanceInit:
        donpcevent instance_npcname("#exitmors", instance_id())+"::OnDisable";
        end;
OnEnable:
        enablenpc instance_npcname("#exitmors", instance_id());
        hideoffnpc instance_npcname("#exitmors", instance_id());
        initnpctimer;
        end;
OnDisable:
        hideonnpc instance_npcname("#exitmors", instance_id());
        disablenpc instance_npcname("#exitmors", instance_id());
        end;
}
Viewed 629 times, submitted by limitro.