blob: 3e72118d4b334b07da5be336333b98467a3a8823 (
plain) (
tree)
|
|
// TMW2 scripts.
// Authors:
// Jesusalva
// Description:
// Nivalis Liberation Day NPC
019-3,128,22,0 script Guard#019-3.1 NPC_GUARD1,{
if ($NLIB_DAY == 7)
goto L_MK;
mesn;
mesq l("Are you done yet?");
select
rif(@QNL3, l("Yes")),
l("No");
if (@menu == 2)
close;
if ($NLIB_DAY == 7)
cwarp "019-2", 43, 55;
// Load quest env
// Day, Score, Temporary Time;
.@q1=getq(Q_NivalisLibday);
.@q2=getq2(Q_NivalisLibday);
.@q3=getq3(Q_NivalisLibday);
// Calculate score (You have 3 minutes. You get a single point for finishing.)
.@score=1;
.@time=gettimetick(2);
.@score+=max(180-(.@time-.@q3), 0)/5;
// Update Total Score
setq2 Q_NivalisLibday, .@q2+.@score;
.@q2=getq2(Q_NivalisLibday);
// Update Highscores if needed
if (.@q2 > $NLIB_HIGHTIME) {
$NLIB_HIGHTIME=.@q2;
$NLIB_HIGHNAME$=strcharinfo(0);
}
// Close quest again and give you a proper reward
setq1 Q_NivalisLibday, $NLIB_DAY;
Zeny=Zeny+(.@score*15); // max about 450 GP
getexp .@score*BaseLevel*2, .@score; // max about 30 JExp - Estimate Max EXP Ranges: (2400~4500) XP
// Warp you back
warp "019-2", 43, 55;
closedialog;
close;
L_MK:
mesn;
mesq l("Good luck hunting down the Monster King.");
close;
OnBegin:
npctalk l("Begin!");
end;
OnAdvise:
npctalk l("You must be where the Monster King is at 18:30 UTC sharply - no delays allowed!");
end;
OnInit:
.sex = G_MALE;
.distance = 5;
if (!$NLIB_DAY)
disablenpc .name$;
end;
}
|