summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/014-4/kamelot.txt11
-rw-r--r--npc/functions/aurora.txt9
2 files changed, 13 insertions, 7 deletions
diff --git a/npc/014-4/kamelot.txt b/npc/014-4/kamelot.txt
index 760b609a8..090ad6501 100644
--- a/npc/014-4/kamelot.txt
+++ b/npc/014-4/kamelot.txt
@@ -61,16 +61,17 @@ OnTouch:
end;
}
- // Aurora Event Framework Handler
- if ($EVENT$ == "Kamelot") {
- FYE_Kamelot();
- }
-
// Save your GID for reference
.@g=getcharid(2);
// Quest already started
if ($KAMELOT_QUEST[.@g] & 1) {
+
+ // Aurora Event Framework Handler
+ if ($EVENT$ == "Kamelot") {
+ FYE_Kamelot();
+ }
+
// Quest started but Cooldown expired
// Needs to cleanup - wipe all variables
if ($KAMELOT_COOLDOWN[.@g] < gettimeparam(GETTIME_WEEKDAY)) {
diff --git a/npc/functions/aurora.txt b/npc/functions/aurora.txt
index 275bbc8dd..1e100f3cd 100644
--- a/npc/functions/aurora.txt
+++ b/npc/functions/aurora.txt
@@ -147,7 +147,11 @@ function script FYE_Kamelot {
}
mesc l("Should we?");
next;
- if (askyesno() == ASK_NO)
+ askyesno();
+ closeclientdialog();
+
+ // Not going? Spoilsport
+ if (@menu == ASK_NO)
return false;
// Someone began while you waited
@@ -155,11 +159,12 @@ function script FYE_Kamelot {
return true;
// Begin
- callfunc("KamelotCleanup", .@g);
+ //callfunc("KamelotCleanup", .@g); // Not needed
$KAMELOT_COOLDOWN[.@g] = 0;
$@FYE_KAMELOT[.@g] = gettimeparam(GETTIME_DAYOFMONTH);
mesc l("Have fun!");
next;
+ closeclientdialog();
return true;
}
return false;