viewing paste Juggernaut Event | 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
//===== eAthena/rAthena Script ======================================= 
//= Juggernaut Event
//===== Template By: ================================================== 
//= Ace
//===== Script Overhaul By: ================================================== 
//= Mysterious
//===== Current Version: ===================================== 
//= 1.5
//===== Compatible With: ===================================== 
//= eAthena or rAthena SVN 
//===== Description: ========================================= 
//= A player will be selected to be the "Juggernaut" while the rest of the players
//= have to all team together to take that Juggernaut down and be awarded.
//===== TODO: ================================================
// - Revise whole script
//===== Additional Comments: =================================
//= v1.0 - First release [Ace]
//= v1.1 - Fixed Credits [Mysterious]
//= v1.2 - Fixed some sentences [Mysterious]
//= v1.3 - Removed unnecessary things [Mysterious]
//= v1.4 - Fixed Duplicates [Mysterious]
//= v1.5 - Moved Mapflags [Mysterious]
//============================================================
prontera,163,195,4  script  Juggernaut  810,{
 
// === Staff Menu
if (getgmlevel() == 99) { // Change '99' to your desired level
  mes "[ Juggernaut ]";
  mes "You can choose to enable/disable and/or warp out players. Status:";
  if (.offline) {
    mes "^E00000OFFLINE^000000";
  } else {
    mes "^00A000ONLINE^000000";
  }
  menu "Continue",-,"Enable/Disable",-,"Warp Out",-,"Both",-;
  set @sel, @menu-1;
  if(@sel&1) set .offline, .offline^1;
  if(@sel&2) {
    getmapxy(@mapname$, @mapx, @mapy, 0, strcharinfo(0));
    mapwarp "pvp_n_1-3", @mapname$, @mapx, @mapy;
  }
}
 
// Player view: Juggernaut is Offline
if (.offline) {
  mes "[ The Juggernaut ]";
  mes "Sorry, but I'm disabled at the moment.";
  close;
}
//-------------------------------------------------------------------------- End
 
set @jugguser, getmapusers ("pvp_n_1-3");
set @jugkill, 0;
 
getmapxy(#originmap$,#originx,#originy,0,strcharinfo(0));
 
if (@jugguser == 0)
    {
    set _juggernaut$, "-";
    set $@juggtaken, 0;
    movenpc "The Juggernaut",99,101;
    }
 
if ($@juggend == 1)
    {
    mes "[ The Juggernaut ]";
    mes "Welcome to the Juggernaut.";
    mes "";
    mes "A game just ended please try again in 5 seconds.";
    close;
    end;
    }
 
mes "[The Juggernaut]";
mes "Welcome to the Juggernaut.";
mes "";
mes "There are "+@jugguser+" players currently in the game.";
mes "";
mes "Would you like to join?";
menu "Yes",M_Yes,"No",-;
next;
mes "[ The Juggernaut ]";
mes "Please come back when you like.";
close;
 
M_Yes:
set @ijugg, getarraysize($@juggernaut);
setarray $@juggernaut[@ijugg], getcharid(3);
 
set $@spawn, $@spawn + 1;
 
if ($@spawn == 1) {
warp "pvp_n_1-3",99,58;
save "pvp_n_1-3",99,58;
}
 
if ($@spawn == 2) {
warp "pvp_n_1-3",60,100;
save "pvp_n_1-3",60,100;
}
 
if ($@spawn == 3) {
warp "pvp_n_1-3",100,138;
save "pvp_n_1-3",100,138;
}
 
if ($@spawn == 4) {
warp "pvp_n_1-3",140,99;
save "pvp_n_1-3",140,99;
}
 
if ($@spawn == 5) {
warp "pvp_n_1-3",111,110;
save "pvp_n_1-3",111,110;
}
 
if ($@spawn == 6) {
warp "pvp_n_1-3",112,88;
save "pvp_n_1-3",112,88;
}
 
if ($@spawn == 7) {
warp "pvp_n_1-3",87,88;
save "pvp_n_1-3",87,88;
}
 
if ($@spawn == 8) {
warp "pvp_n_1-3",87,113;
save "pvp_n_1-3",87,113;
set $@spawn, 0;
}
percentheal 100,100;
end;
 
OnPCDieEvent:
getmapxy(@checkmap$,@checkx,@checky,0);
if (@checkmap$ == "pvp_n_1-3")
{
set $@pd, playerattached();
set @heal, 0;
 
    if (_juggernaut$ == strcharinfo(0))
    {
    set _juggernaut$, "-";
    set #juggdeath, #juggdeath + 1;
    mapannounce "pvp_n_1-3", "The Juggernaut has fallen!",0;
    }
 
    set #nonjuggdeath, nonjuggdeath + 1;
 
sleep2 1000;
set @newsave, rand(1,5);
 
if (@newsave == 1)
    {
    set @savex, rand(53,96);
    set @savey, rand(97,102);
    warp "pvp_n_1-3", (@savex), (@savey);
    }
 
if (@newsave == 2)
    {
    set @savex, rand(97,102);
    set @savey, rand(101,144);
    warp "pvp_n_1-3", (@savex), (@savey);
    }
 
if (@newsave == 3)
    {
    set @savex, rand(102,152);
    set @savey, rand(97,102);
    warp "pvp_n_1-3", (@savex), (@savey);
    }
 
if (@newsave == 4)
    {
    set @savex, rand(97,102);
    set @savey, rand(55,95);
    warp "pvp_n_1-3", (@savex), (@savey);
    }
if (@newsave == 5)
    {
    set @savex, rand(83,112);
    set @savey, rand(83,89);
    warp "pvp_n_1-3", (@savex), (@savey);
    }
 
if ($@juggend == 1)
    {
    warp #originmap$, (#originx), (#originy);
    end;
    }
 
atcommand "@alive";
sleep2 500;
percentheal 100,100;
}
 
end;
 
OnPCLogoutEvent:
getmapxy(@checkmap$,@checkx,@checky,0);
if (@checkmap$ == "pvp_n_1-3")
{
save #originmap$, (#originx), (#originy);
 
    if (_juggernaut$ == strcharinfo(0))
    {
    set _juggernaut$, "-";
    set $@juggtaken, 0;
    mapannounce "pvp_n_1-3", "The Juggernaut has left the game.",0;
    }
warp #originmap$, (#originx), (#originy);
 
set @jmapuser, getmapusers ("pvp_n_1-3");
if (@jmapuser == 1)
    {
    set _juggernaut$, "-";
    set $@juggtaken, 0;
    movenpc "The Juggernaut",99,101;
    }
 
for (set @i, 0; @i < getarraysize($@juggernaut); set @i, @i+1) {
    if ($@juggernaut[@i] == getcharid(3))
        {
        setarray $@juggernaut[@i],0;
        break;
        }
}
for (; @i < getarraysize($@juggernaut); set @i, @i+1) {
    setarray $@juggernaut[@i], $@juggernaut[@i+1];
}
 
end;
}
end;
 
OnEventGameOverJugg:
set .@ijugg, getarraysize($@juggernaut);
set .@jugg, 0;
 
juggend:
if (.@jugg < .@ijugg)
    {
    attachrid $@juggernaut[.@jugg];
 
    getmapxy(@checkmap$,@checkx,@checky,0);
    if (@checkmap$ == "pvp_n_1-3")
        {
        save #originmap$, (#originx), (#originy);
        warp #originmap$, (#originx), (#originy);
        }
 
    detachrid;
    set .@jugg, .@jugg + 1;
    goto juggend;
    }
 
for (set .@j, 0; .@j < getarraysize($@juggernaut); set .@j, .@j+1) {
    setarray $@juggernaut[.@j], 0;
}
 
sleep2 5000;
set $@juggend, 0;
set $@juggtaken, 0;
movenpc "The Juggernaut",99,101;
end;
}
 
pvp_n_1-3,99,101,4  script  The Juggernaut  1198,{
 
npcspeed 100;
 
if ($@juggtaken == 0)
{
OnJuggChangeEvent:
set $@changejugg, 0;
set $@juggtaken, 1;
set $@juggbuff, 9;
set @jugglink, 0;
set _juggernaut$, strcharinfo(0);
announce ""+_juggernaut$+" is the Juggernaut!#@?%@?",bc_map;
set $@ltarget, getCharID(3);
 
    if(Class == Job_Alchem || Class == Job_Creator) {
    set $@job, 1;
    unitskilluseid $@ltarget,445,5;
    }
 
    if(Class == Job_Monk || Class == Job_Champion) {
    set $@job, 2;
    unitskilluseid $@ltarget,447,5;
    }
 
    if(Class == Job_Sage || Class == Job_Professor) {
    set $@job, 3;
    unitskilluseid $@ltarget,449,5;
    }
 
    if(Class == Job_Crusader || Class == Job_Paladin) {
    set $@job, 4;
    unitskilluseid $@ltarget,450,5;
    }
 
    if(Class == Job_SuperNovice) {
    set $@job, 5;
    unitskilluseid $@ltarget,451,5;
    }
 
    if(Class == Job_Knight || Class == Job_Lord_Knight) {
    set $@job, 6;
    unitskilluseid $@ltarget,452,5;
    }
 
    if(Class == Job_Wizard || Class == Job_High_Wizard) {
    set $@job, 7;
    unitskilluseid getcharid(3),453,5;
    }
 
    if(Class == Job_Priest || Class == Job_High_Priest) {
    set $@job, 8;
    unitskilluseid $@ltarget,454,5;
    }
 
    if(Class == Job_Bard || Class == Job_Clown || Class == Job_Dancer || Class == Job_Gypsy) {
    set $@job, 9;
    unitskilluseid $@ltarget,455,5;
    }
 
    if(Class == Job_Rogue || Class == Job_Stalker) {
    set $@job, 10;
    unitskilluseid $@ltarget,456,5;
    }
 
    if(Class == Job_Assassin || Class == Job_Assassin_Cross) {
    set $@job, 11;
    unitskilluseid $@ltarget,457,5;
    }
 
    if(Class == Job_Blacksmith || Class == Job_Whitesmith) {
    set $@job, 12;
    unitskilluseid $@ltarget,458,5;
    }
 
    if(Class == Job_Hunter || Class == Job_Sniper) {
    set $@job, 13;
    unitskilluseid $@ltarget,460,5;
    }
 
    if(Class == Job_Soul_Linker) {
    set $@job, 14;
    unitskilluseid $@ltarget,461,5;
    }
 
    if(Class == Job_Taekwon || Class == Job_Star_Gladiator || Class == Job_Star_Gladiator2) {
    set $@job, 15;
    unitskilluseid $@ltarget,448,5;
    }
 
set @juggbuff, 9;
goto juggfollow;
}
 
if (@novalue == 503)
{
juggfollow:
if (strcharinfo(0) == _juggernaut$)
{
getmapxy(@mapname$,@juggernautx,@juggernauty,0,_juggernaut$);
npcwalkto (@juggernautx + 2), (@juggernauty + 2);
 
if (strcharinfo(0) == _juggernaut$)
{
set @juggbuff, @juggbuff + 1;
set $@jugglink, $@jugglink + 1;
percentheal 2,3;
 
    if (@juggbuff == 10)
    {
        if ($@job == 1)
        {
        sc_start SC_BLESSING,11000,30;
        skilleffect 34,0;
 
        sc_start SC_INCREASEAGI,11000,10;
        skilleffect 29,0;
        }
 
        if ($@job == 2)
        {
        sc_start SC_BLESSING,11000,40;
        skilleffect 34,0;
 
        sc_start SC_INCREASEAGI,11000,10;
        skilleffect 29,0;
        }
 
        if ($@job == 3)
        {
        sc_start SC_BLESSING,11000,50;
        skilleffect 34,0;
 
        sc_start SC_INCREASEAGI,11000,20;
        skilleffect 29,0;
        }
 
        if ($@job == 4)
        {
        sc_start SC_BLESSING,11000,50;
        skilleffect 34,0;
 
        sc_start SC_INCREASEAGI,11000,10;
        skilleffect 29,0;
        }
 
        if ($@job == 5)
        {
        sc_start SC_BLESSING,11000,50;
        skilleffect 34,0;
 
        sc_start SC_INCREASEAGI,11000,30;
        skilleffect 29,0;
        }
 
        if ($@job == 6)
        {
        sc_start SC_BLESSING,11000,40;
        skilleffect 34,0;
 
        sc_start SC_INCREASEAGI,11000,40;
        skilleffect 29,0;
        }
 
        if ($@job == 7)
        {
        sc_start SC_BLESSING,11000,50;
        skilleffect 34,0;
 
        sc_start SC_INCREASEAGI,11000,10;
        skilleffect 29,0;
        }
 
        if ($@job == 8)
        {
        sc_start SC_BLESSING,11000,50;
        skilleffect 34,0;
 
        sc_start SC_INCREASEAGI,11000,10;
        skilleffect 29,0;
        }
 
        if ($@job == 9)
        {
        sc_start SC_BLESSING,11000,40;
        skilleffect 34,0;
 
        sc_start SC_INCREASEAGI,11000,20;
        skilleffect 29,0;
        }
 
        if ($@job == 10)
        {
        sc_start SC_BLESSING,11000,44;
        skilleffect 34,0;
 
        sc_start SC_INCREASEAGI,11000,20;
        skilleffect 29,0;
        }
 
        if ($@job == 11)
        {
        sc_start SC_BLESSING,11000,40;
        skilleffect 34,0;
 
        sc_start SC_INCREASEAGI,11000,10;
        skilleffect 29,0;
        }
 
        if ($@job == 12)
        {
        sc_start SC_BLESSING,11000,40;
        skilleffect 34,0;
 
        sc_start SC_INCREASEAGI,11000,40;
        skilleffect 29,0;
        }
 
        if ($@job == 13)
        {
        sc_start SC_BLESSING,11000,40;
        skilleffect 34,0;
 
        sc_start SC_INCREASEAGI,11000,40;
        skilleffect 29,0;
        }
 
        if ($@job == 14)
        {
        sc_start SC_BLESSING,11000,100;
        skilleffect 34,0;
 
        sc_start SC_INCREASEAGI,11000,10;
        skilleffect 29,0;
        }
 
        if ($@job == 15)
        {
        sc_start SC_BLESSING,11000,40;
        skilleffect 34,0;
 
        sc_start SC_INCREASEAGI,11000,20;
        skilleffect 29,0;
        }
 
    sc_start SC_IMPOSITIO,11000,10;
    skilleffect 66,0;
 
    sc_start SC_SUFFRAGIUM,11000,10;
    skilleffect 67,0;
 
    sc_start SC_ADRENALINE2,11000,5;
 
    sc_start SC_WEAPONPERFECTION,11000,5;
 
    sc_start SC_OVERTHRUST,11000,5;
 
    sc_start SC_MAXIMIZEPOWER,11000,5;
 
    sc_start SC_ASSUMPTIO,11000,5;
    skilleffect 361,0;
 
    set @juggbuff, 0;
    }
 
    if ($@jugglink == 20)
    {
 
        if(Class == Job_Alchem || Class == Job_Creator) {
        unitskilluseid $@ltarget,445,5;
        }
 
        if(Class == Job_Monk || Class == Job_Champion) {
        unitskilluseid $@ltarget,447,5;
        }
 
        if(Class == Job_Sage || Class == Job_Professor) {
        unitskilluseid $@ltarget,449,5;
        }
 
        if(Class == Job_Crusader || Class == Job_Paladin) {
        unitskilluseid $@ltarget,450,5;
        }
 
        if(Class == Job_SuperNovice) {
        unitskilluseid $@ltarget,451,5;
        }
 
        if(Class == Job_Knight || Class == Job_Lord_Knight) {
        unitskilluseid $@ltarget,452,5;
        }
    
        if(Class == Job_Wizard || Class == Job_High_Wizard) {
        unitskilluseid getcharid(3),453,5;
        }
 
        if(Class == Job_Priest || Class == Job_High_Priest) {
        unitskilluseid $@ltarget,454,5;
        }
 
        if(Class == Job_Bard || Class == Job_Clown || Class == Job_Dancer || Class == Job_Gypsy) {
        unitskilluseid $@ltarget,455,5;
        }
 
        if(Class == Job_Rogue || Class == Job_Stalker) {
        unitskilluseid $@ltarget,456,5;
        }
 
        if(Class == Job_Assassin || Class == Job_Assassin_Cross) {
        unitskilluseid $@ltarget,457,5;
        }
 
        if(Class == Job_Blacksmith || Class == Job_Whitesmith) {
        unitskilluseid $@ltarget,458,5;
        }
 
        if(Class == Job_Hunter || Class == Job_Sniper) {
        unitskilluseid $@ltarget,460,5;
        }
 
        if(Class == Job_Soul_Linker) {
        unitskilluseid $@ltarget,461,5;
        }
 
        if(Class == Job_Taekwon || Class == Job_Star_Gladiator || Class == Job_Star_Gladiator2) {
        unitskilluseid $@ltarget,448,5;
        }
    set $@jugglink, 0;
    }
 
if (strcharinfo(0) != _juggernaut$)
    {
    end;
    }
 
}
sleep2 1000;
goto juggfollow;
}
}
end;
 
OnPCKillEvent:
 
getmapxy(@checkmap$,@checkx,@checky,0);
if (@checkmap$ == "pvp_n_1-3")
{
set $@pk, playerattached();
 
    if (_juggernaut$ == strcharinfo(0))
    {
    set @jugkill, @jugkill + 1;
    set #jugkill, #jugkill +1;
    set @towin, 20 - @jugkill;
 
        if (@towin == 0)
        {
        set $@juggend, 1;
        set $@juggtaken, 0;
        set @jugkill, 0;
        mapannounce "pvp_n_1-3", "Juggernaut: "+_juggernaut$+" has won the game!",0;
        set _juggernaut$, "-";
 
        donpcevent "Juggernaut::OnEventGameOverJugg";
 
        //mapwarp "pvp_n_1-3", #originmap$, (#originx), (#originy);
        end;
        }
    mapannounce "pvp_n_1-3", "The Juggernaut, "+_juggernaut$+" needs "+@towin+" kills to win.",0;
    }
 
    if (_juggernaut$ != strcharinfo(0))
    {
    set #nonjuggkill, #nonjuggkill + 1;
    }
 
    if ($@pd == $@ltarget)
    {
    goto OnJuggChangeEvent;
    }
}
end;
 
}
 
-   script  healer::jugg_healer 829,{
 
if (@heal == 0)
    {
    percentheal 100,100;
    set @heal, 1;
    }
 
 
    if(Class == Job_Priest || Class == Job_High_Priest) {
    unitskilluseid getCharID(3),454,5;
    }
}
 
-   script  leave_jugg::escape_jugg 780,{
 
mes "[ The Juggernaut ]";
mes "Would you like to leave the Juggernaut event?";
 
menu "No",M_No,"Yes",M_Yes;
 
M_Yes:
save #originmap$, (#originx), (#originy);
 
if (_juggernaut$ == strcharinfo(0))
{
set _juggernaut$, "-";
set $@juggtaken, 0;
mapannounce "pvp_n_1-3", "The Juggernaut has left the game.",0;
atcommand "@die";
sleep2 500;
atcommand "@alive";
percentheal 100,100;
}
 
set @jmapuser, getmapusers ("pvp_n_1-3");
if (@jmapuser == 1)
    {
    set _juggernaut$, "-";
    set $@juggtaken, 0;
    movenpc "The Juggernaut",99,101;
    }
 
for (set @i, 0; @i < getarraysize($@juggernaut); set @i, @i+1) {
    if ($@juggernaut[@i] == getcharid(3))
        {
        setarray $@juggernaut[@i],0;
        break;
        }
}
for (; @i < getarraysize($@juggernaut); set @i, @i+1) {
    setarray $@juggernaut[@i], $@juggernaut[@i+1];
}
 
warp #originmap$, (#originx), (#originy);
end;
 
M_No:
mes "[ The Juggernaut ]";
mes "Ok, carry on.";
close;
}
 
-   script  Juggernaut_client   810,{
 
//Alba's disabler --------------------------------------------------------------
// GM level 99 menu.
if (getgmlevel() == 99) {
  mes "[Juggernaut GM Setup]";
  mes "You can choose to enable/disable and/or warp out players. Status:";
  if (.offline) {
    mes "^E00000OFFLINE^000000";
  } else {
    mes "^00A000ONLINE^000000";
  }
  menu "Continue",-,"Enable/Disable",-,"Warp Out",-,"Both",-;
  set @sel, @menu-1;
  if(@sel&1) set .offline, .offline^1;
  if(@sel&2) {
    getmapxy(@mapname$, @mapx, @mapy, 0, strcharinfo(0));
    mapwarp "pvp_n_1-3", @mapname$, @mapx, @mapy;
  }
}
 
// If the NPC is offline, close.
if (.offline) {
  mes "[The Juggernaut]";
  mes "Sorry, but I'm disabled at the moment.";
  close;
}
//-------------------------------------------------------------------------- End
 
set @jugguser, getmapusers ("pvp_n_1-3");
set @jugkill, 0;
 
getmapxy(#originmap$,#originx,#originy,0,strcharinfo(0));
 
if (@jugguser == 0)
    {
    set _juggernaut$, "-";
    set $@juggtaken, 0;
    movenpc "The Juggernaut",99,101;
    }
 
if ($@juggend == 1)
    {
    mes "[The Juggernaut]";
    mes "Welcome to the Juggernaut.";
    mes "";
    mes "A game just ended please try again in 5 seconds.";
    close;
    end;
    }
 
mes "[The Juggernaut]";
mes "Welcome to the Juggernaut.";
mes "";
mes "There are "+@jugguser+" players currently in the game.";
mes "";
mes "Would you like to join?";
menu "Yes",yes,"No",-;
 
mes " ";
mes "Come back when you get some balls!";
close;
 
yes:
 
set @ijugg, getarraysize($@juggernaut);
setarray $@juggernaut[@ijugg], getcharid(3);
 
set $@spawn, $@spawn + 1;
 
if ($@spawn == 1) {
warp "pvp_n_1-3",99,58;
save "pvp_n_1-3",99,58;
}
 
if ($@spawn == 2) {
warp "pvp_n_1-3",60,100;
save "pvp_n_1-3",60,100;
}
 
if ($@spawn == 3) {
warp "pvp_n_1-3",100,138;
save "pvp_n_1-3",100,138;
}
 
if ($@spawn == 4) {
warp "pvp_n_1-3",140,99;
save "pvp_n_1-3",140,99;
}
 
if ($@spawn == 5) {
warp "pvp_n_1-3",111,110;
save "pvp_n_1-3",111,110;
}
 
if ($@spawn == 6) {
warp "pvp_n_1-3",112,88;
save "pvp_n_1-3",112,88;
}
 
if ($@spawn == 7) {
warp "pvp_n_1-3",87,88;
save "pvp_n_1-3",87,88;
}
 
if ($@spawn == 8) {
warp "pvp_n_1-3",87,113;
save "pvp_n_1-3",87,113;
set $@spawn, 0;
}
percentheal 100,100;
end;
}
 
// ====== Mapflags
pvp_n_1-3   mapflag nomemo
pvp_n_1-3   mapflag noreturn
pvp_n_1-3   mapflag restricted  6
 
// ====== Duplicates
//pvp_n_1-3,116,83,5    duplicate(jugg_healer)  Healer#1    829
//pvp_n_1-3,115,116,5   duplicate(jugg_healer)  Healer #2  829
//pvp_n_1-3,138,108,5   duplicate(jugg_healer)  Healer #3  829
//pvp_n_1-3,100,146,5   duplicate(jugg_healer)  Healer#4    829
//pvp_n_1-3,83,116,5    duplicate(jugg_healer)  Healer#5    829
//pvp_n_1-3,60,106,5    duplicate(jugg_healer)  Healer#6    829
//pvp_n_1-3,83,83,5 duplicate(jugg_healer)  Healer#7    829
//pvp_n_1-3,100,52,5    duplicate(jugg_healer)  Healer#8    829
pvp_n_1-3,103,52,5  duplicate(escape_jugg)  Leave Game#1    780
pvp_n_1-3,140,92,5  duplicate(escape_jugg)  Leave Game#2    780
pvp_n_1-3,96,140,5  duplicate(escape_jugg)  Leave Game #3  780
pvp_n_1-3,59,92,5   duplicate(escape_jugg)  Leave Game#4    780
pvp_n_1-3,53,98,4   duplicate(Grendal)  Repair NPC#1    813
pvp_n_1-3,93,59,4   duplicate(Grendal)  Repair NPC#2    813
pvp_n_1-3,147,99,4  duplicate(Grendal)  Repair NPC #3  813
pvp_n_1-3,107,138,4 duplicate(Grendal)  Repair NPC #4  813
// Main Warper
morocc,164,97,4 duplicate(Juggernaut_client)    Juggernaut #1  810
geffen,128,62,4 duplicate(Juggernaut_client)    Juggernaut #2  810
payon,175,107,4 duplicate(Juggernaut_client)    Juggernaut #3  810
alberta,122,58,4    duplicate(Juggernaut_client)    Juggernaut #4  810
izlude,131,120,4    duplicate(Juggernaut_client)    Juggernaut #5  810
Viewed 858 times, submitted by Guest.