diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-04-15 00:29:28 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-04-15 00:29:28 -0300 |
commit | f6eb33c54373631c9e01ba0b68d6d95a6f277567 (patch) | |
tree | c02b4f96e682ef990f5da017b31789b290a22d47 | |
parent | eb4b05f6c10785e444a3f46d3b199e157a15f941 (diff) | |
download | classic-serverdata-f6eb33c54373631c9e01ba0b68d6d95a6f277567.tar.gz classic-serverdata-f6eb33c54373631c9e01ba0b68d6d95a6f277567.tar.bz2 classic-serverdata-f6eb33c54373631c9e01ba0b68d6d95a6f277567.tar.xz classic-serverdata-f6eb33c54373631c9e01ba0b68d6d95a6f277567.zip |
Make Old Wizard Astral Soul teaching a bit more stable.
By only deleting reagents when you're about to learn.
This implies checking items twice, I do not trust TMWA to follow standard behaviors.
-rw-r--r-- | world/map/npc/013-2/wizard.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/world/map/npc/013-2/wizard.txt b/world/map/npc/013-2/wizard.txt index edd7a768..f4e81a72 100644 --- a/world/map/npc/013-2/wizard.txt +++ b/world/map/npc/013-2/wizard.txt @@ -102,8 +102,6 @@ L_AstralSoul: L_Next: if (countitem("Pearl") < 1 || countitem("Acorn") < 100) goto L_NotEnough; - delitem "Pearl", 1; - delitem "Acorn", 100; mes "[Old Wizard]"; mes "\"Okay, listen:\""; next; @@ -113,6 +111,9 @@ L_Next: next; mes "The old wizard mumbles some invocations"; next; + if (countitem("Pearl") < 1 || countitem("Acorn") < 100) goto L_NotEnough; + delitem "Pearl", 1; + delitem "Acorn", 100; set @SUP_lvl, 1; set @SUP_id, SKILL_ASTRAL_SOUL; set @SUP_name$, "Astral Soul"; |