summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorSaulc <lucashelaine14@gmail.com>2018-02-13 19:19:25 +0100
committerSaulc <lucashelaine14@gmail.com>2018-02-13 19:19:25 +0100
commita78a3615bbc7c15f3bf74bc1554cec9076948db4 (patch)
tree786fd9141c3c9520f119a14ea6771e60e9a01cb1 /npc
parent5556d20dd017798acc6b8d4c7caca5e8192bdbe6 (diff)
downloadserverdata-a78a3615bbc7c15f3bf74bc1554cec9076948db4.tar.gz
serverdata-a78a3615bbc7c15f3bf74bc1554cec9076948db4.tar.bz2
serverdata-a78a3615bbc7c15f3bf74bc1554cec9076948db4.tar.xz
serverdata-a78a3615bbc7c15f3bf74bc1554cec9076948db4.zip
initial commit for mobpoints
Diffstat (limited to 'npc')
-rw-r--r--npc/003-1/shop.txt37
-rw-r--r--npc/functions/mobpoint.txt17
2 files changed, 54 insertions, 0 deletions
diff --git a/npc/003-1/shop.txt b/npc/003-1/shop.txt
new file mode 100644
index 000000000..bb5dd0e25
--- /dev/null
+++ b/npc/003-1/shop.txt
@@ -0,0 +1,37 @@
+// Evol scripts.
+// Author:
+// Reid
+// Description:
+// Light Armor shop keeper.
+// Variables:
+// ArtisQuests_Enora
+// Values:
+// 0 Default.
+// 1 BlackSmith quest delivered.
+// 2 Chelios Quest given.
+// 3 Chelios Quest done.
+// 4 BlackSmith gave the sword.
+// 5 Light Armor Shop quest delivered.
+// 6 Light Armor Shop gave the cloths.
+
+005-4,30,37,0 trader Shop NPC_NO_SPRITE,{
+
+OnInit:
+ tradertype(NST_MARKET);
+
+ sellitem RoundLeatherShield, -1, 3;
+ sellitem Knife, -1, 5;
+ sellitem TolchiArrow, -1, 30000;
+ sellitem LousyMoccasins, -1, 20;
+
+ .sex = G_OTHER;
+ .distance = 3;
+ end;
+
+OnClock0000:
+ restoreshopitem RoundLeatherShield, 3;
+ restoreshopitem Knife, 5;
+ restoreshopitem TolchiArrow, 30000;
+ restoreshopitem LousyMoccasins, 20;
+}
+
diff --git a/npc/functions/mobpoint.txt b/npc/functions/mobpoint.txt
new file mode 100644
index 000000000..cef0132ea
--- /dev/null
+++ b/npc/functions/mobpoint.txt
@@ -0,0 +1,17 @@
+// script from TMW, change by Crazyfefe
+
+function script mobpoint {
+ if (killedrid < 1002) goto L_Return;
+
+ setarray @points,
+ 5, //Piou
+ 10 //Piousse
+ ;
+
+ if (getq(MPQUEST) == 1)
+ set Mobpt, Mobpt + @points[killedrid - 1002];
+
+L_Return:
+ set @value, 0;
+ return;
+} \ No newline at end of file