diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-07-07 20:36:00 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-07-07 20:36:00 -0300 |
commit | 6967b9e0b63d19141d4f59b7933a960ac81916d0 (patch) | |
tree | 8ecd9cd2461f3598cb7faece71eb77162aa4ef2a /npc/annuals/fathertime.txt | |
parent | 9877fd4ad81120af8e63e96d5d429092014dc017 (diff) | |
parent | 046c659193e1ca8bd13478678d1277df8bf9395c (diff) | |
download | serverdata-6967b9e0b63d19141d4f59b7933a960ac81916d0.tar.gz serverdata-6967b9e0b63d19141d4f59b7933a960ac81916d0.tar.bz2 serverdata-6967b9e0b63d19141d4f59b7933a960ac81916d0.tar.xz serverdata-6967b9e0b63d19141d4f59b7933a960ac81916d0.zip |
Merge branch 'master' into legacy
Override all files with 'master' version.
This version is meant to preserve git history as requested by bjorn.
Diffstat (limited to 'npc/annuals/fathertime.txt')
-rw-r--r-- | npc/annuals/fathertime.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/npc/annuals/fathertime.txt b/npc/annuals/fathertime.txt new file mode 100644 index 00000000..6a92e7dc --- /dev/null +++ b/npc/annuals/fathertime.txt @@ -0,0 +1,32 @@ +017-9,26,28,0 script #HolidayConfig NPC32767,{ + end; + +OnInit: + if (debug >= 2) end; + donpcevent strnpcinfo(0) + "::OnTimer20000"; + end; + +OnClock0000: +OnTimer20000: + donpcevent "#XmasConfig::OnCommandRestartQuest"; + donpcevent "#HalloweenConfig::OnCommandRestartQuest"; + donpcevent "Easter Eggs::OnCheckEaster"; + //initnpctimer; + end; +} + +function script TMWBirthday { + if (gettime(GETTIME_MONTH) != APRIL) return; + if (gettime(GETTIME_DAYOFMONTH) != 11) return; + .@age=gettime(GETTIME_YEAR)-2004; + .@end=(.@age % 10); + .@mo$=(.@end == 1 ? "st" : (.@end == 2 ? "nd" : (.@end == 3 ? "rd" : "th"))); + dispbottom l("It is TMW's %d%s birthday!", .@age, .@mo$); + // Handle gifts + if (#TMWBDAY < .@age) { + #TMWBDAY=.@age; + getitem TMWBirthdayGift, 1; + } + return; +} + |