i wrote this 2 scripts and could need some help with it:
prontera,146,76,5 script Event Warper 909,{
set .@name$,"[Warper]";
if(@FTPChance>=3){
mes .@name$;
mes "You have left your 3 chances! Good luck next time!";
close;
}
if(@characcessFTP == 1){
mes .@name$;
mes "You got warped once! Try again next time!";
close;
}
if ($accessFTP == 0) goto L_PraceOff;
mes .@name$;
mes "Would you like to be warped onto the find the poring map?";
menu "Yes, please!",-,"No, thanks.",L_Cancel;
close2;
warp "pvp_y_1-5",0,0;
set @characcessFTP,1;
end;
L_Cancel:
mes .@name$;
mes "Ok, bye.";
close;
L_PraceOff:
set @Hour, gettime(3);
set @Minute, gettime(2);
set @FTPTime, gettime(3) + 4;
if (gettime(3) == 1) set @FTPTime, @FTPTime-1;
if (gettime(3) == 2) set @FTPTime, @FTPTime-2;
if (gettime(3) == 3) set @FTPTime, @FTPTime-3;
if (gettime(3) == 5) set @FTPTime, @FTPTime-1;
if (gettime(3) == 6) set @FTPTime, @FTPTime-2;
if (gettime(3) == 7) set @FTPTime, @FTPTime-3;
if (gettime(3) == 9) set @FTPTime, @FTPTime-1;
if (gettime(3) == 10) set @FTPTime, @FTPTime-2;
if (gettime(3) == 11) set @FTPTime, @FTPTime-3;
if (gettime(3) == 13) set @FTPTime, @FTPTime-1;
if (gettime(3) == 14) set @FTPTime, @FTPTime-2;
if (gettime(3) == 15) set @FTPTime, @FTPTime-3;
if (gettime(3) == 17) set @FTPTime, @FTPTime-1;
if (gettime(3) == 18) set @FTPTime, @FTPTime-2;
if (gettime(3) == 19) set @FTPTime, @FTPTime-3;
if (gettime(3) == 21) set @FTPTime, @FTPTime-1;
if (gettime(3) == 22) set @FTPTime, @FTPTime-2;
if (gettime(3) == 23) set @FTPTime, @FTPTime-3;
mes .@name$;
mes "Find the Poring is closed right now..";
mes "The next Event starts on "+@FTPTime+".";
mes "And right now it is "+@Hour+":"+@Minute+".";
close;
}
prontera.gat,0,0,0 script FTPoring -1,{
OnClock0000:
OnClock0400:
OnClock0800:
OnClock1200:
OnClock1653:
OnClock2000:
announce "Find the Poring is now started!",0;
monster "pvp_y_1-5",0,0,"Drops",1113,1000,"FTP_Sys::OnMobDeath";
monster "pvp_y_1-5",0,0,"Marin",1242,1000,"FTP_Sys::OnMobDeath";
monster "pvp_y_1-5",0,0,"Santa Poring",1062,1000,"FTP_Sys::OnMobDeath";
monster "pvp_y_1-5",0,0,"Metaling",1613,1000,"FTP_Sys::OnMobDeath";
monster "pvp_y_1-5",0,0,"Stapo",1784,1000,"FTP_Sys::OnMobDeath";
monster "pvp_y_1-5",0,0,"Poring",1002,1,"FTP_Sys::OnWinMobDeath";
enablenpc "FTP_Sys";
set $accessFTP,1;
end;
}
pvp_y_1-5,0,0,5 script FTP_Sys -1,{
end;
OnMobDeath:
set @FTPChance,@FTPChance+1;
if(@FTPChance>=3){ warp "prontera",156,98; dispbottom "You've run out of chances!"; end; }
dispbottom "Wrong Monster! You have "+(3-@FTPChance)+" chance's left";
end;
OnWinMobDeath:
mapannounce "pvp_y_1-5","["+strcharinfo(0)+"] has found the poring! The Event is over!",0;
GetItem( 20002, 3 );
mapwarp "pvp_y_1-5","prontera",156,98;
killmonsterall "pvp_y_1-5";
set $accessFTP,0;
set @FTPChance,0;
disablenpc "FTP_Sys";
}
What i want:
I want the chances (@FTPChance) to be resetted FOR EVERY CHAR (not only for the winner) after the event is over
also another problem i've got those variables are temp. variables.. so when i relog, im able to warp back to the event again
Question
leertaste
I'm kinda confused xD
i wrote this 2 scripts and could need some help with it:
What i want:
Edited by leertasteI want the chances (@FTPChance) to be resetted FOR EVERY CHAR (not only for the winner) after the event is over
also another problem i've got
those variables are temp. variables.. so when i relog, im able to warp back to the event again
Help please!
Link to comment
Share on other sites
11 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.