From 3bd77ffc0daca508352834add828766490075aee Mon Sep 17 00:00:00 2001 From: Emistry Date: Tue, 27 Oct 2015 18:31:29 +0800 Subject: Replaced parameter type with constant. constant for gettime( ) constant for Weekday and Month. --- npc/airports/airships.txt | 8 ++--- npc/custom/etc/airplane.txt | 4 +-- npc/custom/etc/bank_kafra.txt | 2 +- npc/custom/events/valentinesdayexp.txt | 10 +++--- npc/custom/events/xmas_rings_event.txt | 2 +- npc/custom/quests/thq/THQS_QuestNPC.txt | 8 ++--- npc/custom/woe_controller.txt | 8 ++--- npc/events/idul_fitri.txt | 2 +- npc/other/arena/arena_lvl50.txt | 8 ++--- npc/other/arena/arena_lvl60.txt | 8 ++--- npc/other/arena/arena_lvl70.txt | 8 ++--- npc/other/arena/arena_lvl80.txt | 8 ++--- npc/other/arena/arena_party.txt | 8 ++--- npc/quests/first_class/tu_archer.txt | 4 +-- npc/quests/guildrelay.txt | 56 ++++++++++++++++----------------- npc/quests/newgears/2010_headgears.txt | 2 +- npc/quests/partyrelay.txt | 6 ++-- npc/quests/quests_ein.txt | 4 +-- npc/quests/quests_lighthalzen.txt | 6 ++-- npc/quests/quests_louyang.txt | 52 +++++++++++++++--------------- npc/quests/quests_moscovia.txt | 12 +++---- npc/quests/quests_umbala.txt | 6 ++-- npc/quests/the_sign_quest.txt | 18 +++++------ npc/re/quests/quests_mora.txt | 2 +- npc/re/woe-fe/invest_main.txt | 14 ++++----- 25 files changed, 133 insertions(+), 133 deletions(-) (limited to 'npc') diff --git a/npc/airports/airships.txt b/npc/airports/airships.txt index 9a9941e25..2faab33af 100644 --- a/npc/airports/airships.txt +++ b/npc/airports/airships.txt @@ -1135,18 +1135,18 @@ airplane_01,32,61,4 script Nils#ein 1_M_03,1,1,{ mes .@line1_1$[.@wordtest]; mes .@line1_2$[.@wordtest]; mes .@line1_3$[.@wordtest]; - .@start_time = gettime(3)*60*60 + gettime(2)*60 + gettime(1); + .@start_time = gettime(HOUR)*60*60 + gettime(MINUTE)*60 + gettime(SECOND); next; input .@save1$; - .@end_time = gettime(3)*60*60 + gettime(2)*60 + gettime(1); + .@end_time = gettime(HOUR)*60*60 + gettime(MINUTE)*60 + gettime(SECOND); .@total_time = .@end_time - .@start_time; mes "[Nils]"; mes .@line2_1$[.@wordtest]; mes .@line2_2$[.@wordtest]; - .@start_time = gettime(3)*60*60 + gettime(2)*60 + gettime(1); + .@start_time = gettime(HOUR)*60*60 + gettime(MINUTE)*60 + gettime(SECOND); next; input .@save2$; - .@end_time = gettime(3)*60*60 + gettime(2)*60 + gettime(1); + .@end_time = gettime(HOUR)*60*60 + gettime(MINUTE)*60 + gettime(SECOND); .@total_time = .@total_time + (.@start_time - .@end_time); .@tasoo = (.@letters[.@wordtest] / .@total_time) * 6; if ((.@save1$ == .@word1$[.@wordtest]) && (.@save2$ == .@word2$[.@wordtest])) { diff --git a/npc/custom/etc/airplane.txt b/npc/custom/etc/airplane.txt index fc79584fe..de321ebfd 100644 --- a/npc/custom/etc/airplane.txt +++ b/npc/custom/etc/airplane.txt @@ -385,7 +385,7 @@ function script F_Itin { seta: set @tempo, @tempo + 1; - set @time, gettime(3); + set @time, gettime(HOUR); set @minutes, 5 * @tempo - 5; set @minutess, 5 * @tempo - 2; if(@minutes<10)set @minutes$, "0" + @minutes; @@ -406,7 +406,7 @@ seta: setb: if($@currenttime - 1==@tempo)goto setc; set @tempo, @tempo + 1; - set @time, gettime(3) + 1; + set @time, gettime(HOUR) + 1; set @minutes, 5 * @tempo - 5; set @minutess, 5 * @tempo - 2; if(@minutes<10)set @minutes$, "0" + @minutes; diff --git a/npc/custom/etc/bank_kafra.txt b/npc/custom/etc/bank_kafra.txt index ea662499f..02a0b1846 100644 --- a/npc/custom/etc/bank_kafra.txt +++ b/npc/custom/etc/bank_kafra.txt @@ -22,7 +22,7 @@ mes"[Maniss]"; mes strcharinfo(0)+", welcome to the 2nd Bank of Prontera!"; - set @kb_int,(gettime(6)*31)+gettime(5); //today's number + set @kb_int,(gettime(MONTH)*31)+gettime(DAYOFMONTH); //today's number set @income,0; //calculate % if (#kafrabank<=0 || #kb_int>=@kb_int) goto L_NoIncomeToday; diff --git a/npc/custom/events/valentinesdayexp.txt b/npc/custom/events/valentinesdayexp.txt index 4ed24012d..7a22909e6 100644 --- a/npc/custom/events/valentinesdayexp.txt +++ b/npc/custom/events/valentinesdayexp.txt @@ -19,7 +19,7 @@ prontera,156,172,4 script Tine 1_M_MERCHANT,{ // mes "@dsv: "+@dsv; // mes "ispartneron()=="+ispartneron(); // mes "sex == "+Sex; -// if(@dsv == gettime(3)+1) mes "@dsv == gettime(3)+1"; +// if(@dsv == gettime(HOUR)+1) mes "@dsv == gettime(HOUR)+1"; mes "[Tine]"; mes "The legend says that on 14th February... on the Day of Saint Valentine..."; @@ -60,14 +60,14 @@ M_INFO: OnInit: //559,Hand-made_Chocolate - setitemscript 559,"{ itemheal 50,50; if(Sex==0 || @dsv == gettime(3)+1 || ispartneron()==0)end; set @dsv,gettime(3)+1; misceffect 113; }"; + setitemscript 559,"{ itemheal 50,50; if(Sex==0 || @dsv == gettime(HOUR)+1 || ispartneron()==0)end; set @dsv,gettime(HOUR)+1; misceffect 113; }"; //560,Hand-made_White_Chocolate - setitemscript 560,"{ itemheal 50,50; if(Sex || @dsv == gettime(3)+1 || ispartneron()==0)end; set @dsv,gettime(3)+1; misceffect 113; }"; + setitemscript 560,"{ itemheal 50,50; if(Sex || @dsv == gettime(HOUR)+1 || ispartneron()==0)end; set @dsv,gettime(HOUR)+1; misceffect 113; }"; //2634,Wedding_Ring_M,Wedding Ring,5,,10,0,,0,,0,127918079,7,1,136,,0,0,0,{ skill 334,1; skill 335,1; skill 336,1; } - setitemscript 2634,"{ skill 334,1; skill 335,1; skill 336,1; if(@dsv == gettime(3)+1 && ispartneron()){ bonus2 bExpAddRace,5,50; bonus2 bExpAddRace,6,50; bonus2 bExpAddRace,7,50; bonus2 bExpAddRace,8,50; bonus2 bExpAddRace,1,50; } }"; + setitemscript 2634,"{ skill 334,1; skill 335,1; skill 336,1; if(@dsv == gettime(HOUR)+1 && ispartneron()){ bonus2 bExpAddRace,5,50; bonus2 bExpAddRace,6,50; bonus2 bExpAddRace,7,50; bonus2 bExpAddRace,8,50; bonus2 bExpAddRace,1,50; } }"; //2635,Wedding_Ring_F,Wedding Ring,5,,10,0,,0,,0,127918079,7,0,136,,0,0,0,{ skill 334,1; skill 335,1; skill 336,1; } - setitemscript 2635,"{ skill 334,1; skill 335,1; skill 336,1; if(@dsv == gettime(3)+1 && ispartneron()){ bonus2 bExpAddRace,0,50; bonus2 bExpAddRace,9,50; bonus2 bExpAddRace,2,50; bonus2 bExpAddRace,3,50; bonus2 bExpAddRace,4,50; } }"; + setitemscript 2635,"{ skill 334,1; skill 335,1; skill 336,1; if(@dsv == gettime(HOUR)+1 && ispartneron()){ bonus2 bExpAddRace,0,50; bonus2 bExpAddRace,9,50; bonus2 bExpAddRace,2,50; bonus2 bExpAddRace,3,50; bonus2 bExpAddRace,4,50; } }"; end; } diff --git a/npc/custom/events/xmas_rings_event.txt b/npc/custom/events/xmas_rings_event.txt index e031ea129..0bbf36df1 100644 --- a/npc/custom/events/xmas_rings_event.txt +++ b/npc/custom/events/xmas_rings_event.txt @@ -89,7 +89,7 @@ M_QUEST: OnInit: //Santa's Hat - setitemscript 2236,"{ bonus bMdef,1; bonus bLuk,1; if(isequipped(2636,2637)){if(@xmr == gettime(2))end; set @xmr,gettime(2); misceffect 410; end;} if(isequipped(2636)){if(@xmr == gettime(2))end; set @xmr,gettime(2); misceffect 72;} if(isequipped(2637)){if(@xmr == gettime(2))end; set @xmr,gettime(2); misceffect 338;}}"; + setitemscript 2236,"{ bonus bMdef,1; bonus bLuk,1; if(isequipped(2636,2637)){if(@xmr == gettime(MINUTE))end; set @xmr,gettime(MINUTE); misceffect 410; end;} if(isequipped(2636)){if(@xmr == gettime(MINUTE))end; set @xmr,gettime(MINUTE); misceffect 72;} if(isequipped(2637)){if(@xmr == gettime(MINUTE))end; set @xmr,gettime(MINUTE); misceffect 338;}}"; //Gold Xmas Ring setitemscript 2636,"{ bonus bLoseSPWhenUnequip,30; if(isequipped(2236)==0)end; if(getskilllv(\"AL_HEAL\")){skill \"TF_HIDING\",4+isequipped(2637);}else{skill \"AL_HEAL\",1+4*isequipped(2637);} }"; //Silver Xmas Ring diff --git a/npc/custom/quests/thq/THQS_QuestNPC.txt b/npc/custom/quests/thq/THQS_QuestNPC.txt index d4e058fb4..55b1b5676 100644 --- a/npc/custom/quests/thq/THQS_QuestNPC.txt +++ b/npc/custom/quests/thq/THQS_QuestNPC.txt @@ -44,7 +44,7 @@ N_PayZeny: set On_Quest, 0; Zeny -= 2500; //add time delay penalty. You can get another quest after 2 - 3 hours. [Lupus] - set #THQ_DELAY, (gettime(7)*12*31*24+gettime(6)*31*24+gettime(5)*24+gettime(3)+rand(2,3)); + set #THQ_DELAY, (gettime(YEAR)*12*31*24+gettime(MONTH)*31*24+gettime(DAYOFMONTH)*24+gettime(HOUR)+rand(2,3)); mes "[Guy]"; mes "Its sad to see someone give a quest up..."; mes "Shame on you."; @@ -59,7 +59,7 @@ N_ZenyFail: N_NewQuest: if (Event_THQS == 0) goto N_Signup; //checking if time penalty is over [Lupus] - if (#THQ_DELAY > (gettime(7)*12*31*24 + gettime(6)*31*24 + gettime(5)*24 + gettime(3)) ) goto L_NoQuestsForYet; + if (#THQ_DELAY > (gettime(YEAR)*12*31*24 + gettime(MONTH)*31*24 + gettime(DAYOFMONTH)*24 + gettime(HOUR)) ) goto L_NoQuestsForYet; mes "[Guy]"; mes "Ahh welcome fellow Treasure Hunter."; mes "You currently have ^FF0000"+#Treasure_Token+"^000000 treasure tokens!!!"; @@ -71,7 +71,7 @@ N_NewQuest: mes "Ok lets see what quest we can give you today."; mes "The quest names in ^FF0000This Colour^000000 mean that they are more challanging then the rest, but have better rewards."; next; - set #THQ_DELAY,(gettime(7)*12*31*24+gettime(6)*31*24+gettime(5)*24+gettime(3) + 1); //you can get another quest after 1 hour [Lupus] + set #THQ_DELAY,(gettime(YEAR)*12*31*24+gettime(MONTH)*31*24+gettime(DAYOFMONTH)*24+gettime(HOUR) + 1); //you can get another quest after 1 hour [Lupus] emotion 21; if(@treasure_job==0) set @treasure_job,rand(1,10); //doesn't allow cheaters to pick any quest they want if(@treasure_job==2) goto N_JobList2; @@ -100,7 +100,7 @@ N_Signup: L_NoQuestsForYet: mes "[Guy]"; mes "I'm afraid there aren't any Quests for you yet."; - mes "Call in "+ (#THQ_DELAY - (gettime(7)*12*31*24+gettime(6)*31*24+gettime(5)*24+gettime(3)) )+" hours later."; + mes "Call in "+ (#THQ_DELAY - (gettime(YEAR)*12*31*24+gettime(MONTH)*31*24+gettime(DAYOFMONTH)*24+gettime(HOUR)) )+" hours later."; emotion 17; close; diff --git a/npc/custom/woe_controller.txt b/npc/custom/woe_controller.txt index ec5bb3d81..86590ebc8 100644 --- a/npc/custom/woe_controller.txt +++ b/npc/custom/woe_controller.txt @@ -102,7 +102,7 @@ OnMinute00: freeloop(1); if (agitcheck() || agitcheck2()) { for(set .@i,0; .@i<.Size; set .@i,.@i+4) - if (gettime(4) == $WOE_CONTROL[.@i] && gettime(3) == $WOE_CONTROL[.@i+2]) { + if (gettime(WEEKDAY) == $WOE_CONTROL[.@i] && gettime(HOUR) == $WOE_CONTROL[.@i+2]) { OnWOEEnd: announce "The War Of Emperium is over!",bc_all|bc_woe; agitend; agitend2; @@ -120,7 +120,7 @@ OnMinute00: if ((!agitcheck() && !agitcheck2()) || .Init) { if (!agitcheck() && !agitcheck2()) set .Init,0; for(set .@i,0; .@i<.Size; set .@i,.@i+4) - if (gettime(4) == $WOE_CONTROL[.@i] && gettime(3) >= $WOE_CONTROL[.@i+1] && gettime(3) < $WOE_CONTROL[.@i+2]) { + if (gettime(WEEKDAY) == $WOE_CONTROL[.@i] && gettime(HOUR) >= $WOE_CONTROL[.@i+1] && gettime(HOUR) < $WOE_CONTROL[.@i+2]) { deletearray .Active[0],2; set .Active[0], $WOE_CONTROL[.@i+3]; if (.Init) { agitend; agitend2; } @@ -208,7 +208,7 @@ while(1) { if (agitcheck() || agitcheck2()) { if (.Active[0]) { for(set .@i,0; .@i<.Size; set .@i,.@i+4) - if (gettime(4) == $WOE_CONTROL[.@i] && gettime(3) >= $WOE_CONTROL[.@i+1] && gettime(3) < $WOE_CONTROL[.@i+2]) { + if (gettime(WEEKDAY) == $WOE_CONTROL[.@i] && gettime(HOUR) >= $WOE_CONTROL[.@i+1] && gettime(HOUR) < $WOE_CONTROL[.@i+2]) { set .@i, $WOE_CONTROL[.@i+2]; break; } @@ -220,7 +220,7 @@ while(1) { mes "The War of Emperium is ^0055FFactive^000000."; } else { for(set .@i,0; .@i<.Size; set .@i,.@i+4) - if ((gettime(4) == $WOE_CONTROL[.@i] && gettime(3) <= $WOE_CONTROL[.@i+1]) || gettime(4) < $WOE_CONTROL[.@i]) { + if ((gettime(WEEKDAY) == $WOE_CONTROL[.@i] && gettime(HOUR) <= $WOE_CONTROL[.@i+1]) || gettime(WEEKDAY) < $WOE_CONTROL[.@i]) { setarray .@time[0],$WOE_CONTROL[.@i],$WOE_CONTROL[.@i+1]; break; } diff --git a/npc/events/idul_fitri.txt b/npc/events/idul_fitri.txt index 97d018f0a..cca86d1fc 100644 --- a/npc/events/idul_fitri.txt +++ b/npc/events/idul_fitri.txt @@ -12,7 +12,7 @@ prontera,146,92,3 script Cellerb 1_M_MERCHANT,{ mes "[Staff Idul Fitri]"; - if((gettime(6)==10 && (gettime(5)==24 || gettime(5)==25))==0) { + if((gettime(MONTH)==OCTOBER && (gettime(DAYOFMONTH)==24 || gettime(DAYOFMONTH)==25))==0) { mes "Congratulation! Celebrate Feast Day Of Ramadan Idul Fitri 1427 H."; specialeffect EF_SANDMAN; close; diff --git a/npc/other/arena/arena_lvl50.txt b/npc/other/arena/arena_lvl50.txt index 9c91c684c..015dc64db 100644 --- a/npc/other/arena/arena_lvl50.txt +++ b/npc/other/arena/arena_lvl50.txt @@ -37,8 +37,8 @@ force_1-1,99,20,4 script Heel and Toe#arena 4_F_TELEPORTER,{ OnStart: initnpctimer; - $arena_min50st = gettime(2); - $arena_sec50st = gettime(1); + $arena_min50st = gettime(MINUTE); + $arena_sec50st = gettime(SECOND); end; OnTimer3000: @@ -774,8 +774,8 @@ OnMyMobDead: donpcevent "Heel and Toe#arena::On09_End"; donpcevent "arena#50::OnReset_09"; donpcevent "arena#50::OnReset_All"; - $arena_min50end = gettime(2); - $arena_sec50end = gettime(1); + $arena_min50end = gettime(MINUTE); + $arena_sec50end = gettime(SECOND); } end; } diff --git a/npc/other/arena/arena_lvl60.txt b/npc/other/arena/arena_lvl60.txt index 51c29def1..7fbaea869 100644 --- a/npc/other/arena/arena_lvl60.txt +++ b/npc/other/arena/arena_lvl60.txt @@ -38,8 +38,8 @@ force_2-1,99,20,4 script Minilover#arena 4_F_TELEPORTER,{ OnStart: initnpctimer; - $arena_min60st = gettime(2); - $arena_sec60st = gettime(1); + $arena_min60st = gettime(MINUTE); + $arena_sec60st = gettime(SECOND); end; OnTimer3000: @@ -784,8 +784,8 @@ OnMyMobDead: donpcevent "Minilover#arena::On09_End"; donpcevent "arena#60::OnReset_09"; donpcevent "arena#60::OnReset_All"; - $arena_min60end = gettime(2); - $arena_sec60end = gettime(1); + $arena_min60end = gettime(MINUTE); + $arena_sec60end = gettime(SECOND); } end; } diff --git a/npc/other/arena/arena_lvl70.txt b/npc/other/arena/arena_lvl70.txt index 68805437f..a0b88f5dd 100644 --- a/npc/other/arena/arena_lvl70.txt +++ b/npc/other/arena/arena_lvl70.txt @@ -37,8 +37,8 @@ force_3-1,99,20,4 script Cadillac#arena 4_F_TELEPORTER,{ OnStart: initnpctimer; - $arena_min70st = gettime(2); - $arena_sec70st = gettime(1); + $arena_min70st = gettime(MINUTE); + $arena_sec70st = gettime(SECOND); end; OnTimer3000: @@ -749,8 +749,8 @@ OnMyMobDead: donpcevent "Cadillac#arena::On09_End"; donpcevent "arena#70::OnReset_09"; donpcevent "arena#70::OnReset_All"; - $arena_min70end = gettime(2); - $arena_sec70end = gettime(1); + $arena_min70end = gettime(MINUTE); + $arena_sec70end = gettime(SECOND); } end; } diff --git a/npc/other/arena/arena_lvl80.txt b/npc/other/arena/arena_lvl80.txt index 8690d992b..8922a3376 100644 --- a/npc/other/arena/arena_lvl80.txt +++ b/npc/other/arena/arena_lvl80.txt @@ -37,8 +37,8 @@ force_4-1,99,20,4 script Octus#arena 4_F_TELEPORTER,{ OnStart: initnpctimer; - $arena_min80st = gettime(2); - $arena_sec80st = gettime(1); + $arena_min80st = gettime(MINUTE); + $arena_sec80st = gettime(SECOND); end; OnTimer3000: @@ -730,8 +730,8 @@ OnMyMobDead: donpcevent "Octus#arena::On09_End"; donpcevent "arena#80::OnReset_09"; donpcevent "arena#80::OnReset_All"; - $arena_min80end = gettime(2); - $arena_sec80end = gettime(1); + $arena_min80end = gettime(MINUTE); + $arena_sec80end = gettime(SECOND); } end; } diff --git a/npc/other/arena/arena_party.txt b/npc/other/arena/arena_party.txt index 717e69fd3..3011e7a43 100644 --- a/npc/other/arena/arena_party.txt +++ b/npc/other/arena/arena_party.txt @@ -147,8 +147,8 @@ OnTouch: force_1-2,99,31,4 script Slipslowrun#party 4_F_TELEPORTER,{ OnStart: initnpctimer; - $arena_minptst = gettime(2); - $arena_secptst = gettime(1); + $arena_minptst = gettime(MINUTE); + $arena_secptst = gettime(SECOND); end; OnTimer2000: @@ -412,8 +412,8 @@ OnReset: force_1-2,95,187,0 script force_09_exit WARPNPC,1,1,{ OnTouch: - $arena_minptend = gettime(2); - $arena_secptend = gettime(1); + $arena_minptend = gettime(MINUTE); + $arena_secptend = gettime(SECOND); warp "prt_are_in",73,139; donpcevent "#arn_timer_pt::OnEnter"; donpcevent "arena_p::OnReset"; diff --git a/npc/quests/first_class/tu_archer.txt b/npc/quests/first_class/tu_archer.txt index e80dbe01d..c2b34db1a 100644 --- a/npc/quests/first_class/tu_archer.txt +++ b/npc/quests/first_class/tu_archer.txt @@ -1400,7 +1400,7 @@ pay_arche,76,135,3 script #Target HIDDEN_NPC,{ end; } - script ::Acolyte_Tu -1,{ mes "[Acolyte]"; if(tu_archer01 == 14){ - if(gettime(3) >= 18 && gettime(3) < 22){ + if(gettime(HOUR) >= 18 && gettime(HOUR) < 22){ mes "H-hello!"; mes "Umm, umm..."; mes "Are you R-Reidin Corse's"; @@ -1500,7 +1500,7 @@ pay_arche,76,135,3 script #Target HIDDEN_NPC,{ end; } close; } } else if(tu_archer01 == 15){ - if((gettime(3) >= 18) && (gettime(3) < 22)){ + if((gettime(HOUR) >= 18) && (gettime(HOUR) < 22)){ mes "^666666Zzzzz...^000000"; mes "Wh-wha...?"; mes "Who are you?"; diff --git a/npc/quests/guildrelay.txt b/npc/quests/guildrelay.txt index 25282ff56..de61abad4 100644 --- a/npc/quests/guildrelay.txt +++ b/npc/quests/guildrelay.txt @@ -70,7 +70,7 @@ if (strcharinfo(0) == getguildmaster(.@GID)) { if (guildrelay_q == 100) { if (guildtime > 22) { - if ((gettime(3) > 1) && (gettime(3) < guildtime)) { + if ((gettime(HOUR) > 1) && (gettime(HOUR) < guildtime)) { mes "[" + .@name$ + "]"; mes "Oh, you're back. So did you"; mes "rest up enough? I'm sure the"; @@ -127,7 +127,7 @@ } } else if (guildtime > 22) { - if ((gettime(3) > 0) && (gettime(3) < guildtime)) { + if ((gettime(HOUR) > 0) && (gettime(HOUR) < guildtime)) { mes "[" + .@name$ + "]"; mes "Oh, you're back. So did you"; mes "rest up enough? I'm sure the"; @@ -183,7 +183,7 @@ close; } } - else if ((gettime(3) - guildtime) > 2) { + else if ((gettime(HOUR) - guildtime) > 2) { mes "[" + .@name$ + "]"; mes "Oh, you're back. So did you"; mes "rest up enough? I'm sure the"; @@ -240,7 +240,7 @@ } } else if (guildrelay_q == 150) { - if (((guildtime > 22) && (gettime(3) > 1) && (gettime(3) < guildtime)) || ((guildtime > 21) && (gettime(3) > 0) && (gettime(3) < guildtime)) || ((gettime(3) - guildtime) > 2)) { + if (((guildtime > 22) && (gettime(HOUR) > 1) && (gettime(HOUR) < guildtime)) || ((guildtime > 21) && (gettime(HOUR) > 0) && (gettime(HOUR) < guildtime)) || ((gettime(HOUR) - guildtime) > 2)) { mes "[" + .@name$ + "]"; mes "Ah, you look well rested,"; mes "master. It is now time for"; @@ -304,12 +304,12 @@ } } else if (guildrelay_q == 25) { - if (((guildtime > 22) && ((gettime(3) > 4) && (gettime(3) < guildtime))) - || ((guildtime > 21) && ((gettime(3) > 3) && (gettime(3) < guildtime))) - || ((guildtime > 20) && ((gettime(3) > 2) && (gettime(3) < guildtime))) - || ((guildtime > 19) && ((gettime(3) > 1) && (gettime(3) < guildtime))) - || ((guildtime > 18) && ((gettime(3) > 0) && (gettime(3) < guildtime))) - || ((gettime(3) - guildtime) > 5)) { + if (((guildtime > 22) && ((gettime(HOUR) > 4) && (gettime(HOUR) < guildtime))) + || ((guildtime > 21) && ((gettime(HOUR) > 3) && (gettime(HOUR) < guildtime))) + || ((guildtime > 20) && ((gettime(HOUR) > 2) && (gettime(HOUR) < guildtime))) + || ((guildtime > 19) && ((gettime(HOUR) > 1) && (gettime(HOUR) < guildtime))) + || ((guildtime > 18) && ((gettime(HOUR) > 0) && (gettime(HOUR) < guildtime))) + || ((gettime(HOUR) - guildtime) > 5)) { mes "[" + .@name$ + "]"; mes "Ah, have you rested well,"; mes "master? Please excuse my"; @@ -413,7 +413,7 @@ mes "Hand me the spirit, and allow"; mes "me to give you your guild's reward."; delitem 7239,1; //Soul_Of_Proceeding - guildtime = gettime(3); + guildtime = gettime(HOUR); guildrelay_q = 100; .@incen_item = rand(1,100); if ((.@incen_item > 0) && (.@incen_item < 25)) { @@ -481,7 +481,7 @@ mes "challenges that you will all"; mes "face together. Good work!"; delitem 7245,1; //Soul_Of_Friendship - guildtime = gettime(3); + guildtime = gettime(HOUR); guildrelay_q = 150; .@incen_item = rand(1,100); if ((.@incen_item > 0) && (.@incen_item < 16)) { @@ -574,7 +574,7 @@ mes "Tristan III, and share it with"; mes "guild. Once again, good work."; delitem 7251,1; //Soul_Of_Victory - guildtime = gettime(3); + guildtime = gettime(HOUR); guildrelay_q = 25; .@incen_item = rand(1,100); if ((.@incen_item > 0) && (.@incen_item < 26)) { @@ -1409,11 +1409,11 @@ mes "don't you worry about it."; delitem 7235,1; //Soul_Of_Courage guildrelay_q = 4; - guildtime = gettime(3); + guildtime = gettime(HOUR); close; } if ((guildtime > 22) && (guildrelay_q == 4) && (BaseJob == Job_Blacksmith)) { - if ((gettime(3) > 2) && (gettime(3) < guildtime)) { + if ((gettime(HOUR) > 2) && (gettime(HOUR) < guildtime)) { mes "[" + .@name$ + "]"; mes "I guess enough time"; mes "has passed. You ready"; @@ -1427,7 +1427,7 @@ } } if ((guildtime > 21) && (guildrelay_q == 4) && (BaseJob == Job_Blacksmith)) { - if ((gettime(3) > 0101) && (gettime(3) < guildtime)) { + if ((gettime(HOUR) > 0101) && (gettime(HOUR) < guildtime)) { mes "[" + .@name$ + "]"; mes "I guess enough time"; mes "has passed. You ready"; @@ -1441,7 +1441,7 @@ } } if ((guildtime > 20) && (guildrelay_q == 4) && (BaseJob == Job_Blacksmith)) { - if ((gettime(3) > 0001) && (gettime(3) < guildtime)) { + if ((gettime(HOUR) > 0001) && (gettime(HOUR) < guildtime)) { mes "[" + .@name$ + "]"; mes "I guess enough time"; mes "has passed. You ready"; @@ -1454,7 +1454,7 @@ close; } } - if ((gettime(3) - guildtime > 0300) && (guildrelay_q == 4) && (BaseJob == Job_Blacksmith)) { + if ((gettime(HOUR) - guildtime > 0300) && (guildrelay_q == 4) && (BaseJob == Job_Blacksmith)) { mes "[" + .@name$ + "]"; mes "I guess enough time"; mes "has passed. You ready"; @@ -1795,11 +1795,11 @@ mes "in order to be successful."; delitem 7240,1; //Soul_Of_Confidence guildrelay_q = 9; - guildtime = gettime(3); + guildtime = gettime(HOUR); close; } if ((guildtime > 22) && (guildrelay_q == 9) && (BaseJob == Job_Sage)) { - if ((gettime(3) > 02) && (gettime(3) < guildtime)) { + if ((gettime(HOUR) > 02) && (gettime(HOUR) < guildtime)) { mes "[" + .@name$ + "]"; mes "So did you spend some"; mes "quality time with your"; @@ -1830,7 +1830,7 @@ } } else if ((guildtime > 21) && (guildrelay_q == 9) && (BaseJob == Job_Sage)) { - if ((gettime(3) > 01) && (gettime(3) < guildtime)) { + if ((gettime(HOUR) > 01) && (gettime(HOUR) < guildtime)) { mes "[" + .@name$ + "]"; mes "So did you spend some"; mes "quality time with your"; @@ -1861,7 +1861,7 @@ } } else if ((guildtime > 20) && (guildrelay_q == 9) && (BaseJob == Job_Sage)) { - if ((gettime(3) > 0) && (gettime(3) < guildtime)) { + if ((gettime(HOUR) > 0) && (gettime(HOUR) < guildtime)) { mes "[" + .@name$ + "]"; mes "So did you spend some"; mes "quality time with your"; @@ -1891,7 +1891,7 @@ close; } } - else if ((gettime(3) - guildtime > 3) && (guildrelay_q == 9) && (BaseJob == Job_Sage)) { + else if ((gettime(HOUR) - guildtime > 3) && (guildrelay_q == 9) && (BaseJob == Job_Sage)) { mes "[" + .@name$ + "]"; mes "So did you spend some"; mes "quality time with your"; @@ -2765,11 +2765,11 @@ mes "to your feelings this time..."; delitem 7249,1; //Soul_Of_Service guildrelay_q = 21; - guildtime = gettime(3); + guildtime = gettime(HOUR); close; } if ((guildtime > 22) && (guildrelay_q == 21) && (BaseJob == Job_Crusader)) { - if ((gettime(3) > 2) && (gettime(3) < guildtime)) { + if ((gettime(HOUR) > 2) && (gettime(HOUR) < guildtime)) { mes "[" + .@name$ + "]"; mes "Yes. You've come at just"; mes "the right time. Remember"; @@ -2791,7 +2791,7 @@ } } if ((guildtime > 21) && (guildrelay_q == 21) && (BaseJob == Job_Crusader)) { - if ((gettime(3) > 1) && (gettime(3) < guildtime)) { + if ((gettime(HOUR) > 1) && (gettime(HOUR) < guildtime)) { mes "[" + .@name$ + "]"; mes "Yes. You've come at just"; mes "the right time. Remember"; @@ -2813,7 +2813,7 @@ } } if ((guildtime > 20) && (guildrelay_q == 21) && (BaseJob == Job_Crusader)) { - if ((gettime(3) > 0) && (gettime(3) < guildtime)) { + if ((gettime(HOUR) > 0) && (gettime(HOUR) < guildtime)) { mes "[" + .@name$ + "]"; mes "Yes. You've come at just"; mes "the right time. Remember"; @@ -2834,7 +2834,7 @@ close; } } - if ((gettime(3) - guildtime > 3) && (guildrelay_q == 21) && (BaseJob == Job_Crusader)) { + if ((gettime(HOUR) - guildtime > 3) && (guildrelay_q == 21) && (BaseJob == Job_Crusader)) { mes "[" + .@name$ + "]"; mes "Yes. You've come at just"; mes "the right time. Remember"; diff --git a/npc/quests/newgears/2010_headgears.txt b/npc/quests/newgears/2010_headgears.txt index 844cf5d23..3dfa0b754 100644 --- a/npc/quests/newgears/2010_headgears.txt +++ b/npc/quests/newgears/2010_headgears.txt @@ -1036,7 +1036,7 @@ alberta,120,206,3 script Alonie#Solo_Play_Box 4_M_UMKID,{ mes "My affection-lacked student!"; mes "This is the end of your training!"; next; - if (gettime(3) < 12) { + if (gettime(HOUR) < 12) { if (checkweight(Solo_Play_Box1,1) == 0) { mes "[Alonie]"; mes "Playing outside with this heavy bag?"; diff --git a/npc/quests/partyrelay.txt b/npc/quests/partyrelay.txt index 13ad869c7..0a0c3948c 100644 --- a/npc/quests/partyrelay.txt +++ b/npc/quests/partyrelay.txt @@ -401,7 +401,7 @@ payon,83,327,3 script Gatan#payon::RelayGatan 4_M_04,{ mes "instructions, didn't you?"; close; } - .@relaytime = gettime(3); + .@relaytime = gettime(HOUR); if (party_relay == 28) { mes "[Gatan]"; mes "Say, I don't think it's"; @@ -1837,7 +1837,7 @@ payon,204,221,3 script Bafhail#payon::RelayBafhail 4_M_JOB_BLACKSMITH,{ mes "with any of the other guys?"; close; } - .@relaytime = gettime(3); + .@relaytime = gettime(HOUR); if (party_relay == 30) { mes "[Bafhail]"; mes "Did you give that ticket"; @@ -2471,7 +2471,7 @@ payon,168,314,3 script Lospii#payon::RelayLospii 4_M_KID1,{ mes "have to meet either, but..."; close; } - .@relaytime = gettime(3); + .@relaytime = gettime(HOUR); getmapxy(.@m$,.@x,.@y,1,strnpcinfo(3)); .@juwi = getareausers(.@m$,.@x-8,.@y-8,.@x+8,.@y+8); if (party_relay == 32) { diff --git a/npc/quests/quests_ein.txt b/npc/quests/quests_ein.txt index 706e6d1b7..c5a470507 100644 --- a/npc/quests/quests_ein.txt +++ b/npc/quests/quests_ein.txt @@ -5692,7 +5692,7 @@ OnTouch: mes "Failure to do so will result"; mes "in lockout. Please wait."; next; - .@startseconds = gettime(3)*60*60+gettime(2)*60+gettime(1); + .@startseconds = gettime(HOUR)*60*60+gettime(MINUTE)*60+gettime(SECOND); mes "[Security System]"; switch(rand(1,7)) { case 1: @@ -5761,7 +5761,7 @@ OnTouch: } next; input .@input2$; - .@endtime = gettime(3)*60*60+gettime(2)*60+gettime(1); + .@endtime = gettime(HOUR)*60*60+gettime(MINUTE)*60+gettime(SECOND); .@time = .@endtime-.@startseconds; mes "[Security System]"; if ((.@input1$ == .@word1$) && (.@input2$ == .@word2$)) { diff --git a/npc/quests/quests_lighthalzen.txt b/npc/quests/quests_lighthalzen.txt index 6cadc346a..2636b1f77 100644 --- a/npc/quests/quests_lighthalzen.txt +++ b/npc/quests/quests_lighthalzen.txt @@ -85,7 +85,7 @@ lighthalzen,267,200,3 script Guard#lhz01 4_M_LGTGUARD,{ $@Lhz_Gangster_Alert = 100; close; } - if (gettime(3) >= 22 || gettime(3) < 2) { + if (gettime(HOUR) >= 22 || gettime(HOUR) < 2) { mes "[Guard]"; mes "Zzzz... Zzz..."; mes "ZZZzzzzzzzzzz..."; @@ -152,7 +152,7 @@ lighthalzen,294,223,7 script Guard#lhz02 4_M_LGTGUARD,{ $@Lhz_Gangster_Alert = 100; close; } - if (gettime(3) >= 22 || gettime(3) < 2) { + if (gettime(HOUR) >= 22 || gettime(HOUR) < 2) { mes "[Guard]"; mes "Zzzz... Zzz..."; mes "ZZZzzzzzzzzzz..."; @@ -7378,7 +7378,7 @@ yuno_pre,69,20,4 script Secretary#1 4_F_LGTGIRL,{ mes "Membership Card.^000000"; close; } - if(((gettime(3) > 10) && (gettime(3) < 15)) || ((gettime(3) > 19) && (gettime(3) <= 23))) + if(((gettime(HOUR) > 10) && (gettime(HOUR) < 15)) || ((gettime(HOUR) > 19) && (gettime(HOUR) <= 23))) { mes "^3355FFYou suavely flash"; mes "your ''Secret Wing''"; diff --git a/npc/quests/quests_louyang.txt b/npc/quests/quests_louyang.txt index 4e59e91cd..8d5113cd5 100644 --- a/npc/quests/quests_louyang.txt +++ b/npc/quests/quests_louyang.txt @@ -38,7 +38,7 @@ // Soup Quest :: lou_tre //============================================================ lou_in02,53,174,7 script Employee#1 4_M_CHNMAN,6,62,{ - if (gettime(3) >= 10 && gettime(3) < 22) { + if (gettime(HOUR) >= 10 && gettime(HOUR) < 22) { mes "[Chang Pai]"; mes "Welcome, welcome!"; mes "We are ready to serve you~!"; @@ -51,7 +51,7 @@ lou_in02,53,174,7 script Employee#1 4_M_CHNMAN,6,62,{ OnTouch: if (ch_tre == 2 || ch_tre == 3) { - if (gettime(3) >= 10 && gettime(3) < 14) { + if (gettime(HOUR) >= 10 && gettime(HOUR) < 14) { if (rand(1,10) < 9) { mes "[Chang Pai]"; mes "Wait, who are you?!"; @@ -64,7 +64,7 @@ OnTouch: close; } } - else if (gettime(3) >= 14 && gettime(3) < 17) { + else if (gettime(HOUR) >= 14 && gettime(HOUR) < 17) { if (rand(1,10) < 10) { mes "[Chang Pai]"; mes "Wait, who are you?!"; @@ -77,7 +77,7 @@ OnTouch: close; } } - else if (gettime(3) >= 17 && gettime(3) < 21) { + else if (gettime(HOUR) >= 17 && gettime(HOUR) < 21) { if (rand(1,10) < 6) { mes "[Chang Pai]"; mes "Wait, who are you?!"; @@ -113,7 +113,7 @@ OnTouch: } lou_in02,76,181,3 script Employee#2 4_M_CHNMAN,2,2,{ - if (gettime(3) >= 10 && gettime(3) < 22) { + if (gettime(HOUR) >= 10 && gettime(HOUR) < 22) { mes "[Huang Jia Xian]"; mes "Welcome~"; mes "Sorry for making you wait. If you wish to rest, please go upstairs."; @@ -138,7 +138,7 @@ lou_in02,76,181,3 script Employee#2 4_M_CHNMAN,2,2,{ OnTouch: if (ch_tre == 2 || ch_tre == 3) { - if (gettime(3) >= 10 && gettime(3) < 14) { + if (gettime(HOUR) >= 10 && gettime(HOUR) < 14) { if (rand(1,10) < 9) { mes "[Huang Jia Xian]"; mes "What the...?"; @@ -152,7 +152,7 @@ OnTouch: close; } } - else if (gettime(3) >= 14 && gettime(3) < 17) { + else if (gettime(HOUR) >= 14 && gettime(HOUR) < 17) { if (rand(1,10) < 10) { mes "[Huang Jia Xian]"; mes "What the...?"; @@ -166,7 +166,7 @@ OnTouch: close; } } - else if (gettime(3) >= 17 && gettime(3) < 22) { + else if (gettime(HOUR) >= 17 && gettime(HOUR) < 22) { if (rand(1,10) < 6) { mes "[Huang Jia Xian]"; mes "What the...?"; @@ -203,7 +203,7 @@ OnTouch: } lou_in02,61,175,3 script Employee#3 4_F_CHNWOMAN,2,2,{ - if (gettime(3) >= 10 && gettime(3) < 22) { + if (gettime(HOUR) >= 10 && gettime(HOUR) < 22) { if (ch_tre == 5) { mes "[Ya Hua]"; mes "Welcome, welcome!"; @@ -234,7 +234,7 @@ lou_in02,61,175,3 script Employee#3 4_F_CHNWOMAN,2,2,{ OnTouch: if (ch_tre == 2 || ch_tre == 3) { - if (gettime(3) >= 10 && gettime(3) < 14) { + if (gettime(HOUR) >= 10 && gettime(HOUR) < 14) { if (rand(1,10) < 9) { mes "[Ya Hua]"; mes "What do you think"; @@ -248,7 +248,7 @@ OnTouch: close; } } - else if (gettime(3) >= 14 && gettime(3) < 17) { + else if (gettime(HOUR) >= 14 && gettime(HOUR) < 17) { if (rand(1,10) < 10) { mes "[Ya Hua]"; mes "What do you think"; @@ -262,7 +262,7 @@ OnTouch: close; } } - else if (gettime(3) >= 17 && gettime(3) < 22) { + else if (gettime(HOUR) >= 17 && gettime(HOUR) < 22) { if (rand(1,10) < 6) { mes "[Ya Hua]"; mes "What do you think"; @@ -367,7 +367,7 @@ lou_in02,62,183,3 script Chef#1-2 4_M_CHNCOOK,2,2,{ OnTouch: if (ch_tre == 2 || ch_tre == 3) { - if (gettime(3) >= 10 && gettime(3) < 14) { + if (gettime(HOUR) >= 10 && gettime(HOUR) < 14) { if (rand(1,10) < 9) { mes "[Wang Shi Long]"; mes "Hey, what do you"; @@ -382,7 +382,7 @@ OnTouch: close; } } - else if (gettime(3) >= 14 && gettime(3) < 17) { + else if (gettime(HOUR) >= 14 && gettime(HOUR) < 17) { if (rand(1,10) < 10) { mes "[Wang Shi Long]"; mes "Hey, what do you"; @@ -397,7 +397,7 @@ OnTouch: close; } } - else if (gettime(3) >= 17 && gettime(3) < 22) { + else if (gettime(HOUR) >= 17 && gettime(HOUR) < 22) { if (rand(1,10) < 6) { mes "[Wang Shi Long]"; mes "Hey, what do you"; @@ -720,16 +720,16 @@ lou_in02,50,185,5 script Pot#1 HIDDEN_NPC,{ mes "^3131FFYou take a careful look around."; mes "It wouldn't be wise to steal this now if anyone is watching.^000000"; next; - if (gettime(3) >= 10 && gettime(3) < 14) { + if (gettime(HOUR) >= 10 && gettime(HOUR) < 14) { mes "^3131FFThe restaurant doesn't seem busy right now, so there's only a few employees and customers.^000000"; } - else if (gettime(3) >= 14 && gettime(3) < 17) { + else if (gettime(HOUR) >= 14 && gettime(HOUR) < 17) { mes "^3131FFOnly the restaurant"; mes "employees are around,"; mes "and they busy chatting"; mes "amongst each other.^000000"; } - else if (gettime(3) >= 17 && gettime(3) < 22) { + else if (gettime(HOUR) >= 17 && gettime(HOUR) < 22) { mes "^3131FFThe restaurant is filled"; mes "with customers, and the"; mes "hustle and bustle of the"; @@ -770,7 +770,7 @@ lou_in02,50,185,5 script Pot#1 HIDDEN_NPC,{ mes "^3131FFHowever, it's empty.^000000"; close; } - if (gettime(3) >= 10 && gettime(3) < 22) { + if (gettime(HOUR) >= 10 && gettime(HOUR) < 22) { mes "[Chef]"; mes "Ah...!"; mes "Please, do not"; @@ -792,16 +792,16 @@ lou_in02,49,185,5 script Pot#2 HIDDEN_NPC,{ mes "^3131FFYou take a careful look around."; mes "It wouldn't be wise to steal this now if anyone is watching.^000000"; next; - if (gettime(3) >= 10 && gettime(3) < 14) { + if (gettime(HOUR) >= 10 && gettime(HOUR) < 14) { mes "^3131FFThe restaurant doesn't seem busy right now, so there's only a few employees and customers.^000000"; } - else if (gettime(3) >= 14 && gettime(3) < 17) { + else if (gettime(HOUR) >= 14 && gettime(HOUR) < 17) { mes "^3131FFOnly the restaurant"; mes "employees are around,"; mes "and they busy chatting"; mes "amongst each other.^000000"; } - else if (gettime(3) >= 17 && gettime(3) < 22) { + else if (gettime(HOUR) >= 17 && gettime(HOUR) < 22) { mes "^3131FFThe restaurant is filled"; mes "with customers, and the"; mes "hustle and bustle of the"; @@ -842,7 +842,7 @@ lou_in02,49,185,5 script Pot#2 HIDDEN_NPC,{ mes "an empty pot.^000000"; close; } - if (gettime(3) >= 10 && gettime(3) < 22) { + if (gettime(HOUR) >= 10 && gettime(HOUR) < 22) { mes "[Chef]"; mes "Ah...!"; mes "Please, do not"; @@ -894,7 +894,7 @@ lou_in02,58,183,5 script Chef Assistant#lou1 4_M_CHNMONK,5,5,{ OnTouch: if (ch_tre == 2 || ch_tre == 3) { - if (gettime(3) >= 10 && gettime(3) < 14) { + if (gettime(HOUR) >= 10 && gettime(HOUR) < 14) { if (rand(1,10) < 9) { mes "[Jin Wei Ling]"; mes "Wait! Who are you!"; @@ -908,7 +908,7 @@ OnTouch: close; } } - else if (gettime(3) >= 14 && gettime(3) < 17) { + else if (gettime(HOUR) >= 14 && gettime(HOUR) < 17) { if (rand(1,10) < 10) { mes "[Jin Wei Ling]"; mes "Wait! Who are you!"; @@ -922,7 +922,7 @@ OnTouch: close; } } - else if (gettime(3) >= 17 && gettime(3) < 22) { + else if (gettime(HOUR) >= 17 && gettime(HOUR) < 22) { if (rand(1,10) < 6) { mes "[Jin Wei Ling]"; mes "Wait! Who are you!"; diff --git a/npc/quests/quests_moscovia.txt b/npc/quests/quests_moscovia.txt index 22226158e..caedd20b6 100644 --- a/npc/quests/quests_moscovia.txt +++ b/npc/quests/quests_moscovia.txt @@ -752,7 +752,7 @@ moscovia,135,49,5 script Mr. Ibanoff#npc 4_M_RUSBALD,{ mos_whale_edq = 19; close; } - if ((gettime(3) >= 0 && gettime(3) < 3) || (gettime(3) >= 6 && gettime(3) < 9) || (gettime(3) >= 12 && gettime(3) < 15) || (gettime(3) >= 18 && gettime(3) < 21)) { + if ((gettime(HOUR) >= 0 && gettime(HOUR) < 3) || (gettime(HOUR) >= 6 && gettime(HOUR) < 9) || (gettime(HOUR) >= 12 && gettime(HOUR) < 15) || (gettime(HOUR) >= 18 && gettime(HOUR) < 21)) { mes "[Mr. Ibanoff]"; mes "Hmm. It's not a bad time."; mes "We should hurry up"; @@ -8676,7 +8676,7 @@ OnTouch: end; } if (rhea_rus_hair == 2) { - if (gettime(3)>=23 || gettime(3)<=5) { + if (gettime(HOUR)>=23 || gettime(HOUR)<=5) { mes "- Splash !! -"; next; if (countitem(523) > 0) { @@ -8701,7 +8701,7 @@ OnTouch: mes "And please, tell him to stop suffering and to be happy. This is my request."; close; } else if (rhea_rus_hair == 7) { - if (gettime(3)>=23 || gettime(3)<=5) { + if (gettime(HOUR)>=23 || gettime(HOUR)<=5) { mes "- Splash !! -"; next; if (countitem(523) > 0) { @@ -9520,11 +9520,11 @@ mosk_fild02,243,270,0 script Marozka#rus31 4_M_LGTGRAND,{ mes "[Marozka]"; mes "I will begin making it now... let me see... Could you please come back to me in an hour?"; rhea_rus_quiz = 4; - rus_time01 = gettime(3); - rus_time02 = gettime(4); + rus_time01 = gettime(HOUR); + rus_time02 = gettime(WEEKDAY); close; } else if (rhea_rus_quiz == 4) { - if (rus_time01 < gettime(3) || rus_time02 < gettime(4) || (rus_time02 == 6 && gettime(4) == 0)) { + if (rus_time01 < gettime(HOUR) || rus_time02 < gettime(WEEKDAY) || (rus_time02 == 6 && gettime(WEEKDAY) == SUNDAY)) { mes "[Marozka]"; mes "Ah, just in time."; mes "I have finally finished making the 'Golden Thread'. Just wait one more second and it'll be ready."; diff --git a/npc/quests/quests_umbala.txt b/npc/quests/quests_umbala.txt index 0ce3aba39..7010ba494 100644 --- a/npc/quests/quests_umbala.txt +++ b/npc/quests/quests_umbala.txt @@ -1126,7 +1126,7 @@ um_in,101,73,3 script Wainatan 4_F_UMWOMAN,{ close; } if (um_wind == 1) { - if (gettime(3) > 18) { + if (gettime(HOUR) > 18) { um_wind = 2; emotion e_an; mes "[Wainatan]"; @@ -1170,7 +1170,7 @@ um_in,94,123,5 script Bertztan 4_F_UMWOMAN,{ close; } if (um_wind == 2) { - if (gettime(3) > 18) { + if (gettime(HOUR) > 18) { um_wind = 3; emotion e_an; mes "[Bertztan]"; @@ -1222,7 +1222,7 @@ umbala,145,217,3 script Chabimatan 4_F_UMWOMAN,{ close; } if (um_wind == 3) { - if (gettime(3) > 18) { + if (gettime(HOUR) > 18) { um_wind = 4; emotion e_an; mes "[Chabimatan]"; diff --git a/npc/quests/the_sign_quest.txt b/npc/quests/the_sign_quest.txt index b119eb95b..48872392e 100644 --- a/npc/quests/the_sign_quest.txt +++ b/npc/quests/the_sign_quest.txt @@ -553,7 +553,7 @@ prt_in,227,45,0 script Archeologist#sign 1_M_SIGN1,{ mes "this and come back later~"; delitem 7314,1; //The_Sign sign_q = 138; - .@stime_s = gettime(3); + .@stime_s = gettime(HOUR); if (.@stime_s < 1) sign_sq = 1; else if (.@stime_s < 3) sign_sq = 2; else if (.@stime_s < 5) sign_sq = 3; @@ -568,7 +568,7 @@ prt_in,227,45,0 script Archeologist#sign 1_M_SIGN1,{ else sign_sq = 12; } else if (sign_q == 138) { - .@stime_s1 = gettime(3); + .@stime_s1 = gettime(HOUR); if (.@stime_s1 < 1) { if (sign_sq == 11) { .@pass_s = 1; @@ -2567,7 +2567,7 @@ aldeba_in,139,103,5 script Monograph#sign HIDDEN_NPC,{ aldeba_in,155,101,3 script Sir Jore#sign 1_M_SIGNALCHE,7,7,{ callfunc "F_UpdateSignVars"; - if ((gettime(3) > 16) && (gettime(3) < 22)) { + if ((gettime(HOUR) > 16) && (gettime(HOUR) < 22)) { if (sign_q == 15) { mes "["+ strcharinfo(0) +"]"; mes "Excuse me..."; @@ -2858,7 +2858,7 @@ aldeba_in,155,101,3 script Sir Jore#sign 1_M_SIGNALCHE,7,7,{ close; } } - else if ((gettime(3) > 6) && (gettime(3) < 17)) { + else if ((gettime(HOUR) > 6) && (gettime(HOUR) < 17)) { mes "^3355FFYou find a tense man"; mes "holding test tubes between"; mes "his fingers, standing in a pile"; @@ -2938,7 +2938,7 @@ OnTouch: aldeba_in,156,118,4 script Piru Piru#sign 8_F,{ callfunc "F_UpdateSignVars"; mes "[Piru Piru]"; - if ((gettime(3) >= 12) && (gettime(3) <= 24)) { //235959 + if ((gettime(HOUR) >= 12) && (gettime(HOUR) <= 24)) { //235959 if (sign_q == 17) { emotion e_sob; mes "Oh, I'm sooo tired~"; @@ -3018,7 +3018,7 @@ aldeba_in,156,118,4 script Piru Piru#sign 8_F,{ close; } } - else if ((gettime(3) >= 6) && (gettime(3) < 12)) { + else if ((gettime(HOUR) >= 6) && (gettime(HOUR) < 12)) { mes "Everyday we study and"; mes "take notes and test and"; mes "experiment and record"; @@ -4533,7 +4533,7 @@ cmd_in02,88,51,4 script Strange Guy#sign 1_M_SIGNART,{ } } else if (sign_q == 27) { - if ((gettime(3) > 18) && (gettime(3) < 23)) { + if ((gettime(HOUR) > 18) && (gettime(HOUR) < 23)) { mes "Nice, you're here"; mes "just in time. Well,"; mes "all that matters is that"; @@ -7550,7 +7550,7 @@ mjo_dun02,88,295,4 script Flaming Spirit Man 4_M_03,{ mes "But I'll do my best for you."; delitem 7314,1; //The_Sign sign_q = 140; - .@stime_e = gettime(3); + .@stime_e = gettime(HOUR); if (.@stime_e < 2) sign_sq = 1; else if (.@stime_e < 4) sign_sq = 2; else if (.@stime_e < 6) sign_sq = 3; @@ -7566,7 +7566,7 @@ mjo_dun02,88,295,4 script Flaming Spirit Man 4_M_03,{ close; } else if (sign_q == 140) { - .@stime_e1 = gettime(3); + .@stime_e1 = gettime(HOUR); if (.@stime_e1 < 2) { if (sign_sq == 11) { .@pass_s1 = 1; diff --git a/npc/re/quests/quests_mora.txt b/npc/re/quests/quests_mora.txt index 55a60de98..6bfb908d1 100644 --- a/npc/re/quests/quests_mora.txt +++ b/npc/re/quests/quests_mora.txt @@ -2519,7 +2519,7 @@ mora,31,138,6 script Raffle Researcher#ep14 4_M_RAFLE_OR,{ close; } // NPC disabled from 12am ~ 5am. - if (gettime(3) >= 0 && gettime(3) < 5) { + if (gettime(HOUR) >= 0 && gettime(HOUR) < 5) { if (ep14_1_muk > 0) { mes "[Raffle Researcher]"; mes "Don't humans sleep?"; diff --git a/npc/re/woe-fe/invest_main.txt b/npc/re/woe-fe/invest_main.txt index 9ed49ce7a..88e88d385 100644 --- a/npc/re/woe-fe/invest_main.txt +++ b/npc/re/woe-fe/invest_main.txt @@ -62,31 +62,31 @@ $@vfund_*_extra - script #invest_timer -1,{ OnClock0000: // Open investments on Wed (1 hour after WoE) - if (gettime(4) == 3 && !agitcheck()) { + if (gettime(WEEKDAY) == WEDNESDAY && !agitcheck()) { $2011_agit_invest = 1; donpcevent "#fund_master::OnInvest_start"; } end; OnClock1200: // Close investments on Fri (60 hours after investments open) - if (gettime(4) == 5 && !agitcheck()) { + if (gettime(WEEKDAY) == FRIDAY && !agitcheck()) { $2011_agit_invest = 2; donpcevent "#fund_master::OnInvest_stop"; } end; OnClock1235: // Open dungeons on Fri (at least 31 minutes after investments close) - if (gettime(4) == 5 && !agitcheck()) + if (gettime(WEEKDAY) == FRIDAY && !agitcheck()) donpcevent "#fund_master::OnResult"; end; OnClock2000: // Close dungeons on Tues (1 hour before WoE) - if (gettime(4) == 2) + if (gettime(WEEKDAY) == TUESDAY) donpcevent "#fund_master::OnReset"; end; } function script F_Invest_Status { - .@day = gettime(4); - .@hour = gettime(3); - .@minute = gettime(2); + .@day = gettime(WEEKDAY); + .@hour = gettime(HOUR); + .@minute = gettime(MINUTE); // Inactive. if (agitcheck()) -- cgit v1.2.3-60-g2f50