diff --git a/js/html.js b/js/html.js
index 0365b37..8f42c72 100644
--- a/js/html.js
+++ b/js/html.js
@@ -1,4 +1,4 @@
-var u_item=null,u_scroll=null,u_offering=null,c_items=e_array(3),c_scroll=null,c_offering=null,c_last=0,e_item=null,p_item=null,l_item=null,cr_items=e_array(9),cr_last=0,ds_item=null;
+var u_item=null,u_scroll=null,u_offering=null,c_items=e_array(3),c_scroll=null,c_offering=null,c_last=0,e_item=null,p_item=null,l_item=null,s_item=null,cr_items=e_array(9),cr_last=0,ds_item=null;
var settings_shown=0;
function show_settings()
@@ -1142,6 +1142,30 @@ function render_locksmith(mode)
if(!inventory) render_inventory(),inventory_opened_for=topleft_npc;
}
+function render_scrollsmith()
+{
+ var button="DE-STAT",f="destat_item",shade="shade_chest";
+ reset_inventory(1);
+ topleft_npc="scrollsmith"; rendered_target=topleft_npc;
+ s_item=null;
+ var html="
";
+ /*html+="
";
+ html+="
";
+ html+="
";
+ //html+="
";*/
+ html+="
";
+ html+=item_container({shade:shade,cid:'sitem',s_op:0.4,draggable:false,droppable:true});
+ html+="
";
+ //html+="
";
+ /*html+="
";
+ html+="
";
+ html+="
";*/
+ html+="
";
+ html+="
";
+ $("#topleftcornerui").html(html);
+ if(!inventory) render_inventory(),inventory_opened_for=topleft_npc;
+}
+
function render_recipe(element,type,name)
{
last_selector="#recipe-item";
@@ -3741,6 +3765,17 @@ function on_rclick(current)
$("#citem"+inum).parent().html("");
$("#litem").html(html);
}
+ else if(topleft_npc=="scrollsmith")
+ {
+ var current=character.items[inum],def=null;
+ if(current) def=G.items[current.name];
+ if(!def) return;
+ if(s_item!==null) return;
+ s_item=inum; cache_i[inum]=-1;
+ var html=$("#citem"+inum).all_html();
+ $("#citem"+inum).parent().html("");
+ $("#sitem").html(html);
+ }
else if(topleft_npc=="upgrade")
{
var current=character.items[inum],def=null;
@@ -4634,6 +4669,11 @@ function render_interaction(type,sub_type,args)
html+="Lock - Prevents anything that can destroy an item, selling, upgrading, you name it! Seal - Locks the item in a way that unlocking it takes two days. Unlock - Frees it. Got it? Good. Cost? 250 big ones.";
html+="LOCK
SEAL
UNLOCK
";
}
+ else if(type=="scrollsmith")
+ {
+ html+="De-stat an item. Give you back the scrolls used on the item, as though the item were level 0. Returns the item back to you along with scrolls. Got it? Good. Cost? Depends on the scroll. 10 times the value of the scrolls that will be returned to you.";
+ html+="DE-STAT
";
+ }
else if(type=="crafting")
{
html+="I can craft or dismantle items for you. Price differs from item to item. Check out my recipes if you are interested!";