summaryrefslogtreecommitdiff
path: root/npc/005-1/ayasha.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/005-1/ayasha.txt')
-rw-r--r--npc/005-1/ayasha.txt16
1 files changed, 5 insertions, 11 deletions
diff --git a/npc/005-1/ayasha.txt b/npc/005-1/ayasha.txt
index 6789f42f8..54b249cdd 100644
--- a/npc/005-1/ayasha.txt
+++ b/npc/005-1/ayasha.txt
@@ -270,9 +270,9 @@ function script CheckEnfant {
@count_tmp = 0;
if ($@GM_OVERRIDE)
npctalk3 l("Hello, I am K-@@, of the @@ order.", @kids, $@KidsBits[@kids]);
- if (STARTAREA & $@KidsBits[@kids])
+ if (getq2(CandorQuest_HAS) & $@KidsBits[@kids])
goto L_Already;
- STARTAREA = STARTAREA | $@KidsBits[@kids];
+ setq2 CandorQuest_HAS, getq2(CandorQuest_HAS) | $@KidsBits[@kids];
goto L_Loop;
@@ -293,7 +293,7 @@ L_KidsTally:
L_Loop:
while (@count_tmp < 6) {
- if (STARTAREA & $@KidsBits[@count_tmp])
+ if (getq2(CandorQuest_HAS) & $@KidsBits[@count_tmp])
@kids_count = (@kids_count + 1);
@count_tmp = (@count_tmp + 1);
}
@@ -411,18 +411,12 @@ OnInit:
l("No."), L_Close;
L_Reset:
- setq CandorQuest_HAS, 0;
- STARTAREA = STARTAREA &~ (1 << 10);
- STARTAREA = STARTAREA &~ (1 << 11);
- STARTAREA = STARTAREA &~ (1 << 12);
- STARTAREA = STARTAREA &~ (1 << 13);
- STARTAREA = STARTAREA &~ (1 << 14);
- STARTAREA = STARTAREA &~ (1 << 15);
+ setq CandorQuest_HAS, 0, 0;
mes l("Reset!");
goto L_Close;
L_Charda:
- STARTAREA = STARTAREA &~ (1 << 10);
+ setq2 CandorQuest_HAS, getq2(CandorQuest_HAS) &~ (1 << 10);
mes l("Charda clean!");
goto L_Close;