//===== rAthena Script =======================================
//= Run for Your Life
//===== By: ==================================================
//= Mysterious
//===== Current Version: =====================================
//= 2.6
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
//= A Run for your Life event (Based for Novices)
//===== TODO: ================================================
// - Change more coding
//===== Additional Comments: =================================
//= v1.0 - First release [Mysterious]
//= v2.0 - Overhaul of Entire Script [Mysterious]
//= v2.1 - Fixed Sentence structures [Mysterious]
//= v2.2 - Fixed a Typo and made it obvious what players had to change [Mysterious]
//= v2.3 - Removed unnecessary 'next;' thanks to soUPas [Mysterious]
//= v2.4 - Fixed an issue where the prize giver was showing up when not supposed to [Mysterious]
//= v2.5 - Added Friendly Messages [Mysterious]
//= v2.6 - Removed duplicated OnInIt labels [Mysterious]
//============================================================
// Mapflags for the Map
quiz_01 mapflag nowarpto
quiz_01 mapflag nowarp
quiz_01 mapflag noteleport
quiz_01 mapflag nomemo
quiz_01 mapflag nobranch
quiz_01 mapflag noicewall
quiz_01 mapflag nopenalty
quiz_01 mapflag nobranch
quiz_01 mapflag noexp
quiz_01 mapflag noreturn
quiz_01 mapflag pvp_noparty
quiz_01 mapflag restricted 1
- script RFYL#disable -1,{
OnInit:
}
xxx,xxx,xxx,xxx script Zombie Minion 1015,{
LMS_Admin:
mes "Hello " + strcharinfo(0) + ", would you like me to call my Boss?";
mes "He is the only one who can start it!";
menu "- Start Event",M_RFYL,
"- Spectate",M_warp,
"- End Event",M_EndEvent,
"- No Thanks",M_Leave;
M_RFYL:
mes "Hold on while I call my master.";
goto StartEvent;
M_warp:
mes "Very well, I will warp you to the map!";
M_Leave:
M_EndEvent:
mes "Ok master, I will stop the event for you right away!";
areawarp "quiz_01",
10,
10,
450,
450,
"rachel",
120,
135;
StartEvent: // Announcement to notify all players
announce "Zombie Vs. Novice event Will begin in 3 minutes. Head East/North",
0;
announce "Zombie Vs. Novice event will begin in 2 minutes! Head East/North",
0;
announce "Zombie Master: I have now appeared in Rachel!",
0;
announce "Zombie Vs. Novice event will begin in 1 minute!",
0;
mapannounce "quiz_01",
"In 30 seconds the zombies will spawn!",
0;
announce "Zombie Vs. Novice event will begin in ~5~",
0;
announce "Zombie Vs. Novice event will begin in ~4~",
0;
announce "Zombie Vs. Novice event will begin in ~3~",
0;
announce "Zombie Vs. Novice event will begin in ~2~",
0;
announce "Zombie Vs. Novice event will begin in ~1~",
0;
announce "Zombie Vs. Novice event has now begun!",
0,0x00FF00;
//disablenpc "Present For You"; <-- Not sure why this was needed?
//Round 1
monster "quiz_01",
42,
369,
"Zombie",
1015,
1;
monster "quiz_01",
42,
369,
"Zombie-2",
1015,
1;
monster "quiz_01",
42,
369,
"Zombie-3",
1015,
1;
monster "quiz_01",
42,
369,
"Zombie-4",
1015,
1;
monster "quiz_01",
42,
369,
"Zombie-4",
1015,
1;
monster "quiz_01",
42,
369,
"Zombie-4",
1015,
1;
monster "quiz_01",
42,
369,
"Zombie-4",
1015,
1;
monster "quiz_01",
42,
369,
"Zombie-4",
1015,
1;
monster "quiz_01",
42,
369,
"Zombie-4",
1015,
1;
monster "quiz_01",
42,
369,
"Zombie-4",
1015,
1;
monster "quiz_01",
42,
369,
"Zombie-4",
1015,
1;
monster "quiz_01",
42,
369,
"Zombie-4",
1015,
1;
monster "quiz_01",
42,
369,
"Zombie-4",
1015,
1;
monster "quiz_01",
42,
369,
"Zombie-4",
1015,
1;
monster "quiz_01",
42,
369,
"Zombie-4",
1015,
1;
monster "quiz_01",
42,
369,
"Zombie-4",
1015,
1;
monster "quiz_01",
42,
369,
"Zombie-4",
1015,
1;
monster "quiz_01",
42,
369,
"Zombie-4",
1015,
1;
monster "quiz_01",
42,
369,
"Zombie-4",
1036,
1;
monster "quiz_01",
42,
369,
"Zombie-4",
1036,
1;
monster "quiz_01",
42,
369,
"Zombie-4",
1015,
1;
OnTimer0500:
{
announce "RFYL Event: Event has ended. No one has joined.",
0;
}
{
}
OnPCDieEvent:
if ( .@mapnvz$ == "quiz_01") {
}
if ( .@mapnvz$
== "quiz_01" && getmapusers("quiz_01") == 1 ) {
mapannounce "quiz_01",
"You have won, approach the Present For You NPC please.",
0;
}
}
quiz_01,42,378,3 script Present For You 72,{
mes "Please tell me your name.";
mes "Are you sure that is your name?";
}
mes "Congrats. You've won.";
announce "Present For You: We have a winner! "+.@name$
+" has won the Novice vs Zombie event!",
0;
getitem 674,
3;
// Change This item id to what ever you want
}
xxxx,xxx,xxx,xxx script Zombie Master 1298,{
if (BaseLevel > 1) goto L_ClassLevel; //Change '1' to your desired level
if (class == 0) goto L_Event; //Checks if the player is a Novice, if so, proceeds into the event.
if (class > 0) goto L_ClassLevel; //Checks if the Player is NOT a Novice. If they aren't, they are not allowed to participate.
L_Event:
mes "[ ^0000FFZombie Master^000000 ]";
mes "You wish to participate the Zombie Vs. Novice event?";
switch(select("- Yes",
"- No")) {
case 1:
case 2:
mes "[ ^0000FFZombie Master^000000 ]";
mes "Come back when your ready.";
L_ClassLevel:
mes "[ ^0000FFZombie Master^000000 ]";
mes "Sorry, but it seems you are not a Novice and Level 1.";
}