summaryrefslogtreecommitdiff
path: root/npc/002-3/nard.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/002-3/nard.txt')
-rw-r--r--npc/002-3/nard.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/npc/002-3/nard.txt b/npc/002-3/nard.txt
index 931a5b587..a72e9223c 100644
--- a/npc/002-3/nard.txt
+++ b/npc/002-3/nard.txt
@@ -65,6 +65,7 @@ L_MenuQuest:
mesc b(l(".:: Main Quest 1-3 ::.")), 3;
msObjective(Zeny >= .@price, l("* Collect @@/@@ GP", Zeny, .@price));
+L_Referral:
// Referral program
if (#REFERRAL_PROG == 0 && $REFERRAL_ENABLED) {
next;
@@ -77,12 +78,13 @@ L_MenuQuest:
next;
mesn l("TMW2 Staff");
mesc l("Did you came here by someone advise? If yes, write their name down here!"), 3;
+ next;
mesc l("If this is not the case, just click on \"Send\"."), 3;
.@ref$="";
do
{
input .@ref$;
- debugmes "Hercules is bugged: "+.@ref$;
+ //debugmes "Player invite: "+.@ref$;
mes "";
if (.@ref$ != "") {
.@ref=gf_accid(strip(.@ref$));
@@ -180,9 +182,14 @@ L_NotYet:
mes "";
select
rif(Zeny >= .@price, l("I've brought the money you've asked for.")),
+ rif(#REFERRAL_PROG == 0 && $REFERRAL_ENABLED && BaseLevel <= 10,
+ l("I forgot to say earlier, but indeed, I was invited by someone!")),
l("Please excuse me, captain.");
mes "";
+ if (@menu == 2)
+ goto L_Referral;
+
mesn;
if (Zeny >= .@price) {
mesq l("Ten, fifty, thousand... Yep, this is the amount I've asked for.");