diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-12-10 20:36:11 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-12-10 20:36:11 -0300 |
commit | be184457e230467d2c7b6c59882acec0ebd750cf (patch) | |
tree | f8440312ebfedea7fa710465dc418938d70a3f69 /npc/005-1/ayasha.txt | |
parent | 48f7c8e533a12c345fc28ad5cbc47281ead9b039 (diff) | |
download | serverdata-be184457e230467d2c7b6c59882acec0ebd750cf.tar.gz serverdata-be184457e230467d2c7b6c59882acec0ebd750cf.tar.bz2 serverdata-be184457e230467d2c7b6c59882acec0ebd750cf.tar.xz serverdata-be184457e230467d2c7b6c59882acec0ebd750cf.zip |
Get rid of STARTAREA
Diffstat (limited to 'npc/005-1/ayasha.txt')
-rw-r--r-- | npc/005-1/ayasha.txt | 16 |
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; |