Page 1 of 1

**exclusive** some cybervillage V2 code leaked!!!

Posted: Thu Dec 23, 2004 12:58 am
by Red Squirrel

Code: Select all

$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

");
echo("Total Cost: ".$totalcost." ICs
");
echo("Discount savings: ".($costperitem-($totalcost/$quantity))." ICs per item
");
echo("Actual cost per item: ".($totalcost/$quantity)." ICs per item
");
[code]
 ;) 

[color=#888888][size=85]Archived topic from Iceteks,  old topic ID:2944, old post ID:24011[/size][/color]

**exclusive** some cybervillage V2 code leaked!!!

Posted: Thu Dec 23, 2004 8:57 pm
by Chris Vogel
It looks nice! (Bulk discounts are a great idea! :) )

Archived topic from Iceteks, old topic ID:2944, old post ID:24026

**exclusive** some cybervillage V2 code leaked!!!

Posted: Thu Dec 23, 2004 9:29 pm
by Red Squirrel
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.

Archived topic from Iceteks, old topic ID:2944, old post ID:24029

**exclusive** some cybervillage V2 code leaked!!!

Posted: Thu Dec 23, 2004 9:33 pm
by Chris Vogel
Will it be possible to buy huge quantities and resale them? :P

Archived topic from Iceteks, old topic ID:2944, old post ID:24030

**exclusive** some cybervillage V2 code leaked!!!

Posted: Thu Dec 23, 2004 10:13 pm
by Red Squirrel
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.

Archived topic from Iceteks, old topic ID:2944, old post ID:24031

**exclusive** some cybervillage V2 code leaked!!!

Posted: Sun Dec 26, 2004 2:37 pm
by Red Squirrel
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. :P

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. :roflmao2:

Archived topic from Iceteks, old topic ID:2944, old post ID:24062