Yvan Major
Member
Hi all, anyone can point me to the good direction if i am looking to decrease the vendors cost per day on the server ?
Thanks !
Thanks !
I will post mine as soon as I get home, it is very simple to do and makes it much nicer for a small server like ours.Hi all, anyone can point me to the good direction if i am looking to decrease the vendors cost per day on the server ?
Thanks !
public int ChargePerDay
{
get
{
if (BaseHouse.NewVendorSystem)
{
return this.ChargePerRealWorldDay / 2;//was 12
}
else
{
long total = 0;
foreach (VendorItem vi in this.m_SellItems.Values)
{
total += vi.Price;
}
total -= 500;
if (total < 0)
total = 0;
return (int)(20 + (total / 500));
}
}
}
public int ChargePerRealWorldDay
{
get
{
if (BaseHouse.NewVendorSystem)
{
long total = 0;
foreach (VendorItem vi in this.m_SellItems.Values)
{
total += vi.Price;
}
return (int)( 2 + (total / 500) ); // * 3 );
//return (int)(60 + (total / 500) * 3);
}
else
{
//return this.ChargePerDay * 12;
return ChargePerDay * 2;//was 12
}
}
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.