bala1412

Member
ServUO Version
Publish 57
Ultima Expansion
Endless Journey
CraftAttributeInfo silver = Silver = new CraftAttributeInfo();

silver.ArmorPhysicalResist = 6;
silver.ArmorColdResist = 5;
silver.ArmorPoisonResist = 5;
silver.ArmorEnergyResist = 5;
silver.ArmorDurability = 60;
silver.WeaponFireDamage = 15;
silver.WeaponColdDamage = 25;
silver.WeaponPoisonDamage = 15;
silver.WeaponEnergyDamage = 25;
silver.RunicMinAttributes = 6;
silver.RunicMaxAttributes = 6;
if (Core.ML)
{
silver.RunicMinIntensity = 65;
silver.RunicMaxIntensity = 85;
}
else
{
silver.RunicMinIntensity = 45;
silver.RunicMaxIntensity = 85;
}
Tell me how to add a Silver Slayer to a weapon made from Blacksmith

What should I add to my Resourceinfo.cs script?
 
It will probably be easier to modify the BaseWeapon.OnCraft method
case CraftResource.Silver:
{
Identified = true;
DurabilityLevel = WeaponDurabilityLevel.Indestructible;
DamageLevel = WeaponDamageLevel.Vanq;
AccuracyLevel = WeaponAccuracyLevel.Supremely;
Slayer = SlayerName.Silver;
break;
}
In the BaseWeapon.cs script
Slayer = SlayerName.Silver;
Even if you add it, if you make a weapon, you don't have the Slayer option
I need help with what my mistake is
 
Last edited:
The code scope you edited is only run for pre-AOS expansions, you'll need to make a new switch(Resource) inside the Core.AOS check, anywhere near this line after the Resource is set: https://github.com/ServUO/ServUO/blob/pub57/Scripts/Items/Equipment/Weapons/BaseWeapon.cs#L6354
if (Core.AOS)
{
if (!craftItem.ForceNonExceptional)
{
Resource = CraftResources.GetFromType(typeRes);
}

CraftContext context = craftSystem.GetContext(from);


Slayer = SlayerName.Silver;

if (Quality == ItemQuality.Exceptional)
{
Attributes.WeaponDamage += 35;
}

if (!craftItem.ForceNonExceptional)
{
if (tool is BaseRunicTool)
{
((BaseRunicTool)tool).ApplyAttributesTo(this);
}
}
Successfully added slayer by adding above script
But what I want is a switch that only adds slayer when making it with Valorite Ingat Could you give me a little more help?
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back