summaryrefslogtreecommitdiff
path: root/npc/items/books.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-16 01:32:26 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-16 01:32:26 -0300
commit37beff5fc67d15dfd2b74c441bcc346ccdd370ee (patch)
treee9efb324ea00c19e13197fdb005fe3202fbef324 /npc/items/books.txt
parent374ef27c48c0cf3c3d0afa8dba17ad7d85d2423e (diff)
downloadserverdata-37beff5fc67d15dfd2b74c441bcc346ccdd370ee.tar.gz
serverdata-37beff5fc67d15dfd2b74c441bcc346ccdd370ee.tar.bz2
serverdata-37beff5fc67d15dfd2b74c441bcc346ccdd370ee.tar.xz
serverdata-37beff5fc67d15dfd2b74c441bcc346ccdd370ee.zip
*fun* something like detect magic level
Diffstat (limited to 'npc/items/books.txt')
-rw-r--r--npc/items/books.txt16
1 files changed, 16 insertions, 0 deletions
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());