diff options
-rw-r--r-- | npc/003-1/shop.txt | 37 | ||||
-rw-r--r-- | npc/functions/mobpoint.txt | 17 |
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 |