From 98af38ecd908e8f05f596cf155e454f71c8febba Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 28 Jan 2020 19:47:20 -0300 Subject: Beanie Copter Quest, by @WildX request --- npc/008-1/milly.txt | 11 +++++++++++ npc/functions/global_event_handler.txt | 2 ++ 2 files changed, 13 insertions(+) (limited to 'npc') diff --git a/npc/008-1/milly.txt b/npc/008-1/milly.txt index 0ea17a1c..1ca72cee 100644 --- a/npc/008-1/milly.txt +++ b/npc/008-1/milly.txt @@ -25,6 +25,17 @@ // Description: // robberies in hurnscald +// Give player a Beanie Copter after 1,000,000 kills (server-wide) +function script GetBeanieCopter { + // Double-check against possible malpractices + if ($MONSTERS_KILLED % 1000000 == 0) { + announce(sprintf("Congratulations, \"%s\", on killing the %sth monster!.", strcharinfo(0), format_number($MONSTERS_KILLED)), bc_all); + getitem BeanieCopter, 1; + dispbottom l("How strange, this monster dropped a very rare hat!"); + } + return; +} + 008-1,282,114,0 script Milly NPC_GIRL_MILLY,{ // TODO: make the actual beanie copter quest after those are finished: diff --git a/npc/functions/global_event_handler.txt b/npc/functions/global_event_handler.txt index 35f53cfc..c66637ef 100644 --- a/npc/functions/global_event_handler.txt +++ b/npc/functions/global_event_handler.txt @@ -48,6 +48,8 @@ OnNPCKillEvent: $MONSTERS_KILLED+=1; MONSTERS_KILLED+=1; callfunc("EnoraKills"); + if ($MONSTERS_KILLED % 1000000 == 0) + callfunc("GetBeanieCopter"); end; OnPCKillEvent: -- cgit v1.2.3-70-g09d2