In the Folder VendorInfo in Scripts you'll find all the SB (Sell/Buy) scripts : ie SBCarpenter.cs
View attachment 24072
}
public class InternalSellInfo : GenericSellInfo
{
public InternalSellInfo()
{
Add(typeof(WoodenBox), 7);
Add(typeof(SmallCrate), 5);
Add(typeof(MediumCrate), 6);
Add(typeof(LargeCrate), 7);
Add(typeof(WoodenChest), 15);
Add(typeof(LargeTable), 10);
Add(typeof(Nightstand), 7);
Add(typeof(YewWoodTable), 10);
Add(typeof(Throne), 24);
Add(typeof(WoodenThrone), 6);
Add(typeof(Stool), 6);
Add(typeof(FootStool), 6);
Add(typeof(FancyWoodenChairCushion), 12);
Add(typeof(WoodenChairCushion), 10);
Add(typeof(WoodenChair), 8);
Add(typeof(BambooChair), 6);
Add(typeof(WoodenBench), 6);
Add(typeof(Saw), 9);
Add(typeof(Scorp), 6);
Add(typeof(SmoothingPlane), 6);
Add(typeof(DrawKnife), 6);
Add(typeof(Froe), 6);
Add(typeof(Hammer), 14);
Add(typeof(Inshave), 6);
Add(typeof(JointingPlane), 6);
Add(typeof(MouldingPlane), 6);
Add(typeof(DovetailSaw), 7);
Add(typeof(Board), 2);
Add(typeof(Axle), 1);
Add(typeof(Club), 13);
Add(typeof(Lute), 10);
Add(typeof(LapHarp), 10);
Add(typeof(Tambourine), 10);
Add(typeof(Drums), 10);
Add(typeof(Log), 1);
}
}
}
}
Is what is in my script for carpenters, but in game they are not selling all of that :-( I get no errors when i start the shard up though. I have typed [restock just to see what would happen, and nothing different in their inverntory
}
public class InternalSellInfo : GenericSellInfo
{
public InternalSellInfo()
{
Add(typeof(WoodenBox), 7);
Add(typeof(SmallCrate), 5);
Add(typeof(MediumCrate), 6);
Add(typeof(LargeCrate), 7);
Add(typeof(WoodenChest), 15);
Add(typeof(LargeTable), 10);
Add(typeof(Nightstand), 7);
Add(typeof(YewWoodTable), 10);
Add(typeof(Throne), 24);
Add(typeof(WoodenThrone), 6);
Add(typeof(Stool), 6);
Add(typeof(FootStool), 6);
Add(typeof(FancyWoodenChairCushion), 12);
Add(typeof(WoodenChairCushion), 10);
Add(typeof(WoodenChair), 8);
Add(typeof(BambooChair), 6);
Add(typeof(WoodenBench), 6);
Add(typeof(Saw), 9);
Add(typeof(Scorp), 6);
Add(typeof(SmoothingPlane), 6);
Add(typeof(DrawKnife), 6);
Add(typeof(Froe), 6);
Add(typeof(Hammer), 14);
Add(typeof(Inshave), 6);
Add(typeof(JointingPlane), 6);
Add(typeof(MouldingPlane), 6);
Add(typeof(DovetailSaw), 7);
Add(typeof(Board), 2);
Add(typeof(Axle), 1);
Add(typeof(Club), 13);
Add(typeof(Lute), 10);
Add(typeof(LapHarp), 10);
Add(typeof(Tambourine), 10);
Add(typeof(Drums), 10);
Add(typeof(Log), 1);
}
}
}
}
Is what is in my script for carpenters, but in game they are not selling all of that :-( I get no errors when i start the shard up though. I have typed [restock just to see what would happen, and nothing different in their inverntory
I just had a thought. I am reading the script ...
public InternalSellInfo()
{
as to meaning that is what they sell ... perhaps that means what the player sees when they select the sell option from the npc's gump? and the other part, the part you posted, that says buy is what is seen by the player when they select the buy option ? Which is the complete opposite of what i was understanding the script to do/mean???
OK I had it all figured backwords. Thank you , Wilson, for your reply. What you posted helped me to figure out my mistake
Now i do have another question (two really) What is the easiest way to get item ids ? ie wooden chest 0XE43 . Right now im adding the item in game, useing props to get the item id, then removing the item. Long and weary making. second question .. in the script i will have something like ... Add(new GenericBuyInfo(typeof(WoodenChest), 21, 20, 0xE43, 0)); Which i took from the item above, the Lute, and just edited it. What i would like to know is what do the numbers 21, 20, mean? Do i need to or should i want to, change them to something else ? I am assuming at least one of them is the max number the vender will have to sell ? NEVER MIND ! I figured it out soon after asking. the first number is the amount to sell it for the second is the amount they will offer for sale
I was going to simply remove my post, but figured maybe someone else would benifit from this so i am leaving it
I do still need to know if there is a more simple way to get item id numbers than how i am doing it now
Thank You in advance