[Site Home] [Forum Home] [Articles] [File DB] [News Archives]

The Cool Hangout Place -> **exclusive** some cybervillage V2 code leaked!!!


(View original topic)


Red Squirrel - Dec-26-2004 server time
I implimented the scrap feature so that when you scrap it, it sells it to the mall that you're in, and the mall decides how much to give you (a percentage that is set by the mall owner). Same with increasing HP, both prices are settable by the owner. Let's say I own a mall and someone buys something, then it goes in my wallet account. The only problem I see with this is that damn php limit, but by clearing all the ICs hopefully we won't get another inflation. tongue.gif

Though the cybervillage economy will be structured like world economy, where money does not just "disapear" so we'll be playing with the same money supply, though post money and stuff will be "newly printed" money so yes after a while there may be an inflation. But I'll think of a way around it when we get at that point. Allot of the money will technically "go nowhere" such as when you buy from the cybervillage default malls, but I'll think of other ways to make it go without taking out the realistic economy aspect from it, since that's what makes it interesting. I can always make taxes, we all know that tax money does not go anywhere. roflmao.gif

Red Squirrel - Dec-23-2004 server time
I was thinking of that. Instead of the scrap feature, you would sell it to a mall. Not sure yet though how it will work. It's all little things like that which I'll work once the major stuff is done.

Chris Vogel - Dec-23-2004 server time
Will it be possible to buy huge quantities and resale them? tongue.gif

Red Squirrel - Dec-23-2004 server time
Yeah and the interesting part is this:

if($quantity>50000)$totalcost=$totalcost*0.9;
if($quantity>100000)$totalcost=$totalcost*0.8;
if($quantity>1000000)$totalcost=$totalcost*0.7;
if($quantity>10000000)$totalcost=$totalcost*0.6;

So if the quantity is more then 100000 it will not only get a 20% discount, but also get a 10% discount, then a 20% discount off the discounted price. So when you make 10000000 items you get like a super discount.

Chris Vogel - Dec-23-2004 server time
It looks nice! (Bulk discounts are a great idea! smile.gif )

Red Squirrel - Dec-22-2004 server time
CODE

$costperitem = round((1+(strlen($name+$desc)+($hpdefend*$hpdamage))/1+($hpdamage+$hpdefend+($hpdamage+$hpdefend-($hpdamage+$hpdefend/2))))/10000,3);

$totalcost=round($costperitem*($quantity),3);

if($quantity>50000)$totalcost=$totalcost*0.9;
if($quantity>100000)$totalcost=$totalcost*0.8;
if($quantity>1000000)$totalcost=$totalcost*0.7;
if($quantity>10000000)$totalcost=$totalcost*0.6;

echo("Cost per item: ".$costperitem." ICs<br><br>");
echo("Total Cost: ".$totalcost." ICs<br>");
echo("Discount savings: ".($costperitem-($totalcost/$quantity))." ICs per item<br>");
echo("Actual cost per item: ".($totalcost/$quantity)." ICs per item<br>");

wink.gif

(Showing 50 last posts, newest on top)