Equations

Started by Shadow, March 09, 2008, 01:12:02 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Shadow

Can someone give me the leader loot/feast production equations?
<=holbs-.. ..-holbs=> <=holbs-..

Peace Alliance

function SpellFood ()

{

global $users, $urace, $lratio, $config, $uera, $cterms, $cocounter, $playerdb;

if ($lratio >= 30)

{

$food = cashandfood() / $config[food][market];

if(($urace[ability] == 18) && ($users[abilitytime] > $time))

{

$food *= 1.05;

print "Your gatherers find that the land here is more enriched! 5% more food is stocked.<br>";

}



if($users[clan])

{

$isenriched = 0;

$clanmem = dbquery("SELECT * FROM $playerdb WHERE clan=$users[clan];");

while($mem = mysql_fetch_array($clanmem))

{

$memrace = loadRace($mem[num]);

if(($memrace[ability] == 18) && ($mem[abilitytime] > $time))

$isenriched = 1;

}



if($isenriched)

{

$food *= 1.02;

print "Your clanmate points out some enriched land, and 2% more food is stocked.<br>";

}

}



if (!$cocounter[hide])

SpellSucceed(commas($food)." $uera[food] shows up in your $cterms[army]'s stockpiles!");

$cocounter[food] += $food;

$users[food] += $food;

}

else SpellFail("You need ".commas((30*$users[labs]/$users[raceinfo][magic])-$users[wizards])." more $uera[wizards].");

}



function SpellGold ()

{

global $users, $urace, $lratio, $cterms, $uera, $cocounter;

if ($lratio >= 30)

{

$money = cashandfood();

if (!$cocounter[hide])

SpellSucceed("$".commas($money)." shows up in your $cterms[army]'s treasury!");

$cocounter[cash] += $money;

$users[cash] += $money;

}

else SpellFail("You need ".commas((30*$users[labs]/$users[raceinfo][magic])-$users[wizards])." more $uera[wizards].");

}



pippin the mighty

Sorry, it doesnt help me.

Shadow

I have no idea how to translate that into something understandable ::)

Anyone know how to make that into understandable algebra?
<=holbs-.. ..-holbs=> <=holbs-..

pippin the mighty

Im not 100% sure, but I thought I saw somthing being like food = 10.5 of your networth, proberlly wrong though.

Wolf Snare

ive taken the time before to calculate exactly how much loyalty can be converted into cash or food.

It converts at different rates depending on how much land, and how many leaders you have.
1. Fire Bringer (#22)
1. Jaturungkabart (#12)
1. Estranged (#50)
1. Fierce Deity (#17) 
1. bored... (#98)
1. Versace (#24)
1. Noah Calhoun (#10)
1. Day Old Hate (#7)
1. The Grand Optimist (#12)
1. Beast Mode (#7)

Shadow

I know there were equations in the old guide for calculating exact mission output. I wonder if anyone has access to them anymore?
<=holbs-.. ..-holbs=> <=holbs-..

bjornredtail

$food = cashandfood() / $config[food][market];
That's the line you folks want... I'm not entirely sure what the function cashandfood() does... Nor am I really all that sure what the config variable is (I'm guessing it is base price for food).
0==={=B=J=O=R=N=R=E=D=T=A=I=L==>
AKA, Nevadacow
First person to ever play RWL

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra

Visit http://frostnflame.org today!

Shadow

Rawr

the equations i remember involved several variables - health, land, leaders, and net worth. It was a piecewise function based on breakpoints in the net worth that was modified by your health.
<=holbs-.. ..-holbs=> <=holbs-..

windhound

Catch me on msn Shadow, I'll throw you a link to the old guide that's still active
I killed off what was left of it on the public servers to avoid confusion with the new guide...  which will eventually have all that the old guide has plus
A Goldfish has an attention span of 3 seconds...  so do I
~ In the beginning there was nothing, which exploded ~
There are only 10 types of people in the world: Those who understand binary, and those who don't

Shadow

Got it, thank you. Shame it doesn't detail how much is lost at each breakpoint.
<=holbs-.. ..-holbs=> <=holbs-..

Alazar is Back

Quote from: Shadow on March 10, 2008, 06:10:21 PM
Got it, thank you. Shame it doesn't detail how much is lost at each breakpoint.

Yeah, but you make alot more cash and food when your under 100mil net i do know that much and im pretty sure you do also....
Turbo Highest Rank:Co-Emperor with Wolf Snare, Emperor

One of the most underrated players at RWL..

Shadow

Yes, I was hoping there was something in the equations that I didn;t know so I could maximize what I was getting, but no such luck.
<=holbs-.. ..-holbs=> <=holbs-..