that every super item ,dragonball or an easter egg is appearing in your inventory and filling it up, so i went through some code and made it so it drops the items instead of adding them to your inventory.
Credits: Me
I'm only learning so i hope ya like it.
All of this is in Mob.cs
EasterEggs
If you havent removed this region, search
And replace the region with
Code:
#region Easter Eggs
Code:
#region Easter Eggs if (MyMath.ChanceSuccess(4)) { if (Char != null) { DI2.Info.ID = 729934; DI2.Drop(); return; } } if (MyMath.ChanceSuccess(4)) { if (Char != null) { DI2.Info.ID = 729936; DI2.Drop(); return; } } if (MyMath.ChanceSuccess(9)) { if (Char != null) { DI2.Info.ID = 729937; DI2.Drop(); return; } } if (MyMath.ChanceSuccess(9)) { if (Char != null) if (Name == "BladeGhost") { DI2.Info.ID = 721250; DI2.Drop(); return; } } if (MyMath.ChanceSuccess(9)) { if (Char != null) if (Name == "BladeGhosts") { DI2.Info.ID = 721250; DI2.Drop(); return; } } #endregion
Alright now for the rest of the items
Just under where the Easter Egg region finishes there should be
replace all the code from if (MyMath.ChanceSuccess(30)) to public void Respawn()
with this:
Code:
if (MyMath.ChanceSuccess(30))
with this:
Code:
if (MyMath.ChanceSuccess(30)) { DI2.Silvers = (uint)(Rnd.Next(MinSilvers, MaxSilvers) * DropRates.Silver); if (Char != null) if (Char.VipLevel >= 3) { Char.Silvers += DI2.Silvers; return; } DI2.UID = (uint)Rnd.Next(10000000); DI2.Loc.X = (ushort)(Loc.X + Rnd.Next(4) - Rnd.Next(4)); DI2.Loc.Y = (ushort)(Loc.Y + Rnd.Next(4) - Rnd.Next(4)); if (DI2.Silvers < 10) DI2.Info.ID = 1090000; else if (DI2.Silvers < 100) DI2.Info.ID = 1090010; else if (DI2.Silvers < 1000) DI2.Info.ID = 1090020; else if (DI2.Silvers < 3000) DI2.Info.ID = 1091000; else if (DI2.Silvers < 10000) DI2.Info.ID = 1091010; else DI2.Info.ID = 1091020; if (!DI2.FindPlace((Hashtable)Game.World.H_Items[Loc.Map])) return; DI2.Drop(); } else { if (MyMath.ChanceSuccess(DropRates.DragonBall)) { if (Char != null) if (Char.VipLevel >= 0) { DI2.Info.ID = 1088000; DI2.Drop(); return; } DI2.Info.ID = 1088000; DI2.Info.MaxDur = DI2.Info.DBInfo.Durability; DI2.Info.CurDur = DI2.Info.MaxDur; } else if (MyMath.ChanceSuccess(DropRates.Meteor)) { DI2.Info.ID = 1088001; DI2.Info.MaxDur = DI2.Info.DBInfo.Durability; DI2.Info.CurDur = DI2.Info.MaxDur; } else if (MyMath.ChanceSuccess(DropRates.CPMiniBag)) { if (Char != null) if (Char.VipLevel >= 0) { DI2.Info.ID = 729910; DI2.Drop(); return; } DI2.Info.ID = 729910; DI2.Info.MaxDur = DI2.Info.DBInfo.Durability; DI2.Info.CurDur = DI2.Info.MaxDur; } else if (MyMath.ChanceSuccess(DropRates.CPBag)) { if (Char != null) if (Char.VipLevel >= 0) { DI2.Info.ID = 729911; DI2.Drop(); return; } DI2.Info.ID = 729911; DI2.Info.MaxDur = DI2.Info.DBInfo.Durability; DI2.Info.CurDur = DI2.Info.MaxDur; } else if (MyMath.ChanceSuccess(DropRates.CPBackpack)) { if (Char != null) if (Char.VipLevel >= 0) { DI2.Info.ID = 729912; DI2.Drop(); return; } DI2.Info.ID = 729912; DI2.Info.MaxDur = DI2.Info.DBInfo.Durability; DI2.Info.CurDur = DI2.Info.MaxDur; } else if (MyMath.ChanceSuccess(DropRates.PointCard)) { if (Char != null) if (Char.VipLevel >= 0) { if (Char.Inventory.Count <= 39) { DI2.Info.ID = 790000; DI2.Drop(); return; } } DI2.Info.ID = 780000; DI2.Info.MaxDur = DI2.Info.DBInfo.Durability; DI2.Info.CurDur = DI2.Info.MaxDur; } else if (MyMath.ChanceSuccess(DropRates.PointCard)) { if (Char != null) if (Char.VipLevel >= 0) { DI2.Info.ID = 1080001; DI2.Drop(); return; } DI2.Info.ID = 1080001; DI2.Info.MaxDur = DI2.Info.DBInfo.Durability; DI2.Info.CurDur = DI2.Info.MaxDur; } else if (MyMath.ChanceSuccess(DropRates.PointCard)) { if (Char != null) if (Char.VipLevel >= 0) { DI2.Info.ID = 2100025; DI2.Drop(); return; } DI2.Info.ID = 780000; DI2.Info.MaxDur = DI2.Info.DBInfo.Durability; DI2.Info.CurDur = DI2.Info.MaxDur; } else if (MyMath.ChanceSuccess(DropRates.PlusOneStone)) { DI2.Info.ID = 730001; DI2.Info.Plus = 1; DI2.Info.MaxDur = DI2.Info.DBInfo.Durability; DI2.Info.CurDur = DI2.Info.MaxDur; } else if (MyMath.ChanceSuccess(DropRates.PlusTwoStone)) { DI2.Info.ID = 730002; DI2.Info.Plus = 2; DI2.Info.MaxDur = DI2.Info.DBInfo.Durability; DI2.Info.CurDur = DI2.Info.MaxDur; } else if (MyMath.ChanceSuccess(DropRates.CleanWater)) { DI2.Info.ID = 721258; DI2.Info.MaxDur = DI2.Info.DBInfo.Durability; DI2.Info.CurDur = DI2.Info.MaxDur; } else if (MyMath.ChanceSuccess(DropRates.Gem)) { DI2.Info.ID = (uint)(700001 + Rnd.Next(8) * 10); if (MyMath.ChanceSuccess(15)) DI2.Info.ID = 700121; if (MyMath.ChanceSuccess(15)) DI2.Info.ID = 700101; DI2.Info.MaxDur = DI2.Info.DBInfo.Durability; DI2.Info.CurDur = DI2.Info.MaxDur; } else if (MyMath.ChanceSuccess(DropRates.Item)) { Item.ItemQuality Q = Item.ItemQuality.Simple; if (MyMath.ChanceSuccess(DropRates.Refined)) Q = Item.ItemQuality.Refined; if (MyMath.ChanceSuccess(DropRates.Unique)) Q = Item.ItemQuality.Unique; if (MyMath.ChanceSuccess(DropRates.Elite)) Q = Item.ItemQuality.Elite; if (MyMath.ChanceSuccess(DropRates.Super)) Q = Item.ItemQuality.Super; uint ItemID = 0; ArrayList From = new ArrayList(); foreach (DatabaseItem D in Database.DatabaseItems.Values) { if (D.LevReq + 5 > Level && D.LevReq - 5 <= Level) { if (D.LevReq != 0) From.Add(D.ID); } } if (From != null) { byte Tries = (byte)Rnd.Next(0, From.Count); ItemID = (uint)From[Tries]; } if (ItemID != 0) { DI2.Info.ID = ItemID; if (DI2.Info.DBInfo.LevReq != 1) { ItemIDManipulation E = new ItemIDManipulation(ItemID); E.QualityChange(Q); DI2.Info.ID = E.ToID(); } DI2.Info.Color = Item.ArmorColor.Orange; if (ItemIDManipulation.Digit(DI2.Info.ID, 1) == 4 || ItemIDManipulation.Digit(DI2.Info.ID, 1) == 5) { if (MyMath.ChanceSuccess(DropRates.OneSoc)) DI2.Info.Soc1 = Item.Gem.EmptySocket; if (MyMath.ChanceSuccess(DropRates.TwoSoc)) { DI2.Info.Soc1 = Item.Gem.EmptySocket; DI2.Info.Soc2 = Item.Gem.EmptySocket; } } if (MyMath.ChanceSuccess(DropRates.PlusOne)) DI2.Info.Plus = 1; DI2.Info.MaxDur = DI2.Info.DBInfo.Durability; DI2.Info.CurDur = DI2.Info.MaxDur; if (Q == Item.ItemQuality.Super || Q == Item.ItemQuality.Elite) if (Char != null) if (Char.VipLevel >= 3) { if (Char.Inventory.Count <= 39) { if (!DI2.FindPlace((Hashtable)Game.World.H_Items[Loc.Map])) return; DI2.Drop(); } } } } if (DI2.Info.ID != 0) { if (!DI2.FindPlace((Hashtable)Game.World.H_Items[Loc.Map])) return; DI2.Drop(); } } } catch (Exception Exc) { Program.WriteLine(Exc); } }
PRESS THANKS IF YOU LIKED THIS OR USED IT