Hello, i'm making a ML Quest, all work good but when i wanted to add a barbed runic and horned runic as the reward, it didn't work.
I changed the reward and it worked so the problem is to select a barbed runic and horned runic as a reward.
It seems to work just with items which already exist.
I'll paste the code... Any idea about it?

Thank you!
Code:
switch ( Utility.Random( 2 ) )
{
case 0 :AddReward( new BaseReward( typeof(new RunicSewingKit(CraftResource.HornedLeather, 30) ),1, "Horned Runic" ) );
    break;
 

case 1 :AddReward( new BaseReward( typeof(new RunicSewingKit(CraftResource.BarbedLeather, 15) ),1, "Barbed Runic" ) );
    break;


}
 
Last edited:
Hello, i'm making a ML Quest, all work good but when i wanted to add a barbed runic and horned runic as the reward, it didn't work.
I changed the reward and it worked so the problem is to select a barbed runic and horned runic as a reward.
It seems to work just with items which already exist.
I'll paste the code... Any idea about it?

Thank you!
Code:
switch ( Utility.Random( 2 ) )
{
case 0 :AddReward( new BaseReward( typeof(new RunicSewingKit(CraftResource.HornedLeather, 30) ),1, "Horned Runic" ) );
    break;


case 1 :AddReward( new BaseReward( typeof(new RunicSewingKit(CraftResource.BarbedLeather, 15) ),1, "Barbed Runic" ) );
    break;


}

I think you could just remove the BaseReward just put it like this should go:
Code:
switch ( Utility.Random( 2 ) )
{
case 0 :Add (new RunicSewingKit(CraftResource.HornedLeather, 30) );
    break;


case 1 :Add (new RunicSewingKit(CraftResource.BarbedLeather, 15) );
    break;


}
 
Back