diff options
author | Monwarez <monwarez@gmail.com> | 2016-10-10 15:33:56 +0200 |
---|---|---|
committer | Monwarez <monwarez@gmail.com> | 2016-10-10 15:33:56 +0200 |
commit | 572c99eb25600ad34dddd1c594c39e102aa0765b (patch) | |
tree | 6be6802ef2a1bc85a31f774f562ee740471a0d1a /world/map/npc | |
parent | 17791fd5c3753bc3115aa5b6f1d01008bddbe764 (diff) | |
download | serverdata-572c99eb25600ad34dddd1c594c39e102aa0765b.tar.gz serverdata-572c99eb25600ad34dddd1c594c39e102aa0765b.tar.bz2 serverdata-572c99eb25600ad34dddd1c594c39e102aa0765b.tar.xz serverdata-572c99eb25600ad34dddd1c594c39e102aa0765b.zip |
Add script to change HWEEN16 value
Diffstat (limited to 'world/map/npc')
-rw-r--r-- | world/map/npc/annuals/halloween/debug.txt | 16 | ||||
-rw-r--r-- | world/map/npc/annuals/halloween/gak.txt | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/world/map/npc/annuals/halloween/debug.txt b/world/map/npc/annuals/halloween/debug.txt index 8f3d066e..d633ed00 100644 --- a/world/map/npc/annuals/halloween/debug.txt +++ b/world/map/npc/annuals/halloween/debug.txt @@ -13,6 +13,7 @@ L_Live: "Set Old Event Flag.", L_LastReset, "Halloween Time Key Change.", L_HalloweenTimeKey, "Reset NPC's mask memory", L_ResetMask, + "Set HWEEN16 value", L_HalloweenValue, "Nothing.", L_Close; L_Debug: @@ -24,6 +25,7 @@ L_Debug: "Set NPC trick or treat flag", L_SetTrickOrTreats, "Reset my quest state", L_ResetMe, "Reset NPC's mask memory", L_ResetMask, + "Set HWEEN16 value", L_HalloweenValue, "Nothing.", L_Close; L_DebugTime: @@ -41,6 +43,20 @@ L_LastReset: set HALLOWEENYEAR, 2012; goto L_Debug; +L_HalloweenValue: + mes "$hween16 value"; + mes "0 is first phase"; + mes "1 is seconde phase"; + mes "2 is event finish"; + mes "Set value"; + input @hweenvalue; + + if ((@hweenvalue < 0) || (@hweenvalue >2)) + goto L_HalloweenError; + + set HWEEN16, @hweenvalue; + goto L_Debug; + L_HalloweenTimeKey: mes "Halloween Time Key Change."; mes "Start Month?"; diff --git a/world/map/npc/annuals/halloween/gak.txt b/world/map/npc/annuals/halloween/gak.txt index 6d7f96ed..23eb4b14 100644 --- a/world/map/npc/annuals/halloween/gak.txt +++ b/world/map/npc/annuals/halloween/gak.txt @@ -1,5 +1,6 @@ 010-1.gat,29,48,0|script|Gak|188
{
+ set $hween16, HWEEN16;
if ($hween16 == 2) goto L_Event_Over;
|