Mob Drop

07/05/2009 09:44 Arcotemple:)#1
is this how its to be built?
Quote:
if (Name == "WhiteGhost")//SkyToken
{
if (Other.ChanceSuccess(2))
{
string Item = "721537-0-0-0-0-0";
if (Other.ChanceSuccess(2))
Item = "721534-0-0-0-0-0";
if (Other.ChanceSuccess(2))
Item = "721535-0-0-0-0-0";
if (Other.ChanceSuccess(2))
Item = "721536-0-0-0-0-0";
if (Other.ChanceSuccess(2))
Item = "721533-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
World.ItemDrops(item);
}
07/05/2009 09:45 PeTe Ninja#2
no its

Code:
if (Name == "WhiteGhost")//SkyToken
{
if (Other.ChanceSuccess(2))
{
string Item = "721537-0-0-0-0-0";
if (Other.ChanceSuccess(2))
Item = "721534-0-0-0-0-0";
if (Other.ChanceSuccess(2))
Item = "721535-0-0-0-0-0";
if (Other.ChanceSuccess(2))
Item = "721536-0-0-0-0-0";
if (Other.ChanceSuccess(2))
Item = "721533-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
World.ItemDrops(item);
}
}
07/05/2009 09:47 Arcotemple:)#3
pete mind getting on msn for one sec?
07/05/2009 09:59 PeTe Ninja#4
just talk through fail.. anyway here he told me to post this

Code:
 public bool GetDamage(uint Damage)
        {
            if (CurHP > Damage)
            {
                CurHP -= Damage;

                return false;
            }
            else
            {
                CurHP = 0;
                Alive = false;
                Revive = false;

                uint MoneyDrops = 0;

                if (Other.ChanceSuccess(30))
                {
                    int DropTimes = 1;
                    if (Other.ChanceSuccess(15))
                    {
                        DropTimes = General.Rand.Next(1, 6);
                    }
                    for (int i = 0; i < DropTimes; i++)
                    {
                        MoneyDrops = (uint)General.Rand.Next(1, 10);

                        if (Other.ChanceSuccess(15))
                            MoneyDrops = (uint)General.Rand.Next(1000, 15000);
                        if (Other.ChanceSuccess(30))
                            MoneyDrops = (uint)General.Rand.Next(500, 5000);
                        if (Other.ChanceSuccess(50))
                            MoneyDrops = (uint)General.Rand.Next(100, 1000);
                        if (Other.ChanceSuccess(70))
                            MoneyDrops = (uint)General.Rand.Next(30, 500);
                        if (Other.ChanceSuccess(90))
                            MoneyDrops = (uint)General.Rand.Next(1, 200);

                        MoneyDrops = MoneyDrops / (136 - (uint)Level) * 10;
                        if (MoneyDrops < 1)
                            MoneyDrops = 1;
                        string Item = "";

                        if (MoneyDrops < 10000)
                            Item = "1090000-0-0-0-0-0";
                        else if (MoneyDrops < 3000)
                            Item = "1090010-0-0-0-0-0";
                        else if (MoneyDrops < 1000)
                            Item = "1090020-0-0-0-0-0";
                        else if (MoneyDrops < 100)
                            Item = "1091000-0-0-0-0-0";
                        else if (MoneyDrops < 10)
                            Item = "1091010-0-0-0-0-0";
                        else
                            Item = "1091020-0-0-0-0-0";

                        DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                        World.ItemDrops(item);
                    }
                }
                else