Like the title says, I'm trying to figure out how to warp players off of a map after a time limit is reached. I can't seem to figure it out, here's the focal point of my script. I just need to know how to do one npc (Alpha MVP), then I can just copy paste the rest. Thanks in advance.
//===== rAthena Script =======================================
//= MVP Arena
//===== By: ==================================================
//= Darkchild
//===== Current Version: =====================================
//= 1.4
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
//= Rooms containing 16 different MVPs
//===== Additional Comments: =================================
//= 1.0 - First version of script
//= 1.1 - Optimised The MVP arena [massdriller]
//= 1.2 - NPC in prontera [silent]
//= 1.3 - Removed Duplicates
//= 1.4 - Optimized, text edited [Euphy]
//============================================================
// Entrance
izlude,98,137,3 script MVP Warper 768,{
mes "[ ^0065DFMVP Warper^000000 ]";
mes "Would you like to enter";
mes "the MVP Arena?";
mes "I require an ^FF0000Event Tablet^000000 and ^FF000010,000,000^000000 Zeny for my services, however.";
if (select("Yes!","No thanks.") == 2) close;
if (countitem(25048)<1) goto NEPC;
if(Zeny < 10000000) goto NEPC;
delitem 25048,1;
set Zeny, Zeny - 10000000;
warp "quiz_00",50,24;
close;
NEPC:
mes @npc$;
mes "You don't have what I require.";
close;
}
// Information
quiz_00,49,31,4 script MVP Arena Guide 778,{
mes "[ ^0065DFMVP Arena Guide^000000 ]";
mes "Welcome and behold this sacred place. Here you will find out if you truly have what it takes to call yourself a warrior.";
next;
switch(select("Information","Heal me!","Return to Izlude","Cancel")) {
case 1:
mes "[ ^0065DFMVP Arena Guide^000000 ]";
mes "There are four Keepers, and each has the same MVPs.";
mes "Each Keeper can take you to a seperate room with only one player per room.";
mes "These rooms have 40 MVPs in each of them. If you die, you will be warped out.";
close;
case 2:
specialeffect2 313;
percentheal 100,100;
close;
case 3:
warp "izlude",128,146;
close;
case 4:
close;
}
}
// Alpha NPC script
quiz_00,56,31,4 script Alpha MVP 770,{
mes "[ ^0065DFAlpha MVP^000000 ]";
mes "Would you like to enter";
mes "Room 1?";
if(select("Yes","No") == 2) {
mes "[Alpha MVP]";
mes "Ok, good bye then.";
close;
}
if(TimeUsed > gettimetick(2)) {
mes "[ ^0065DFAlpha MVP^000000 ]";
mes "Sorry, a player has recently used this room.";
mes "Come back later or try another room, we are currently revitalizing Room 1. ";
close;
}
mes "[ ^0065DFAlpha MVP^000000 ]";
mes "Ok, here goes!";
close2;
warp "bossnia_01",180,75;
set TimeUsed, gettimetick(2) + 5; // 86400 is one day in seconds.
dispbottom "Alpha MVP : Please note that you cannot return for 8 hours.";
end;
}
OnTimeLimit:
message strcharinfo(0),"Time's Up.";
sleep2 5;
warp "new_zone04",60,179;
end;
}
// Beta NPC script
quiz_00,58,31,4 script Beta MVP 773,{
mes "[ ^0065DFBeta MVP^000000 ]";
mes "Would you like to enter";
mes "Room 2?";
if (select("Yes.","No thanks.") == 2) close;
warp "bossnia_02",180,75;
close;
}
// Theta NPC script
quiz_00,60,31,4 script Theta MVP 774,{
mes "[ ^0065DFTheta MVP^000000 ]";
mes "Would you like to enter";
mes "Room 3?";
if (select("Yes.","No thanks.") == 2) close;
warp "bossnia_03",180,75;
close;
}
// Epsilon NPC script
quiz_00,62,31,4 script Epsilon MVP 776,{
mes "[ ^0065DFEpsilon MVP^000000 ]";
mes "Would you like to enter";
mes "Room 4?";
if (select("Yes.","No thanks.") == 2) close;
warp "bossnia_04",180,75;
close;
}
// Protectors
function script Protector {
switch(select(""+((getarg(0)=="")?"":"Harder Monsters")+":Heal:Exit")) {
case 1:
warp getarg(0),102,102;
close;
case 2:
specialeffect2 313;
percentheal 100,100;
close;
case 3:
warp "prontera",156,179;
close;
}
}