summaryrefslogtreecommitdiff
path: root/npc/001-4
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-03-19 19:33:14 -0300
committerJesusaves <cpntb1@ymail.com>2018-03-19 19:34:25 -0300
commit192538017ddde295daefe280e55ab61c59e3cdb4 (patch)
tree3da02b2bd5c63f48de1c0486303e4e8be2497835 /npc/001-4
parent65cbcddb35a6922adc1e8adaf5d2e9778fb97f3f (diff)
downloadserverdata-192538017ddde295daefe280e55ab61c59e3cdb4.tar.gz
serverdata-192538017ddde295daefe280e55ab61c59e3cdb4.tar.bz2
serverdata-192538017ddde295daefe280e55ab61c59e3cdb4.tar.xz
serverdata-192538017ddde295daefe280e55ab61c59e3cdb4.zip
Initial version of Easter NPC. Better than nothing, testing only.
Diffstat (limited to 'npc/001-4')
-rw-r--r--npc/001-4/_import.txt1
-rw-r--r--npc/001-4/lilica.txt76
2 files changed, 77 insertions, 0 deletions
diff --git a/npc/001-4/_import.txt b/npc/001-4/_import.txt
index 609e87f62..ec47c3be9 100644
--- a/npc/001-4/_import.txt
+++ b/npc/001-4/_import.txt
@@ -2,6 +2,7 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/001-4/_mobs.txt",
"npc/001-4/event_soulmenhir.txt",
+"npc/001-4/lilica.txt",
"npc/001-4/mapflags.txt",
"npc/001-4/mushroom.txt",
"npc/001-4/traps.txt",
diff --git a/npc/001-4/lilica.txt b/npc/001-4/lilica.txt
new file mode 100644
index 000000000..fca04ac70
--- /dev/null
+++ b/npc/001-4/lilica.txt
@@ -0,0 +1,76 @@
+// TMW2 scripts.
+// Author:
+// Jesusalva
+// Description:
+// Lilica is TMW-BR Scary Scary Easter Bunny and will help your trading stuff.
+
+001-4,139,151,0 script Lilica#easter NPC_EASTER,{
+ mesn;
+ mesq lg("Ah, traveller! I am Lilica the Scary Bunny! I exchange many @@ for neat rewards!","Ah, traveller! I am Lilica the Scary Bunny! I exchange many @@ for neat rewards!", getitemlink(SilverEasteregg));
+ next;
+ mesn;
+ mesq l("Golden Eggs are used for the grand collectioner prize. Ah, I love Easter! I loooooooove it!");
+
+ menu
+ l("Scary..........."), -,
+ l("Trade Silver Eggs"), L_Silver,
+ l("View LeaderBoard"), L_Leader;
+ close;
+
+L_Silver:
+ openshop "#eastershop1";
+ 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);
+
+ 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;
+ end;
+}
+
+// Silver Easter Egg exchange.
+001-4,139,151,0 trader #eastershop1 NPC_HIDDEN,{
+ end;
+
+OnInit:
+ tradertype(NST_CUSTOM);
+
+ // Rare Items
+ sellitem BunnyEars,3000;
+
+ sellitem GoldenEasteregg,50;
+
+ sellitem StrangeCoin,20;
+ sellitem EasterEgg,5;
+ end;
+
+OnCountFunds:
+ setcurrency(countitem(SilverEasteregg));
+ end;
+
+OnPayFunds:
+ if( countitem(SilverEasteregg) < @price )
+ end;
+ delitem SilverEasteregg,@price;
+ purchaseok();
+ end;
+
+
+}
+