From dfad5d63357f3057e4986753f7004419f89d3e13 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 21 Dec 2022 15:50:53 -0300 Subject: This hack will do (scrolls) --- world/map/db/item_db_use.txt | 5 +++++ world/map/npc/items/unreleased_item.txt | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/world/map/db/item_db_use.txt b/world/map/db/item_db_use.txt index 12019781..2de922c0 100644 --- a/world/map/db/item_db_use.txt +++ b/world/map/db/item_db_use.txt @@ -102,3 +102,8 @@ 5237, CaramelCandy, 0, 700, 350, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, {heal 350, 0, 1;}, {} 5251, Tomato, 0, 700, 350, 5, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, {heal 200, 5, 1;}, {} 5263, LovePotion, 0, 90000, 550, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, {callfunc "LovePotion";}, {} +5141, AlizarinScroll, 0, 3000, 1000, 5, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, {callfunc "UnreleasedScroll";}, {} +5142, CobaltScroll, 0, 3000, 1000, 5, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, {callfunc "UnreleasedScroll";}, {} +5143, GambogeScroll, 0, 3000, 1000, 5, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, {callfunc "UnreleasedScroll";}, {} +5144, MauveScroll, 0, 3000, 1000, 5, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, {callfunc "UnreleasedScroll";}, {} +5145, JoyplimScroll, 0, 3000, 1000, 5, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, {callfunc "UnreleasedScroll";}, {} diff --git a/world/map/npc/items/unreleased_item.txt b/world/map/npc/items/unreleased_item.txt index d8bb9e07..a04b0843 100644 --- a/world/map/npc/items/unreleased_item.txt +++ b/world/map/npc/items/unreleased_item.txt @@ -15,3 +15,14 @@ function|script|UnreleasedItem L_Return: return; } + + +function|script|UnreleasedScroll +{ + message strcharinfo(0), "You have difficulties using this item, as if it is not yet fully in this world."; + set Zeny, Zeny + 1000; // Force the sell + goto L_Return; + +L_Return: + return; +} -- cgit v1.2.3-60-g2f50