From a78a3615bbc7c15f3bf74bc1554cec9076948db4 Mon Sep 17 00:00:00 2001 From: Saulc Date: Tue, 13 Feb 2018 19:19:25 +0100 Subject: initial commit for mobpoints --- npc/003-1/shop.txt | 37 +++++++++++++++++++++++++++++++++++++ npc/functions/mobpoint.txt | 17 +++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 npc/003-1/shop.txt create mode 100644 npc/functions/mobpoint.txt (limited to 'npc') 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 -- cgit v1.2.3-70-g09d2