Pressgang

Ask for help or introduce yourself to the community here. This is also an academy for new players/members.
Post Reply
User avatar
Shadow I
Addict
Posts: 1163
Joined: Fri Nov 16, 2007 12:45 am
Location: New Brunswick

Post by Shadow I »

I am thinking about working on moving to new strats and refining casher for a bit since i have never used it before on any server. I know tents and alternating tax rates are the way to go, but I am looking at the pressgang spell and wondering if I could work it in. What exactly determines the number of workers it produces?
Phillip says:
Tell me more about your Undefined
Guest

Post by Guest »

rawr, i wish the test server was still available.
User avatar
Freenhult
13th Division Captain
Posts: 3380
Joined: Mon Jan 02, 2006 2:30 am
Location: Valparaiso
Contact:

Post by Freenhult »

Its junk. Last I knew, it wasn't very effective.
Nami kotogotoku, waga tate to nare. Ikazuchi kotogotoku, waga yaiba to nare. Sōgyo no Kotowari!

波悉く我が盾となれ雷悉く我が刃となれ,双魚の理 !

Every wave be my shield, every lightning become my blade!
User avatar
Shadow I
Addict
Posts: 1163
Joined: Fri Nov 16, 2007 12:45 am
Location: New Brunswick

Post by Shadow I »

but do you know what goes into the equation? I know it's got nothing to do with dens or hawks, since I did it at 100% dens and got 0 workers:P
Phillip says:
Tell me more about your Undefined
User avatar
Slasher
The FAF Forums SMEGHEAD!!! lol
Posts: 2635
Joined: Mon May 03, 2004 5:08 pm
Location: http://florida4us.com/
Contact:

Post by Slasher »

I think it's tents that affect it, I'll try and have a look at the code in a few but it's 1.10am and i've been drinking a fair bit so...

Ok.. here goes

code: Select all

function missionpeasant() {
    global $users, $lratio, $playerdb, $produced;
    global $spratio, $mission_num;
    for($i=0; $i<8; $i++) {
        $popbase = round((($users[land] * 2) + ($users[freeland] * 5) + ($users[homes] * 60)) / (0.95 + $taxrate + $taxpenalty));
        if ($users[peasants] != $popbase)
        $peasants = ($popbase - $users[peasants]) / 20;
        if ($peasants > 0)    $peasmult = (4 / (($users[tax] + 15) / 20)) - (7 / 9);
        if ($peasants < 0)    $peasmult = 1 / ((4 / (($users[tax] + 15) / 20)) - (7 / 9));
        $peasants = round($peasants * $peasmult * $peasmult);
        if($peasants < 0)
            $peasants = 0;
        $users[peasants] += $peasants;
                $produced += $peasants;
    }
    saveUserData($users, "peasants");

}
so it's something to do with user land * 2 + user free land * 5 + user tents * 60 / 0.95 + taxrate + taxpenalty
I do not have a signature, you must be imagining

http://florida4us.com/

Image
User avatar
Shadow I
Addict
Posts: 1163
Joined: Fri Nov 16, 2007 12:45 am
Location: New Brunswick

Post by Shadow I »

Perfect, thanks a lot
Phillip says:
Tell me more about your Undefined
User avatar
Slasher
The FAF Forums SMEGHEAD!!! lol
Posts: 2635
Joined: Mon May 03, 2004 5:08 pm
Location: http://florida4us.com/
Contact:

Post by Slasher »

You're welcome :)
I do not have a signature, you must be imagining

http://florida4us.com/

Image
Post Reply
  • Members connected in real time

    🔒 Close the panel of connected members