diff options
-rw-r--r-- | db/re/item_db.conf | 2 | ||||
-rw-r--r-- | npc/027-1/laura.txt | 1 | ||||
-rw-r--r-- | npc/items/books.txt | 12 |
3 files changed, 13 insertions, 2 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf index 3b4cdfc9f..e90e3fd93 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -776,7 +776,7 @@ item_db: ( nodrop: true nocart: true noselltonpc: true - nostorage: true + nostorage: false nogstorage: true nomail: true noauction: true diff --git a/npc/027-1/laura.txt b/npc/027-1/laura.txt index 468476432..06a5e227f 100644 --- a/npc/027-1/laura.txt +++ b/npc/027-1/laura.txt @@ -285,6 +285,7 @@ L_T3_S7: L_T3_Final: skill TMW2_SKILLPERMIT, 3, 0; + ST_TIER = 0; // Clean up temporary variable getexp 120000, 0; // Yes, 120k experience points. Waw. mesc l(".:: Congratulations! ::."), 2; mesc l("You have completed the Jesusaves Grimorium Quest!"), 2; diff --git a/npc/items/books.txt b/npc/items/books.txt index c458894cf..b13fde7c2 100644 --- a/npc/items/books.txt +++ b/npc/items/books.txt @@ -396,7 +396,7 @@ function myself { attachrid(.@who); .@skill = getskilllv(TMW2_CRAFT); .@score = CRAFTING_SCORE_COMPLETE/40; - .@milis = (CRAFTING_SCORE_COMPLETE%40)*100; // Broken? + .@milis = (CRAFTING_SCORE_COMPLETE%40)*100; // <- Not *100 as it is Base 40 detachrid(); attachrid(.@why); @@ -546,8 +546,12 @@ function myself { } OnScry: + // Lack the book if (!countitem(JesusalvaGrimorium) && !is_staff()) end; + // Doesn't owns the book + if (ST_TIER < 10 && getskilllv(TMW2_SKILLPERMIT) < 3 && !is_staff()) + end; .@w$ = implode(.@atcmd_parameters$, " "); if (.@w$ == "" || .@w$ == "NULL") .@w$ = strcharinfo(0); @@ -565,6 +569,12 @@ OnScry: close; function read_book { + // Doesn't owns the book + if (ST_TIER < 10 && getskilllv(TMW2_SKILLPERMIT) < 3) { + percentheal 0, -20; + dispbottom l("The book rejects you, draining your mana!"); + end; + } setnpcdialogtitle l(.book_name$); |