summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicksha <ms-shaman@gmx.de>2020-02-28 12:46:12 +0000
committerMicksha <ms-shaman@gmx.de>2020-02-28 12:46:12 +0000
commit08b256657e21adff546d4c366335d0cd8f216249 (patch)
tree8156e0170e1dd806e7af810ed33271bbf2353e60
parent499bf9ade5717b0115392a0e230a723d185feb02 (diff)
parent98af38ecd908e8f05f596cf155e454f71c8febba (diff)
downloadserverdata-08b256657e21adff546d4c366335d0cd8f216249.tar.gz
serverdata-08b256657e21adff546d4c366335d0cd8f216249.tar.bz2
serverdata-08b256657e21adff546d4c366335d0cd8f216249.tar.xz
serverdata-08b256657e21adff546d4c366335d0cd8f216249.zip
Merge branch 'jesusalva/copter' into 'master'
Beanie Copter Quest, by @WildX request See merge request evol/serverdata!223
-rw-r--r--db/re/item_db.conf21
-rw-r--r--npc/008-1/milly.txt11
-rw-r--r--npc/functions/global_event_handler.txt2
3 files changed, 34 insertions, 0 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf
index 4c4b42e0..858b4d25 100644
--- a/db/re/item_db.conf
+++ b/db/re/item_db.conf
@@ -3035,6 +3035,27 @@ item_db: (
noselltonpc: true
}
},
+{
+ Id: 2924
+ AegisName: "BeanieCopter"
+ Name: "Beanie Copter"
+ Type: "IT_ARMOR"
+ Buy: 950
+ Sell: 220
+ Weight: 20
+ Def: 4
+ Slots: 0
+ Loc: "EQP_HEAD_TOP"
+ WeaponLv: 0
+ EquipLv: 3
+ Refine: false
+ ViewSprite: 2924
+ BindOnEquip: false
+ Trade: {
+ nodrop: true
+ noselltonpc: true
+ }
+},
// Scarfs
{
Id: 3200
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: