summaryrefslogtreecommitdiff
path: root/npc/005-1/vincent.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/005-1/vincent.txt')
-rw-r--r--npc/005-1/vincent.txt16
1 files changed, 10 insertions, 6 deletions
diff --git a/npc/005-1/vincent.txt b/npc/005-1/vincent.txt
index 726864905..e23ed7b5f 100644
--- a/npc/005-1/vincent.txt
+++ b/npc/005-1/vincent.txt
@@ -12,9 +12,10 @@
speech S_LAST_BLANK_LINE,
l("I am making a figurin with Bug legs."),
- lg("Be a friend and bring me @@ @@.", "Be a friend and bring me @@ @@.", .LegsCount, getitemlink(.LegsID));
+ lg("Be a friend and bring me @@ @@.", "Be a friend and bring me @@ @@.", .LegsCount, getitemlink(BugLeg));
switch (select(l("Ok, I'll be back in no time."),
+ rif(countitem(BugLeg) >= .LegsCount, l("I have them here already.")),
l("Sorry, I'm doing other things at the moment.")))
{
case 1:
@@ -23,25 +24,29 @@
l("Thank you. I'll wait here.");
close;
case 2:
+ setq CandorQuest_Vincent, 1;
+ goto L_CheckItems;
+ case 3:
speech S_FIRST_BLANK_LINE,
- l("But I'm almost out of @@...", getitemlink(.LegsID));
+ l("But I'm almost out of @@...", getitemlink(BugLeg));
close;
}
L_CheckItems:
- if (countitem(.LegsID) < .LegsCount)
+ if (countitem(BugLeg) < .LegsCount)
{
speech
l("Sorry, but you don't have what I need."),
- l("I need @@ @@.", .LegsCount, getitemlink(.LegsID));
+ l("I need @@ @@.", .LegsCount, getitemlink(BugLeg));
close;
}
speech
+ l("I can't believe it! You've brought me @@ @@!", .LegsCount, getitemlink(BugLeg)),
l("That's exactly what I needed!"),
l("I will be forever grateful!");
- delitem .LegsID, .LegsCount;
+ delitem BugLeg, .LegsCount;
getexp 15, 5;
Zeny = Zeny + 850;
message strcharinfo(0), l("You receive @@ GP!", 850);
@@ -63,7 +68,6 @@ OnInit:
setunitdata(.@npcId, UDT_HAIRSTYLE, 25);
setunitdata(.@npcId, UDT_HAIRCOLOR, 4);
- .LegsID = BugLeg;
.LegsCount = 10;
.sex = G_MALE;