diff options
author | Jessica Tölke <jtoelke@mail.upb.de> | 2013-01-09 18:12:52 +0100 |
---|---|---|
committer | Jessica Tölke <jtoelke@mail.upb.de> | 2013-01-09 18:12:52 +0100 |
commit | 1623d7da9290f57bcd0dfe41f61a9581b5a78198 (patch) | |
tree | 8b962a4b07bc7cd9df14ac0f37fd2a4db5261260 /world/map/npc/015-1 | |
parent | 0088f8b3c7522a06b77b21b1fe7e6d8fc73c63fb (diff) | |
download | serverdata-1623d7da9290f57bcd0dfe41f61a9581b5a78198.tar.gz serverdata-1623d7da9290f57bcd0dfe41f61a9581b5a78198.tar.bz2 serverdata-1623d7da9290f57bcd0dfe41f61a9581b5a78198.tar.xz serverdata-1623d7da9290f57bcd0dfe41f61a9581b5a78198.zip |
Katze quest: use bitmasking to be able to remove the variable LastHiss.
Nibble 0: Progress of quest
Nibble 1: what was saved previously in LastHiss
Add LastHiss to clear_vars
Since the value in LastHiss is only needed to get some hint from Alice,
taking over the value from LastHiss to Nibble 1 of Katze isn't needed.
Diffstat (limited to 'world/map/npc/015-1')
-rw-r--r-- | world/map/npc/015-1/alice.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/world/map/npc/015-1/alice.txt b/world/map/npc/015-1/alice.txt index 18fdb4ba..34f728a1 100644 --- a/world/map/npc/015-1/alice.txt +++ b/world/map/npc/015-1/alice.txt @@ -2,17 +2,21 @@ // herbs. 015-1.gat,52,53,0|script|Alice|106,{ + + set @cat, ((Katze & NIBBLE_0_MASK) >> NIBBLE_0_SHIFT); + set @Hiss, ((Katze & NIBBLE_1_MASK) >> NIBBLE_1_SHIFT); + mes "[Alice]"; mes "\"Greeting, fellow wanderer."; mes "Are you collecting herbs, too?\""; next; - if (LastHiss == 2 && Katze < 4) + if (@Hiss == 2 && @cat < 4) menu "Yes, sure.", L_findmany, "Herbs?", L_herbs, "Nope, just enjoying the scenery.", L_close, "I saw the cat, but it doesn't like me.", L_cat; - if (LastHiss == 1) + if (@Hiss == 1) menu "Yes, sure.", L_findmany, "Herbs?", L_herbs, |