viewing paste Unknown #24378 | 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
prontera,151,159,4      script  Raider Knight   4_M_ROYALGUARD,{
/*      if( #AngelRoomDelay > gettimetick(2) ) {
                set .last,#AngelRoomDelay - gettimetick(2);
                set .@min,  .last % ( 24 * 3600 ) % 3600 / (60);
                mes "Wait for ^FF0000"+.@min+" Minutes^000000.";
                close;
        }
*/
if( has_instance($mapname$) != "" ) {
                cutin "3rd_rg_schmitt02", 2;
                mes .md_namenpc$;
                mes "The raids not over yet! Get back into battle with your fellow comrades!";
                next;
                if(getcharid(1) ) {
                announce strcharinfo(0)+" of the party "+ getpartyname( getcharid(1) ) +" is coming back into the Raid Dungeon!",bc_party;
}
                cutin "", 255;
                warp has_instance($mapname$),204,178;
        }
 
        cutin "3rd_rg_schmitt02", 2;
        .@md_name$ = "^551A8BAngel Raid^000000";
        .md_namenpc$ = "[ ^551A8B Angel Raid ^000000 ]";
        mes .md_namenpc$;
        mes "Hello there "+strcharinfo(0)+".";
        mes "There's been rumors that a new land has been discovered.";
        next;
        mes .md_namenpc$;
        mes "I'm not quite sure what's in store for you there, but from our Sea Captains of Hugel they have spotted many monsters.";
        next;
        mes .md_namenpc$;
        mes "Would you like to explore the region and take care of the monster out-break so that our Rune-Midgard may claim the land?";
        mes "- WARNING:";
        mes "- ^FF0000EXTREME-DIFFUCULTY^000000";
        mes "- ^0000FF30 Waves Total!^000000";
        next;
        switch(select("[Create] "+.@md_name$+" Solo","[Create] "+.@md_name$+" Party","[Solo Ranking] "+.@md_name$+"","[Exit] Changed my mind.")) {
        case 1:
                mes .md_namenpc$;
                if (getcharid(1) != 0 ) {
                        mes "You must not be in a party to join by yourself.";
                        close2;
                        cutin "", 255;
                        end;
                }
                        if( gettimetick(2) < AngelRoomDelay ) {
                                set .@name$, strcharinfo(0);
                                set .@time, AngelRoomDelay - gettimetick(2);
                                attachrid( .@self );
                                mes "Sorry "+ .@name$ +" you must wait "+ callfunc( "timeleft__", .@time ) +" before entering the ^551a8bRaid Dungeon^000000 again.";
                                close2;
                                cutin "", 255;
                                end;
                        }
                        AngelRoomDelay = gettimetick(2) + 3600 * 1; // 2 = 2 hour, 3 = 3 hour etc..
                // check delay if a player is invited
                for( .@i = 0; .@i < getarraysize( getd( ".char_id"+ getcharid(1) ) ); .@i++ )
                        if( getd( ".char_id"+ getcharid(1) +"["+ .@i +"]" ) == getcharid(0) ) {
                                .@pass = 1;
                                break;
                        }
                if( !.@pass ) {
                        if( gettimetick(2) < AngelRoomDelay ) {
                                mes "Sorry you must wait "+ callfunc( "timeleft__", AngelRoomDelay - gettimetick(2) ) +" before entering the Raid Dungeon again.";
                                close;
                        }
                        .@size = getarraysize( getd( ".char_id"+ getcharid(1) ) );
                        setd( ".char_id"+ getcharid(1) +"[ "+ .@size +" ]", getcharid(0) );
                        AngelRoomDelay = gettimetick(2) + 3600 * 3;
                }
 
                mes "Alright, I hope you're prepared!";
                mes "...";
                sleep2 1000;
                mes "The instance is OPEN! Good luck!";
                sleep2 750;
                cutin "", 255;
                specialeffect2 777;
                announce "[Entering Raid Dungeon ]",bc_self;
                sleep2 300;
                specialeffect2 EF_HEALSP;
                specialeffect2 EF_M05;
                sleep2 300;
                        .@instance = instance_create( .@md_name$, getcharid( 3 ), IOT_CHAR);
                        if( .@instance < 0 ) {
                                dispbottom "Instance Failed. Please relog and try again.";
                                close;
                        }
                        dispbottom "Attempting to create Instance.";
                        if( instance_attachmap($mapname$,.@instance,1) == "" ) {
                                instance_destroy( .@instance );
                                dispbottom "Failed to instance "+$mapname$+"";
                                end;
                        }
                dispbottom "Attempt successful on Instance attach!";
                instance_set_timeout( 3600, 300, .@instance );
                instance_init( .@instance );
                instance_attach .@instance;
                'cid = getcharid(0);
                'aid = getcharid(3);
               
                        announce strcharinfo(0)+" is attempting the Raid Dungeon! Wish them luck!",bc_all;
                        warp instance_mapname($mapname$,.@instance),204,178;
                end;
 
        case 2:
                mes .md_namenpc$;
                if ( getpartyleader(getcharid(1),2) != getcharid(0) ) {
                        mes "Only the party leader can create a party instance.";
                        close2;
                        cutin "", 255;
                        end;
                }
        // Check delay of players in the party
        getpartymember getcharid(1), 1;
        getpartymember getcharid(1), 2;
        .@self = getcharid(3);
        for( .@i = 0; .@i < $@partymembercount; .@i++ ) {
                if( isloggedin( $@partymemberaid[ .@i ], $@partymembercid[ .@i ] ) ) {
                        attachrid( $@partymemberaid[ .@i ] );
                        if( gettimetick(2) < AngelRoomDelay ) {
                                set .@name$, strcharinfo(0);
                                set .@time, AngelRoomDelay - gettimetick(2);
                                attachrid( .@self );
                                mes "Sorry but player "+ .@name$ +" must wait "+ callfunc( "timeleft__", .@time ) +" before entering the ^551a8bRaid Dungeon^000000 again.";
                                cutin "", 255;
                                close;
                        }
                }
        }
        for( .@i = 0; .@i < $@partymembercount; .@i++ ) {
                if( isloggedin( $@partymemberaid[ .@i ], $@partymembercid[ .@i ] ) ) {
                        attachrid( $@partymemberaid[ .@i ] );
                        if( gettimetick(2) >= AngelRoomDelay ) {
                                AngelRoomDelay = gettimetick(2) + 3600 * 3;
                                .@size = getarraysize( getd( ".char_id"+ getcharid(1) ) );
                                setd( ".char_id"+ getcharid(1) +"[ "+ .@size +" ]", getcharid(0) );
                        }
                }
        }
                mes "Alright, I hope your party is prepared!";
                mes "...";
                sleep2 1000;
                mes "The instance is OPEN! Good luck!";
                sleep2 750;
                cutin "", 255;
                specialeffect2 777;
                announce "[ Entering Raid Dungeon ]",bc_self;
                sleep2 300;
                specialeffect2 EF_HEALSP;
                specialeffect2 EF_M05;
                sleep2 300;
                        .@instance = instance_create( .@md_name$, getcharid( 1 ), IOT_PARTY);
                        if( .@instance < 0 ) {
                                dispbottom "Instance Failed. Please relog and try again.";
                                close;
                        }
                        dispbottom "Attempting to create Raid Dungeon.";
                        if( instance_attachmap($mapname$,.@instance,1) == "" ) {
//                      if( instance_attachmap($mapname$, .@instance) == "" ) {
                                instance_destroy( .@instance );
                                dispbottom "Failed to instance "+$mapname$+"";
                                end;
                        }
                dispbottom "Attempt successful on Instance attach!";
                instance_set_timeout( 3600, 300, .@instance );
                instance_init( .@instance );
                instance_attach .@instance;
                'cid = getcharid(0);
                'aid = getcharid(1);
                announce "The party "+ getpartyname( getcharid(1) ) +" is attempting the Raid Dungeon! Wish them luck!",bc_all;
                warpparty instance_mapname( $mapname$,.@instance ),204,178,getcharid(1);
                end;
                case 3:
                mes "[ ^ee7600 Solo Raiders Ranking ^000000 ]";
                mes "Total Times Beaten:";
                query_sql("SELECT char_id AS id, (SELECT `name` FROM `char` WHERE char_id = id),`value` FROM `char_reg_num_db` WHERE `key` = 'SoloRank' ORDER BY CAST(`value` AS SIGNED) DESC LIMIT 5", .@id, .@name$, .@val);
                for (.@i = 0; .@i < 10; .@i++)
                mes "[Rank " + (.@i+1) + "]  " + ((.@name$[.@i] == "") ? "^777777None" : "^0055FF" + .@name$[.@i]+"^000000 : ^FF0000" + .@val[.@i] + "^000000x ") + "^000000";
                next;
                mes "[ ^ee7600 Solo Raiders Ranking ^000000 ]";
                mes "Fastest Raider:";
                query_sql("SELECT char_id AS id, (SELECT `name` FROM `char` WHERE char_id = id),`value` FROM `char_reg_num_db` WHERE `key` = 'NewRaidRecord' ORDER BY CAST(`value` AS SIGNED) DESC LIMIT 5", .@id, .@name$, .@val);
                for (.@i = 0; .@i < 3; .@i++)
                mes "[Rank " + (.@i+1) + "]  " + ((.@name$[.@i] == "") ? "^777777None" : "^0055FF" + .@name$[.@i]+"^000000 : Fastest time: ^FF0000 "+ callfunc( "Time2Str", .@val[.@i]+gettimetick(2))) + "^000000";
                close2;
                cutin "", 255;
                end;
                case 4:
                mes .md_namenpc$;
                mes "Well come again if you decide to change your mind.";
                close2;
                cutin "", 255;
                end;
        }
OnInit:
        $mapname$ = "1@rai"; // Be sure to edit this and the "RaidDungeon#Ins" npc to the map instance follows on
        $@DimMin = 500; // Randomized minimum amount they can get for reward for Dimension Coins. (Solo)
        $@DimMax = 3500; // Randomized maximum amount they can get for reward for Dimension Coins (Solo)
 
}
1@rai,1,4,1     script  RaidDungeon#Ins -1,{
OnInstanceInit:
        'Raid_Start = gettimetick(2); // After Instance initiating, it start to record the time duration you were/party were playing instance.
        setarray 'wave1id[0],1002,1002,1002,1002,1002;
        setarray 'wave2id[0],1002,1002,1002,1002,1002;
        setarray 'wave3id[0],1002,1002,1002,1002,1002;
        setarray 'wave4id[0],1002,1002,1002,1002,1002;
        setarray 'wave5id[0],1002,1002,1002,1002,1002;
        setarray 'wave6id[0],1002,1002,1002,1002,1002;
        setarray 'wave7id[0],1002,1002,1002,1002,1002;
        setarray 'wave8id[0],1002,1002,1002,1002,1002;
        setarray 'wave9id[0],1002,1002,1002,1002,1002;
        setarray 'wave10id[0],1002,1002,1002,1002,1002;
        setarray 'wave11id[0],1002,1002,1002,1002,1002;
        setarray 'wave12id[0],1002,1002,1002,1002,1002;
        setarray 'wave13id[0],1002,1002,1002,1002,1002;
        setarray 'wave14id[0],1002,1002,1002,1002,1002;
        setarray 'wave15id[0],1002,1002,1002,1002,1002;
        setarray 'wave16id[0],1002,1002,1002,1002,1002;
        setarray 'wave17id[0],1002,1002,1002,1002,1002;
        setarray 'wave18id[0],1002,1002,1002,1002,1002;
        setarray 'wave19id[0],1002,1002,1002,1002,1002;
        setarray 'wave20id[0],1002,1002,1002,1002,1002;
        setarray 'wave21id[0],1002,1002,1002,1002,1002;
        setarray 'wave22id[0],1002,1002,1002,1002,1002;
        setarray 'wave23id[0],1002,1002,1002,1002,1002;
        setarray 'wave24id[0],1002,1002,1002,1002,1002;
        setarray 'wave25id[0],1002,1002,1002,1002,1002;
        setarray 'wave26id[0],1002,1002,1002,1002,1002;
        setarray 'wave27id[0],1002,1002,1002,1002,1002;
        setarray 'wave28id[0],1002,1002,1002,1002,1002;
        setarray 'wave29id[0],1002,1002,1002,1002,1002;
        setarray 'wave30id[0],1002,1002,1002,1002,1002;
 
 
        setarray 'wave1am[0],1,1,1,1,1;
        setarray 'wave2am[0],1,1,1,1,1;
        setarray 'wave3am[0],1,1,1,1,1;
        setarray 'wave4am[0],1,1,1,1,1;
        setarray 'wave5am[0],1,1,1,1,1;
        setarray 'wave6am[0],1,1,1,1,1;
        setarray 'wave7am[0],1,1,1,1,1;
        setarray 'wave8am[0],1,1,1,1,1;
        setarray 'wave9am[0],1,1,1,1,1;
        setarray 'wave10am[0],1,1,1,1,1;
        setarray 'wave11am[0],1,1,1,1,1;
        setarray 'wave12am[0],1,1,1,1,1;
        setarray 'wave13am[0],1,1,1,1,1;
        setarray 'wave14am[0],1,1,1,1,1;
        setarray 'wave15am[0],1,1,1,1,1;
        setarray 'wave16am[0],1,1,1,1,1;
        setarray 'wave17am[0],1,1,1,1,1;
        setarray 'wave18am[0],1,1,1,1,1;
        setarray 'wave19am[0],1,1,1,1,1;
        setarray 'wave20am[0],1,1,1,1,1;
        setarray 'wave21am[0],1,1,1,1,1;
        setarray 'wave22am[0],1,1,1,1,1;
        setarray 'wave23am[0],1,1,1,1,1;
        setarray 'wave24am[0],1,1,1,1,1;
        setarray 'wave25am[0],1,1,1,1,1;
        setarray 'wave26am[0],1,1,1,1,1;
        setarray 'wave27am[0],1,1,1,1,1;
        setarray 'wave28am[0],1,1,1,1,1;
        setarray 'wave29am[0],1,1,1,1,1;
        setarray 'wave30am[0],1;
 
        //Wave 1 Mob Amounts total
        'Wave1Total = 'wave1am[0]+'wave1am[1]+'wave1am[2]+'wave1am[3]+'wave1am[4];
        //Wave 2 Mob Amounts total
        'Wave2Total = 'wave2am[0]+'wave2am[1]+'wave2am[2]+'wave2am[3]+'wave2am[4];
        //Wave 3 Mob Amounts total
        'Wave3Total = 'wave3am[0]+'wave3am[1]+'wave3am[2]+'wave3am[3]+'wave3am[4];
        //Wave 4 Mob Amounts total
        'Wave4Total = 'wave4am[0]+'wave4am[1]+'wave4am[2]+'wave4am[3]+'wave4am[4];
        //Wave 5 Mob Amounts total
        'Wave5Total = 'wave5am[0]+'wave5am[1]+'wave5am[2]+'wave5am[3]+'wave5am[4];
        //Wave 6 Mob Amounts total
        'Wave6Total = 'wave6am[0]+'wave6am[1]+'wave6am[2]+'wave6am[3]+'wave6am[4];
        //Wave 7 Mob Amounts total
        'Wave7Total = 'wave7am[0]+'wave7am[1]+'wave7am[2]+'wave7am[3]+'wave7am[4];
        //Wave 8 Mob Amounts total
        'Wave8Total = 'wave8am[0]+'wave8am[1]+'wave8am[2]+'wave8am[3]+'wave8am[4];
        //Wave 9 Mob Amounts total
        'Wave9Total = 'wave9am[0]+'wave9am[1]+'wave9am[2]+'wave9am[3]+'wave9am[4];
        //Wave 10 Mob Amounts total
        'Wave10Total = 'wave10am[0]+'wave10am[1]+'wave10am[2]+'wave10am[3]+'wave10am[4];
        //Wave 11 Mob amounts total
        'Wave11Total = 'wave11am[0]+'wave11am[1]+'wave11am[2]+'wave11am[3]+'wave11am[4];
        //Wave 11 Mob amounts total
        'Wave12Total = 'wave12am[0]+'wave12am[1]+'wave12am[2]+'wave12am[3]+'wave12am[4];
        //Wave 13 Mob amounts total
        'Wave13Total = 'wave13am[0]+'wave13am[1]+'wave13am[2]+'wave13am[3]+'wave13am[4];
        //Wave 14 Mob amounts total
        'Wave14Total = 'wave14am[0]+'wave14am[1]+'wave14am[2]+'wave14am[3]+'wave14am[4];
        //Wave 15 Mob amounts total
        'Wave15Total = 'wave15am[0]+'wave15am[1]+'wave15am[2]+'wave15am[3]+'wave15am[4];
        //Wave 16 Mob amounts total
        'Wave16Total = 'wave16am[0]+'wave16am[1]+'wave16am[2]+'wave16am[3]+'wave16am[4];
        //Wave 17 Mob amounts total
        'Wave17Total = 'wave17am[0]+'wave17am[1]+'wave17am[2]+'wave17am[3]+'wave17am[4];
        //Wave 18 Mob amounts total
        'Wave18Total = 'wave18am[0]+'wave18am[1]+'wave18am[2]+'wave18am[3]+'wave18am[4];
        //Wave 19 Mob amounts total
        'Wave19Total = 'wave19am[0]+'wave19am[1]+'wave19am[2]+'wave19am[3]+'wave19am[4];
        //Wave 20 Mob amounts total
        'Wave20Total = 'wave20am[0]+'wave20am[1]+'wave20am[2]+'wave20am[3]+'wave20am[4];
        //Wave 21 Mob amounts total
        'Wave21Total = 'wave21am[0]+'wave21am[1]+'wave21am[2]+'wave21am[3]+'wave21am[4];
        //Wave 22 Mob amounts total
        'Wave22Total = 'wave22am[0]+'wave22am[1]+'wave22am[2]+'wave22am[3]+'wave22am[4];
        //Wave 23 Mob amounts total
        'Wave23Total = 'wave23am[0]+'wave23am[1]+'wave23am[2]+'wave23am[3]+'wave23am[4];
        //Wave 24 Mob amounts total
        'Wave24Total = 'wave24am[0]+'wave24am[1]+'wave24am[2]+'wave24am[3]+'wave24am[4];
        //Wave 25 Mob amounts total
        'Wave25Total = 'wave25am[0]+'wave25am[1]+'wave25am[2]+'wave25am[3]+'wave25am[4];
        //Wave 26 Mob amounts total
        'Wave26Total = 'wave26am[0]+'wave26am[1]+'wave26am[2]+'wave26am[3]+'wave26am[4];
        //Wave 27 Mob amounts total
        'Wave27Total = 'wave27am[0]+'wave27am[1]+'wave27am[2]+'wave27am[3]+'wave27am[4];
        //Wave 28 Mob amounts total
        'Wave28Total = 'wave28am[0]+'wave28am[1]+'wave28am[2]+'wave28am[3]+'wave28am[4];
        //Wave 29 Mob amounts total
        'Wave29Total = 'wave29am[0]+'wave29am[1]+'wave29am[2]+'wave29am[3]+'wave29am[4];
        //Wave 30 Mob amounts total
        'Wave30Total = 'wave30am[0];
        'WaveMax = 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total+'Wave25Total+'Wave26Total+'Wave27Total+'Wave28Total+'Wave29Total+'Wave30Total;
        'WaveCount =  0;
        'Ins_Start = 0;
 
        if ( !'Ins_Start )
{
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent1";
        'Ins_Start++;
}
OnEvent1:
        sleep 2000;
        instance_announce -1,"Test1",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave1id[0],0)+"",'wave1id[0],'wave1am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave1id[1],0)+"",'wave1id[1],'wave1am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave1id[2],0)+"",'wave1id[2],'wave1am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave1id[3],0)+"",'wave1id[3],'wave1am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave1id[4],0)+"",'wave1id[4],'wave1am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent2:
        sleep 2000;
        instance_announce -1,"Test2",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave2id[0],0)+"",'wave2id[0],'wave2am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave2id[1],0)+"",'wave2id[1],'wave2am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave2id[2],0)+"",'wave2id[2],'wave2am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave2id[3],0)+"",'wave2id[3],'wave2am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave2id[4],0)+"",'wave2id[4],'wave2am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent3:
        sleep 2000;
        instance_announce -1,"Test3",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave3id[0],0)+"",'wave3id[0],'wave3am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave3id[1],0)+"",'wave3id[1],'wave3am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave3id[2],0)+"",'wave3id[2],'wave3am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave3id[3],0)+"",'wave3id[3],'wave3am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave3id[4],0)+"",'wave3id[4],'wave3am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent4:
        sleep 2000;
        instance_announce -1,"Test4",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave4id[0],0)+"",'wave4id[0],'wave4am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave4id[1],0)+"",'wave4id[1],'wave4am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave4id[2],0)+"",'wave4id[2],'wave4am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave4id[3],0)+"",'wave4id[3],'wave4am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave4id[4],0)+"",'wave4id[4],'wave4am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent5:
        sleep 2000;
        instance_announce -1,"Test5",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave5id[0],0)+"",'wave5id[0],'wave5am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave5id[1],0)+"",'wave5id[1],'wave5am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave5id[2],0)+"",'wave5id[2],'wave5am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave5id[3],0)+"",'wave5id[3],'wave5am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave5id[4],0)+"",'wave5id[4],'wave5am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent6:
        sleep 2000;
        instance_announce -1,"Test6",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave6id[0],0)+"",'wave6id[0],'wave6am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave6id[1],0)+"",'wave6id[1],'wave6am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave6id[2],0)+"",'wave6id[2],'wave6am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave6id[3],0)+"",'wave6id[3],'wave6am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave6id[4],0)+"",'wave6id[4],'wave6am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent7:
        sleep 2000;
        instance_announce -1,"Test7",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave7id[0],0)+"",'wave7id[0],'wave7am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave7id[1],0)+"",'wave7id[1],'wave7am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave7id[2],0)+"",'wave7id[2],'wave7am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave7id[3],0)+"",'wave7id[3],'wave7am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave7id[4],0)+"",'wave7id[4],'wave7am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent8:
        sleep 2000;
        instance_announce -1,"Test8",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave8id[0],0)+"",'wave8id[0],'wave8am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave8id[1],0)+"",'wave8id[1],'wave8am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave8id[2],0)+"",'wave8id[2],'wave8am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave8id[3],0)+"",'wave8id[3],'wave8am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave8id[4],0)+"",'wave8id[4],'wave8am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent9:
        sleep 2000;
        instance_announce -1,"Test9",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave9id[0],0)+"",'wave9id[0],'wave9am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave9id[1],0)+"",'wave9id[1],'wave9am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave9id[2],0)+"",'wave9id[2],'wave9am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave9id[3],0)+"",'wave9id[3],'wave9am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave9id[4],0)+"",'wave9id[4],'wave9am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent10:
        sleep 2000;
        instance_announce -1,"Test10",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave10id[0],0)+"",'wave10id[0],'wave10am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave10id[1],0)+"",'wave10id[1],'wave10am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave10id[2],0)+"",'wave10id[2],'wave10am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave10id[3],0)+"",'wave10id[3],'wave10am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave10id[4],0)+"",'wave10id[4],'wave10am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent11:
        sleep 2000;
        instance_announce -1,"Test11",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave11id[0],0)+"",'wave10id[0],'wave11am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave11id[1],0)+"",'wave10id[1],'wave11am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave11id[2],0)+"",'wave10id[2],'wave11am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave11id[3],0)+"",'wave10id[3],'wave11am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave11id[4],0)+"",'wave10id[4],'wave11am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent12:
        sleep 2000;
        instance_announce -1,"Test12",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave12id[0],0)+"",'wave12id[0],'wave12am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave12id[1],0)+"",'wave12id[1],'wave12am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave12id[2],0)+"",'wave12id[2],'wave12am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave12id[3],0)+"",'wave12id[3],'wave12am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave12id[4],0)+"",'wave12id[4],'wave12am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent13:
        sleep 2000;
        instance_announce -1,"Test13",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave13id[0],0)+"",'wave13id[0],'wave13am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave13id[1],0)+"",'wave13id[1],'wave13am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave13id[2],0)+"",'wave13id[2],'wave13am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave13id[3],0)+"",'wave13id[3],'wave13am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave13id[4],0)+"",'wave13id[4],'wave13am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent14:
        sleep 2000;
        instance_announce -1,"Test14",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave14id[0],0)+"",'wave14id[0],'wave14am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave14id[1],0)+"",'wave14id[1],'wave14am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave14id[2],0)+"",'wave14id[2],'wave14am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave14id[3],0)+"",'wave14id[3],'wave14am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave14id[4],0)+"",'wave14id[4],'wave14am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent15:
        sleep 2000;
        instance_announce -1,"Test15",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave15id[0],0)+"",'wave15id[0],'wave15am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave15id[1],0)+"",'wave15id[1],'wave15am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave15id[2],0)+"",'wave15id[2],'wave15am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave15id[3],0)+"",'wave15id[3],'wave15am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave15id[4],0)+"",'wave15id[4],'wave15am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent16:
        sleep 2000;
        instance_announce -1,"Test16",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave16id[0],0)+"",'wave16id[0],'wave16am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave16id[1],0)+"",'wave16id[1],'wave16am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave16id[2],0)+"",'wave16id[2],'wave16am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave16id[3],0)+"",'wave16id[3],'wave16am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave16id[4],0)+"",'wave16id[4],'wave16am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent17:
        sleep 2000;
        instance_announce -1,"Test17",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave17id[0],0)+"",'wave17id[0],'wave17am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave17id[1],0)+"",'wave17id[1],'wave17am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave17id[2],0)+"",'wave17id[2],'wave17am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave17id[3],0)+"",'wave17id[3],'wave17am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave17id[4],0)+"",'wave17id[4],'wave17am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent18:
        sleep 2000;
        instance_announce -1,"Test18",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave18id[0],0)+"",'wave18id[0],'wave18am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave18id[1],0)+"",'wave18id[1],'wave18am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave18id[2],0)+"",'wave18id[2],'wave18am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave18id[3],0)+"",'wave18id[3],'wave18am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave18id[4],0)+"",'wave18id[4],'wave18am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent19:
        sleep 2000;
        instance_announce -1,"Test19",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave19id[0],0)+"",'wave19id[0],'wave19am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave19id[1],0)+"",'wave19id[1],'wave19am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave19id[2],0)+"",'wave19id[2],'wave19am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave19id[3],0)+"",'wave19id[3],'wave19am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave19id[4],0)+"",'wave19id[4],'wave19am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent20:
        sleep 2000;
        instance_announce -1,"Test20",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave20id[0],0)+"",'wave20id[0],'wave20am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave20id[1],0)+"",'wave20id[1],'wave20am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave20id[2],0)+"",'wave20id[2],'wave20am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave20id[3],0)+"",'wave20id[3],'wave20am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave20id[4],0)+"",'wave20id[4],'wave20am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent21:
        sleep 2000;
        instance_announce -1,"Test21",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave21id[0],0)+"",'wave21id[0],'wave21am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave21id[1],0)+"",'wave21id[1],'wave21am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave21id[2],0)+"",'wave21id[2],'wave21am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave21id[3],0)+"",'wave21id[3],'wave21am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave21id[4],0)+"",'wave21id[4],'wave21am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent22:
        sleep 2000;
        instance_announce -1,"Test22",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave22id[0],0)+"",'wave22id[0],'wave22am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave22id[1],0)+"",'wave22id[1],'wave22am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave22id[2],0)+"",'wave22id[2],'wave22am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave22id[3],0)+"",'wave22id[3],'wave22am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave22id[4],0)+"",'wave22id[4],'wave22am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent23:
        sleep 2000;
        instance_announce -1,"Test23",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave23id[0],0)+"",'wave23id[0],'wave23am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave23id[1],0)+"",'wave23id[1],'wave23am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave23id[2],0)+"",'wave23id[2],'wave23am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave23id[3],0)+"",'wave23id[3],'wave23am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave23id[4],0)+"",'wave23id[4],'wave23am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent24:
        sleep 2000;
        instance_announce -1,"Test24",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave24id[0],0)+"",'wave24id[0],'wave24am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave24id[1],0)+"",'wave24id[1],'wave24am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave24id[2],0)+"",'wave24id[2],'wave24am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave24id[3],0)+"",'wave24id[3],'wave24am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave24id[4],0)+"",'wave24id[4],'wave24am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent25:
        sleep 2000;
        instance_announce -1,"Test25",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave25id[0],0)+"",'wave25id[0],'wave25am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave25id[1],0)+"",'wave25id[1],'wave25am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave25id[2],0)+"",'wave25id[2],'wave25am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave25id[3],0)+"",'wave25id[3],'wave25am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave25id[4],0)+"",'wave25id[4],'wave25am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent26:
        sleep 2000;
        instance_announce -1,"Test26",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave26id[0],0)+"",'wave26id[0],'wave26am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave26id[1],0)+"",'wave26id[1],'wave26am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave26id[2],0)+"",'wave26id[2],'wave26am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave26id[3],0)+"",'wave26id[3],'wave26am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave26id[4],0)+"",'wave26id[4],'wave26am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent27:
        sleep 2000;
        instance_announce -1,"Test27",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave27id[0],0)+"",'wave27id[0],'wave27am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave27id[1],0)+"",'wave27id[1],'wave27am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave27id[2],0)+"",'wave27id[2],'wave27am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave27id[3],0)+"",'wave27id[3],'wave27am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave27id[4],0)+"",'wave27id[4],'wave27am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent28:
        sleep 2000;
        instance_announce -1,"Test28",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave28id[0],0)+"",'wave28id[0],'wave28am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave28id[1],0)+"",'wave28id[1],'wave28am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave28id[2],0)+"",'wave28id[2],'wave28am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave28id[3],0)+"",'wave28id[3],'wave28am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave28id[4],0)+"",'wave28id[4],'wave28am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent29:
        sleep 2000;
        instance_announce -1,"Test29",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave29id[0],0)+"",'wave29id[0],'wave29am[0],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave29id[1],0)+"",'wave29id[1],'wave29am[1],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave29id[2],0)+"",'wave29id[2],'wave29am[2],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave29id[3],0)+"",'wave29id[3],'wave29am[3],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave29id[4],0)+"",'wave29id[4],'wave29am[4],instance_npcname("RaidDungeon#Ins")+"::OnThisMobDeath";
OnEvent30:
        sleep 2000;
        instance_announce -1,"Test30",bc_map;
        monster instance_mapname($mapname$),217,164,""+getmonsterinfo('wave30id[0],0)+"",'wave30id[0],'wave30am[0],instance_npcname("RaidDungeon#Ins")+"::OnFinalBoss";
 
OnThisMobDeath:
        'WaveCount++;
if(     'WaveCount < 'Wave1Total || 'WaveCount == 'Wave1Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+'Wave1Total+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total || 'WaveCount == 'Wave1Total+'Wave2Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;   
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total+'Wave25Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total+'Wave25Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total+'Wave25Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total+'Wave25Total+'Wave26Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total+'Wave25Total+'Wave26Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total+'Wave25Total+'Wave26Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
 
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total+'Wave25Total+'Wave26Total+'Wave27Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total+'Wave25Total+'Wave26Total+'Wave27Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total+'Wave25Total+'Wave26Total+'Wave27Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
 
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total+'Wave25Total+'Wave26Total+'Wave27Total+'Wave28Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total+'Wave25Total+'Wave26Total+'Wave27Total+'Wave28Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total+'Wave25Total+'Wave26Total+'Wave27Total+'Wave28Total)+" until next wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
if(     'WaveCount < 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total+'Wave25Total+'Wave26Total+'Wave27Total+'Wave28Total+'Wave29Total || 'WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total+'Wave25Total+'Wave26Total+'Wave27Total+'Wave28Total+'Wave29Total ) {
        instance_announce -1,"[Raid Dungeon] Total killed: ("+'WaveCount+"/"+'WaveMax+") || Only "+'WaveCount+"/"+('Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total+'Wave25Total+'Wave26Total+'Wave27Total+'Wave28Total+'Wave29Totl)+" until final wave!",bc_map;
        donpcevent instance_npcname("RaidCount#Ins")+"::OnCountKill";
        end;
}
OnFinalBoss:
        instance_announce -1,"[Raid Dungeon] Congratulations, you have finished the Raid Dungeon in "+ callfunc( "timeleft__", gettimetick(2) - 'Raid_Start ),bc_map;
        sleep2 2000;
if( getcharid(1) ) {
        warpparty instance_mapname( $mapname$,.@instance ),200,165,getcharid(1);
} else
        if( !NewRaidRecord ) {
        NewRaidRecord = 'Raid_Start;
}      
        $RaidBreaker = 'Raid_Start;
        if ($RaidBreaker < NewRaidRecord ) {
        $RaidBreaker = 'Raid_Start;
        announce "Congratulations to "+strcharinfo(0)+" for breaking the new record for the Raid Dungeon in "+ callfunc( "timeleft__",gettimetick(2) - 'Raid_Start),bc_all;
}
        warp instance_mapname($mapname$,.@instance),200,165;
OnReward:
        if( getcharid(1) ) {
                getpartymember( getcharid(1),2 );
                getpartymember( getcharid(1),1 );
                for( .@i = 0; .@i < $@partymembercount; .@i++ ) {
                        if( isloggedin( $@partymemberaid[ .@i ],$@partymembercid[ .@i ] ) ) { // Checking for login
                                if( attachrid($@partymemberaid[ .@i ]) ) { // Attaching that player to script
                                        if( compare(strcharinfo(3),$mapname$) ) { // Checking if they are on the right map
                                                getitem 501, 1, $@partymemberaid[ .@i ];// put ID bronze coin instead of 501
                                        }
                                }
                        }
                }
                instance_announce -1,"[Raid Dungeon] Exiting",bc_map;
                sleep2 5000;
                instance_destroy( .@instance );
                end;
                } else
        SoloRank++;
        $@DimRewardGained = rand($@DimMin,$@DimMax);
        #DIM_COIN += $@DimRewardGained;
        dispbottom "Gained : "+$@DimRewardGained+" Instance Dimension Coins total : "+ #DIM_COIN+"";
        sleep2 2500;
        if (SoloRank == 1) {
        query_sql("INSERT INTO `char_reg_num_db` (`char_id`,`key`,`index`,`value`) VALUES (" + getcharid(0) + ",'SoloRank','0',1)");
}       else
        query_sql("UPDATE `char_reg_num_db` SET `value` = " + SoloRank + " WHERE `char_id` = " + getcharid(0) + " AND `key` = 'SoloRank'");
//      getitem 502, 2;
        instance_announce -1,"[Raid Dungeon] Exiting",bc_map;
        sleep2 2000;
        instance_destroy ( .@instance );
}
1@rai,1,4,1     script  RaidCount#Ins   -1,{ // Be sure to change this to the map the Raid respectively happens on
 
OnCountKill:
 
if ('WaveCount == 'Wave1Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 2!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent2";
        end;
        }
 
if ('WaveCount == 'Wave1Total+'Wave2Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 3!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent3";
        end;
        }
       
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 4!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent4";
        end;
        }
 
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 5!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent5";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 6!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent6";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 7!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent7";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 8!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent8";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 9!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent9";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 10!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent10";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 11!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent11";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 12!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent12";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 13!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent13";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 14!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent14";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 15!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent15";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 16!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent16";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 17!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent17";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 18!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent18";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 19!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent19";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 20!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent20";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 21!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent21";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 22!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent22";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 23!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent23";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 24!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent24";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 25!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent25";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total+'Wave25Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 26!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent26";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total+'Wave25Total+'Wave26Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 27!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent27";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total+'Wave25Total+'Wave26Total+'Wave27Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 28!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent28";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total+'Wave25Total+'Wave26Total+'Wave27Total+'Wave28Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 29!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent29";
        end;
        }
if ('WaveCount == 'Wave1Total+'Wave2Total+'Wave3Total+'Wave4Total+'Wave5Total+'Wave6Total+'Wave7Total+'Wave8Total+'Wave9Total+'Wave10Total+'Wave11Total+'Wave12Total+'Wave13Total+'Wave14Total+'Wave15Total+'Wave16Total+'Wave17Total+'Wave18Total+'Wave19Total+'Wave20Total+'Wave21Total+'Wave22Total+'Wave23Total+'Wave24Total+'Wave25Total+'Wave26Total+'Wave27Total+'Wave28Total+'Wave29Total)
{
        instance_announce -1,"[Raid Dungeon] On to Wave 30!",bc_map;
        donpcevent instance_npcname("RaidDungeon#Ins")+"::OnEvent30";
        end;
        }
}
1@rai,200,165,0 script  RaidEnd#Ins     45,1,1,{
OnTouch:
if('WaveCount >= 'Wave1Total) {
doevent instance_npcname("RaidDungeon#Ins")+"::OnReward";
disablenpc instance_npcname("RaidEnd#Ins");    
} else
}
Viewed 488 times, submitted by unknown.