okay guys i solved a problem that was giving me a error , but now , the monster in question is not droping the requested item may someone help here please?



public override void OnDeath( Container c )
{
base.OnDeath( c );
if ( Utility.RandomMinMax(100,0) == 100 )
c.DropItem( new AmagedonDestroyer( 1 ) );
 
if ( Utility.RandomMinMax(100,0) == 100 )

The 100 is in the minimum spot and the 0 is in the maximum spot
if ( Utility.RandomMinMax(0, 100) == 100 ) //this would give it a 1 in 100 chance of dropping
 
if ( Utility.RandomMinMax(100,0) == 100 )

The 100 is in the minimum spot and the 0 is in the maximum spot
if ( Utility.RandomMinMax(0, 100) == 100 ) //this would give it a 1 in 100 chance of dropping
how do i make it 100 %?
 
if you want it to always drop it doesn't need to have a roll at all so just put
public override void OnDeath( Container c )
{
base.OnDeath( c );

c.DropItem( new AmagedonDestroyer( 1 ) );
 
if you want it to always drop it doesn't need to have a roll at all so just put
public override void OnDeath( Container c )
{
base.OnDeath( c );

c.DropItem( new AmagedonDestroyer( 1 ) );
okay thanks for help , still learning how to script :)
Post automatically merged:

hey sorry for bothering you again , but , i am trying to add an instance crator to my server like .. guild villages and this keeps giving a error , would you help me? ofc if you have time for that :)
Post automatically merged:

1578257063366.png

does someone know , whats going on? tryed to change couple of times but whitout sucess
 
Last edited:
Back