Add new comment
Making Your Item Un-sellable to Smiths/Vendors |
||
Making Your Item Un-sellable to Smiths/VendorsWe will use the Simple Sword template, from the Creating A Simple Item - Sword tutorial, and modify it here. All items are assigned this value the same way: 1. Under the [gui] block we will assign a new field that is can_sell = false;. Set this to true or false depending on if you want your item to be able to be sold to NPCs. [t:template,n:nivisec_simple_sword]
{
doc = "Dragon Lords Sword";
specializes = base_sword;
[aspect]
{
model = m_w_swd_055;
gold_value = 1000;
}
[attack]
{
f damage_max = 407;
f damage_min = 307;
}
[common]
{
pcontent_special_type = rare, unique, normal;
screen_name = "Steel of the Dragon Lords";
}
[gui]
{
can_sell = false;
active_icon = b_gui_ig_i_ic_swd_005;
equip_requirements = strength:30, dexterity:45;
inventory_height = 4;
inventory_width = 1;
inventory_icon = b_gui_ig_i_w_swd_088;
}
[pcontent]
{
[base]
{
f modifier_max = 14.000000;
f modifier_min = 7.000000;
}
}
} The Completed Sword Template template 1 (the original text for this tutorial was written by Nivisec, and is published here with permission) |
||
» |