From 37beff5fc67d15dfd2b74c441bcc346ccdd370ee Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 16 Jul 2018 01:32:26 -0300 Subject: *fun* something like detect magic level --- npc/items/books.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'npc/items/books.txt') diff --git a/npc/items/books.txt b/npc/items/books.txt index 0932a6337..e3726766e 100644 --- a/npc/items/books.txt +++ b/npc/items/books.txt @@ -191,6 +191,22 @@ OnInit: if (getskilllv(TMW2_PARUM)) mesc l("Parum - @sk-parum"); next; + mesn l("Current Magic Control"); + .@val=MAGIC_EXP+rand(-MAGIC_LVL*5, MAGIC_LVL*5); + .@base=(MAGIC_LVL**3); + if (.@val > .@base+3500) + mesc l("You are perfectly in control of your magic."), 3; + else if (.@val > .@base+2000) + mesc l("You are mostly in control of your magic."), 2; + else if (.@val > .@base+1000) + mesc l("You are somewhat in control of your magic."), 4; + else if (.@val > .@base+200) + mesc l("Your magic is more powerful than you, but you can control."), 7; + else if (.@val > .@base) + mesc l("You still are overwhelmed by your magic."), 6; + else + mesc l("You are completly overwhelmed by your magic."), 1; + next; break; case 3: mesc l("You currently have @@/@@ subclass(es).", total_subclass(),max_subclass()); -- cgit v1.2.3-60-g2f50