How can I do to not fall in pheasants DBs? I have made do not get anything i always fall!
You can either take the entire drop out of mob.cs so it doesn't drop from anthing.Quote:
How can I do to not fall in pheasants DBs? I have made do not get anything i always fall!
else if ((MyMath.ChanceSuccess(DropRates.Dragonball)) && (!Name.Contains("Pheasant")))
{
DI2.Info.ID = 1088000;
DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
DI2.Info.CurDur = DI2.Info.MaxDur;
}
Quote:
Arc one thing, and to Block an entire map, to keep them dbs? , Would be using Loc.Map, but how?
!CG.Mychar.Loc.Map == 1002 ????
else if ((MyMath.ChanceSuccess(DropRates.Dragonball)) && (Loc.Map != 1002))
{
DI2.Info.ID = 1088000;
DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
DI2.Info.CurDur = DI2.Info.MaxDur;
}
else if ((MyMath.ChanceSuccess(DropRates.Dragonball)) && ([B]Char[/B].Loc.Map != 1002))
{
DI2.Info.ID = 1088000;
DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
DI2.Info.CurDur = DI2.Info.MaxDur;
}
Just so you know, what i posted works just fine, the code is being called by the mob object which has its own location, so really there isnt any need to check which map the character is in, makes more sense to check which map the mob is in.Quote:
There.Code:else if ((MyMath.ChanceSuccess(DropRates.Dragonball)) && ([B]Char[/B].Loc.Map != 1002)) { DI2.Info.ID = 1088000; DI2.Info.MaxDur = DI2.Info.DBInfo.Durability; DI2.Info.CurDur = DI2.Info.MaxDur; }