From bbaaaac39d5af7cb0474dc57f30932160f79e3a9 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 20 Mar 2019 09:45:49 -0300 Subject: Priest can now use Luma skill --- npc/003-0/priest.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/npc/003-0/priest.txt b/npc/003-0/priest.txt index 64817d5a5..958c9d710 100644 --- a/npc/003-0/priest.txt +++ b/npc/003-0/priest.txt @@ -61,6 +61,7 @@ L_Member: rif(sk_intcost(ALL_RESURRECTION) && getskilllv(ALL_RESURRECTION) < (1+degree_subclass()/2), l("Learn Ressurection")), rif(sk_intcost(MG_SRECOVERY) && sk_canlvup(MG_SRECOVERY), l("Improve Mana Recovery")), rif(sk_intcost(PR_ASPERSIO) && sk_canlvup(PR_ASPERSIO), l("Improve Blessed Weapon")), + rif(sk_intcost(AB_HIGHNESSHEAL) && sk_canlvup(AB_HIGHNESSHEAL), l("Improve Luma")), l("Leave Subclass"), l("Nothing at the moment."); mes ""; @@ -203,6 +204,34 @@ L_Member: } break; case 6: + mesc l("[Luma]"); + mesc l("More powerful version of healing. Requires @@ each cast.", getitemlink(Lifestone)); + mes ""; + mesn; + mesq l("This useful skill will only require:"); + mesc l("@@/@@ @@", countitem(Lifestone), (getskilllv(AB_HIGHNESSHEAL)+1)*70, getitemlink(Lifestone)); + mesc l("@@/@@ @@", countitem(Root), (getskilllv(AB_HIGHNESSHEAL)+1)*10, getitemlink(Root)); + mesc l("@@/@@ @@", countitem(FrozenYetiTear),(getskilllv(AB_HIGHNESSHEAL)+1)*2, getitemlink(FrozenYetiTear)); + mesc l("@@/@@ @@", countitem(FluoPowder), (getskilllv(AB_HIGHNESSHEAL)+1)*1, getitemlink(FluoPowder)); + next; + if (askyesno() == ASK_YES) { + if ( + countitem(Lifestone) < (getskilllv(AB_HIGHNESSHEAL)+1)*70 || + countitem(Root) < (getskilllv(AB_HIGHNESSHEAL)+1)*10 || + countitem(FrozenYetiTear) < (getskilllv(AB_HIGHNESSHEAL)+1)*2 || + countitem(FluoPowder) < (getskilllv(AB_HIGHNESSHEAL)+1)*1) goto L_Missing; + + delitem Lifestone, (getskilllv(AB_HIGHNESSHEAL)+1)*70; + delitem Root, (getskilllv(AB_HIGHNESSHEAL)+1)*10; + delitem FrozenYetiTear, (getskilllv(AB_HIGHNESSHEAL)+1)*2; + delitem FluoPowder, (getskilllv(AB_HIGHNESSHEAL)+1)*1; + + sk_lvup(AB_HIGHNESSHEAL); + + next; + } + break; + case 7: // 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; -- cgit v1.2.3-70-g09d2