As DBs do not fall into the pheasants?

02/07/2010 02:11 |_Beetle_|#1
How can I do to not fall in pheasants DBs? I have made do not get anything i always fall!
02/07/2010 06:47 Arcо#2
Quote:
Originally Posted by |_Beetle_| View Post
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.
Or
Code:
                    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;
                    }
02/07/2010 13:19 |_Beetle_|#3
Thanks arco , always helping: D
02/07/2010 14:32 Arcо#4
Quote:
Originally Posted by |_Beetle_| View Post
Thanks arco , always helping: D
No problem, anymore questions feel free to ask :)
02/07/2010 17:33 |_Beetle_|#5
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 ????
02/07/2010 18:10 Korvacs#6
Quote:
Originally Posted by |_Beetle_| View Post
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 ????
Code:
                    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;
                    }
Should work.
02/07/2010 21:05 |_Beetle_|#7
aaa worth the sign! going behind, (dish), it korvacs thanks!
02/08/2010 01:05 Arcо#8
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;
                    }
There.
02/08/2010 09:11 Korvacs#9
Quote:
Originally Posted by .Arco View Post
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;
                    }
There.
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.