View Single Post
Old 01-25-2003, 01:04 AM   #1 (permalink)
ramsonne
Guest
 
Posts: n/a
Default Armor Dexloss doesnt seem to work

When wearing armor, players suffer no dexloss. I imagine many of you know this. I did a search on it. Several playesr asked for help and were told they wouldnt be afforded help until they tried to do some code. I don't know how to code. I deleted a few char. creation scripts and such on my own but thats the extent of my knowledge. Am I doomed? Or are there sites or people out there willing to give information on this sort of thing?

In the "armor" scripts I noticed that dex bonus is set to -8 so my guess is that the bonus, though it exists, is not being applied globally. Therefore I imagine the problem is in here:


public abstract class BaseArmor : Item, IArmor
{
private int m_ArBaseValue;
private int m_MaxHitPoints;
private int m_HitPoints;
private Mobile m_Crafter;
private ArmorQuality m_Quality;
private ArmorDurabilityLevel m_Durability;
private ArmorProtectionLevel m_Protection;
private ArmorMaterialType m_Material;
private ArmorBodyType m_BodyPos;
private OreInfo m_Ore;
private int m_StrBonus;
private int m_DexBonus;
private int m_IntBonus;
private int m_StrReq;
private int m_DexReq;
private int m_IntReq;
private ArmorMeditationAllowance m_Meditate;
private bool m_Identified;

private static double[] m_ArmorScalars = { 0.07, 0.07, 0.14, 0.15, 0.22, 0.35 };

public static double[] ArmorScalars
{
get
{
return m_ArmorScalars;
}
set
{
m_ArmorScalars = value;
}
}

[CommandProperty( AccessLevel.GameMaster )]
public int StrBonus
{
get
{
return m_StrBonus;
}
set
{
m_StrBonus = value;
}
}

[CommandProperty( AccessLevel.GameMaster )]
public int DexBonus
{
get
{
return m_DexBonus;
}
set
{
m_DexBonus = value;
}
}


Am I on the right track?
  Reply With Quote