diff options
author | Haru <haru@dotalux.com> | 2013-11-29 01:49:32 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2013-11-29 01:54:44 +0100 |
commit | 0dfcf15836d90fa4bc72e3a0e648d2ec8b5eca78 (patch) | |
tree | 77ae2288dfb65d5560d441d8ea4cdc1440b1693e /npc/quests/quests_moscovia.txt | |
parent | 0cf52e88ea2779d00c64e36b33e606d658682136 (diff) | |
download | hercules-0dfcf15836d90fa4bc72e3a0e648d2ec8b5eca78.tar.gz hercules-0dfcf15836d90fa4bc72e3a0e648d2ec8b5eca78.tar.bz2 hercules-0dfcf15836d90fa4bc72e3a0e648d2ec8b5eca78.tar.xz hercules-0dfcf15836d90fa4bc72e3a0e648d2ec8b5eca78.zip |
Fixed a missing/incorrect check in the Moscovia Whale quest
- Most of the checks for the GUSLI accessory were completely
ineffective, and could be bypassed by wearing any accessory.
- Replaced numeric item ID with the item DB constant.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'npc/quests/quests_moscovia.txt')
-rw-r--r-- | npc/quests/quests_moscovia.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/npc/quests/quests_moscovia.txt b/npc/quests/quests_moscovia.txt index fd68f6663..a181a81d9 100644 --- a/npc/quests/quests_moscovia.txt +++ b/npc/quests/quests_moscovia.txt @@ -1484,7 +1484,7 @@ mosk_fild01,86,104,3 script Aged Stranger#npc 4_M_GUSLIMAN,{ mes "This is a traditional instrument"; mes "which comes from a faraway land of"; mes "the ancestors of Moscovia."; - getitem 2707,1; + getitem GUSLI, 1; set mos_whale_edq,35; next; mes "[Aged Stranger]"; @@ -1509,7 +1509,7 @@ mosk_fild01,86,104,3 script Aged Stranger#npc 4_M_GUSLIMAN,{ mes "Are you ready to learn the Gusli?"; mes "Please equip the Gusli."; next; - if (getequipid(EQI_ACC_L) || getequipid(EQI_ACC_R) == 2707) { + if (getequipid(EQI_ACC_L) == GUSLI || getequipid(EQI_ACC_R) == GUSLI) { mes "[Aged Stranger]"; mes "Hm... Very well."; mes "At first, look at me how I play,"; @@ -1552,7 +1552,7 @@ mosk_fild01,86,104,3 script Aged Stranger#npc 4_M_GUSLIMAN,{ mes "[Aged Stranger]"; mes "Are you ready to learn the Gusli?"; next; - if (getequipid(EQI_ACC_L) || getequipid(EQI_ACC_R) == 2707) { + if (getequipid(EQI_ACC_L) == GUSLI || getequipid(EQI_ACC_R) == GUSLI) { mes "[Aged Stranger]"; mes "Um... You did well."; next; @@ -2123,7 +2123,7 @@ mosk_in,131,92,3 script Csar Alexsay III#npc 4_M_RUSKING,{ mes "A Gooselri? Which only exists"; mes "in the whale island? Let's see."; next; - if (getequipid(EQI_ACC_L) || getequipid(EQI_ACC_R) == 2707 || countitem(2707) > 0) { + if (countitem(GUSLI) > 0) { mes "[Csar Alexsay III]"; mes "Oh... Is this instrument... a Gooselri?"; next; @@ -2233,7 +2233,7 @@ mosk_in,131,92,3 script Csar Alexsay III#npc 4_M_RUSKING,{ mes "something to satisfy me"; mes "at the whale island?"; next; - if (getequipid(EQI_ACC_L) || getequipid(EQI_ACC_R) == 2707 || countitem(2707)) { + if (countitem(GUSLI) > 0) { mes "[Csar Alexsay III]"; mes "Oh... Is this instrument... a Gooselri?"; next; @@ -2478,7 +2478,7 @@ OnTouch: mes "Stop by the whale island?"; next; if(select("Go to Whale Island.:Stay put.") == 1) { - if (getequipid(EQI_ACC_L) == 2707 || getequipid(EQI_ACC_R) == 2707) { + if (getequipid(EQI_ACC_L) == GUSLI || getequipid(EQI_ACC_R) == GUSLI) { soundeffect "mos_gusli2.wav",0; mes "-Slowly, your hands are on the"; mes "Gusli, and the playing starts..."; |