[Questions] Monster Drops

03/01/2011 20:10 HackProvider#1
Heya, I've got a question.

My monsters aren't dropping items anymore, and I don't know where to find it,
could you guys be so kind and tell me how/where to fix it :D


thanks in advance ( Yup arco :) ):mofo:
03/01/2011 20:11 Arco.#2
if (MobID == ID)
//Drop 50000 cps;
03/01/2011 20:30 HackProvider#3
I knew it thanks bro , but my mobs arent dropping stuff.. except cash and mets dbs but no items,

btw
if (MobID == ID)
//Drop 50000 cps;

in mob.cs right?
03/01/2011 20:49 Arco.#4
That's just a pseudocode(example), you're going to have to do that actual code yourself, thats a good enough example for you to base your own code off of.
And yes, in mob.cs.
03/01/2011 21:05 HackProvider#5
Yes i understand >< lmao but why aren't my monsters dropping items anymore :/
03/02/2011 03:13 xElement#6
Make sure that in your DropRates.ini in OldCODB, that the number beside "Item=" is 500 and not 0.
03/02/2011 11:35 HackProvider#7
@xElement Already checked it, I increased it but still no drops

how can i make a drop 100pct

I have this code but hes not giving me 100k cps everytime I kill it thanks

in mob.cs

Quote:
if (Name == "Peter")
{
if (MyMath.ChanceSuccess(1000))
Char.CPs += 100000;
return;

}
03/02/2011 12:00 Syst3m_W1z4rd#8
Example
Code:
        public static double DropRate(DropRates DropRateItem)
        {
            switch (DropRateItem)
            {
                case DropRates.Meteor:
                    return 0.5;

                case DropRates.Dragonball:
                    return 0.01;
            }

            return 0;
        }
        void Drop(DropRates DropRateItem)
        {
            double Rate = DropRate(DropRateItem);
            DropItem DI = new DropItem();
            switch (DropRateItem)
            {
                case DropRates.Meteor:
                        DI.id = (uint)ItemID.Meteor;
                        break;
                case DropRates.Dragonball:
                        DI.id = (uint)ItemID.DragonBall;
                        break;
            }
            DI.UID = DI.NextUID();
            DI.Drop();
        }
03/02/2011 12:18 HackProvider#9
Hmm could you explain the code to me a bit, i think you don't understand me, the mob peter gives 100k cps.. but not everytime , like 8/10 times.

Do I need the whole code to change it ? I doubt that :p
If i have to , could you explain the code a bit, ?

thanks in advance
03/02/2011 12:25 Syst3m_W1z4rd#10
DropRate is a double.
DropRates is an enum.
DropItem is a struct.

The code I provided was just an example and you can't really implent it.

Also don't use Name, using a string is bad.
Check MobID instead. An integer is a way faster than a string.

if (MyMath.ChanceSuccess(1000))

Is your chance.
Simply remove it.
03/02/2011 13:56 HackProvider#11
Alright thanks but 1 question , could you explain why THE change of 1000 wont work xd

Btw monsters still drop nothing,i increased droprates
Item=50
Thanks again!

I just dont get it, how come they arent dropping anything