diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-05-16 13:12:10 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-05-16 13:12:10 -0300 |
commit | 3c2304f23560e41ea3faddd1916d293dc7494108 (patch) | |
tree | aec05af05ce399bf483b4cfd689c649e20f7210e /npc/003-0 | |
parent | 8866e33299aff4a93c2e769ce29b1519ede21362 (diff) | |
download | serverdata-3c2304f23560e41ea3faddd1916d293dc7494108.tar.gz serverdata-3c2304f23560e41ea3faddd1916d293dc7494108.tar.bz2 serverdata-3c2304f23560e41ea3faddd1916d293dc7494108.tar.xz serverdata-3c2304f23560e41ea3faddd1916d293dc7494108.zip |
Fix bugs: Move Pydisgner and enable him forever (after saving the 1 pt),
fix bugs on wizards, fix bugs on flood (maybe?), fix bugs on siege (global announce)
Diffstat (limited to 'npc/003-0')
-rw-r--r-- | npc/003-0/wizard.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/npc/003-0/wizard.txt b/npc/003-0/wizard.txt index 1b9d1e0b5..6322991c0 100644 --- a/npc/003-0/wizard.txt +++ b/npc/003-0/wizard.txt @@ -62,6 +62,7 @@ L_Member: rif(sk_intcost(MG_LIGHTNINGBOLT) && sk_canlvup(MG_LIGHTNINGBOLT), l("Improve Thunder Bolt")), rif(sk_intcost(WZ_EARTHSPIKE) && sk_canlvup(WZ_EARTHSPIKE), l("Improve Earth Spike")), rif(sk_intcost(MG_FIREBOLT) && sk_canlvup(MG_FIREBOLT), l("Improve Fire Bolt")), + rif(sk_intcost(MG_FIREBALL) && getskilllv(MG_FIREBALL) < (3+degree_subclass()), l("Improve Fire Ball")), l("Leave Subclass"), l("Nothing at the moment."); mes ""; @@ -179,6 +180,34 @@ L_Member: } break; case 7: + mesc l("[Fire Ball]"); + mesc l("Standard fireball skill."); + mes ""; + mesn; + mesq l("This useful skill will only require:"); + mesc l("@@/@@ @@", countitem(Curshroom), (getskilllv(MG_FIREBALL)+1)*10, getitemlink(Curshroom)); + mesc l("@@/@@ @@", countitem(FluoPowder), (getskilllv(MG_FIREBALL)+1)*5, getitemlink(FluoPowder)); + mesc l("@@/@@ @@", countitem(PolishedRuby), (getskilllv(MG_FIREBALL)+1)*3, getitemlink(PolishedRuby)); + mesc l("@@/@@ @@", countitem(HerbalTea), (getskilllv(MG_FIREBALL)+1)*1, getitemlink(HerbalTea)); + next; + if (askyesno() == ASK_YES) { + if ( + countitem(Curshroom) < (getskilllv(MG_FIREBALL)+1)*10 || + countitem(FluoPowder) < (getskilllv(MG_FIREBALL)+1)*5 || + countitem(PolishedRuby) < (getskilllv(MG_FIREBALL)+1)*3 || + countitem(HerbalTea) < (getskilllv(MG_FIREBALL)+1)*1) goto L_Missing; + + delitem Curshroom, (getskilllv(MG_FIREBALL)+1)*10; + delitem FluoPowder, (getskilllv(MG_FIREBALL)+1)*5; + delitem PolishedRuby, (getskilllv(MG_FIREBALL)+1)*3; + delitem HerbalTea, (getskilllv(MG_FIREBALL)+1)*1; + + sk_lvup(MG_FIREBALL); + + next; + } + break; + case 8: // All skills related may include the basic class skills if they're related. mesc l("WARNING: If you leave the subclass, you'll lose all skills related to it!"), 1; mesc l("This cannot be undone. Are you sure?"), 1; |