summaryrefslogtreecommitdiff
path: root/npc/003-1/events.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-04-07 18:24:03 -0300
committerJesusaves <cpntb1@ymail.com>2018-04-07 18:24:03 -0300
commitfcd5b32ff5bd8f0eb7d5d678078913898e42cda6 (patch)
tree082628b151618551e1b9de08abbcc4bfae9b23fc /npc/003-1/events.txt
parent80c24b2e854ccbc2b52735f5bc9146f5e9a8de44 (diff)
downloadserverdata-fcd5b32ff5bd8f0eb7d5d678078913898e42cda6.tar.gz
serverdata-fcd5b32ff5bd8f0eb7d5d678078913898e42cda6.tar.bz2
serverdata-fcd5b32ff5bd8f0eb7d5d678078913898e42cda6.tar.xz
serverdata-fcd5b32ff5bd8f0eb7d5d678078913898e42cda6.zip
Add a Lilica for when easter is over on Tulimshar (must be manually enabled)
Diffstat (limited to 'npc/003-1/events.txt')
-rw-r--r--npc/003-1/events.txt52
1 files changed, 52 insertions, 0 deletions
diff --git a/npc/003-1/events.txt b/npc/003-1/events.txt
new file mode 100644
index 000000000..0d7bebbaf
--- /dev/null
+++ b/npc/003-1/events.txt
@@ -0,0 +1,52 @@
+// TMW2 scripts.
+// Author:
+// Jesusalva
+// Description:
+// The NPCs on this file are for when events end. Must be manually enabled.
+
+003-1,47,53,0 script Lilica#final NPC_EASTER,{
+ mesn;
+ mesq l("Easter is over! I am the last chance to get rid of eggs!!");
+
+ menu
+ l("Trade Silver Eggs"), L_Silver,
+ l("Trade Golden Eggs"), L_Golden,
+ l("View LeaderBoard"), L_Leader,
+ l("Thanks Lilica."), -;
+ close;
+
+L_Silver:
+ openshop "#eastershop1";
+ closedialog;
+ close;
+
+L_Golden:
+ openshop "#eastershop2";
+ closedialog;
+ close;
+
+L_Leader:
+ .@nb = query_sql("SELECT c.name, i.amount FROM `inventory` AS i, `char` AS c WHERE i.nameid=834 AND i.char_id=c.char_id ORDER BY i.amount DESC LIMIT 10", .@name$, .@value);
+
+ mesn l("Players who still have Golden Eggs");
+ mes("1."+.@name$[0]+" ("+.@value[0]+")");
+ mes("2."+.@name$[1]+" ("+.@value[1]+")");
+ mes("3."+.@name$[2]+" ("+.@value[2]+")");
+ mes("4."+.@name$[3]+" ("+.@value[3]+")");
+ mes("5."+.@name$[4]+" ("+.@value[4]+")");
+ mes("6."+.@name$[5]+" ("+.@value[5]+")");
+ mes("7."+.@name$[6]+" ("+.@value[6]+")");
+ mes("8."+.@name$[7]+" ("+.@value[7]+")");
+ mes("9."+.@name$[8]+" ("+.@value[8]+")");
+ mes("10."+.@name$[9]+" ("+.@value[9]+")");
+ close;
+
+OnInit:
+ .sex = G_OTHER;
+ .distance = 5;
+
+ disablenpc(.name$);
+ end;
+}
+
+