• Xhanch - WP Manga - Have your own automated manga reader website

PHP Script – Plant Tycoon Species List

I create this PHP script just for one purpose, which is to produce a complete list of plant species in Plant Tycoon and how to get every species by pollination.
This game is so interesting and there is a lot of things to do, collect and discover.
It is a fun game and I have been playing this game for a week.

Plant Tycoon is a gardening sim game where you nurture plants and experiment with increasingly rare and valuable species. The object is to breed and cross breed plants until you find the 6 Magic Plants of Isola and solve the genetic puzzle. You start with a couple of dollars, a handful of seeds, some soil and water. Grow plants, organize and harvest seeds, monitor your plants’ health, age and maturity and protect your plants from dehydration and infestations. Sell some of your creations to fund your research, buy better supplies to use in your Nursery and purchase ornaments to customize your virtual garden.

Click here if you just want to view the complete species list

Source Code

<?php
    //By    : Xhanch Studio
    //URL   : http://xhanch.com/

    global $lst_flower;
    global $lst_plant;

    $lst_flower = array(
        "Tilia",
        "Baccatus",
        "Lilia",
        "Tahition",
        "Venus",
        "Arthurium",
        "Citrus",
        "Mela",
        "Venomous",
        "Aureus",
        "Four Petal",
        "Blazing",
        "Fragrant",
        "Fabled",
        "Jalapa",
        "Viola",
        "Rosaceae",
        "Mystic",
        "Bluestar",
        "Nox",
        "Daisy",
        "Painted",
        "Spotted"
    );

    $lst_plant = array(
        "Ridgeball",
        "Multiflora",
        "Weeper",
        "Pitcher",
        "Tigerfern",
        "Glaber",
        "Ball Cactus",
        "Pear Cactus",
        "Pipe Cactus",
        "Rare Oak",
        "Maple",
        "Bamboo",
        "Lemonbush",
        "Fanleaf",
        "Maranta",
        "Ananas",
        "Fern",
        "Gladiatus",
        "Astera",
        "Orchid",
        "Grass",
        "Scandens",
        "Reptans"
    );

    function generate_match($ind){
        $res = array();
        $i=$ind+1;
        $j=$ind-1;
        while(true){
            $i--;
            $j++;
            if($i<0)break;
            if($j>22)break;
            $res[] = array($i,$j);
        }

        $i=$ind+1;
        $j=$ind;
        while(true){
            $i--;
            $j++;
            if($i<0)break;
            if($j>22)break;
            $res[] = array($i,$j);
        }

        return $res;
    }

    function generate_breed_list($flw, $plt){
        global $lst_flower;
        global $lst_plant;

        $res_flower = generate_match($flw);
        $res_plant = generate_match($plt);

        foreach($res_flower as $fl){
            foreach($res_plant as $pl){
                echo '
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <i>'.$lst_flower[$fl[0]].' '.$lst_plant[$pl[0]].'</i> x
                    <i>'.$lst_flower[$fl[1]].' '.$lst_plant[$pl[1]].'</i>
                    <br />
                ';
                flush();
            }
        }
        echo '<br />';
    }
?>

<h1>Plant Tycoon - Complete Plant Species List</h1>
Note: there are some species that can not be found by pollination.
These species can only be found by buying seeds from <i>Supplies</i>
or by using <i>Mutation Liquid</i>
<br />
<br />
<b>List of Species</b>
<br />
<?
    for($i=0;$i<23;$i++){
        for($j=0;$j<23;$j++){
            $no = (($i*23)+$j) + 1;
            if($no < 10)$no = '00'.$no;
            elseif($no < 100)$no = '0'.$no;
            echo $no.'. <a href="#'.$no.'">
		<i>'.$lst_flower[$i].' '.$lst_plant[$j].'</i>
		</a><br />
            ';
            flush();
        }
    }

    for($i=0;$i<23;$i++){
        for($j=0;$j<23;$j++){
            $no = (($i*23)+$j) + 1;
            if($no < 10)$no = '00'.$no;
            elseif($no < 100)$no = '0'.$no;
            echo '
                <a id="'.$no.'">
                ===============================================
                <br />
                <b>'.$no.'. <i>'.$lst_flower[$i].' '.$lst_plant[$j].'</i></b>
                <br />
                ===============================================
                <br /><br />
                <b>List of pollinations that can produce this species:</b><br />
            ';
            flush();
            generate_breed_list($i, $j);
        }
    }

?>

Click here to support our work. Thanks :)


One Response to “PHP Script – Plant Tycoon Species List”

  1. Warrior Game says:

    Oh cool. Thank you for creating this script. I love botanic but I never had a chance to do it in real life. Thank you again.

Leave a Reply

  • NOTICE

    Xhanch Studio is finally online after successfully moved from shared hosting to our own VPS Hosting.

    Please note that our primary email admin@xhanch.com is not functioning yet. So, please send your emails to xhanch@gmail.com for the moment until we resolve this issue.

    Regards, Xhanch Studio
  • Sponsored Ads

    WalkNote.com - A Place to Share, Have Fun and Get Connected Place you ad here
  • PayPal Verified

    Happy with our free services? You may donate us. Thanks!

    Donate
  • Latest Tweets

    Here are our recent tweets:

    • @xhanch Your a legend!!! I have just used the first part of the code so the links are a different colour and it looks fab, Thanks! - posted on 3 days ago via Tweetie for Mac

    • Xhanch - My Twitter 2.0.2 is released. Some minor fixings - posted on 3 days ago via web

    • We have finished the website migration to a VPS server - posted on 3 days ago via web

    • @Bunglenick put this code to custom CSS: {xmt_id}.xmt ul li.tweet_list{color:#ffffff} {xmt_id}.xmt ul li.tweet_list a{color:#ffffff} - posted on 3 days ago via web

    • @xhanch Hi there, how do I go about changing the colour of the text in your twitter app? Its black but I need white. - posted on 5 days ago via Tweetie for Mac