Tukaram
Member
I am working on some quests (about all I do lately...) and got distracted by loot properties. I am learning how to work with quest objectives and using the old Gizmo quest creator. A lot of it is outdated, but it gets a good start. But, I am not sure what this section means in the Reward section.
I am using a hat to test it. Anyone know what the ( 1,4 ), 10, 50 ); means? I assume it is setting loot quality, but I have messed with the numbers quite a bit with very little change.
This hat is set ( 1,4 ), 80, 100 ); Just trying to figure what they mean.
C#:
public override void GiveRewards()
{
Item item;
//Add Reward Item #1
item = new FeatheredHat();
if( item is BaseWeapon )
BaseRunicTool.ApplyAttributesTo((BaseWeapon)item, Utility.RandomMinMax( 1,4 ), 10, 50 );
if( item is BaseArmor )
BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax( 1,4 ), 10, 50 );
if( item is BaseJewel )
BaseRunicTool.ApplyAttributesTo((BaseJewel)item, Utility.RandomMinMax( 1,4 ), 10, 50 );
if( item is BaseHat )
BaseRunicTool.ApplyAttributesTo((BaseHat)item, Utility.RandomMinMax( 1,4 ), 10, 50 );
if(!Owner.AddToBackpack( item ) )
{
item.MoveToWorld(Owner.Location,Owner.Map);
}
base.GiveRewards();
}
This hat is set ( 1,4 ), 80, 100 ); Just trying to figure what they mean.