Quote:
Originally Posted by smircea
can u correct the errors from
Code:
if (Char.Loc.Map == 1043)
{
if (Name == "Toughorn")
if (MyMath.ChanceSuccess(10.5))
{
DI2.Info.ID = 721010;
DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
DI2.Info.CurDur = DI2.Info.MaxDur;
}
}
if (Char.Loc.Map == 1044)
{
if (Name == "Toughorn")
if (MyMath.ChanceSuccess(10.5))
{
DI2.Info.ID = 721011;
DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
DI2.Info.CurDur = DI2.Info.MaxDur;
}
}
if (Char.Loc.Map == 1045)
{
if (Name == "Toughorn")
if (MyMath.ChanceSuccess(10.5))
{
DI2.Info.ID = 721012;
DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
DI2.Info.CurDur = DI2.Info.MaxDur;
}
}
if (Char.Loc.Map == 1046)
{
if (Name == "Toughorn")
if (MyMath.ChanceSuccess(10.5))
{
DI2.Info.ID = 721013;
DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
DI2.Info.CurDur = DI2.Info.MaxDur;
}
}
if (Char.Loc.Map == 1047)
{
if (Name == "Toughorn")
if (MyMath.ChanceSuccess(10.5))
{
DI2.Info.ID = 721014;
DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
DI2.Info.CurDur = DI2.Info.MaxDur;
}
}
if (Char.Loc.Map == 1048)
{
if (Name == "Toughorn")
if (MyMath.ChanceSuccess(10.5))
{
DI2.Info.ID = 721015;
DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
DI2.Info.CurDur = DI2.Info.MaxDur;
}
pls
|
what error you've got from this code be specific.
maybe you put that in a wrong place or the bracket you miss
because that code has no error