viewing paste Unknown #14121 | 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
//======Name========================================
// Poring Race
//======Version=====================================
// 1.0
//======Author(s)===================================
// Sandbox
//======Comments====================================
// In loving memory of AstralRO
//==================================================
 
 
//======================================Race Trigger Function=========================================
//====================================================================================================
 
prontera,156,182,5      script  Poring Race Warper      909,{
 
mes "[Poring Race Warper]";
mes "Would you like to join the Poring Race Event?";
        menu "Yes!",P_Yes,"Nevermind.",P_NVM;
 
P_Yes:
        warp "p_track02",73,33;
        end;
 
P_NVM:
        close;
 
}
 
-       script  pracetrigger    -1,{
 
 
OnInit:
disablenpc "Poring Race Warper";
disablenpc "Bet Manager";
 
 
OnRaceTrigger:
if(agitcheck() == 1) end;
enablenpc "Poring Race Warper";
announce "We are going to have a Poring Race Event! Place a bet and you could win 700 SPECs!",bc_all;
sleep2 1000;
announce "Warper to the event map is located in the middle Prontera! Anyone can join!",bc_all;
sleep2 1000;
announce "The Warper would be open for 2 minutes",bc_all;
sleep2 90000;
announce "Last 30 seconds..",bc_all;
sleep2 30000;
announce "Warper Closed.",bc_all;
disablenpc "Poring Race Warper";
donpcevent "Poring Race Event::OnPoringRaceStart";
 
}
 
-       script  Poring Race Event       -1,{
 
OnPoringRaceStart:
set $@race,1;
enablenpc "Poring#race";
movenpc "Poring#race",58,38;
enablenpc "Drops#race";
movenpc "Drops#race",58,36;
enablenpc "Poporing#race";
movenpc "Poporing#race",58,34;
enablenpc "Marin#race";
movenpc "Marin#race",58,32;
enablenpc "Pouring#race";
movenpc "Pouring#race",58,30;
enablenpc "Santa Poring#race";
movenpc "Santa Poring#race",58,28;
mapannounce "p_track02","The Poring Race will start in a minute.",bc_blue;
enablenpc "Bet Manager";
sleep2 1500;
mapannounce "p_track02","We will be collecting your bets now, when the race starts, you can't place bets anymore.",bc_blue;
sleep2 1500;
mapannounce "p_track02","You can talk to the Bet Manager found at the bottom right corner of the map if you want to place a bet.",bc_blue;
sleep2 2000;
//mapannounce "p_track02","3 minutes before the race starts..",bc_blue;
//sleep2 60000;
//mapannounce "p_track02","2 minutes before the race starts..",bc_blue;
//sleep2 60000;
mapannounce "p_track02","1 minute before the race starts..",bc_blue;
sleep2 30000;
mapannounce "p_track02","30 seconds before the race starts..",bc_blue;
sleep2 1500;
mapannounce "p_track02","We are not accepting bets anymore.",bc_blue;
disablenpc "Bet Manager";
set $@race,2;
sleep2 1500;
mapannounce "p_track02","When the race ends, you'll have 25 minutes to claim your prizes, after that the NPC closes.",bc_blue;
sleep2 25000;
mapannounce "p_track02","Gentlerings, get ready!",bc_blue;
sleep2 5000;
mapannounce "p_track02","On your mark!",bc_blue;
sleep2 3000;
mapannounce "p_track02","Get set!",bc_blue;
sleep2 3000;
mapannounce "p_track02","GOO!",bc_blue;
areawarp "p_track02",58,42,76,18,"p_track02",61,32;
set $@win,rand(1,6);
switch($@win)
{
case 1: donpcevent "Poring#race::OnPoringWin"; break;
case 2: donpcevent "Drops#race::OnDropsWin"; break;
case 3: donpcevent "Poporing#race::OnPoporingWin"; break;
case 4: donpcevent "Marin#race::OnMarinWin"; break;
case 5: donpcevent "Pouring#race::OnPouringWin"; break;
default: donpcevent "Santa Poring#race::OnSantaWin"; break;
}
donpcevent "Bet Manager::OnRaceStart";
 
 
}
 
 
//=================================Bet Manager========================================================
//====================================================================================================
 
 
p_track02,73,22,1       script  Bet Manager     109,{
 
mes "[ ^0000FFBet Manager^000000 ]";
mes "Hi, what would you want to do?";
menu "Place a Bet",-,"Claim Prize",Lclaim,"Warp Back to Prontera",Lwarp;
if(@bet > 0) goto Lalreadybet;
if($@race < 1) goto Lnorace;
if($@race == 2) goto Lracestarted;
mes "[ ^0000FFBet Manager^000000 ]";
mes "Where would you place your bet?";
mes "There's a 100,000z fee and you could only bet once.";
//Edit bet type you want, by default it is set to 1,000,000z for a player to place a bet. The player can only bet once
menu "Poring",-,"Drops",Ldrops,"Poporing",Lpopo,"Marin",Lmarin,"Pouring",Lpour,"Santa Poring",Lsanta;
if(Zeny < 50000) goto Lnenough; //Edit to match the desired bet type.
mes "[ ^0000FFBet Manager^000000 ]";
mes "You've placed your bet on ^0000FFPoring^000000, Goodluck!";
set @bet,1;
set Zeny,Zeny-50000; //Edit to match the desired bet type.
       
Lwarp:
warp "prontera",155,181;
 
Ldrops:
if(Zeny < 50000) goto Lnenough; //Edit to match the desired bet type.
mes "[ ^0000FFBet Manager^000000 ]";
mes "You've placed your bet on ^0000FFDrops^000000, Goodluck!";
set @bet,2;
set Zeny,Zeny-50000; //Edit to match the desired bet type.
 
Lpopo:
if(Zeny < 50000) goto Lnenough; //Edit to match the desired bet type.
mes "[ ^0000FFBet Manager^000000 ]";
mes "You've placed your bet on ^0000FFPoporing^000000, Goodluck!";
set @bet,3;
set Zeny,Zeny-50000; //Edit to match the desired bet type.
 
Lmarin:
if(Zeny < 50000) goto Lnenough; //Edit to match the desired bet type.
mes "[ ^0000FFBet Manager^000000 ]";
mes "You've placed your bet on ^0000FFMarin^000000, Goodluck!";
set @bet,4;
set Zeny,Zeny-50000; //Edit to match the desired bet type.
 
Lpour:
if(Zeny < 50000) goto Lnenough; //Edit to match the desired bet type.
mes "[ ^0000FFBet Manager^000000 ]";
mes "You've placed your bet on ^0000FFPouring^000000, Goodluck!";
set @bet,5;
set Zeny,Zeny-50000; //Edit to match the desired bet type.
 
Lsanta:
if(Zeny < 50000) goto Lnenough;//Edit to match the desired bet type.
mes "[ ^0000FFBet Manager^000000 ]";
mes "You've placed your bet on ^0000FFSanta Poring^000000, Goodluck!";
set @bet,6;
set Zeny,Zeny-50000;//Edit to match the desired bet type.
 
Lnenough:
mes "[ ^0000FFBet Manager^000000 ]";
mes "We need zeny for the race maintenance!"; //Edit to match the desired bet type.
 
Lalreadybet:
mes "[ ^0000FFBet Manager^000000 ]";
mes "You've already placed your bet on: ^0000FF";
switch(@bet){
case 1: mes "Poring"; break;
case 2: mes "Drops"; break;
case 3: mes "Poporing"; break;
case 4: mes "Marin"; break;
case 5: mes "Pouring"; break;
case 6: mes "Santa Poring"; break;
default: mes "None"; break;
}
mes "^000000";
 
Lnorace:
mes "[ ^0000FFBet Manager^000000 ]";
mes "There's no race being held at the moment, or it's finished already.";
 
Lclaim:
if($@race == 1) goto Lnoclaim;
if($@win != @bet) goto Lnowin;
mes "[ ^0000FFBet Manager^000000 ]";
mes "Congratulations! You've won!";
set @bet,0;
getitem 6153,700; //Edit to the prize that you want if a bettor's bet wins.
 
Lnoclaim:
mes "[ ^0000FFBet Manager^000000 ]";
mes "You can't claim prizes during the bet collection process.";
 
 
Lracestarted:
mes "[ ^0000FFBet Manager^000000 ]";
mes "The race has started, you can't place bets anymore.";
 
 
Lnowin:
mes "[ ^0000FFBet Manager^000000 ]";
mes "Either you've already got your prize or the monster you've placed your bet on didn't won.";
 
 
OnRaceStart:
set $@win,7;
disablenpc "Bet Manager";
disablenpc "Poring#race";
disablenpc "Drops#race";
disablenpc "Poporing#race";
disablenpc "Marin#race";
disablenpc "Pouring#race";
disablenpc "Santa Poring#race";
sleep2 1800000;
announce "Poring Race Event: Congratulations to the winner/s! Thank you all for participating!",bc_all;
 
}
 
 
//======================================Race Function=================================================
//====================================================================================================
p_track02,58,38,3       script  Poring#race     1002,{
 
OnInit:
disablenpc "Poring#race";
disablenpc "Bet Manager";
 
 
 
OnPoringWin:
npcwalkto 55,38;
donpcevent "Drops#race::OnDropsLose";
donpcevent "Poporing#race::OnPoporingLose";
donpcevent "Marin#race::OnMarinLose";
donpcevent "Pouring#race::OnPouringLose";
donpcevent "Santa Poring#race::OnSantaLose";
sleep2 2500;
npcwalkto 52,38;
sleep2 4000;
npcwalkto 46,38;
sleep2 2500;
npcwalkto 41,38;
sleep2 2500;
npcwalkto 37,38;
sleep2 2500;
npcwalkto 30,38;
sleep2 10000;
mapannounce "p_track02","Poring won the Race!!",bc_blue;
set $@race,0;
enablenpc "Bet Manager";
npcwalkto 58,38;
 
OnPoringLose:
npcwalkto 53,38;
sleep2 4000;
npcwalkto 46,38;
sleep2 2500;
npcwalkto 44,38;
sleep2 2500;
npcwalkto 39,38;
sleep2 2500;
npcwalkto 36,38;
sleep2 4500;
npcwalkto 30,38;
sleep2 3000;
npcwalkto 58,38;
 
 
 
}
 
p_track02,58,36,3       script  Drops#race      1113,{
 
OnInit:
disablenpc "Drops#race";
 
OnDropsWin:
npcwalkto 55,36;
donpcevent "Poring#race::OnPoringLose";
donpcevent "Poporing#race::OnPoporingLose";
donpcevent "Marin#race::OnMarinLose";
donpcevent "Pouring#race::OnPouringLose";
donpcevent "Santa Poring#race::OnSantaLose";
sleep2 2500;
npcwalkto 52,36;
sleep2 4000;
npcwalkto 46,36;
sleep2 2500;
npcwalkto 41,36;
sleep2 2500;
npcwalkto 37,36;
sleep2 2500;
npcwalkto 30,36;
sleep2 10000;
mapannounce "p_track02","Drops won the Race!!",bc_blue;
set $@race,0;
enablenpc "Bet Manager";
npcwalkto 58,36;
 
OnDropsLose:
npcwalkto 54,36;
sleep2 4000;
npcwalkto 47,36;
sleep2 2500;
npcwalkto 43,36;
sleep2 2500;
npcwalkto 37,36;
sleep2 2500;
npcwalkto 35,36;
sleep2 4500;
npcwalkto 30,36;
sleep2 3000;
npcwalkto 58,36;
 
 
 
 
}
 
p_track02,58,34,3       script  Poporing#race   1031,{
 
OnInit:
disablenpc "Poporing#race";
 
OnPoporingWin:
npcwalkto 55,34;
donpcevent "Poring#race::OnPoringLose";
donpcevent "Drops#race::OnDropsLose";
donpcevent "Marin#race::OnMarinLose";
donpcevent "Pouring#race::OnPouringLose";
donpcevent "Santa Poring#race::OnSantaLose";
sleep2 500;
npcwalkto 52,34;
sleep2 4000;
npcwalkto 46,34;
sleep2 2500;
npcwalkto 41,34;
sleep2 2500;
npcwalkto 37,34;
sleep2 2500;
npcwalkto 30,34;
sleep2 10000;
mapannounce "p_track02","Poporing won the Race!!",bc_blue;
set $@race,0;
enablenpc "Bet Manager";
npcwalkto 58,34;
 
 
OnPoporingLose:
npcwalkto 54,34;
sleep2 4000;
npcwalkto 47,34;
sleep2 2500;
npcwalkto 43,34;
sleep2 2500;
npcwalkto 37,34;
sleep2 2500;
npcwalkto 34,34;
sleep2 4500;
npcwalkto 30,34;
sleep2 3000;
npcwalkto 58,34;
 
}
 
p_track02,58,32,3       script  Marin#race      1242,{
 
OnInit:
disablenpc "Marin#race";
 
OnMarinWin:
npcwalkto 55,32;
donpcevent "Poring#race::OnPoringLose";
donpcevent "Drops#race::OnDropsLose";
donpcevent "Poporing#race::OnPoporingLose";
donpcevent "Pouring#race::OnPouringLose";
donpcevent "Santa Poring#race::OnSantaLose";
sleep2 2500;
npcwalkto 52,32;
sleep2 4000;
npcwalkto 46,32;
sleep2 2500;
npcwalkto 41,32;
sleep2 2500;
npcwalkto 37,32;
sleep2 2500;
npcwalkto 30,32;
sleep2 10000;
mapannounce "p_track02","Marin won the Race!!",bc_blue;
set $@race,0;
enablenpc "Bet Manager";
npcwalkto 58,32;
 
 
OnMarinLose:
npcwalkto 52,32;
sleep2 4000;
npcwalkto 48,32;
sleep2 2500;
npcwalkto 40,32;
sleep2 2500;
npcwalkto 37,32;
sleep2 2500;
npcwalkto 33,32;
sleep2 4500;
npcwalkto 30,32;
sleep2 3000;
npcwalkto 58,32;
 
 
}
 
p_track02,58,30,3       script  Pouring#race    1894,{
 
OnInit:
disablenpc "Pouring#race";
 
 
OnPouringWin:
npcwalkto 55,30;
donpcevent "Poring#race::OnPoringLose";
donpcevent "Drops#race::OnDropsLose";
donpcevent "Poporing#race::OnPoporingLose";
donpcevent "Marin#race::OnMarinLose";
donpcevent "Santa Poring#race::OnSantaLose";
sleep2 2500;
npcwalkto 52,30;
sleep2 4000;
npcwalkto 46,30;
sleep2 2500;
npcwalkto 41,30;
sleep2 2500;
npcwalkto 37,30;
sleep2 2500;
npcwalkto 30,30;
sleep2 10000;
mapannounce "p_track02","Pouring won the Race!!",bc_blue;
set $@race,0;
enablenpc "Bet Manager";
npcwalkto 58,30;
 
OnPouringLose:
npcwalkto 50,30;
sleep2 4000;
npcwalkto 43,30;
sleep2 2500;
npcwalkto 38,30;
sleep2 2500;
npcwalkto 35,30;
sleep2 2500;
npcwalkto 31,30;
sleep2 4500;
npcwalkto 30,30;
sleep2 3000;
npcwalkto 58,30;
 
 
 
}
 
p_track02,58,28,3       script  Santa Poring#race       1062,{
 
OnInit:
disablenpc "Santa Poring#race";
 
 
OnSantaWin:
npcwalkto 55,28;
donpcevent "Poring#race::OnPoringLose";
donpcevent "Drops#race::OnDropsLose";
donpcevent "Poporing#race::OnPoporingLose";
donpcevent "Pouring#race::OnPouringLose";
donpcevent "Marin#race::OnMarinLose";
sleep2 2500;
npcwalkto 52,28;
sleep2 4000;
npcwalkto 46,28;
sleep2 2500;
npcwalkto 41,28;
sleep2 2500;
npcwalkto 37,28;
sleep2 4500;
npcwalkto 30,28;
sleep2 10000;
mapannounce "p_track02","Santa Poring won the Race!!",bc_blue;
set $@race,0;
enablenpc "Bet Manager";
npcwalkto 58,28;
 
OnSantaLose:
npcwalkto 49,28;
sleep2 4000;
npcwalkto 48,28;
sleep2 2500;
npcwalkto 47,28;
sleep2 2500;
npcwalkto 35,28;
sleep2 2500;
npcwalkto 32,28;
sleep2 4500;
npcwalkto 30,28;
sleep2 3000;
npcwalkto 58,28;
 
 
}
 
p_track02,78,41,5       script  Warp Back to Prontera   723,{
 
mes "[Warp Back to Prontera]";
mes "Are you sure?";
        menu "Yes!",P_Yes;
 
P_Yes:
        warp "prontera",155,181;
        end;
 
P_NVM:
        close;
 
 
}
 
p_track02       mapflag nowarp
p_track02       mapflag nowarpto
p_track02       mapflag noskill
p_track02       mapflag noteleport
p_track02       mapflag nomemo
p_track02       mapflag nosave  SavePoint
p_track02       mapflag noicewall
p_track02       mapflag noreturn
p_track02       mapflag noloot
Viewed 754 times, submitted by unknown.