summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-22 10:51:15 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-22 10:51:15 -0300
commit4a2220ac665866c1bc78ae0953355d35c69808d1 (patch)
treee2784c6e78a6b43840f2ccf48024782978725a15
parent4d9de8fffeca602d91c9116f5c9d2ecf476c13f0 (diff)
downloadserverdata-4a2220ac665866c1bc78ae0953355d35c69808d1.tar.gz
serverdata-4a2220ac665866c1bc78ae0953355d35c69808d1.tar.bz2
serverdata-4a2220ac665866c1bc78ae0953355d35c69808d1.tar.xz
serverdata-4a2220ac665866c1bc78ae0953355d35c69808d1.zip
Melina's beer, and her awesome logic
-rw-r--r--maps/re/001-1.mcachebin2070 -> 2071 bytes
-rw-r--r--npc/012-2/_import.txt1
-rw-r--r--npc/012-2/melina.txt60
3 files changed, 61 insertions, 0 deletions
diff --git a/maps/re/001-1.mcache b/maps/re/001-1.mcache
index d7a55c606..8fe122918 100644
--- a/maps/re/001-1.mcache
+++ b/maps/re/001-1.mcache
Binary files differ
diff --git a/npc/012-2/_import.txt b/npc/012-2/_import.txt
index 84133ceed..aa4687c90 100644
--- a/npc/012-2/_import.txt
+++ b/npc/012-2/_import.txt
@@ -2,3 +2,4 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/012-2/_warps.txt",
"npc/012-2/helena.txt",
+"npc/012-2/melina.txt",
diff --git a/npc/012-2/melina.txt b/npc/012-2/melina.txt
new file mode 100644
index 000000000..7690283cc
--- /dev/null
+++ b/npc/012-2/melina.txt
@@ -0,0 +1,60 @@
+// TMW-2 Script
+// Author:
+// Jesusalva
+// Description:
+// Sells beer
+// Variables:
+// $HELENA_ST
+// Controls stock and beer prices
+
+012-2,54,43,0 script Melina NPC_FEMALE,{
+
+hello;
+shop .name$;
+close;
+
+OnTimer1000:
+ domovestep;
+
+OnInit:
+ .@npcId = getnpcid(0, .name$);
+ setunitdata(.@npcId, UDT_HEADTOP, NPCEyes);
+ setunitdata(.@npcId, UDT_HEADMIDDLE, );
+ setunitdata(.@npcId, UDT_HEADBOTTOM, CottonSkirt);
+ setunitdata(.@npcId, UDT_WEAPON, AssassinBoots);
+ setunitdata(.@npcId, UDT_HAIRSTYLE, 20);
+ setunitdata(.@npcId, UDT_HAIRCOLOR, 4);
+
+ tradertype(NST_MARKET);
+ if ($HELENA_ST < 700)
+ sellitem Beer, 500-($HELENA_ST/2), ($HELENA_ST/3)+1;
+ else
+ sellitem Beer, 150, ($HELENA_ST/3)+1;
+
+ initpath "move", 54, 43,
+ "dir", DOWN, 0,
+ "wait", 60, 0,
+ "move", 43, 43,
+ "dir", DOWN, 0,
+ "wait", 60, 0,
+ "move", 48, 45,
+ "dir", DOWN, 0,
+ "wait", 60, 0,
+ "move", 58, 42,
+ "dir", DOWN, 0,
+ "wait", 60, 0,
+ "move", 35, 43,
+ "dir", DOWN, 0,
+ "wait", 30, 0;
+ initialmove;
+ initnpctimer;
+
+ .sex = G_FEMALE;
+ .distance = 5;
+ end;
+
+OnClock2358:
+ restoreshopitem Beer, 500-($HELENA_ST/2), ($HELENA_ST/3)+1;
+ end;
+
+}