diff options
author | Fate <fate-tmw@googlemail.com> | 2008-11-23 12:59:37 -0700 |
---|---|---|
committer | Fate <fate-tmw@googlemail.com> | 2008-11-23 12:59:37 -0700 |
commit | c7fb0c21c1d713f02eafccbf7ff16e9c7decaca8 (patch) | |
tree | 9f3125aab0d1d58b704926636ad025a2fa32ec74 | |
parent | be64a02f2c904dde19f4bc072678984fe6e83412 (diff) | |
download | classic-serverdata-c7fb0c21c1d713f02eafccbf7ff16e9c7decaca8.tar.gz classic-serverdata-c7fb0c21c1d713f02eafccbf7ff16e9c7decaca8.tar.bz2 classic-serverdata-c7fb0c21c1d713f02eafccbf7ff16e9c7decaca8.tar.xz classic-serverdata-c7fb0c21c1d713f02eafccbf7ff16e9c7decaca8.zip |
Replaced boolean operators by bitwise operators in encoding of chest quests
-rw-r--r-- | npc/002-4_Desert_mines/chest.txt | 4 | ||||
-rw-r--r-- | npc/013-3_Cave/sword_chest.txt | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/npc/002-4_Desert_mines/chest.txt b/npc/002-4_Desert_mines/chest.txt index 49014976..c3e2c188 100644 --- a/npc/002-4_Desert_mines/chest.txt +++ b/npc/002-4_Desert_mines/chest.txt @@ -1,7 +1,7 @@ // 002-4.gat,93,37,0 script Treasure 111,{ - if( ChestQuest && 1) goto L_Finished; + if( ChestQuest & 1) goto L_Finished; mes "[Chest]"; mes "Would you try to open it?"; @@ -17,7 +17,7 @@ L_Yes: getitem 536, 1; mes "[Chest]"; mes "You opened it and found a short sword!"; - set ChestQuest, ChestQuest || 1; + set ChestQuest, ChestQuest | 1; close; L_Not_Enough: diff --git a/npc/013-3_Cave/sword_chest.txt b/npc/013-3_Cave/sword_chest.txt index aad6dde8..2860cfa1 100644 --- a/npc/013-3_Cave/sword_chest.txt +++ b/npc/013-3_Cave/sword_chest.txt @@ -1,7 +1,7 @@ // 013-3.gat,177,22,0 script Chest 111,{ - if( ChestQuest && 2) goto L_Finished; + if( ChestQuest & 2) goto L_Finished; mes "[Chest]"; mes "Would you try to open it?"; @@ -17,7 +17,7 @@ L_Yes: getitem 536, 1; mes "[Chest]"; mes "You opened it and found a short sword!"; - set ChestQuest, ChestQuest || 2; + set ChestQuest, ChestQuest | 2; close; L_Not_Enough: |