DarkTamer

Member
hello
what i want to do is to get lady mel hair dyes from elder gazers
is this possible?
i tried to copy paste the line from lady mel but it doesnt recognize "c.dropitem" lines
or is there an other way to do so?
i want it to drop them like %1 chance or so
 
Code:
        public override void OnDeath(Container c)
        {
            base.OnDeath(c);

            if (Utility.RandomDouble() <= 0.01) // 1% chance to drop
                c.DropItem(new MelisandesHairDye());
        }
 
Code:
        public override void OnDeath(Container c)
        {
            base.OnDeath(c);

            if (Utility.RandomDouble() <= 0.01) // 1% chance to drop
                c.DropItem(new MelisandesHairDye());
        }
it gives error
CS0246: Line 46: 'Container' cannot find name or type
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back