Greetings all,
I'd like to sell some scrolls of transcendence in a vendor, using its SB sales list. The issue I am having is that the InternalBuyInfo list is looking for an item type, and the random method to generate a scroll with a random skill is as follows
its needless for me to say that putting
Add( new GenericBuyInfo( typeof( ScrollofTranscendence.CreateRandom(1, 3) ), 10000, 10, 0x14F0, 0 ) );
in the internal buy info doesn't work. Is there an easy way to code this in the vendor's sale list?
I'd like to sell some scrolls of transcendence in a vendor, using its SB sales list. The issue I am having is that the InternalBuyInfo list is looking for an item type, and the random method to generate a scroll with a random skill is as follows
C#:
public static ScrollofTranscendence CreateRandom( int min, int max )
{
SkillName skill = (SkillName)Utility.Random( SkillInfo.Table.Length );
return new ScrollofTranscendence(skill, Utility.RandomMinMax(min, max) * 0.1);
}
its needless for me to say that putting
Add( new GenericBuyInfo( typeof( ScrollofTranscendence.CreateRandom(1, 3) ), 10000, 10, 0x14F0, 0 ) );
in the internal buy info doesn't work. Is there an easy way to code this in the vendor's sale list?