diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-07-16 15:13:44 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-07-16 15:13:44 -0300 |
commit | 01788bc76d15415a90593a9b972283765c56db43 (patch) | |
tree | 82e88d7c8725d9b68c1a6a217ecb794a8945b72f /npc/003-0/tanker.txt | |
parent | 7c575911d61d4052ed40369b042672513e65af0f (diff) | |
download | serverdata-01788bc76d15415a90593a9b972283765c56db43.tar.gz serverdata-01788bc76d15415a90593a9b972283765c56db43.tar.bz2 serverdata-01788bc76d15415a90593a9b972283765c56db43.tar.xz serverdata-01788bc76d15415a90593a9b972283765c56db43.zip |
Tanker mastered with 3 skills
Diffstat (limited to 'npc/003-0/tanker.txt')
-rw-r--r-- | npc/003-0/tanker.txt | 41 |
1 files changed, 34 insertions, 7 deletions
diff --git a/npc/003-0/tanker.txt b/npc/003-0/tanker.txt index 7854754d7..a7776fb1f 100644 --- a/npc/003-0/tanker.txt +++ b/npc/003-0/tanker.txt @@ -24,7 +24,7 @@ L_SignUp: next; if (askyesno() != ASK_YES) close; - // TODO: Requeriment for signing up to a subclass? Or is the tier quest hard enough? + // TODO: Requeriment for signing up to a subclass? Or is the tier + skill quest hard enough? MAGIC_SUBCLASS=MAGIC_SUBCLASS|CL_TANKER; mesn; mesq l("Welcome to the tanker guild!"); @@ -55,10 +55,10 @@ L_Member: mesq l("Hey there! Do you want to learn new skills for a very small teaching fee?"); select rif(sk_intcost(CR_TRUST) && getskilllv(CR_TRUST) < 1+(degree_subclass()/2), l("Learn Last Standing Man")), - "","", + "", //rif(sk_intcost(CR_AUTOGUARD) && sk_canlvup(CR_AUTOGUARD), l("Improve Guard")), - //rif(sk_intcost(CR_DEFENDER) && sk_canlvup(CR_DEFENDER), l("Improve Arrow Shield")), - rif(sk_intcost(SM_RECOVERY) && !getskilllv(SM_RECOVERY), l("Learn Standing HP Regen")), + rif(sk_intcost(CR_DEFENDER) && sk_canlvup(CR_DEFENDER), l("Improve Arrow Shield")), + rif(sk_intcost(SM_RECOVERY) && sk_canlvup(SM_RECOVERY), l("Improve Standing HP Regen")), l("Nothing at the moment."); mes ""; switch (@menu) { @@ -104,8 +104,35 @@ L_Member: sk_lvup(CR_AUTOGUARD); break; case 3: - // TODO: Requirem, quest, agree - sk_lvup(CR_DEFENDER); + mesn; + mesq l("This useful skill will only require:"); + mesc l("@@/@@ @@", countitem(PiouFeathers), (getskilllv(CR_DEFENDER)+1)*60, getitemlink(PiouFeathers)); + mesc l("@@/@@ @@", countitem(PoisonArrow), (getskilllv(CR_DEFENDER)+1)*10, getitemlink(PoisonArrow)); + mesc l("@@/@@ @@", countitem(CursedArrow), (getskilllv(CR_DEFENDER)+1)*10, getitemlink(CursedArrow)); + mesc l("@@/@@ @@", countitem(OrangeCupcake), (getskilllv(CR_DEFENDER)+1)*6, getitemlink(OrangeCupcake)); + mesc l("@@/@@ @@", countitem(Mashmallow), (getskilllv(CR_DEFENDER)+1)*5, getitemlink(Mashmallow)); + mesc l("@@/@@ @@", countitem(Orange), (getskilllv(CR_DEFENDER)+1)*4, getitemlink(Orange)); + next; + if (askyesno() == ASK_YES) { + if ( + countitem(PiouFeathers) < (getskilllv(CR_DEFENDER)+1)*60 || + countitem(PoisonArrow) < (getskilllv(CR_DEFENDER)+1)*10 || + countitem(CursedArrow) < (getskilllv(CR_DEFENDER)+1)*10 || + countitem(OrangeCupcake) < (getskilllv(CR_DEFENDER)+1)*6 || + countitem(Mashmallow) < (getskilllv(CR_DEFENDER)+1)*5 || + countitem(Orange) < (getskilllv(CR_DEFENDER)+1)*4) goto L_Missing; + + delitem PiouFeathers, (getskilllv(CR_DEFENDER)+1)*60; + delitem PoisonArrow, (getskilllv(CR_DEFENDER)+1)*10; + delitem CursedArrow, (getskilllv(CR_DEFENDER)+1)*10; + delitem PrangeCupcake, (getskilllv(CR_DEFENDER)+1)*6; + delitem Mashmallow, (getskilllv(CR_DEFENDER)+1)*5; + delitem Orange, (getskilllv(CR_DEFENDER)+1)*4; + + sk_lvup(CR_DEFENDER); + + next; + } break; case 4: mesn; @@ -128,7 +155,7 @@ L_Member: delitem TonoriDelight, (getskilllv(SM_RECOVERY)+1)*8; sk_lvup(SM_RECOVERY); - mesc l("This skill can be further improved with Job Points"); + //mesc l("This skill can be further improved with Job Points"); next; } |