mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
update
This commit is contained in:
+374
-211
@@ -114,14 +114,15 @@ define("WAITING_LOOP","(waiting loop)");
|
||||
define("HRS","(hrs.)");
|
||||
define("DONE_AT","done at");
|
||||
define("CANCEL","cancel");
|
||||
define("LOYALTY","Loyalty:");
|
||||
define("LOYALTY","Loyalty");
|
||||
define("CALCULATED_IN","Calculated in");
|
||||
define("SEVER_TIME","Server time:");
|
||||
define("HI","HI");
|
||||
|
||||
//QUEST
|
||||
define("Q_BUTN","Send");
|
||||
define("Q_CONTINUE","Continue with the next task.");
|
||||
define("Q_REWARD","Your reward:");
|
||||
define("Q_BUTN","complete task");
|
||||
define("Q0","Welcome to ");
|
||||
define("Q0_DESC","As I see you have been made chieftain of this little village. I will be your counselor for the first few days and never leave your (right hand) side.");
|
||||
define("Q0_OPT1","To the first task.");
|
||||
@@ -146,7 +147,7 @@ define("Q3_ORDER","Order:<\/p>Change your village's name to something nice.");
|
||||
define("Q3_RESP","Wow, a great name for their village. It could have been the name of my village!...");
|
||||
|
||||
define("Q4","Task 4: Other Players");
|
||||
define("Q4_DESC","In <b>". SERVER_NAME ."</b> you play along with thousands of other players. Click 'statistics' in the top menu to look up your rank and enter it here.");
|
||||
define("Q4_DESC","In ". SERVER_NAME ." you play along with billions of other players. Click 'statistics' in the top menu to look up your rank and enter it here.");
|
||||
define("Q4_ORDER","Order:<\/p>Look for your rank in the statistics and enter it here.");
|
||||
define("Q4_BUTN","complete task");
|
||||
define("Q4_RESP","Exactly! That's your rank.");
|
||||
@@ -154,21 +155,21 @@ define("Q4_RESP","Exactly! That's your rank.");
|
||||
define("Q5","Task 5: Two Building Orders");
|
||||
define("Q5_DESC","Build an iron mine and a clay pit. Of iron and clay one can never have enough.");
|
||||
define("Q5_ORDER","Order:<\/p><ul><li>Extend one iron mine.<\/li><li>Extend one clay pit.<\/li><\/ul>");
|
||||
define("Q5_RESP","As you noticed, building orders take rather long. The world of <b>". SERVER_NAME ."</b> will continue to spin even if you are offline. Even in a few months there will be many new things for you to discover.<br \/><br \/>The best thing to do is occasionally checking your village and giving you subjects new tasks to do.");
|
||||
define("Q5_RESP","As you noticed, building orders take rather long. The world of ". SERVER_NAME ." will continue to spin even if you are offline. Even in a few months there will be many new things for you to discover.<br \/><br \/>The best thing to do is occasionally checking your village and giving you subjects new tasks to do.");
|
||||
|
||||
define("Q6","Task 6: Messages");
|
||||
define("Q6_DESC","You can talk to other players using the messaging system. I sent a message to you. Read it and come back here.<br \/><br \/>P.S. Don't forget: on the left the reports, on the right the messages.");
|
||||
define("Q6_ORDER","Order:<\/p>Read your new message.");
|
||||
define("Q6_RESP","You received it? Very good.<br \/><br \/>Here is some Gold. With Gold you can do several things, e.g. extend your ");
|
||||
define("Q6_RESP1"," Account or increase your resource production.To do so click ");
|
||||
define("Q6_RESP","You received it? Very good.<br \/><br \/>Here is some Gold. With Gold you can do several things, e.g. extend your in the left hand menu.");
|
||||
define("Q6_RESP1","-Account or increase your resource production.To do so click ");
|
||||
define("Q6_RESP2","in the left hand menu.");
|
||||
define("Q6_SUBJECT","Message From The Taskmaster");
|
||||
define("Q6_MESSAGE","You are to be informed that a nice reward is waiting for you at the taskmaster.<br /><br />Hint: The message has been generated automatically. An answer is not necessary.");
|
||||
|
||||
define("Q7","Task 7: Four More!");
|
||||
define("Q7","Task 7: One Each!");
|
||||
define("Q7_DESC","Now we should increase your resource production a bit. Build an additional woodcutter, clay pit, iron mine and cropland to level 1.");
|
||||
define("Q7_ORDER","Order:<\/p>Extend one more of each resource tile to level 1.");
|
||||
define("Q7_RESP","Very good, great development of resource production.");
|
||||
define("Q7_RESP","Very good, great develop of resources production.");
|
||||
|
||||
define("Q8","Task 8: Huge Army!");
|
||||
define("Q8_DESC","Now I've got a very special quest for you. I am hungry. Give me 200 crop!<br \/><br \/>In return I will try to organize a huge army to protect your village.");
|
||||
@@ -177,12 +178,12 @@ define("Q8_BUTN","Send crop");
|
||||
define("Q8_NOCROP","No Enough Crop!");
|
||||
|
||||
define("Q9","Task 9: Everything to 1.");
|
||||
define("Q9_DESC","In <b>" . SERVER_NAME . "</b> there is always something to do! While you are waiting for the huge incoming army you should increase your resource production a bit.");
|
||||
define("Q9_DESC","In Travian there is always something to do! While you are waiting for incoming the huge army, Now we should increase your resource production a bit. Extend all your resource tiles to level 1.");
|
||||
define("Q9_ORDER","Order:<\/p>Extend all resource tiles to level 1.");
|
||||
define("Q9_RESP","Very good, your resource production just thrives.<br \/><br \/>Soon we can start with constructing buildings in the village.");
|
||||
|
||||
define("Q10","Task 10: Dove of Peace");
|
||||
define("Q10_DESC","After signing up you are protected against attacks by your fellow players. You can see how long this protection lasts by adding the code <b>[#0]<\/b> to your profile.");
|
||||
define("Q10_DESC","The first days after signing up you are protected against attacks by your fellow players. You can see how long this protection lasts by adding the code <b>[#0]<\/b> to your profile.");
|
||||
define("Q10_ORDER","Order:<\/p>Write the code <b>[#0]<\/b> into your profile by adding it to one of the two description fields.");
|
||||
define("Q10_RESP","Well done! Now everyone can see what a great warrior the world is approached by.");
|
||||
define("Q10_REWARD","Your reward:<\/p>2 day Travian");
|
||||
@@ -192,30 +193,29 @@ define("Q11_DESC","Around you, there are many different villages. One of them is
|
||||
define("Q11_DESC1"," Click on 'map' in the header menu and look for that village. The name of your neighbours' villages can be seen when hovering your mouse over any of them.");
|
||||
define("Q11_ORDER","Order:</p>Look for the coordinates of ");
|
||||
define("Q11_ORDER1","and enter them here.");
|
||||
define("Q11_RESP","Exactly, that is where ");
|
||||
define("Q11_RESP1"," is! Your reward is how many resources this village has. Well, almost as many ...");
|
||||
define("Q11_BUTN","complete task");
|
||||
define("Q11_RESP","Exactly, there ");
|
||||
define("Q11_RESP1"," Village! As many resources as you reach this village. Well, almost as much ...");
|
||||
define("Q11_BUTN","completar misión");
|
||||
|
||||
define("Q12","Task 12: Cranny");
|
||||
define("Q12_DESC","It's getting time to erect a cranny. The world of <b>" . SERVER_NAME. "</b> is dangerous.<br \/><br \/>Many players live by stealing other players' resources. Build a cranny to hide some of your resources from enemies.");
|
||||
define("Q12_DESC","It's getting time to erect a cranny. The world of <?php echo SERVER_NAME; ?> is dangerous.<br \/><br \/>Many players live by stealing other players' resources. Build a cranny to hide some of your resources from enemies.");
|
||||
define("Q12_ORDER","Order:<\/p>Construct a Cranny.");
|
||||
define("Q12_RESP","Well done, now it's way harder for your mean fellow players to plunder your village.<br \/><br \/>If under attack, your villagers will hide the resources in the Cranny all on their own.");
|
||||
|
||||
define("Q13","Task 13: To Two.");
|
||||
define("Q13_DESC","In <b>" . SERVER_NAME . "</b> there is always something to do! Extend one woodcutter, one clay pit, one iron mine and one cropland to level 2 each.");
|
||||
define("Q13_DESC","In <?php echo SERVER_NAME; ?> there is always something to do! Extend one woodcutter, one clay pit, one iron mine and one cropland to level 2 each.");
|
||||
define("Q13_ORDER","Order:<\/p>Extend one of each resource tile to level 2.");
|
||||
define("Q13_RESP","Very good, your village grows and thrives!");
|
||||
|
||||
define("Q14","Task 14: Instructions");
|
||||
define("Q14_DESC","In the ingame instructions you can find short information texts about different buildings and types of units.<br \/><br \/>Click on 'instructions' at the left to find out how much lumber is required for the barracks.");
|
||||
define("Q14_ORDER","Order:<\/p>Enter how much lumber the barracks cost");
|
||||
define("Q14_BUTN","complete task");
|
||||
define("Q14_ORDER","Order:<\/p>Enter how much lumber barracks cost");
|
||||
define("Q14_RESP","Exactly! Barracks cost 210 lumber.");
|
||||
|
||||
define("Q15","Task 15: Main Building");
|
||||
define("Q15_DESC","Your master builders need a main building level 3 to erect important buildings such as the marketplace or barracks.");
|
||||
define("Q15_ORDER","Order:<\/p>Extend your main building to level 3.");
|
||||
define("Q15_RESP","Well done. The main building level 3 has been completed.<br><br>With this upgrade your master builders can construct more types of buildings and also do so faster.");
|
||||
define("Q15_RESP","Well done. The main building level 3 has been completed.<br><br>With this upgrade your master builders cannot only construct more types of buildings but also do so faster.");
|
||||
|
||||
define("Q16","Task 16: Advanced!");
|
||||
define("Q16_DESC","Look up your rank in the player statistics again and enjoy your progress.");
|
||||
@@ -242,9 +242,9 @@ define("Q19_RESP","Well done... The best instructors from the whole country have
|
||||
define("Q20","Task 20: Train.");
|
||||
define("Q20_DESC","Now that you have barracks you can start training troops. Train two ");
|
||||
define("Q20_ORDER","Please train 2 ");
|
||||
define("Q20_RESP","The foundation for your glorious army has been laid.<br \/><br \/>Before sending your army off to plunder you should check with the ");
|
||||
define("Q20_RESP","The foundation for your glorious army has been laid.<br \/><br \/>Before sending your army off to plunder you should check with the.");
|
||||
define("Q20_RESP1","Combat Simulator");
|
||||
define("Q20_RESP2"," to see how many troops you need to successfully fight one rat without losses.");
|
||||
define("Q20_RESP2","to see how many troops you need to successfully fight one rat without losses.");
|
||||
|
||||
define("Q21","Task 18: Economy");
|
||||
define("Q21_DESC","Trade & Economy was your choice. Golden times await you for sure!");
|
||||
@@ -262,15 +262,15 @@ define("Q23_ORDER","Order:<\/p>Please build a Marketplace.");
|
||||
define("Q23_RESP",";The Marketplace has been completed. Now you can make offers of your own and accept foreign offers! When creating your own offers, you should think about offering what other players need most to get more profit.");
|
||||
|
||||
define("Q24","Task 21: Everything to 2.");
|
||||
define("Q24_DESC","Now we should increase our resource production a bit more.");
|
||||
define("Q24_DESC","Now we should increase your resource production a bit. Build an additional woodcutter, clay pit, iron mine and cropland to level 1.");
|
||||
define("Q24_ORDER","Order:<\/p>Extend all resource tiles to level 2.");
|
||||
define("Q24_RESP","Congratulations! Your village grows and thrives...");
|
||||
|
||||
define("Q28","Task 22: Alliance.");
|
||||
define("Q28_DESC","Teamwork is important in Travian. Players who work together organise themselves in alliances. Get an invitation from an alliance in your region and join this alliance. Alternatively, you can found your own alliance. To do this, you need a level 3 embassy.");
|
||||
define("Q28_ORDER","Order:<\/p>Join an alliance or found one on your own.");
|
||||
define("Q28_RESP","Well done! Now you're in a union called");
|
||||
define("Q28_RESP1",", and you're a member of their alliance.<br>Working together you will all progress faster...");
|
||||
define("Q28_RESP","Is good! Now you're in a union called");
|
||||
define("Q28_RESP1",", and you're a member of their alliance with the faster you'll progress...");
|
||||
|
||||
define("Q29","Task 23: Main Building to Level 5");
|
||||
define("Q29_DESC","To be able to build a palace or residence, you will need a main building at level 5.");
|
||||
@@ -278,14 +278,14 @@ define("Q29_ORDER","Order:<\/p>Upgrade your main building to level 5.");
|
||||
define("Q29_RESP","The main building is level 5 now and you can build palace or residence...");
|
||||
|
||||
define("Q30","Task 24: Granary to Level 3.");
|
||||
define("Q30_DESC","To avoid losing crop, you should upgrade your granary.");
|
||||
define("Q30_DESC","That you do not lose crop, you should upgrade your granary.");
|
||||
define("Q30_ORDER","Order:<\/p>Upgrade your granary to level 3.");
|
||||
define("Q30_RESP","Granary is level 3 now...");
|
||||
|
||||
define("Q31","Task 25: Warehouse to Level 7");
|
||||
define("Q31_DESC"," To make sure your resources won't overflow, you should upgrade your warehouse.");
|
||||
define("Q31_ORDER","Order:<\/p>Upgrade your warehouse to level 7.");
|
||||
define("Q31_RESP","Warehouse has been upgraded to level 7...");
|
||||
define("Q31_RESP","Warehouse has upgraded to level 7...");
|
||||
|
||||
define("Q32","Task 26: All to five!");
|
||||
define("Q32_DESC","You will always need more resources. Resource tiles are quite expensive but will always pay out in the long term.");
|
||||
@@ -293,12 +293,12 @@ define("Q32_ORDER","Order:<\/p>Upgrade all resources tiles to level 5.");
|
||||
define("Q32_RESP","All resources are at level 5, very good, your village grows and thrives!");
|
||||
|
||||
define("Q33","Task 27: Palace or Residence?");
|
||||
define("Q33_DESC","To found a new village, you will need settlers. They can be trained in either a palace or a residence.");
|
||||
define("Q33_DESC","To found a new village, you will need settlers. Those you can train in either a palace or a residence.");
|
||||
define("Q33_ORDER","Order:<\/p>Build a palace or residence to level 10.");
|
||||
define("Q33_RESP","had reached to level 10, you can now train settlers and found your second village. Notice the cultural points...");
|
||||
|
||||
define("Q34","Task 28: 3 settlers.");
|
||||
define("Q34_DESC","To found a new village, you will need settlers. You can train them in the palace or residence.");
|
||||
define("Q34_DESC","To found a new village, you will need settlers. They can be trained in either a palace or a residence.");
|
||||
define("Q34_ORDER","Order:<\/p>Train 3 settlers.");
|
||||
define("Q34_RESP","3 settlers were trained. To found new village you need at least");
|
||||
define("Q34_RESP1","culture points...");
|
||||
@@ -329,135 +329,7 @@ define("T6","on hold");
|
||||
define("T7","1 day Travian ");
|
||||
define("T8","2 days Travian ");
|
||||
|
||||
//Quest 25
|
||||
define("Q25_7","Task 7: Neighbours!");
|
||||
define("Q25_7_DESC","Around you, there are many different villages. One of them is named. ");
|
||||
define("Q25_7_DESC1","Click 'Map' in the head menu and look for that village. The name of your neighbours' villages can be seen once you hover your mouse over any of them.");
|
||||
define("Q25_7_ORDER","<\/p><b>Order:</b><br>Look for the coordinates of ");
|
||||
define("Q25_7_ORDER1","and enter them here.");
|
||||
define("Q25_7_RESP","Exactly, there ");
|
||||
define("Q25_7_RESP1"," Village! As many resources as you reach this village. Well, almost as much ...");
|
||||
|
||||
define("Q25_8","Task 8: Huge Army!");
|
||||
define("Q25_8_DESC","Now I've got a very special Quest for you. I am hungry. Give me 200 crop!<br \/><br \/>In return I will try to organize a huge army to protect your village.");
|
||||
define("Q25_8_ORDER","Order:<\/p>Send 200 crop to the taskmaster.");
|
||||
define("Q25_8_BUTN","Send crop");
|
||||
define("Q25_8_NOCROP","No Enough Crop!");
|
||||
|
||||
define("Q25_9","Task 9: One each!");
|
||||
define("Q25_9_DESC","In " . SERVER_NAME . " there is always something to do! While you are waiting for your new army,<br \/><br \/>extend one additional woodcutter, clay pit, iron mine and cropland to level 1");
|
||||
define("Q25_9_ORDER","Order:<\/p>Extend one more of each resource tile to level 1.");
|
||||
define("Q25_9_RESP","Very good, great development of resource production.");
|
||||
|
||||
define("Q25_10","Task 10: Comming Soon!");
|
||||
define("Q25_10_DESC","Now there is time for a small break until the gigantic army I sent you arrives.<br \/><br \/>Until then you can explore the map or extend a few resource tiles.");
|
||||
define("Q25_10_ORDER","Order:<\/p>Wait for the taskmaster's army to arrive");
|
||||
define("Q25_10_RESP","Now a huge army from taskmaster has arrive to protect your village");
|
||||
define("Q25_10_REWARD","Your reward:<\/p>2 days more of Travian");
|
||||
|
||||
define("Q25_11","Task 11: Reports");
|
||||
define("Q25_11_DESC","Every time something important happens to your account you will receive a report.<br \/><br \/>You can see these by clicking on the left half of the 5th button (from left to right). Read the report and come back here.");
|
||||
define("Q25_11_ORDER","Order:<\/p>Read your latest report.");
|
||||
define("Q25_11_RESP","You received it? Very good. Here is your reward.");
|
||||
|
||||
define("Q25_12","Task 12: Everything to 1.");
|
||||
define("Q25_12_DESC","Now we should increase your resource production a bit.");
|
||||
define("Q25_12_ORDER","Order:<\/p>Extend all resource tiles to level 1.");
|
||||
define("Q25_12_RESP","Very good, your resource production just thrives.<br \/><br \/>Soon we can start with constructing buildings in the village.");
|
||||
|
||||
define("Q25_13","Task 13: Dove of Peace");
|
||||
define("Q25_13_DESC","The first days after signing up you are protected against attacks by your fellow players. You can see how long this protection lasts by adding the code <b>[#0]<\/b> to your profile.");
|
||||
define("Q25_13_ORDER","Order:<\/p>Write the code <b>[#0]<\/b> into your profile by adding it to one of the two description fields.");
|
||||
define("Q25_13_RESP","Well done! Now everyone can see what a great warrior the world is approached by.");
|
||||
|
||||
define("Q25_14","Task 14: Cranny");
|
||||
define("Q25_14_DESC","It's getting time to erect a cranny. The world of <b>" . SERVER_NAME. "</b> is dangerous.<br \/><br \/>Many players live by stealing other players' resources. Build a cranny to hide some of your resources from enemies.");
|
||||
define("Q25_14_ORDER","Order:<\/p>Construct a Cranny.");
|
||||
define("Q25_14_RESP","Well done, now it's way harder for your mean fellow players to plunder your village.<br \/><br \/>If under attack, your villagers will hide the resources in the Cranny all on their own.");
|
||||
|
||||
define("Q25_15","Task 15: To Two.");
|
||||
define("Q25_15_DESC","In <b>" . SERVER_NAME. "</b> there is always something to do! Extend one woodcutter, one clay pit, one iron mine and one cropland to level 2 each.");
|
||||
define("Q25_15_ORDER","Order:<\/p>Extend one of each resource tile to level 2.");
|
||||
define("Q25_15_RESP","Very good, your village grows and thrives!");
|
||||
|
||||
define("Q25_16","Task 16: Instructions");
|
||||
define("Q25_16_DESC","In the ingame instructions you can find short information texts about different buildings and types of units.<br \/><br \/>Click on 'instructions' at the left to find out how much lumber is required for the barracks.");
|
||||
define("Q25_16_ORDER","Order:<\/p>Enter how much lumber barracks cost");
|
||||
define("Q25_16_BUTN","complete task");
|
||||
define("Q25_16_RESP","Exactly! Barracks cost 210 lumber.");
|
||||
|
||||
define("Q25_17","Task 17: Main Building");
|
||||
define("Q25_17_DESC","Your master builders need a main building level 3 to erect important buildings such as the marketplace or barracks.");
|
||||
define("Q25_17_ORDER","Order:<\/p>Extend your main building to level 3.");
|
||||
define("Q25_17_RESP","Well done. The main building level 3 has been completed.<br><br>With this upgrade your master builders can construct more types of buildings and also do so faster.");
|
||||
|
||||
define("Q25_18","Task 18: Advanced!");
|
||||
define("Q25_18_DESC","Look up your rank in the player statistics again and enjoy your progress.");
|
||||
define("Q25_18_ORDER","Order:<\/p>Look for your rank in the statistics and enter it here.");
|
||||
define("Q25_18_RESP","Well done! That's your current rank.");
|
||||
|
||||
define("Q25_19","Task 19: Weapons or Dough");
|
||||
define("Q25_19_DESC","Now you have to make a decision: Either trade peacefully or become a dreaded warrior.<br \/><br \/>For the marketplace you need a granary, for the barracks you need a rally point.");
|
||||
define("Q25_19_BUTN","Economy");
|
||||
define("Q25_19_BUTN1","Military");
|
||||
|
||||
define("Q25_20","Task 19: Economy");
|
||||
define("Q25_20_DESC","Trade & Economy was your choice. Golden times await you for sure!");
|
||||
define("Q25_20_ORDER","Order:<\/p>Construct a Granary.");
|
||||
define("Q25_20_RESP","Well done! With the Granary you can store more wheat.");
|
||||
|
||||
define("Q25_21","Task 20: Warehouse");
|
||||
define("Q25_21_DESC","Not only Crop has to be saved. Other resources can go to waste as well if they are not stored correctly. Construct a Warehouse!");
|
||||
define("Q25_21_ORDER","Order:<\/p>Construct Warehouse.");
|
||||
define("Q25_21_RESP",";Well done, your Warehouse is complete...”<\/i><br \/>Now you have fulfilled all prerequisites required to construct a Marketplace.");
|
||||
|
||||
define("Q25_22","Task 21: Marketplace.");
|
||||
define("Q25_22_DESC",";Construct a Marketplace so you can trade with your fellow players.");
|
||||
define("Q25_22_ORDER","Order:<\/p>Please build a Marketplace.");
|
||||
define("Q25_22_RESP","The Marketplace has been completed. Now you can make offers of your own and accept foreign offers! When creating your own offers, you should think about offering what other players need most to get more profit.");
|
||||
|
||||
define("Q25_23","Task 19: Military");
|
||||
define("Q25_23_DESC","A brave decision. To be able to send troops you need a rally point.<br \/><br \/>The rally point must be built on a specific building site. The ");
|
||||
define("Q25_23_DESC1"," building site.");
|
||||
define("Q25_23_DESC2"," is located on the right side of the main building, slightly below it. The building site itself is curved.");
|
||||
define("Q25_23_ORDER","Order:<\/p>Construct a rally point.");
|
||||
define("Q25_23_RESP","Your rally point has been erected! A good move towards world domination!");
|
||||
|
||||
define("Q25_24","Task 20: Barracks");
|
||||
define("Q25_24_DESC","Now you have a main building level 3 and a rally point. That means that all prerequisites for building barracks have been fulfilled.<br><br>You can use the barracks to train troops for fighting.");
|
||||
define("Q25_24_ORDER","Order:<\/p>Construct barracks.");
|
||||
define("Q25_24_RESP","Well done... The best instructors from the whole country have gathered to train your men\u2019s fighting skills to top form.");
|
||||
|
||||
define("Q25_25","Task 21: Train.");
|
||||
define("Q25_25_DESC","Now that you have barracks you can start training troops. Train two ");
|
||||
define("Q25_25_ORDER","Please train 2 ");
|
||||
define("Q25_25_RESP","The foundation for your glorious army has been laid.<br \/><br \/>Before sending your army off to plunder you should check with the");
|
||||
define("Q25_25_RESP1","Combat Simulator");
|
||||
define("Q25_25_RESP2","to see how many troops you need to successfully fight one rat without losses.");
|
||||
|
||||
define("Q25_26","Task 22: Everything to 2.");
|
||||
define("Q25_26_DESC","Now it's time again to extend the cornerstones of might and wealth! This time level 1 is not enough... it will take a while but in the end it will be worth it. Extend all your resource tiles to level 2!");
|
||||
define("Q25_26_ORDER","Order:<\/p>Extend all resource tiles to level 2.");
|
||||
define("Q25_26_RESP","Congratulations! Your village grows and thrives...");
|
||||
|
||||
define("Q25_27","Task 23: Friends.");
|
||||
define("Q25_27_DESC","As single player it is hard to compete with attackers. It is to your advantage if your neighbours like you.<br \/><br \/>It is even better if you play together with friends. Did you know that you can earn <img src='img/x.gif' class='gold' alt='Gold' title='Gold'> by inviting friends?");
|
||||
define("Q25_27_ORDER","Order:<\/p>How much <img src='img/x.gif' class='gold' alt='Gold' title='Gold'> do you earn for inviting a friend?");
|
||||
define("Q25_27_RESP","Correct! You get 50 <img src='img/x.gif' class='gold' alt='Gold' title='Gold'> if your invited friend have 2 village.");
|
||||
|
||||
define("Q25_28","Task 24: Construct Embassy.");
|
||||
define("Q25_28_DESC","The world of Travian is dangerous. You already built a cranny to protect you against attackers.<br \/><br \/>A good alliance will give you even better protection.");
|
||||
define("Q25_28_ORDER","Order:<\/p>To accept invitations from alliances, build an embassy.");
|
||||
define("Q25_28_RESP","Yes! You can wait invitation from an alliance or create you own if embassy has level 3");
|
||||
|
||||
define("Q25_29","Task 25: Alliance.");
|
||||
define("Q25_29_DESC","Teamwork is important in Travian. Players who work together organise themselves in alliances. Get an invitation from an alliance in your region and join this alliance. Alternatively, you can found your own alliance. To do this, you need a level 3 embassy.");
|
||||
define("Q25_29_ORDER","Order:<\/p>Join an alliance or found your own alliance.");
|
||||
define("Q25_29_RESP","Well done! Now you're in a union called");
|
||||
define("Q25_29_RESP1",", and you're a member of their alliance.<br>Working together you will all progress faster...");
|
||||
|
||||
define("Q25_30","Tasks");
|
||||
define("Q25_30_DESC","All tasks achieved!");
|
||||
|
||||
//======================================================//
|
||||
//================ UNITS - DO NOT EDIT! ================//
|
||||
@@ -639,45 +511,8 @@ define("FROM","From");
|
||||
define("SEND_TROOPS","Send troops");
|
||||
define("TASKMASTER","Taskmaster");
|
||||
define("VILLAGE_OF_THE_ELDERS_TROOPS","village of the elders troops");
|
||||
|
||||
//SEND TROOP
|
||||
define("REINFORCE","Reinforcement");
|
||||
define("NORMALATTACK","Normal Attack");
|
||||
define("RAID","Raid");
|
||||
define("OR","or");
|
||||
define("SENDTROOP","Send troops");
|
||||
define("TROOP","Troops");
|
||||
define("NOTROOP","no troops");
|
||||
|
||||
//map
|
||||
define("DETAIL","Details");
|
||||
define("ABANDVALLEY","Abandoned valley");
|
||||
define("UNOCCUOASIS","Unoccupied oasis");
|
||||
define("OCCUOASIS","Occupied oasis");
|
||||
define("THERENOINFO","There is no<br>information available.");
|
||||
define("LANDDIST","Land distribution");
|
||||
define("TRIBE","Tribe");
|
||||
define("ALLIANCE","Alliance");
|
||||
define("OWNER","Owner");
|
||||
define("POP","Population");
|
||||
define("REPORT","Report");
|
||||
define("OPTION","Options");
|
||||
define("CENTREMAP","Centre map");
|
||||
define("FNEWVILLAGE","Found new village");
|
||||
define("CULTUREPOINT","culture points");
|
||||
define("BUILDRALLY","build a rally point");
|
||||
define("SETTLERSAVAIL","settlers available");
|
||||
define("BEGINPRO","beginners protection");
|
||||
define("SENDMERC","Send merchant(s)");
|
||||
define("BAN","Player is banned");
|
||||
define("BUILDMARKET","Build marketplace");
|
||||
define("PERHOUR","per hour");
|
||||
define("BONUS","Bonus");
|
||||
|
||||
//other
|
||||
define("VILLAGE","Village");
|
||||
define("OASIS","Oasis");
|
||||
define("PLAYER","Player");
|
||||
|
||||
|
||||
|
||||
|
||||
//LOGIN.php
|
||||
@@ -719,46 +554,387 @@ define("WOODCUTTER","Woodcutter");
|
||||
define("CLAYPIT","Clay Pit");
|
||||
define("IRONMINE","Iron Mine");
|
||||
define("CROPLAND","Cropland");
|
||||
|
||||
define("SAWMILL","Sawmill");
|
||||
define("SAWMILL_DESC","Here wood delivered by your Woodcutters is processed. Based on its level your sawmill can increase your wood production by up to 25 percent.");
|
||||
define("CURRENT_WOOD_BONUS","Current wood bonus:");
|
||||
define("WOOD_BONUS_LEVEL","Wood bonus at level");
|
||||
define("MAX_LEVEL","Building already at max level");
|
||||
define("PERCENT","Percent");
|
||||
|
||||
define("BRICKYARD","Brickyard");
|
||||
define("CURRENT_CLAY_BONUS","Current clay bonus:");
|
||||
define("CLAY_BONUS_LEVEL","Clay bonus at level");
|
||||
define("BRICKYARD_DESC","Here clay is processed into bricks. Based on its level your Brickyard can increase your clay production by up to 25 percent.");
|
||||
|
||||
define("IRONFOUNDRY","Iron Foundry");
|
||||
define("CURRENT_IRON_BONUS","Current iron bonus:");
|
||||
define("IRON_BONUS_LEVEL","Iron bonus at level");
|
||||
define("IRONFOUNDRY_DESC","Iron is smelted here. Based on its level your Iron Foundry can increase your iron production by up to 25 percent.");
|
||||
|
||||
define("GRAINMILL","Grain Mill");
|
||||
define("CURRENT_CROP_BONUS","Current crop bonus:");
|
||||
define("CROP_BONUS_LEVEL","Crop bonus at level");
|
||||
define("GRAINMILL_DESC","Here your grain is milled in order to produce flour. Based on its level your grain mill can increase your crop production by up to 25 percent.");
|
||||
|
||||
define("BAKERY","Bakery");
|
||||
define("BAKERY_DESC","Here the flour produced in your mill is used to bake bread. In addition with the Grain Mill the increase in crop production can go up to 50 percent.");
|
||||
|
||||
define("WAREHOUSE","Warehouse");
|
||||
define("CURRENT_CAPACITY","Current capacity:");
|
||||
define("CAPACITY_LEVEL","Capacity at level");
|
||||
define("RESOURCE_UNITS","Resource units");
|
||||
define("WAREHOUSE_DESC","The resources wood, clay and iron are stored in your Warehouse. By increasing its level you increase your Warehouse's capacity.");
|
||||
|
||||
define("GRANARY","Granary");
|
||||
define("CROP_UNITS","Crop units");
|
||||
define("GRANARY_DESC","Crop produced by your farms is stored in the Granary. By increasing its level you increase the Granary's capacity.");
|
||||
|
||||
define("BLACKSMITH","Blacksmith");
|
||||
define("ACTION","Action");
|
||||
define("UPGRADE","Upgrade");
|
||||
define("UPGRADE_IN_PROGRESS","Upgrade in<br>progress");
|
||||
define("UPGRADE_BLACKSMITH","Upgrade<br>blacksmith");
|
||||
define("UPGRADES_COMMENCE_BLACKSMITH","Upgrades can commence when blacksmith is completed.");
|
||||
define("MAXIMUM_LEVEL","Maximum<br>level");
|
||||
define("EXPAND_WAREHOUSE","Expand<br>warehouse");
|
||||
define("EXPAND_GRANARY","Expand<br>granary");
|
||||
define("ENOUGH_RESOURCES","Enough resources");
|
||||
define("CROP_NEGATIVE ","Crop production is negative so you will never reach the required resources");
|
||||
define("TOO_FEW_RESOURCES","Too few<br>resources");
|
||||
define("UPGRADING","Upgrading");
|
||||
define("DURATION","Duration");
|
||||
define("COMPLETE","Complete");
|
||||
define("BLACKSMITH_DESC","In the blacksmith's melting furnaces your warriors' weapons are enhanced. By increasing its level you can order the fabrication of even better weapons.");
|
||||
|
||||
define("ARMOURY","Armoury");
|
||||
define("UPGRADE_ARMOURY","Upgrade<br>Armoury");
|
||||
define("UPGRADES_COMMENCE_ARMOURY","Upgrades can commence when armoury is completed.");
|
||||
define("ARMOURY_DESC","In the armoury's melting furnaces your warriors' armour is enhanced. By increasing its level you can order the fabrication of even better armour.");
|
||||
|
||||
define("TOURNAMENTSQUARE","Tournament Square");
|
||||
define("CURRENT_SPEED","Current speed bonus:");
|
||||
define("SPEED_LEVEL","Speed bonus at level");
|
||||
define("TOURNAMENTSQUARE_DESC","At the Tournament Square your troops can train their stamina. The further the building is upgraded the faster your troops are beyond a minimum distance of ".TS_THRESHOLD." squares.");
|
||||
|
||||
define("MAINBUILDING","Main Building");
|
||||
define("CURRENT_CONSTRUCTION_TIME","Current construction time:");
|
||||
define("CONSTRUCTION_TIME_LEVEL","Construction time at level");
|
||||
define("DEMOLITION_BUILDING","Demolition of the building:</h2><p>If you no longer need a building, you can order the demolition of the building.</p>");
|
||||
define("DEMOLISH","Demolish");
|
||||
define("DEMOLITION_OF","Demolition of ");
|
||||
define("MAINBUILDING_DESC","In the main building the village's master builders live. The higher its level the faster your master builders complete the construction of new buildings.");
|
||||
|
||||
define("RALLYPOINT","Rally Point");
|
||||
define("OVERVIEW","Resumen");
|
||||
define("OVERVIEW","Overview");
|
||||
define("REINFORCEMENT","Reinforcement");
|
||||
define("EVASION_SETTINGS","evasion settings");
|
||||
define("SEND_TROOPS_AWAY_MAX","Send troops away a maximun of");
|
||||
define("TIMES","times");
|
||||
define("PER_EVASION","per evasion");
|
||||
define("RALLYPOINT_DESC","Your village's troops meet here. From here you can send them out to conquer, raid or reinforce other villages.");
|
||||
|
||||
define("MARKETPLACE","Marketplace");
|
||||
define("MERCHANT","Merchants");
|
||||
define("OR_","or");
|
||||
define("GO","go");
|
||||
define("UNITS_OF_RESOURCE","units of resource");
|
||||
define("MERCHANT_CARRY","Each merchant can carry");
|
||||
define("MERCHANT_COMING","Merchants coming");
|
||||
define("TRANSPORT_FROM","Transport from");
|
||||
define("ARRIVAL_IN","Arrival in");
|
||||
define("NO_COORDINATES_SELECTED","No Coordinates selected");
|
||||
define("CANNOT_SEND_RESOURCES","You cannot send resources to the same village");
|
||||
define("BANNED_CANNOT_SEND_RESOURCES","Player is Banned. You cannot send resources to him");
|
||||
define("RESOURCES_NO_SELECTED","Resources not selected");
|
||||
define("ENTER_COORDINATES","Enter coordinates or village name");
|
||||
define("TOO_FEW_MERCHANTS","Too few merchants");
|
||||
define("OWN_MERCHANTS_ONWAY","Own merchants on the way");
|
||||
define("MERCHANTS_RETURNING","Merchants returning");
|
||||
define("TRANSPORT_TO","Transport to");
|
||||
define("I_AN_SEARCHING","I'm searching");
|
||||
define("I_AN_OFFERING","I'm offering");
|
||||
define("OFFERS_MARKETPLACE","Offers at the marketplace");
|
||||
define("OFFERED_TO_ME","Offered<br>to me");
|
||||
define("WANTED_TO_ME","Wanted<br>from me");
|
||||
define("NOT_ENOUGH_MERCHANTS","Not Enough Merchant");
|
||||
define("ACCEP_OFFER","Accept offer");
|
||||
define("NO_AVALIBLE_OFFERS","There are no avaliable offers on the market");
|
||||
define("SEARCHING","Searching");
|
||||
define("OFFERING","Offering");
|
||||
define("MAX_TIME_TRANSPORT","max. time of transport");
|
||||
define("OWN_ALLIANCE_ONLY","own alliance only");
|
||||
define("INVALID_OFFER","Invalid offer");
|
||||
define("OFFER","Offer");
|
||||
define("SEARCH","Search");
|
||||
define("OWN_OFFERS","Own offers");
|
||||
define("ALL","All");
|
||||
define("NPC_TRADE","NPC Trade");
|
||||
define("SUM","Sum");
|
||||
define("REST","Rest");
|
||||
define("TRADE_RESOURCES","Trade resources at (step 2 of 2");
|
||||
define("DISTRIBUTE_RESOURCES","Distribute resources at (step 1 of 2)");
|
||||
define("OF","of");
|
||||
define("NPC_COMPLETED","NPC completed");
|
||||
define("BACK_BUILDING","Back to building");
|
||||
define("YOU_CAN_NAT_NPC_WW","You can't use NPC trade in WW village.");
|
||||
define("NPC_TRADING","NPC trading");
|
||||
define("SEND_RESOURCES","Send Resources");
|
||||
define("BUY","Buy");
|
||||
define("TRADE_ROUTES","trade routes");
|
||||
define("DESCRIPTION","Description");
|
||||
define("TIME_LEFT","Time left");
|
||||
define("START","Start");
|
||||
define("NO_TRADE_ROUTES","No active trade routes");
|
||||
define("TRADE_ROUTE_TO","Trade route to");
|
||||
define("CHECKED","checked");
|
||||
define("DAYS","days");
|
||||
define("EXTEND","extend");
|
||||
define("EDIT","edit");
|
||||
define("EXTEND_TRADE_ROUTES","Extend the trade route by 7 days for");
|
||||
define("CREATE_TRADE_ROUTES","Create new trade route");
|
||||
define("DELIVERIES","deliveries");
|
||||
define("START_TIME_TRADE","start time");
|
||||
define("CREATE_TRADE_ROUTE","Create trade route");
|
||||
define("TARGET_VILLAGE","target village");
|
||||
define("EDIT_TRADE_ROUTES","Edit trade route");
|
||||
define("TRADE_ROUTES_DESC","Trade route allows you to set up routes for your merchant that he will walk every day at a certain hour. <br /><br /> Standard this holds on for 7 days, but you can extend it with 7 days for the cost of");
|
||||
define("NPC_TRADE_DESC","With the NPC merchant you can distribute the resources in your warehouse as you desire. <br /><br /> The first line shows the current stock. In the second line you can choose another distribution. The third line shows the difference between the old and new stock.");
|
||||
define("MARKETPLACE_DESC","At the Marketplace you can trade resources with other players. The higher its level, the more resources can be transported at the same time.");
|
||||
|
||||
define("EMBASSY","Embassy");
|
||||
define("ALLIANCE","Alliance");
|
||||
define("TAG","Tag");
|
||||
define("TO_THE_ALLIANCE","to the alliance");
|
||||
define("JOIN_ALLIANCE","join alliance");
|
||||
define("REFUSE","refuse");
|
||||
define("ACCEPT","accept");
|
||||
define("NO_INVITATIONS","There are no invitations available.");
|
||||
define("NO_CREATE_ALLIANCE","Banned player can't create an alliance.");
|
||||
define("FOUND_ALLIANCE","found alliance");
|
||||
define("EMBASSY_DESC","The embassy is a place for diplomats. The higher its level the more options the king gains.");
|
||||
|
||||
define("BARRACKS","Barracks");
|
||||
define("QUANTITY","Quantity");
|
||||
define("MAX","Max");
|
||||
define("TRAINING","Training");
|
||||
define("FINISHED","Finished");
|
||||
define("UNIT_FINISHED","The next unit will be finished in");
|
||||
define("AVAILABLE","Available");
|
||||
define("TRAINING_COMMENCE_BARRACKS","Training can commence when barracks are completed.");
|
||||
define("BARRACKS_DESC","All foot soldiers are trained in the barracks. The higher the level of the barracks, the faster the troops are trained.");
|
||||
|
||||
define("STABLE","Stable");
|
||||
define("AVAILABLE_ACADEMY","No units available. Research at academy");
|
||||
define("TRAINING_COMMENCE_STABLE","Training can commence when stable are completed.");
|
||||
define("STABLE_DESC","Cavalry can be trained in the stable. The higher its level the faster the troops are trained.");
|
||||
|
||||
define("WORKSHOP","Workshop");
|
||||
define("TRAINING_COMMENCE_WORKSHOP","Training can commence when workshop are completed.");
|
||||
define("WORKSHOP_DESC","Siege engines like catapults and rams can be built in the workshop. The higher its level the faster the units are produced.");
|
||||
|
||||
define("ACADEMY","Academy");
|
||||
define("RESEARCH_AVAILABLE","There are no researches available");
|
||||
define("RESEARCH_COMMENCE_ACADEMY","Research can commence when academy is completed.");
|
||||
define("RESEARCH","Research");
|
||||
define("EXPAND_WAREHOUSE1","Expand warehouse");
|
||||
define("EXPAND_GRANARY1","Expand granary");
|
||||
define("RESEARCH_IN_PROGRESS","Research in<br>progress");
|
||||
define("RESEARCHING","Researching");
|
||||
define("PREREQUISITES","Prerequisites");
|
||||
define("SHOW_MORE","show more");
|
||||
define("HIDE_MORE","hide more");
|
||||
define("ACADEMY_DESC","In the academy new unit types can be researched. By increasing its level you can order the research of better units.");
|
||||
|
||||
define("CRANNY","Cranny");
|
||||
define("CURRENT_HIDDEN_UNITS","Currently hidden units per resource:");
|
||||
define("HIDDEN_UNITS_LEVEL","Hidden units per resource at level");
|
||||
define("UNITS","units");
|
||||
define("CRANNY_DESC","The cranny is used to hide some of your resources when the village is attacked. These resources cannot be stolen.");
|
||||
|
||||
define("TOWNHALL","Town Hall");
|
||||
define("CELEBRATIONS_COMMENCE_TOWNHALL","Celebrations can commence when the town hall is completed.");
|
||||
define("GREAT_CELEBRATIONS","Great celebration");
|
||||
define("CULTURE_POINTS","culture points");
|
||||
define("HOLD","hold");
|
||||
define("CELEBRATIONS_IN_PROGRESS","Celebration</br>in progress");
|
||||
define("CELEBRATIONS","Celebrations");
|
||||
define("TOWNHALL_DESC","You can hold pompous celebrations in the Town Hall. Such a celebration increases your culture points. Building up your Town Hall to a higher level will decrease the length of the celebration.");
|
||||
|
||||
define("RESIDENCE","Residence");
|
||||
define("CAPITAL","This is your capital");
|
||||
define("RESIDENCE_TRAIN_DESC","In order to found a new village you need a level 10 or 20 residence and 3 settlers. In order to conquer a new village you need a level 10 or 20 residence and a senator, chief or chieftain.");
|
||||
define("PRODUCTION_POINTS","Production of this village:");
|
||||
define("PRODUCTION_ALL_POINTS","Production of all villages:");
|
||||
define("POINTS_DAY","Culture points per day");
|
||||
define("VILLAGES_PRODUCED","Your villages have produced");
|
||||
define("POINTS_NEED","points in total. To found or conquer a new village you need");
|
||||
define("POINTS","points");
|
||||
define("VILLAGE","Village");
|
||||
define("PLAYER","Player");
|
||||
define("INHABITANTS","Inhabitants");
|
||||
define("COORDINATES","Coordinates");
|
||||
define("EXPANSION","Expansion");
|
||||
define("TRAIN","Train");
|
||||
define("DATE","Date");
|
||||
define("CONQUERED_BY_VILLAGE","Villages founded or conquered by this village");
|
||||
define("NONE_CONQUERED_BY_VILLAGE","No other village has been founded or conquered by this village yet.");
|
||||
define("RESIDENCE_CULTURE_DESC","In order to extend your empire you need culture points. These culture points increase in the course of time and do so faster as your building levels increase.");
|
||||
define("RESIDENCE_LOYALTY_DESC","By attacking with senators, chiefs or chieftains a village's loyalty can be brought down. If it reaches zero, the village joins the realm of the attacker. The loyalty of this village is currently at ");
|
||||
define("RESIDENCE_DESC","The residence is a small palace, where the king or queen lives when (s)he visits the village. The residence protects the village against enemies who want to conquer it.");
|
||||
|
||||
define("PALACE","Palace");
|
||||
define("PALACE_CONSTRUCTION","Palace under construction");
|
||||
define("PALACE_TRAIN_DESC","In order to found a new village you need a level 10, 15 or 20 palace and 3 settlers. In order to conquer a new village you need a level 10, 15 or 20 palace and a senator, chief or chieftain.");
|
||||
define("CHANGE_CAPITAL","change capital");
|
||||
define("SECURITY_CHANGE_CAPITAL","Are you sure, that you want to change your capital?<br /><b>You can\'t undo this!</b><br />For security you must enter your password to confirm:<br />");
|
||||
define("PALACE_DESC","The king or queen of the empire lives in the palace. Only one palace can exist in your realm at a time. You need a palace in order to proclaim a village to be your capital.");
|
||||
|
||||
define("TREASURY","Treasury");
|
||||
define("ARTIFACTS_AREA","Artefacts in your area");
|
||||
define("NO_ARTIFACTS_AREA","There is no artefacts in your area.");
|
||||
define("OWN_ARTIFACTS","Own artefacts");
|
||||
define("CONQUERED","Conquered");
|
||||
define("DISTANCE","Distance");
|
||||
define("EFFECT","Effect");
|
||||
define("ACCOUNT","account");
|
||||
define("SMALL_ARTIFACTS","Small artefacts");
|
||||
define("LARGE_ARTIFACTS","Large artefacts");
|
||||
define("NO_ARTIFACTS","There is no artefacts.");
|
||||
define("ANY_ARTIFACTS","You do not own any artefacts.");
|
||||
define("OWNER","Owner");
|
||||
define("AREA_EFFECT","Area of effect");
|
||||
define("BONUS","Bonus");
|
||||
define("REQUIRED_LEVEL","Required level");
|
||||
define("TIME_CONQUER","Time of conquer");
|
||||
define("TIME_ACTIVATION","Time of activation");
|
||||
define("FORMER_OWNER","Former owner(s)");
|
||||
define("BUILDING_STRONGER","building stronger with");
|
||||
define("BUILDING_WEAKER","building weaker with");
|
||||
define("TROOPS_FASTER","makes troops faster with");
|
||||
define("TROOPS_SLOWEST","makes troops slowest with");
|
||||
define("SPIES_INCREASE","spies increase ability with");
|
||||
define("SPIES_DECRESE","spies decrese ability with");
|
||||
define("CONSUME_LESS","all troops consume less with");
|
||||
define("CONSUME_HIGH","all troops consume high with");
|
||||
define("TROOPS_MAKE_FASTER","troops make faster with");
|
||||
define("TROOPS_MAKE_SLOWEST","troops make slowest with");
|
||||
define("YOU_CONSTRUCT","you can construct ");
|
||||
define("CRANNY_INCREASED","cranny capacity is increased by");
|
||||
define("CRANNY_DECRESE","cranny capacity is decrese by");
|
||||
define("TREASURY_DESC","The riches of your empire are kept in the treasury. The treasury has room for one treasure. After you have captured an artefact it takes 24 hours on a normal server or 12 hours on a thrice speed server to be effective.");
|
||||
|
||||
define("TRADEOFFICE","Trade Office");
|
||||
define("CURRENT_MERCHANT","Current merchant load:");
|
||||
define("MERCHANT_LEVEL","Merchant load at level");
|
||||
define("TRADEOFFICE_DESC","In the trade office the merchants' carts get improved and equipped with powerful horses. The higher its level the more your merchants are able to carry.");
|
||||
|
||||
define("GREATBARRACKS","Great Barracks");
|
||||
define("TRAINING_COMMENCE_GREATBARRACKS","Training can commence when great barracks are completed.");
|
||||
define("GREATBARRACKS_DESC","Foot soldiers are trained in the great barracks. The higher the level of the barracks, the faster the troops are trained.");
|
||||
|
||||
define("GREATSTABLE","Great Stable");
|
||||
define("TRAINING_COMMENCE_GREATSTABLE","Training can commence when great stables are completed.");
|
||||
define("GREATSTABLE_DESC","Cavalry can be trained in the great stable. The higher its level the faster the troops are trained.");
|
||||
|
||||
define("CITYWALL","City Wall");
|
||||
define("DEFENCE_NOW","Defence Bonus now:");
|
||||
define("DEFENCE_LEVEL","Defence Bonus at level");
|
||||
define("CITYWALL_DESC","By building a City Wall you can protect your village against the barbarian hordes of your enemies. The higher the wall's level, the higher the bonus given to your forces' defence.");
|
||||
|
||||
define("EARTHWALL","Earth Wall");
|
||||
define("EARTHWALL_DESC","By building a Earth Wall you can protect your village against the barbarian hordes of your enemies. The higher the wall's level, the higher the bonus given to your forces' defence.");
|
||||
|
||||
define("PALISADE","Palisade");
|
||||
define("PALISADE_DESC","By building a Palisade you can protect your village against the barbarian hordes of your enemies. The higher the wall's level, the higher the bonus given to your forces' defence.");
|
||||
|
||||
define("STONEMASON","Stonemason's Lodge");
|
||||
define("CURRENT_STABILITY","Current stability bonus:");
|
||||
define("STABILITY_LEVEL","Stability bonus at level");
|
||||
define("STONEMASON_DESC","The stonemason's lodge is an expert at cutting stone. The further the building is extended the higher the stability of the village's buildings.");
|
||||
|
||||
define("BREWERY","Brewery");
|
||||
define("CURRENT_BONUS","Current bonus:");
|
||||
define("BONUS_LEVEL","Bonus at level");
|
||||
define("BREWERY_DESC","Tasty mead is brewed in the Brewery and later quaffed by the soldiers during the celebrations.");
|
||||
|
||||
define("TRAPPER","Trapper");
|
||||
define("CURRENT_TRAPS","Currect maximum traps to train:");
|
||||
define("TRAPS_LEVEL","Maximum traps to train at level");
|
||||
define("TRAPS","Traps");
|
||||
define("TRAP","Trap");
|
||||
define("CURRENT_HAVE","Your currently have");
|
||||
define("WHICH_OCCUPIED","of which are occupied.");
|
||||
define("TRAINING_COMMENCE_TRAPPER","Training can commence when trapper are completed.");
|
||||
define("TRAPPER_DESC","The trapper protects your village with well hidden traps. This means that unwary enemies can be imprisoned and won't be able to harm your village anymore.");
|
||||
|
||||
define("HEROSMANSION","Hero's Mansion");
|
||||
define("HERO_READY","Hero will be ready in ");
|
||||
define("NAME_CHANGED","Hero name has been changed");
|
||||
define("NOT_UNITS","Not available units");
|
||||
define("NOT","Not ");
|
||||
define("TRAIN_HERO","Train New Hero");
|
||||
define("REVIVE","Revive");
|
||||
define("OASES","Oases");
|
||||
define("DELETE","delete");
|
||||
define("RESOURCES","Resources");
|
||||
define("OFFENCE","Offence");
|
||||
define("DEFENCE","Defence");
|
||||
define("OFF_BONUS","Off-Bonus");
|
||||
define("DEF_BONUS","Def-Bonus");
|
||||
define("REGENERATION","Regeneration");
|
||||
define("DAY","Day");
|
||||
define("EXPERIENCE","Experience");
|
||||
define("YOU_CAN","You can ");
|
||||
define("RESET","reset");
|
||||
define("YOUR_POINT_UNTIL"," your points until you are level ");
|
||||
define("OR_LOWER"," or lower!");
|
||||
define("YOUR_HERO_HAS","Your hero has ");
|
||||
define("OF_HIT_POINTS","of his hit points.");
|
||||
define("ERROR_NAME_SHORT","Error: name too short");
|
||||
define("HEROSMANSION_DESC","In the Hero's mansion you can train your own hero and at level 10, 15 and 20 you can conquer oases with Hero in the immediate vicinity.");
|
||||
|
||||
define("GREATWAREHOUSE","Great Warehouse");
|
||||
define("GREATWAREHOUSE_DESC","Wood, clay and iron are stored in the warehouse. The great warehouse offers you more space and keeps your goods drier and safer than the normal one.");
|
||||
|
||||
define("GREATGRANARY","Great Granary");
|
||||
define("GREATGRANARY_DESC","Crop produced by your farms is stored in the granary. The great granary offers you more space and keeps your crops drier and safer than the normal one.");
|
||||
|
||||
define("WONDER","Wonder of the World");
|
||||
define("WORLD_WONDER","World Wonder");
|
||||
define("WONDER_DESC","The World Wonder (otherwise known as a Wonder of the World) is as wonderful as it sounds. This building is built in order to win the server. Each level of the World Wonder costs hundreds of thousands (even millions) of resources to build.");
|
||||
define("WORLD_WONDER_CHANGE_NAME","You need to have World Wonder level 1 to be able to change its name");
|
||||
define("WORLD_WONDER_NAME","World Wonder name");
|
||||
define("WORLD_WONDER_NOTCHANGE_NAME","You can not change the name of the World Wonder after level 10");
|
||||
define("WORLD_WONDER_NAME_CHANGED","Name changed");
|
||||
|
||||
define("HORSEDRINKING","Horse Drinking Trough");
|
||||
define("HORSEDRINKING_DESC","The horse drinking trough of the Romans decreases the training time of cavalry and the upkeep of these troops as well.");
|
||||
|
||||
define("GREATWORKSHOP","Great Workshop");
|
||||
define("TRAINING_COMMENCE_GREATWORKSHOP","Training can commence when great workshop is completed.");
|
||||
define("GREATWORKSHOP_DESC","Siege engines like catapults and rams can be built in the great workshop. The higher its level the faster the units are produced.");
|
||||
|
||||
define("BUILDING_MAX_LEVEL_UNDER","Building max level under construction");
|
||||
define("BUILDING_BEING_DEMOLISHED","Building presently being demolished");
|
||||
define("COSTS_UPGRADING_LEVEL","Costs</b> for upgrading to level");
|
||||
define("WORKERS_ALREADY_WORK","The workers are already at work.");
|
||||
define("CONSTRUCTING_MASTER_BUILDER","Constructing with master builder ");
|
||||
define("COSTS","costs");
|
||||
define("GOLD","Gold");
|
||||
define("WORKERS_ALREADY_WORK_WAITING","The workers are already at work. (waiting loop)");
|
||||
define("ENOUGH_FOOD_EXPAND_CROPLAND","Not enough food. Expand cropland.");
|
||||
define("UPGRADE_WAREHOUSE","Upgrade Warehouse");
|
||||
define("UPGRADE_GRANARY","Upgrade Granary");
|
||||
define("YOUR_CROP_NEGATIVE","Your crop production is negative, you will never get the required resources.");
|
||||
define("UPGRADE_LEVEL","Upgrade to level ");
|
||||
define("WAITING","(waiting loop)");
|
||||
define("NEED_WWCONSTRUCTION_PLAN","Need WW construction plan");
|
||||
define("NEED_MORE_WWCONSTRUCTION_PLAN","Need more WW construction plan");
|
||||
define("CONSTRUCT_NEW_BUILDING","Construct new building");
|
||||
define("SHOWSOON_AVAILABLE_BUILDINGS","show soon available buildings");
|
||||
define("HIDESOON_AVAILABLE_BUILDINGS","hide soon available buildings");
|
||||
|
||||
|
||||
//artefact
|
||||
define("ARCHITECTS_DESC","All buildings in the area of effect are stronger. This means that you will need more catapults to damage buildings protected by this artifacts powers.");
|
||||
@@ -874,10 +1050,11 @@ NOTE: If the above criteria is not met during the attack, the next attack on tha
|
||||
|
||||
|
||||
|
||||
To build a Treasure Chamber (Treasury), you will need a Main Building level 10 and the village MUST NOT be a Capital or contain a World Wonder.
|
||||
To build a Treasure Chamber (Treasury), you will need a Main Building level 10 and the village MUST NOT be contain a World Wonder.
|
||||
|
||||
To build a World Wonder, you must own the Construction Plans yourself (you = the World Wonder Village Owner) from level 0 to 50, and then from level 51 to 100 you will need an additional set of Construction Plans in your Alliance! Two sets of Construction Plans in the World Wonder Village Account will not work!");
|
||||
define("WWVILLAGE","WW village");
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Index
|
||||
@@ -903,20 +1080,6 @@ define("WWVILLAGE","WW village");
|
||||
$lang['forum'] = "Forum";
|
||||
$lang['register'] = "Register";
|
||||
$lang['login'] = "Login";
|
||||
$lang['screenshots']['title1']="Village";
|
||||
$lang['screenshots']['desc1']="Village building";
|
||||
$lang['screenshots']['title2']="Resource";
|
||||
$lang['screenshots']['desc2']="Village resource is wood, clay, iron and crop";
|
||||
$lang['screenshots']['title3']="Map";
|
||||
$lang['screenshots']['desc3']="Location your village in map";
|
||||
$lang['screenshots']['title4']="Contruct Building";
|
||||
$lang['screenshots']['desc4']="How to contruct building or resource level";
|
||||
$lang['screenshots']['title5']="Report";
|
||||
$lang['screenshots']['desc5']="Your attack report";
|
||||
$lang['screenshots']['title6']="Statistics";
|
||||
$lang['screenshots']['desc6']="View your ranking in statistics";
|
||||
$lang['screenshots']['title7']="Weapons or dough";
|
||||
$lang['screenshots']['desc7']="You can choose to play as military or economy";
|
||||
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
<Files ~ "\.tpl$">
|
||||
Order allow,deny
|
||||
Deny from all
|
||||
</Files>
|
||||
@@ -2,16 +2,16 @@
|
||||
include("next.tpl");
|
||||
?>
|
||||
<div id="build" class="gid10"><a href="#" onClick="return Popup(10,4);" class="build_logo">
|
||||
<img class="building g10" src="img/x.gif" alt="Warehouse" title="Warehouse" />
|
||||
<img class="building g10" src="img/x.gif" alt="Warehouse" title="<?php echo WAREHOUSE; ?>" />
|
||||
</a>
|
||||
<h1>Warehouse <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">The resources wood, clay and iron are stored in your Warehouse. By increasing its level you increase your Warehouse's capacity. .</p>
|
||||
<h1><?php echo WAREHOUSE; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo WAREHOUSE_DESC; ?></p>
|
||||
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="build_value">
|
||||
<tr>
|
||||
<th>Current capacity:</th>
|
||||
<td><b><?php echo $bid10[$village->resarray['f'.$id]]['attri']*STORAGE_MULTIPLIER; ?></b> Resource units</td>
|
||||
<th><?php echo CURRENT_CAPACITY; ?></th>
|
||||
<td><b><?php echo $bid10[$village->resarray['f'.$id]]['attri']*STORAGE_MULTIPLIER; ?></b> <?php echo RESOURCE_UNITS; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
@@ -19,13 +19,13 @@ include("next.tpl");
|
||||
$next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master;
|
||||
if($next<=20){
|
||||
?>
|
||||
<th>Capacity at level <?php echo $next ?>:</th>
|
||||
<td><b><?php echo $bid10[$next]['attri']*STORAGE_MULTIPLIER; ?></b> Resource units</td>
|
||||
<th><?php echo CAPACITY_LEVEL; ?> <?php echo $next ?>:</th>
|
||||
<td><b><?php echo $bid10[$next]['attri']*STORAGE_MULTIPLIER; ?></b> <?php echo RESOURCE_UNITS; ?></td>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<th>Capacity at level 20:</th>
|
||||
<td><b><?php echo $bid10[20]['attri']*STORAGE_MULTIPLIER; ?></b> Resource units</td>
|
||||
<th><?php echo CAPACITY_LEVEL; ?> 20:</th>
|
||||
<td><b><?php echo $bid10[20]['attri']*STORAGE_MULTIPLIER; ?></b> <?php echo RESOURCE_UNITS; ?></td>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
include("next.tpl");
|
||||
?>
|
||||
<div id="build" class="gid11"><a href="#" onClick="return Popup(11,4);" class="build_logo">
|
||||
<img class="building g11" src="img/x.gif" alt="Granary" title="Granary" />
|
||||
<img class="building g11" src="img/x.gif" alt="Granary" title="<?php echo GRANARY; ?>" />
|
||||
</a>
|
||||
<h1>Granary <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">Crop produced by your farms is stored in the Granary. By increasing its level you increase the Granary's capacity.</p>
|
||||
<h1><?php echo GRANARY; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo GRANARY_DESC; ?></p>
|
||||
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="build_value">
|
||||
<tr>
|
||||
<th>Current capacity:</th>
|
||||
<td><b><?php echo $bid11[$village->resarray['f'.$id]]['attri']*STORAGE_MULTIPLIER; ?></b> Crop units</td>
|
||||
<th><?php echo CURRENT_CAPACITY; ?></th>
|
||||
<td><b><?php echo $bid11[$village->resarray['f'.$id]]['attri']*STORAGE_MULTIPLIER; ?></b> <?php echo CROP_UNITS; ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@@ -20,13 +20,13 @@ include("next.tpl");
|
||||
$next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master;
|
||||
if($next<=20){
|
||||
?>
|
||||
<th>Capacity at level <?php echo $next ?>:</th>
|
||||
<td><b><?php echo $bid11[$next]['attri']*STORAGE_MULTIPLIER; ?></b> Crop units</td>
|
||||
<th><?php echo CAPACITY_LEVEL; ?> <?php echo $next ?>:</th>
|
||||
<td><b><?php echo $bid11[$next]['attri']*STORAGE_MULTIPLIER; ?></b> <?php echo CROP_UNITS; ?></td>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<th>Capacity at level 20:</th>
|
||||
<td><b><?php echo $bid11[20]['attri']*STORAGE_MULTIPLIER; ?></b> Crop units</td>
|
||||
<th><?php echo CAPACITY_LEVEL; ?> 20:</th>
|
||||
<td><b><?php echo $bid11[20]['attri']*STORAGE_MULTIPLIER; ?></b> <?php echo CROP_UNITS; ?></td>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<div id="build" class="gid12"><a href="#" onClick="return Popup(12,4);" class="build_logo">
|
||||
|
||||
<img class="building g12" src="img/x.gif" alt="Blacksmith" title="Blacksmith" />
|
||||
<img class="building g12" src="img/x.gif" alt="Blacksmith" title="<?php echo BLACKSMITH; ?>" />
|
||||
</a>
|
||||
<h1>Blacksmith <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">In the blacksmith's melting furnaces your warriors' weapons are enhanced. By increasing its level you can order the fabrication of even better weapons.
|
||||
<h1><?php echo BLACKSMITH; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo BLACKSMITH_DESC; ?></p>
|
||||
<?php
|
||||
if ($building->getTypeLevel(12) > 0) {
|
||||
include("12_upgrades.tpl");
|
||||
} else {
|
||||
echo "<p><b>Upgrades can commence when blacksmith is completed.</b><br>\n";
|
||||
echo "<p><b><?php echo UPGRADES_COMMENCE_BLACKSMITH; ?></b><br>\n";
|
||||
}
|
||||
include("upgrade.tpl");
|
||||
?>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Blacksmith</td>
|
||||
<td>Action</td>
|
||||
<td><?php echo BLACKSMITH; ?></td>
|
||||
<td><?php echo ACTION; ?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -25,33 +25,33 @@ echo "<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\"
|
||||
}
|
||||
}
|
||||
if($abdata['b'.$j] == 20) {
|
||||
echo "<td class=\"act\"><div class=\"none\">Maximum<br>level</div></td></tr>";
|
||||
echo "<td class=\"act\"><div class=\"none\">".MAXIMUM_LEVEL."</div></td></tr>";
|
||||
}
|
||||
else if(${'ab'.$i}[$abdata['b'.$j]+1]['wood'] > $village->maxstore || ${'ab'.$i}[$abdata['b'.$j]+1]['clay'] > $village->maxstore || ${'ab'.$i}[$abdata['b'.$j]+1]['iron'] > $village->maxstore) {
|
||||
echo "<td class=\"act\"><div class=\"none\">Expand<br>warehouse</div></td></tr>";
|
||||
echo "<td class=\"act\"><div class=\"none\">".EXPAND_WAREHOUSE."</div></td></tr>";
|
||||
}
|
||||
else if (${'ab'.$i}[$abdata['b'.$j]+1]['crop'] > $village->maxcrop) {
|
||||
echo "<td class=\"act\"><div class=\"none\">Expand<br>granary</div></td></tr>";
|
||||
echo "<td class=\"act\"><div class=\"none\">".EXPAND_GRANARY."</div></td></tr>";
|
||||
}
|
||||
else if (${'ab'.$i}[$abdata['b'.$j]+1]['wood'] > $village->awood || ${'ab'.$i}[$abdata['b'.$j]+1]['clay'] > $village->aclay || ${'ab'.$i}[$abdata['b'.$j]+1]['iron'] > $village->airon || ${'ab'.$i}[$abdata['b'.$j]+1]['crop'] > $village->acrop) {
|
||||
if($village->getProd("crop")>0 || $village->acrop > ${'ab'.$i}[$abdata['b'.$j]+1]['crop']){
|
||||
$time = $technology->calculateAvaliable(12,${'ab'.$i}[$abdata['b'.$j]+1]);
|
||||
echo "<br><span class=\"none\">Enough resources ".$time[0]." at ".$time[1]."</span></div></td>";
|
||||
echo "<br><span class=\"none\">".ENOUGH_RESOURCES." ".$time[0]." at ".$time[1]."</span></div></td>";
|
||||
} else {
|
||||
echo "<br><span class=\"none\">Crop production is negative so you will never reach the required resources</span></div></td>";
|
||||
echo "<br><span class=\"none\">".CROP_NEGATIVE."</span></div></td>";
|
||||
}
|
||||
echo "<td class=\"act\"><div class=\"none\">Too few<br>resources</div></td></tr>";
|
||||
echo "<td class=\"act\"><div class=\"none\">".TOO_FEW_RESOURCES."</div></td></tr>";
|
||||
}
|
||||
else if ($building->getTypeLevel(12) <= $abdata['b'.$j]) {
|
||||
echo "<td class=\"act\"><div class=\"none\">Upgrade<br>blacksmith</div></td></tr>";
|
||||
echo "<td class=\"act\"><div class=\"none\">".UPGRADE_BLACKSMITH."</div></td></tr>";
|
||||
}
|
||||
else if (count($ABups) > 0) {
|
||||
echo "<td class=\"act\"><div class=\"none\">Upgrade in<br>progress</div></td></tr>";
|
||||
echo "<td class=\"act\"><div class=\"none\">".UPGRADE_IN_PROGRESS."</div></td></tr>";
|
||||
}
|
||||
else if($session->access != BANNED){
|
||||
echo "<td class=\"act\"><a class=\"research\" href=\"build.php?id=$id&a=$j&c=".$session->mchecker."\">Upgrade</a></td></tr>";
|
||||
echo "<td class=\"act\"><a class=\"research\" href=\"build.php?id=$id&a=$j&c=".$session->mchecker."\">".UPGRADE."</a></td></tr>";
|
||||
}else{
|
||||
echo "<td class=\"act\"><a class=\"research\" href=\"banned.php\">Upgrade</a></td></tr>";
|
||||
echo "<td class=\"act\"><a class=\"research\" href=\"banned.php\">".UPGRADE."</a></td></tr>";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -61,7 +61,7 @@ echo "<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\"
|
||||
|
||||
<?php
|
||||
if(count($ABups) > 0) {
|
||||
echo "<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\"><thead><tr><td>Upgrading</td><td>Duration</td><td>Complete</td></tr>
|
||||
echo "<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\"><thead><tr><td>".UPGRADING."</td><td>".DURATION."</td><td>".COMPLETE."</td></tr>
|
||||
</thead><tbody>";
|
||||
$timer = 1;
|
||||
foreach($ABups as $black) {
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<div id="build" class="gid13"><a href="#" onClick="return Popup(13,4);" class="build_logo">
|
||||
|
||||
<img class="building g13" src="img/x.gif" alt="Armoury" title="Armoury" />
|
||||
<img class="building g13" src="img/x.gif" alt="Armoury" title="<?php echo ARMOURY; ?>" />
|
||||
</a>
|
||||
<h1>Armoury <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">In the armoury's melting furnaces your warriors' armour is enhanced. By increasing its level you can order the fabrication of even better armour.
|
||||
<h1><?php echo ARMOURY; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo ARMOURY_DESC; ?></p>
|
||||
<?php
|
||||
if ($building->getTypeLevel(13) > 0) {
|
||||
include("13_upgrades.tpl");
|
||||
} else {
|
||||
echo "<p><b>Upgrades can commence when armoury is completed.</b><br>\n";
|
||||
echo "<p><b><?php echo UPGRADES_COMMENCE_ARMOURY; ?>Upgrades can commence when armoury is completed.</b><br>\n";
|
||||
}
|
||||
include("upgrade.tpl");
|
||||
?>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Armoury</td>
|
||||
<td>Action</td>
|
||||
<td><?php echo ARMOURY; ?></td>
|
||||
<td><?php echo ACTION; ?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -25,33 +25,33 @@ echo "<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\"
|
||||
}
|
||||
}
|
||||
if($abdata['a'.$j] == 20) {
|
||||
echo "<td class=\"act\"><div class=\"none\">Maximum<br>level</div></td></tr>";
|
||||
echo "<td class=\"act\"><div class=\"none\">".MAXIMUM_LEVEL."</div></td></tr>";
|
||||
}
|
||||
else if(${'ab'.$i}[$abdata['a'.$j]+1]['wood'] > $village->maxstore || ${'ab'.$i}[$abdata['a'.$j]+1]['clay'] > $village->maxstore || ${'ab'.$i}[$abdata['a'.$j]+1]['iron'] > $village->maxstore) {
|
||||
echo "<td class=\"act\"><div class=\"none\">Expand<br>warehouse</div></td></tr>";
|
||||
echo "<td class=\"act\"><div class=\"none\">".EXPAND_WAREHOUSE."</div></td></tr>";
|
||||
}
|
||||
else if (${'ab'.$i}[$abdata['a'.$j]+1]['crop'] > $village->maxcrop) {
|
||||
echo "<td class=\"act\"><div class=\"none\">Expand<br>granary</div></td></tr>";
|
||||
echo "<td class=\"act\"><div class=\"none\">".EXPAND_GRANARY."</div></td></tr>";
|
||||
}
|
||||
else if (${'ab'.$i}[$abdata['a'.$j]+1]['wood'] > $village->awood || ${'ab'.$i}[$abdata['a'.$j]+1]['clay'] > $village->aclay || ${'ab'.$i}[$abdata['a'.$j]+1]['iron'] > $village->airon || ${'ab'.$i}[$abdata['a'.$j]+1]['crop'] > $village->acrop) {
|
||||
if($village->getProd("crop")>0 || $village->acrop > ${'ab'.$i}[$abdata['a'.$j]+1]['crop']){
|
||||
$time = $technology->calculateAvaliable(13,${'ab'.$i}[$abdata['a'.$j]+1]);
|
||||
echo "<br><span class=\"none\">Enough resources ".$time[0]." at ".$time[1]."</span></div></td>";
|
||||
echo "<br><span class=\"none\">".ENOUGH_RESOURCES." ".$time[0]." at ".$time[1]."</span></div></td>";
|
||||
} else {
|
||||
echo "<br><span class=\"none\">Crop production is negative so you will never reach the required resources</span></div></td>";
|
||||
echo "<br><span class=\"none\">".CROP_NEGATIVE."</span></div></td>";
|
||||
}
|
||||
echo "<td class=\"act\"><div class=\"none\">Too few<br>resources</div></td></tr>";
|
||||
echo "<td class=\"act\"><div class=\"none\">".TOO_FEW_RESOURCES."</div></td></tr>";
|
||||
}
|
||||
else if ($building->getTypeLevel(13) <= $abdata['a'.$j]) {
|
||||
echo "<td class=\"act\"><div class=\"none\">Upgrade<br>armoury</div></td></tr>";
|
||||
echo "<td class=\"act\"><div class=\"none\">".UPGRADE_ARMOURY."</div></td></tr>";
|
||||
}
|
||||
else if (count($ABups) > 0) {
|
||||
echo "<td class=\"act\"><div class=\"none\">Upgrade in<br>progress</div></td></tr>";
|
||||
echo "<td class=\"act\"><div class=\"none\">".UPGRADE_IN_PROGRESS."</div></td></tr>";
|
||||
}
|
||||
else if($session->access != BANNED){
|
||||
echo "<td class=\"act\"><a class=\"research\" href=\"build.php?id=$id&a=$j&c=".$session->mchecker."\">Upgrade</a></td></tr>";
|
||||
echo "<td class=\"act\"><a class=\"research\" href=\"build.php?id=$id&a=$j&c=".$session->mchecker."\">".UPGRADE."</a></td></tr>";
|
||||
}else{
|
||||
echo "<td class=\"act\"><a class=\"research\" href=\"banned.php\">Upgrade</a></td></tr>";
|
||||
echo "<td class=\"act\"><a class=\"research\" href=\"banned.php\">".UPGRADE."</a></td></tr>";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -61,7 +61,7 @@ echo "<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\"
|
||||
|
||||
<?php
|
||||
if(count($ABups) > 0) {
|
||||
echo "<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\"><thead><tr><td>Upgrading</td><td>Duration</td><td>Complete</td></tr>
|
||||
echo "<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\"><thead><tr><td>".UPGRADING."</td><td>".DURATION."</td><td>".COMPLETE."</td></tr>
|
||||
</thead><tbody>";
|
||||
$timer = 1;
|
||||
foreach($ABups as $arms) {
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
include("next.tpl");
|
||||
?>
|
||||
<div id="build" class="gid14"><a href="#" onClick="return Popup(14,4);" class="build_logo">
|
||||
<img class="building g14" src="img/x.gif" alt="Tournament Square" title="Tournament Square" />
|
||||
<img class="building g14" src="img/x.gif" alt="Tournament Square" title="<?php echo TOURNAMENTSQUARE; ?>" />
|
||||
</a>
|
||||
<h1>Tournament Square <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">At the Tournament Square your troops can train their stamina. The further the building is upgraded the faster your troops are beyond a minimum distance of <?php echo TS_THRESHOLD ?> squares.</p>
|
||||
<h1><?php echo TOURNAMENTSQUARE; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo TOURNAMENTSQUARE_DESC; ?> </p>
|
||||
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="build_value">
|
||||
<tr>
|
||||
<th>Current speed bonus:</th>
|
||||
<td><b><?php echo $bid14[$village->resarray['f'.$id]]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo CURRENT_SPEED; ?></th>
|
||||
<td><b><?php echo $bid14[$village->resarray['f'.$id]]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
@@ -19,13 +19,13 @@ include("next.tpl");
|
||||
$next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master;
|
||||
if($next<=20){
|
||||
?>
|
||||
<th>Speed bonus at level <?php echo $next; ?>:</th>
|
||||
<td><b><?php echo $bid14[$next]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo SPEED_LEVEL; ?> <?php echo $next; ?>:</th>
|
||||
<td><b><?php echo $bid14[$next]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<th>Speed bonus at level 20:</th>
|
||||
<td><b><?php echo $bid14[20]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo SPEED_LEVEL; ?> 20:</th>
|
||||
<td><b><?php echo $bid14[20]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}}
|
||||
?>
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
include("next.tpl");
|
||||
?>
|
||||
<div id="build" class="gid15"><a href="#" onClick="return Popup(15,4);" class="build_logo">
|
||||
<img class="building g15" src="img/x.gif" alt="Main Building" title="Main Building" />
|
||||
<img class="building g15" src="img/x.gif" alt="Main Building" title="<?php echo MAINBUILDING; ?>" />
|
||||
</a>
|
||||
<h1>Main Building <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">In the main building the village's master builders live. The higher its level the faster your master builders complete the construction of new buildings.</p>
|
||||
<h1><?php echo MAINBUILDING; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo MAINBUILDING_DESC; ?></p>
|
||||
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="build_value">
|
||||
<tr>
|
||||
<th>Current construction time:</th>
|
||||
<td><b><?php echo round($bid15[$village->resarray['f'.$id]]['attri']); ?></b> Percent</td>
|
||||
<th><?php echo CURRENT_CONSTRUCTION_TIME; ?></th>
|
||||
<td><b><?php echo round($bid15[$village->resarray['f'.$id]]['attri']); ?></b> <?php echo PERCENT; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
@@ -19,13 +19,13 @@ include("next.tpl");
|
||||
$next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master;
|
||||
if($next<=20){
|
||||
?>
|
||||
<th>Construction time at level <?php echo $next; ?>:</th>
|
||||
<td><b><?php echo round($bid15[$next]['attri']); ?></b> Percent</td>
|
||||
<th><?php echo CONSTRUCTION_TIME_LEVEL; ?> <?php echo $next; ?>:</th>
|
||||
<td><b><?php echo round($bid15[$next]['attri']); ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<th>Construction time at level 20:</th>
|
||||
<td><b><?php echo round($bid15[20]['attri']); ?></b> Percent</td>
|
||||
<th><?php echo CONSTRUCTION_TIME_LEVEL; ?> 20:</th>
|
||||
<td><b><?php echo round($bid15[20]['attri']); ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}}
|
||||
?>
|
||||
|
||||
+20
-20
@@ -1,63 +1,63 @@
|
||||
<?php
|
||||
<?php
|
||||
$ty=(isset($_GET['ty']))? $_GET['ty']:"";
|
||||
if($_REQUEST["cancel"] == "1") {
|
||||
if($session->access != BANNED){
|
||||
$database->delDemolition($village->wid);
|
||||
header("Location: build.php?gid=15&ty=$ty&cancel=0&demolish=0");
|
||||
}else{
|
||||
header("Location: banned.php");
|
||||
header("Location: banned.php");
|
||||
}
|
||||
}
|
||||
|
||||
if(!empty($_REQUEST["demolish"]) && $_REQUEST["c"] == $session->mchecker) {
|
||||
if($session->access != BANNED){
|
||||
if($_REQUEST["type"] != null) {
|
||||
if($_REQUEST["type"] != null) {
|
||||
$type = $_REQUEST['type'];
|
||||
$database->addDemolition($village->wid,$type);
|
||||
$session->changeChecker();
|
||||
header("Location: build.php?gid=15&ty=$type&cancel=0&demolish=0");
|
||||
}
|
||||
}else{
|
||||
header("Location: banned.php");
|
||||
header("Location: banned.php");
|
||||
}
|
||||
}
|
||||
|
||||
if($village->resarray['f'.$id] >= DEMOLISH_LEVEL_REQ) {
|
||||
echo "<h2>Demolition of the building:</h2><p>If you no longer need a building, you can order the demolition of the building.</p>";
|
||||
echo "<h2>".DEMOLITION_BUILDING."";
|
||||
$VillageResourceLevels = $database->getResourceLevel($village->wid);
|
||||
$DemolitionProgress = $database->getDemolition($village->wid);
|
||||
if (!empty($DemolitionProgress)) {
|
||||
$Demolition = $DemolitionProgress[0];
|
||||
echo "<b>";
|
||||
echo "<a href='build.php?id=".$_GET['id']."&ty=".$ty."&cancel=1'><img src='img/x.gif' class='del' title='cancel' alt='cancel'></a> ";
|
||||
echo "Demolition of ".$building->procResType($VillageResourceLevels['f'.$Demolition['buildnumber'].'t']).": <span id=timer1>".$generator->getTimeFormat($Demolition['timetofinish']-time())."</span>";
|
||||
echo "<a href='build.php?id=".$_GET['id']."&ty=".$ty."&cancel=1'><img src='img/x.gif' class='del' title='".CANCEL."' alt='cancel'></a> ";
|
||||
echo "".DEMOLITION_OF." ".$building->procResType($VillageResourceLevels['f'.$Demolition['buildnumber'].'t']).": <span id=timer1>".$generator->getTimeFormat($Demolition['timetofinish']-time())."</span>";
|
||||
if($session->gold >= 2) {
|
||||
if($session->access!=BANNED){
|
||||
?> <a href="?id=15&buildingFinish=1&ty=<?php echo $ty;?>" title="Finish all construction and research orders in this village immediately for 2 Gold?"><img class="clock" alt="Finish all construction and research orders in this village immediately for 2 Gold?" src="img/x.gif"/></a>
|
||||
?> <a href="?id=15&buildingFinish=1&ty=<?php echo $ty;?>" title="<?php echo FINISH_GOLD; ?>"><img class="clock" alt="Finish all construction and research orders in this village immediately for 2 Gold?" src="img/x.gif"/></a>
|
||||
<?php
|
||||
}else{
|
||||
?> <a href="banned.php" title="Finish all construction and research orders in this village immediately for 2 Gold?"><img class="clock" alt="Finish all construction and research orders in this village immediately for 2 Gold?" src="img/x.gif"/></a>
|
||||
?> <a href="banned.php" title="<?php echo FINISH_GOLD; ?>"><img class="clock" alt="Finish all construction and research orders in this village immediately for 2 Gold?" src="img/x.gif"/></a>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
echo "</b>";
|
||||
} else {
|
||||
}
|
||||
echo "</b>";
|
||||
} else {
|
||||
echo "
|
||||
<form action=\"build.php?gid=15&demolish=1&cancel=0&c=".$session->mchecker."\" method=\"POST\" style=\"display:inline\">
|
||||
<select name=\"type\" class=\"dropdown\">";
|
||||
<form action=\"build.php?gid=15&demolish=1&cancel=0&c=".$session->mchecker."\" method=\"POST\" style=\"display:inline\">
|
||||
<select name=\"type\" class=\"dropdown\">";
|
||||
for ($i=19; $i<=41; $i++) {
|
||||
$select=($i==$ty)? " SELECTED":"";
|
||||
if ($VillageResourceLevels['f'.$i] >= 1 && !$building->isCurrent($i) && !$building->isLoop($i)) {
|
||||
echo "<option value=".$i.$select.">".$i.". ".$building->procResType($VillageResourceLevels['f'.$i.'t'])." (lvl ".$VillageResourceLevels['f'.$i].")</option>";
|
||||
}
|
||||
}
|
||||
if ($village->natar==1) {
|
||||
}
|
||||
if ($village->natar==1) {
|
||||
$select=($ty==99)? " SELECTED":"";
|
||||
if ($VillageResourceLevels['f99'] >= 1 && !$building->isCurrent(99) && !$building->isLoop(99)) {
|
||||
echo "<option value=99".$select.">99. ".$building->procResType(40)." (lvl ".$VillageResourceLevels['f99'].")</option>";
|
||||
}
|
||||
}
|
||||
echo "</select><input id=\"btn_demolish\" name=\"demolish\" class=\"dynamic_img\" value=\"Demolish\" type=\"image\" src=\"img/x.gif\" alt=\"Demolish\" title=\"Demolish\" /></form>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
echo "</select><input id=\"btn_demolish\" name=\"demolish\" class=\"dynamic_img\" value=\"Demolish\" type=\"image\" src=\"img/x.gif\" alt=\"Demolish\" title=\"".DEMOLISH."\" /></form>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -1,5 +1,5 @@
|
||||
<div id="build" class="gid16"><a href="#" onClick="return Popup(16,4);" class="build_logo">
|
||||
<img class="g16" src="img/x.gif" alt="Rally point" title="Rally point" />
|
||||
<img class="g16" src="img/x.gif" alt="Rally point" title="<?php echo RALLYPOINT;?>" />
|
||||
</a>
|
||||
<h1><?php echo RALLYPOINT;?> <span class="level"><?php echo LEVEL;?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo RALLYPOINT_DESC;?></p>
|
||||
@@ -308,4 +308,4 @@ if($units_incoming >= 1){
|
||||
|
||||
include("upgrade.tpl");
|
||||
?>
|
||||
</p></div>
|
||||
</p></div>
|
||||
+12
-12
@@ -4,15 +4,15 @@ if(!$session->goldclub) {
|
||||
}else{
|
||||
?>
|
||||
<div id="build" class="gid16"><a href="#" onClick="return Popup(16,4);" class="build_logo">
|
||||
<img class="g16" src="img/x.gif" alt="Rally point" title="Rally point" />
|
||||
<img class="g16" src="img/x.gif" alt="Rally point" title="<?php echo RALLYPOINT;?>" />
|
||||
</a>
|
||||
<h1>Rally point <span class="level">level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">Your village's troops meet here. From here you can send them out to conquer, raid or reinforce other villages.</p>
|
||||
<h1><?php echo RALLYPOINT;?> <span class="level"><?php echo LEVEL;?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo RALLYPOINT_DESC;?></p>
|
||||
|
||||
<div id="textmenu">
|
||||
<a href="build.php?id=<?php echo $id; ?>">Overview</a> |
|
||||
<a href="a2b.php">Send troops</a> |
|
||||
<a href="warsim.php">Combat Simulator</a> <?php if($session->goldclub==1){ ?>|
|
||||
<a href="build.php?id=<?php echo $id; ?>"><?php echo OVERVIEW;?></a> |
|
||||
<a href="a2b.php"><?php echo SEND_TROOPS;?></a> |
|
||||
<a href="warsim.php"><?php echo Q20_RESP1;?></a> <?php if($session->goldclub==1){ ?>|
|
||||
<a href="build.php?id=<?php echo $id; ?>&t=99">Gold Club</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
@@ -25,17 +25,17 @@ if(!$session->goldclub) {
|
||||
<table cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="4">evasion settings</th>
|
||||
<th colspan="4"><?php echo EVASION_SETTINGS;?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
|
||||
<td>village</td>
|
||||
<td><?php echo MULTI_V_HEADER; ?></td>
|
||||
|
||||
<td>own troops</td>
|
||||
<td><?php echo OWN_TROOPS; ?></td>
|
||||
|
||||
<td>reinforcement</td>
|
||||
<td><?php echo REINFORCEMENT;?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -65,8 +65,8 @@ if(!$session->goldclub) {
|
||||
<form action="build.php?id=39&t=99" method="POST">
|
||||
<br />
|
||||
<tr>
|
||||
Send troops away a maximun of <input class="text" type="text" name="maxevasion" value="<?php echo $user['maxevasion']; ?>" maxlength="3" style="width:50px;"> times
|
||||
<span class="none">(costs: <img src="<?php echo GP_LOCATE; ?>img/a/gold_g.gif" alt="Gold" title="Gold"/><b>2</b> per evasion)</span>
|
||||
<?php echo SEND_TROOPS_AWAY_MAX;?> <input class="text" type="text" name="maxevasion" value="<?php echo $user['maxevasion']; ?>" maxlength="3" style="width:50px;"> <?php echo TIMES;?>
|
||||
<span class="none">(<?php echo COSTS;?>: <img src="<?php echo GP_LOCATE; ?>img/a/gold_g.gif" alt="Gold" title="<?php echo GOLD;?>"/><b>2</b> <?php echo PER_EVASION;?>)</span>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -64,7 +64,8 @@ if ($units[$y]['sort_type']==3){
|
||||
$artefact = count($database->getOwnUniqueArtefactInfo2($session->uid,3,3,0));
|
||||
$artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,3,1,1));
|
||||
$artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,3,2,0));
|
||||
$total_artefact = $artefact + $artefact1 + $artefact2;
|
||||
$foolartefact = count($database->getFoolArtefactInfo(3,$village->wid,$session->uid));
|
||||
$total_artefact = $artefact + $artefact1 + $artefact2 + $foolartefact;
|
||||
if($total_artefact == 0){
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}else{
|
||||
@@ -98,7 +99,7 @@ if ($units[$y]['sort_type']==3){
|
||||
echo "<table class=\"troop_details\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><td class=\"role\">
|
||||
<a>village of the elders</a></td>
|
||||
<td colspan=\"10\">";
|
||||
echo "<a>Taskmaster's troops</a>";
|
||||
echo "<a>".VILLAGE_OF_THE_ELDERS_TROOPS."</a>";
|
||||
echo "</td></tr></thead><tbody class=\"units\">";
|
||||
$tribe = $session->tribe;
|
||||
$start = ($tribe-1)*10+1;
|
||||
@@ -365,4 +366,4 @@ $to = $database->getMInfo($settlers[$x]['to']);
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
+54
-58
@@ -1,8 +1,8 @@
|
||||
<div id="build" class="gid17"><a href="#" onClick="return Popup(17,4);" class="build_logo">
|
||||
<img class="building g17" src="img/x.gif" alt="Marketplace" title="Marketplace" />
|
||||
<img class="building g17" src="img/x.gif" alt="Marketplace" title="<?php echo MARKETPLACE;?>" />
|
||||
</a>
|
||||
<h1>Marketplace <span class="level">level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">At the Marketplace you can trade resources with other players. The higher its level, the more resources can be transported at the same time.
|
||||
<h1><?php echo MARKETPLACE;?> <span class="level"><?php echo LEVEL;?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo MARKETPLACE_DESC;?>
|
||||
</p>
|
||||
|
||||
<?php include("17_menu.tpl"); ?>
|
||||
@@ -26,12 +26,10 @@ else if($_POST['dname']!=""){
|
||||
if($checkexist){
|
||||
$villageOwner = $database->getVillageField($getwref,'owner');
|
||||
$userAccess = $database->getUserField($villageOwner,'access',0);
|
||||
// Function vacation mode by Shadow
|
||||
$userVacation = $database->getUserField($villageOwner,'vac_mode',0);
|
||||
}
|
||||
$maxcarry = $market->maxcarry;
|
||||
$maxcarry *= $market->merchantAvail();
|
||||
if(isset($_POST['ft'])=='check' && $allres!=0 && $allres <= $maxcarry && ($_POST['x']!="" && $_POST['y']!="" or $_POST['dname']!="") && $checkexist && $userAccess == 2 && $userVacation == 0){
|
||||
if(isset($_POST['ft'])=='check' && $allres!=0 && $allres <= $maxcarry && ($_POST['x']!="" && $_POST['y']!="" or $_POST['dname']!="") && $checkexist && $userAccess == 2){
|
||||
?>
|
||||
<form method="POST" name="snd" action="build.php">
|
||||
<input type="hidden" name="ft" value="mk1">
|
||||
@@ -39,34 +37,34 @@ if(isset($_POST['ft'])=='check' && $allres!=0 && $allres <= $maxcarry && ($_POST
|
||||
<input type="hidden" name="send3" value="<?php echo $_POST['send3']; ?>">
|
||||
<table id="send_select" class="send_res" cellpadding="1" cellspacing="1">
|
||||
<tr>
|
||||
<td class="ico"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /></td>
|
||||
<td class="nam"> Wood</td>
|
||||
<td class="ico"><img class="r1" src="img/x.gif" alt="Lumber" title="<?php echo LUMBER;?>" /></td>
|
||||
<td class="nam"> <?php echo LUMBER;?></td>
|
||||
<td class="val"><input class="text disabled" type="text" name="r1" id="r1" value="<?php echo $_POST['r1']; ?>" readonly="readonly"></td>
|
||||
<td class="max"> / <span class="none"><B><?php echo $market->maxcarry; ?></B></span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ico"><img class="r2" src="img/x.gif" alt="Clay" title="Clay" /></td>
|
||||
<td class="nam"> Clay</td>
|
||||
<td class="ico"><img class="r2" src="img/x.gif" alt="Clay" title="<?php echo CLAY;?>" /></td>
|
||||
<td class="nam"> <?php echo CLAY;?></td>
|
||||
<td class="val"><input class="text disabled" type="text" name="r2" id="r2" value="<?php echo $_POST['r2']; ?>" readonly="readonly"></td>
|
||||
<td class="max"> / <span class="none"><b><?php echo$market->maxcarry; ?></b></span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ico"><img class="r3" src="img/x.gif" alt="Iron" title="Iron" /></td>
|
||||
<td class="nam"> Iron</td>
|
||||
<td class="ico"><img class="r3" src="img/x.gif" alt="Iron" title="<?php echo IRON;?>" /></td>
|
||||
<td class="nam"> <?php echo IRON;?></td>
|
||||
<td class="val"><input class="text disabled" type="text" name="r3" id="r3" value="<?php echo $_POST['r3']; ?>" readonly="readonly">
|
||||
</td>
|
||||
<td class="max"> / <span class="none"><b><?php echo $market->maxcarry; ?></b></span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ico"><img class="r4" src="img/x.gif" alt="Crop" title="Crop" /></td>
|
||||
<td class="nam"> Wheat</td>
|
||||
<td class="ico"><img class="r4" src="img/x.gif" alt="Crop" title="<?php echo CROP;?>" /></td>
|
||||
<td class="nam"> <?php echo CROP;?></td>
|
||||
<td class="val"> <input class="text disabled" type="text" name="r4" id="r4" value="<?php echo $_POST['r4']; ?>" readonly="readonly">
|
||||
</td>
|
||||
<td class="max"> / <span class="none"><B><?php echo $market->maxcarry; ?></B></span></td>
|
||||
</tr></table>
|
||||
<table id="target_validate" class="res_target" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<th>Coordinates:</th>
|
||||
<th><?php echo COORDINATES;?>:</th>
|
||||
<?php
|
||||
if($_POST['x']!="" && $_POST['y']!="" && is_numeric($_POST['x']) && is_numeric($_POST['y'])){
|
||||
$getwref = $database->getVilWref($_POST['x'],$_POST['y']);
|
||||
@@ -87,15 +85,15 @@ if(isset($_POST['ft'])=='check' && $allres!=0 && $allres <= $maxcarry && ($_POST
|
||||
<td><a href="karte.php?d=<?php echo $getwref; ?>&c=<?php echo $generator->getMapCheck($getwref); ?>"><?php echo $getvilname; ?>(<?php echo $getvilcoor['x']; ?>|<?php echo $getvilcoor['y']; ?>)<span class="clear"></span></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Player:</th>
|
||||
<th><?php echo PLAYER;?>:</th>
|
||||
<td><a href="spieler.php?uid=<?php echo $getvilowner; ?>"><?php echo $database->getUserField($getvilowner,username,0); ?></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>duration:</th>
|
||||
<th><?php echo DURATION;?>:</th>
|
||||
<td><?php echo $generator->getTimeFormat($time); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Merchants:</th>
|
||||
<th><?php echo MERCHANT;?>:</th>
|
||||
<td><?php
|
||||
$resource = array($_POST['r1'],$_POST['r2'],$_POST['r3'],$_POST['r4']);
|
||||
echo ceil((array_sum($resource)-0.1)/$market->maxcarry); ?></td>
|
||||
@@ -117,10 +115,10 @@ if(isset($_POST['ft'])=='check' && $allres!=0 && $allres <= $maxcarry && ($_POST
|
||||
<input type="hidden" name="id" value="<?php echo $id; ?>">
|
||||
<table id="send_select" class="send_res" cellpadding="1" cellspacing="1"><tr>
|
||||
<td class="ico">
|
||||
<a href="#" onClick="upd_res(1,1); return false;"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /></a>
|
||||
<a href="#" onClick="upd_res(1,1); return false;"><img class="r1" src="img/x.gif" alt="Lumber" title="<?php echo LUMBER;?>" /></a>
|
||||
</td>
|
||||
<td class="nam">
|
||||
Lumber:
|
||||
<?php echo LUMBER;?>:
|
||||
</td>
|
||||
<td class="val">
|
||||
<input class="text" type="text" name="r1" id="r1" value="" maxlength="5" onKeyUp="upd_res(1)" tabindex="1">
|
||||
@@ -130,10 +128,10 @@ if(isset($_POST['ft'])=='check' && $allres!=0 && $allres <= $maxcarry && ($_POST
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<a href="#" onClick="upd_res(2,1); return false;"><img class="r2" src="img/x.gif" alt="Clay" title="Clay" /></a>
|
||||
<a href="#" onClick="upd_res(2,1); return false;"><img class="r2" src="img/x.gif" alt="Clay" title="<?php echo CLAY;?>" /></a>
|
||||
</td>
|
||||
<td class="nam">
|
||||
Clay:
|
||||
<?php echo CLAY;?>:
|
||||
</td>
|
||||
<td class="val">
|
||||
<input class="text" type="text" name="r2" id="r2" value="" maxlength="5" onKeyUp="upd_res(2)" tabindex="2">
|
||||
@@ -143,10 +141,10 @@ if(isset($_POST['ft'])=='check' && $allres!=0 && $allres <= $maxcarry && ($_POST
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<a href="#" onClick="upd_res(3,1); return false;"><img class="r3" src="img/x.gif" alt="Iron" title="Iron" /></a>
|
||||
<a href="#" onClick="upd_res(3,1); return false;"><img class="r3" src="img/x.gif" alt="Iron" title="<?php echo IRON;?>" /></a>
|
||||
</td>
|
||||
<td class="nam">
|
||||
Iron:
|
||||
<?php echo IRON;?>:
|
||||
</td>
|
||||
<td class="val">
|
||||
<input class="text" type="text" name="r3" id="r3" value="" maxlength="5" onKeyUp="upd_res(3)" tabindex="3">
|
||||
@@ -156,10 +154,10 @@ if(isset($_POST['ft'])=='check' && $allres!=0 && $allres <= $maxcarry && ($_POST
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<a href="#" onClick="upd_res(4,1); return false;"><img class="r4" src="img/x.gif" alt="Crop" title="Crop" /></a>
|
||||
<a href="#" onClick="upd_res(4,1); return false;"><img class="r4" src="img/x.gif" alt="Crop" title="<?php echo CROP;?>" /></a>
|
||||
</td>
|
||||
<td class="nam">
|
||||
Crop:
|
||||
<?php echo CROP;?>:
|
||||
</td>
|
||||
<td class="val">
|
||||
<input class="text" type="text" name="r4" id="r4" value="" maxlength="5" onKeyUp="upd_res(4)" tabindex="4">
|
||||
@@ -171,14 +169,14 @@ if(isset($_POST['ft'])=='check' && $allres!=0 && $allres <= $maxcarry && ($_POST
|
||||
|
||||
<table id="target_select" class="res_target" cellpadding="1" cellspacing="1">
|
||||
<tr>
|
||||
<td class="mer">Merchants <?php echo $market->merchantAvail(); ?>/<?php echo $market->merchant; ?></td>
|
||||
<td class="mer"><?php echo MERCHANT;?> <?php echo $market->merchantAvail(); ?>/<?php echo $market->merchant; ?></td>
|
||||
</tr>
|
||||
<td class="vil">
|
||||
<span>Villages:</span>
|
||||
<span><?php echo MULTI_V_HEADER;?>:</span>
|
||||
<input class="text" type="text" name="dname" value="" maxlength="30" tabindex="5">
|
||||
</td>
|
||||
<tr>
|
||||
<td class="or">or</td>
|
||||
<td class="or"><?php echo OR_;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
@@ -198,7 +196,7 @@ $coor['y'] = "";
|
||||
</table>
|
||||
<div class="clear"></div>
|
||||
<?php if($session->goldclub == 1){?>
|
||||
<p><select name="send3"><option value="1" selected="selected">1x</option><option value="2">2x</option><option value="3">3x</option></select>go</p>
|
||||
<p><select name="send3"><option value="1" selected="selected">1x</option><option value="2">2x</option><option value="3">3x</option></select><?php echo GO;?></p>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
@@ -212,87 +210,85 @@ $error = '';
|
||||
if(isset($_POST['ft'])=='check'){
|
||||
|
||||
if(!$checkexist){
|
||||
$error = '<span class="error"><b>No Coordinates selected</b></span>';
|
||||
$error = '<span class="error"><b>'.NO_COORDINATES_SELECTED.'</b></span>';
|
||||
}elseif($getwref == $village->wid){
|
||||
$error = '<span class="error"><b>You cannot send resources to the same village</b></span>';
|
||||
$error = '<span class="error"><b>'.CANNOT_SEND_RESOURCES.'</b></span>';
|
||||
}elseif($userAccess == '0' or $userAccess == '8' or $userAccess == '9'){
|
||||
$error = '<span class="error"><b>Player is Banned. You cannot send resources to him.</b></span>';
|
||||
}elseif($userVacation == '1') {
|
||||
$error = '<span class="error"><b>Player is on vacation mode. You cannot send resources to him.</b></span>';
|
||||
$error = '<span class="error"><b>'.BANNED_CANNOT_SEND_RESOURCES.'.</b></span>';
|
||||
}elseif($_POST['r1']==0 && $_POST['r2']==0 && $_POST['r3']==0 && $_POST['r4']==0){
|
||||
$error = '<span class="error"><b>Resources not selected.</b></span>';
|
||||
$error = '<span class="error"><b>'.RESOURCES_NO_SELECTED.'.</b></span>';
|
||||
}elseif(!$_POST['x'] && !$_POST['y'] && !$_POST['dname']){
|
||||
$error = '<span class="error"><b>Enter coordinates or village name.</b></span>';
|
||||
$error = '<span class="error"><b>'.ENTER_COORDINATES.'.</b></span>';
|
||||
}elseif($allres > $maxcarry){
|
||||
$error = '<span class="error"><b>Too few merchants.</b></span>';
|
||||
$error = '<span class="error"><b>'.TOO_FEW_MERCHANTS.'.</b></span>';
|
||||
}
|
||||
echo $error;
|
||||
}
|
||||
?>
|
||||
<p>
|
||||
<?php } ?>
|
||||
<p>Each merchant can carry <b><?php echo $market->maxcarry; ?></b> units of resource</p>
|
||||
<p><?php echo MERCHANT_CARRY;?> <b><?php echo $market->maxcarry; ?></b> <?php echo UNITS_OF_RESOURCE;?> </p>
|
||||
<?php
|
||||
$timer = 1;
|
||||
if(count($market->recieving) > 0) {
|
||||
echo "<h4>Merchants coming:</h4>";
|
||||
echo "<h4>".MERCHANT_COMING.":</h4>";
|
||||
foreach($market->recieving as $recieve) {
|
||||
echo "<table class=\"traders\" cellpadding=\"1\" cellspacing=\"1\">";
|
||||
$villageowner = $database->getVillageField($recieve['from'],"owner");
|
||||
echo "<thead><tr><td><a href=\"spieler.php?uid=$villageowner\">".$database->getUserField($villageowner,"username",0)."</a></td>";
|
||||
echo "<td><a href=\"karte.php?d=".$recieve['from']."&c=".$generator->getMapCheck($recieve['from'])."\">Transport from ".$database->getVillageField($recieve['from'],"name")."</a></td>";
|
||||
echo "</tr></thead><tbody><tr><th>Arrival in</th><td>";
|
||||
echo "<td><a href=\"karte.php?d=".$recieve['from']."&c=".$generator->getMapCheck($recieve['from'])."\">".TRANSPORT_FROM." ".$database->getVillageField($recieve['from'],"name")."</a></td>";
|
||||
echo "</tr></thead><tbody><tr><th>".ARRIVAL_IN."</th><td>";
|
||||
echo "<div class=\"in\"><span id=timer$timer>".$generator->getTimeFormat($recieve['endtime']-time())."</span> h</div>";
|
||||
$datetime = $generator->procMtime($recieve['endtime']);
|
||||
echo "<div class=\"at\">";
|
||||
if($datetime[0] != "today") {
|
||||
echo "on ".$datetime[0]." ";
|
||||
echo "".ON." ".$datetime[0]." ";
|
||||
}
|
||||
echo "at ".$datetime[1]."</div>";
|
||||
echo "</td></tr></tbody> <tr class=\"res\"> <th>Resource</th> <td colspan=\"2\"><span class=\"f10\">";
|
||||
echo "<img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"Lumber\" />".$recieve['wood']." | <img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".$recieve['clay']." | <img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".$recieve['iron']." | <img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".$recieve['crop']."</td></tr></tbody>";
|
||||
echo "".AT." ".$datetime[1]."</div>";
|
||||
echo "</td></tr></tbody> <tr class=\"res\"> <th>".RESOURCES."</th> <td colspan=\"2\"><span class=\"f10\">";
|
||||
echo "<img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"".LUMBER."\" />".$recieve['wood']." | <img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".$recieve['clay']." | <img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".$recieve['iron']." | <img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".$recieve['crop']."</td></tr></tbody>";
|
||||
echo "</table>";
|
||||
$timer +=1;
|
||||
}
|
||||
}
|
||||
if(count($market->sending) > 0) {
|
||||
echo "<h4>Own merchants on the way:</h4>";
|
||||
echo "<h4>".OWN_MERCHANTS_ONWAY.":</h4>";
|
||||
foreach($market->sending as $send) {
|
||||
$villageowner = $database->getVillageField($send['to'],"owner");
|
||||
$ownername = $database->getUserField($villageowner,"username",0);
|
||||
echo "<table class=\"traders\" cellpadding=\"1\" cellspacing=\"1\">";
|
||||
echo "<thead><tr> <td><a href=\"spieler.php?uid=$villageowner\">$ownername</a></td>";
|
||||
echo "<td><a href=\"karte.php?d=".$send['to']."&c=".$generator->getMapCheck($send['to'])."\">Transport to ".$database->getVillageField($send['to'],"name")."</a></td>";
|
||||
echo "</tr></thead> <tbody><tr> <th>Arrival in</th> <td>";
|
||||
echo "<td><a href=\"karte.php?d=".$send['to']."&c=".$generator->getMapCheck($send['to'])."\">".TRANSPORT_TO." ".$database->getVillageField($send['to'],"name")."</a></td>";
|
||||
echo "</tr></thead> <tbody><tr> <th>".ARRIVAL_IN."</th> <td>";
|
||||
echo "<div class=\"in\"><span id=timer".$timer.">".$generator->getTimeFormat($send['endtime']-time())."</span> h</div>";
|
||||
$datetime = $generator->procMtime($send['endtime']);
|
||||
echo "<div class=\"at\">";
|
||||
if($datetime[0] != "today") {
|
||||
echo "on ".$datetime[0]." ";
|
||||
echo "".ON." ".$datetime[0]." ";
|
||||
}
|
||||
echo "at ".$datetime[1]."</div>";
|
||||
echo "</td> </tr> <tr class=\"res\"> <th>Resource</th><td>";
|
||||
echo "<img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"Lumber\" />".$send['wood']." | <img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".$send['clay']." | <img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".$send['iron']." | <img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".$send['crop']."</td></tr></tbody>";
|
||||
echo "".AT." ".$datetime[1]."</div>";
|
||||
echo "</td> </tr> <tr class=\"res\"> <th>".RESOURCES."</th><td>";
|
||||
echo "<img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"".LUMBER."\" />".$send['wood']." | <img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".$send['clay']." | <img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".$send['iron']." | <img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".$send['crop']."</td></tr></tbody>";
|
||||
echo "</table>";
|
||||
$timer += 1;
|
||||
}
|
||||
}
|
||||
if(count($market->return) > 0) {
|
||||
echo "<h4>Merchants returning:</h4>";
|
||||
echo "<h4>".MERCHANTS_RETURNING.":</h4>";
|
||||
foreach($market->return as $return) {
|
||||
$villageowner = $database->getVillageField($return['from'],"owner");
|
||||
$ownername = $database->getUserField($villageowner,"username",0);
|
||||
echo "<table class=\"traders\" cellpadding=\"1\" cellspacing=\"1\">";
|
||||
echo "<thead><tr> <td><a href=\"spieler.php?uid=$villageowner\">$ownername</a></td>";
|
||||
echo "<td><a href=\"karte.php?d=".$return['from']."&c=".$generator->getMapCheck($return['from'])."\">Return from ".$database->getVillageField($return['from'],"name")."</a></td>";
|
||||
echo "</tr></thead> <tbody><tr> <th>Arrival in</th> <td>";
|
||||
echo "<td><a href=\"karte.php?d=".$return['from']."&c=".$generator->getMapCheck($return['from'])."\">".RETURNFROM." ".$database->getVillageField($return['from'],"name")."</a></td>";
|
||||
echo "</tr></thead> <tbody><tr> <th>".ARRIVAL_IN."</th> <td>";
|
||||
echo "<div class=\"in\"><span id=timer".$timer.">".$generator->getTimeFormat($return['endtime']-time())."</span> h</div>";
|
||||
$datetime = $generator->procMtime($return['endtime']);
|
||||
echo "<div class=\"at\">";
|
||||
if($datetime[0] != "today") {
|
||||
echo "on ".$datetime[0]." ";
|
||||
echo "".ON." ".$datetime[0]." ";
|
||||
}
|
||||
echo "at ".$datetime[1]."</div>";
|
||||
echo "".AT." ".$datetime[1]."</div>";
|
||||
echo "</td> </tr>";
|
||||
echo "</tbody></table>";
|
||||
$timer += 1;
|
||||
|
||||
+32
-34
@@ -8,10 +8,10 @@ $u=0;
|
||||
?>
|
||||
|
||||
<div id="build" class="gid17"><a href="#" onClick="return Popup(17,4);" class="build_logo">
|
||||
<img class="building g17" src="img/x.gif" alt="Marketplace" title="Marketplace" />
|
||||
<img class="building g17" src="img/x.gif" alt="Marketplace" title="<?php echo MARKETPLACE;?>" />
|
||||
</a>
|
||||
<h1>Marketplace <span class="level">level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">At the Marketplace you can trade resources with other players. The higher its level, the more resources can be transported at the same time.
|
||||
<h1><?php echo MARKETPLACE;?> <span class="level"><?php echo LEVEL;?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo MARKETPLACE_DESC;?>
|
||||
</p>
|
||||
|
||||
<?php include("17_menu.tpl");
|
||||
@@ -19,13 +19,13 @@ if($session->plus) {
|
||||
?>
|
||||
<table id="search_select" class="buy_select" cellpadding="1" cellspacing="1">
|
||||
<thead><tr>
|
||||
<td colspan="4">I'm searching</td>
|
||||
<td colspan="4"><?php echo I_AN_SEARCHING;?></td>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td <?php if(isset($_GET['s']) && $_GET['s'] == 1) echo "class=\"hl\""; ?>><a href="build.php?id=<?php echo $id; ?>&t=1&s=1<?php if(isset($_GET['v'])) echo "&v=".$_GET['v']; if(isset($_GET['b'])) echo "&b=".$_GET['b']; ?>"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /></a></td>
|
||||
<td <?php if(isset($_GET['s']) && $_GET['s'] == 2) echo "class=\"hl\""; ?>><a href="build.php?id=<?php echo $id; ?>&t=1&s=2<?php if(isset($_GET['v'])) echo "&v=".$_GET['v']; if(isset($_GET['b'])) echo "&b=".$_GET['b']; ?>"><img class="r2" src="img/x.gif" alt="Clay" title="Clay" /></a></td>
|
||||
<td <?php if(isset($_GET['s']) && $_GET['s'] == 3) echo "class=\"hl\""; ?>><a href="build.php?id=<?php echo $id; ?>&t=1&s=3<?php if(isset($_GET['v'])) echo "&v=".$_GET['v']; if(isset($_GET['b'])) echo "&b=".$_GET['b']; ?>"><img class="r3" src="img/x.gif" alt="Iron" title="Iron" /></a></td>
|
||||
<td <?php if(isset($_GET['s']) && $_GET['s'] == 4) echo "class=\"hl\""; ?>><a href="build.php?id=<?php echo $id; ?>&t=1&s=4<?php if(isset($_GET['v'])) echo "&v=".$_GET['v']; if(isset($_GET['b'])) echo "&b=".$_GET['b']; ?>"><img class="r4" src="img/x.gif" alt="Crop" title="Crop" /></a></td></tr></tbody>
|
||||
<td <?php if(isset($_GET['s']) && $_GET['s'] == 1) echo "class=\"hl\""; ?>><a href="build.php?id=<?php echo $id; ?>&t=1&s=1<?php if(isset($_GET['v'])) echo "&v=".$_GET['v']; if(isset($_GET['b'])) echo "&b=".$_GET['b']; ?>"><img class="r1" src="img/x.gif" alt="Lumber" title="<?php echo LUMBER;?>" /></a></td>
|
||||
<td <?php if(isset($_GET['s']) && $_GET['s'] == 2) echo "class=\"hl\""; ?>><a href="build.php?id=<?php echo $id; ?>&t=1&s=2<?php if(isset($_GET['v'])) echo "&v=".$_GET['v']; if(isset($_GET['b'])) echo "&b=".$_GET['b']; ?>"><img class="r2" src="img/x.gif" alt="Clay" title="<?php echo CLAY;?>" /></a></td>
|
||||
<td <?php if(isset($_GET['s']) && $_GET['s'] == 3) echo "class=\"hl\""; ?>><a href="build.php?id=<?php echo $id; ?>&t=1&s=3<?php if(isset($_GET['v'])) echo "&v=".$_GET['v']; if(isset($_GET['b'])) echo "&b=".$_GET['b']; ?>"><img class="r3" src="img/x.gif" alt="Iron" title="<?php echo IRON;?>" /></a></td>
|
||||
<td <?php if(isset($_GET['s']) && $_GET['s'] == 4) echo "class=\"hl\""; ?>><a href="build.php?id=<?php echo $id; ?>&t=1&s=4<?php if(isset($_GET['v'])) echo "&v=".$_GET['v']; if(isset($_GET['b'])) echo "&b=".$_GET['b']; ?>"><img class="r4" src="img/x.gif" alt="Crop" title="<?php echo CROP;?>" /></a></td></tr></tbody>
|
||||
</table><table id="ratio_select" class="buy_select" cellpadding="1" cellspacing="1">
|
||||
<tbody>
|
||||
<tr><td <?php if(isset($_GET['v'])) echo "class=\"hl\""; ?>><a href="build.php?id=<?php echo $id; ?>&t=1&v=1:1<?php if(isset($_GET['s'])) echo "&s=".$_GET['s']; if(isset($_GET['b'])) echo "&b=".$_GET['b']; ?>">1:1</a></td>
|
||||
@@ -35,29 +35,27 @@ if($session->plus) {
|
||||
</table>
|
||||
<table id="bid_select" class="buy_select" cellpadding="1" cellspacing="1">
|
||||
<thead><tr>
|
||||
<td colspan="4">I'm offering</td>
|
||||
<td colspan="4"><?php echo I_AN_OFFERING;?></td>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td <?php if(isset($_GET['b']) && $_GET['b'] == 1) echo "class=\"hl\""; ?>><a href="build.php?id=<?php echo $id; ?>&t=1&b=1<?php if(isset($_GET['v'])) echo "&v=".$_GET['v']; if(isset($_GET['s'])) echo "&s=".$_GET['s']; ?>"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /></a></td>
|
||||
<td <?php if(isset($_GET['b']) && $_GET['b'] == 2) echo "class=\"hl\""; ?>><a href="build.php?id=<?php echo $id; ?>&t=1&b=2<?php if(isset($_GET['v'])) echo "&v=".$_GET['v']; if(isset($_GET['s'])) echo "&s=".$_GET['s']; ?>"><img class="r2" src="img/x.gif" alt="Clay" title="Clay" /></a></td>
|
||||
<td <?php if(isset($_GET['b']) && $_GET['b'] == 3) echo "class=\"hl\""; ?>><a href="build.php?id=<?php echo $id; ?>&t=1&b=3<?php if(isset($_GET['v'])) echo "&v=".$_GET['v']; if(isset($_GET['s'])) echo "&s=".$_GET['s']; ?>"><img class="r3" src="img/x.gif" alt="Iron" title="Iron" /></a></td>
|
||||
<td <?php if(isset($_GET['b']) && $_GET['b'] == 4) echo "class=\"hl\""; ?>><a href="build.php?id=<?php echo $id; ?>&t=1&b=4<?php if(isset($_GET['v'])) echo "&v=".$_GET['v']; if(isset($_GET['s'])) echo "&s=".$_GET['s']; ?>"><img class="r4" src="img/x.gif" alt="Crop" title="Crop" /></a></td></tr></tbody>
|
||||
<td <?php if(isset($_GET['b']) && $_GET['b'] == 1) echo "class=\"hl\""; ?>><a href="build.php?id=<?php echo $id; ?>&t=1&b=1<?php if(isset($_GET['v'])) echo "&v=".$_GET['v']; if(isset($_GET['s'])) echo "&s=".$_GET['s']; ?>"><img class="r1" src="img/x.gif" alt="Lumber" title="<?php echo LUMBER;?>" /></a></td>
|
||||
<td <?php if(isset($_GET['b']) && $_GET['b'] == 2) echo "class=\"hl\""; ?>><a href="build.php?id=<?php echo $id; ?>&t=1&b=2<?php if(isset($_GET['v'])) echo "&v=".$_GET['v']; if(isset($_GET['s'])) echo "&s=".$_GET['s']; ?>"><img class="r2" src="img/x.gif" alt="Clay" title="<?php echo CLAY;?>" /></a></td>
|
||||
<td <?php if(isset($_GET['b']) && $_GET['b'] == 3) echo "class=\"hl\""; ?>><a href="build.php?id=<?php echo $id; ?>&t=1&b=3<?php if(isset($_GET['v'])) echo "&v=".$_GET['v']; if(isset($_GET['s'])) echo "&s=".$_GET['s']; ?>"><img class="r3" src="img/x.gif" alt="Iron" title="<?php echo IRON;?>" /></a></td>
|
||||
<td <?php if(isset($_GET['b']) && $_GET['b'] == 4) echo "class=\"hl\""; ?>><a href="build.php?id=<?php echo $id; ?>&t=1&b=4<?php if(isset($_GET['v'])) echo "&v=".$_GET['v']; if(isset($_GET['s'])) echo "&s=".$_GET['s']; ?>"><img class="r4" src="img/x.gif" alt="Crop" title="<?php echo CROP;?>" /></a></td></tr></tbody>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="clear"></div><table id="range" cellpadding="1" cellspacing="1">
|
||||
<thead><tr>
|
||||
<th colspan="5"><a name="h2"></a>Offers at the marketplace</th>
|
||||
<th colspan="5"><a name="h2"></a><?php echo OFFERS_MARKETPLACE;?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Offered
|
||||
<br>to me</td>
|
||||
<td>Wanted
|
||||
<br>from me</td>
|
||||
<td>Player</td>
|
||||
<td>Duration</td>
|
||||
<td>Action</td>
|
||||
<td><?php echo OFFERED_TO_ME;?></td>
|
||||
<td><?php echo WANTED_TO_ME;?></td>
|
||||
<td><?php echo PLAYER;?></td>
|
||||
<td><?php echo DURATION;?></td>
|
||||
<td><?php echo ACTION;?></td>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<?php
|
||||
@@ -73,40 +71,40 @@ if($market->onsale[$i]['wamt'] > $market->maxcarry) {
|
||||
}
|
||||
}
|
||||
switch($market->onsale[$i]['gtype']) {
|
||||
case 1: echo "<img src=\"img/x.gif\" class=\"r1\" alt=\"Wood\" title=\"Wood\" />"; break;
|
||||
case 2: echo "<img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" />"; break;
|
||||
case 3: echo "<img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" />"; break;
|
||||
case 4: echo "<img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" />"; break;
|
||||
case 1: echo "<img src=\"img/x.gif\" class=\"r1\" alt=\"Wood\" title=\"".LUMBER."\" />"; break;
|
||||
case 2: echo "<img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"".CLAY."\" />"; break;
|
||||
case 3: echo "<img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"".IRON."\" />"; break;
|
||||
case 4: echo "<img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"".CROP."\" />"; break;
|
||||
}
|
||||
echo $market->onsale[$i]['gamt'];
|
||||
echo "</td> <td class=\"val\">";
|
||||
switch($market->onsale[$i]['wtype']) {
|
||||
case 1: echo "<img src=\"img/x.gif\" class=\"r1\" alt=\"Wood\" title=\"Wood\" />"; break;
|
||||
case 2: echo "<img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" />"; break;
|
||||
case 3: echo "<img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" />"; break;
|
||||
case 4: echo "<img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" />"; break;
|
||||
case 1: echo "<img src=\"img/x.gif\" class=\"r1\" alt=\"Wood\" title=\"".LUMBER."\" />"; break;
|
||||
case 2: echo "<img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"".CLAY."\" />"; break;
|
||||
case 3: echo "<img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"".IRON."\" />"; break;
|
||||
case 4: echo "<img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"".CROP."\" />"; break;
|
||||
}
|
||||
echo $market->onsale[$i]['wamt'];
|
||||
echo "</td><td class=\"pla\" title=\"".$database->getVillageField($market->onsale[$i]['vref'],"name")."\">";
|
||||
echo "<a href=\"karte.php?d=".$market->onsale[$i]['vref']."&c=".$generator->getMapCheck($market->onsale[$i]['vref'])."\">".$database->getUserField($database->getVillageField($market->onsale[$i]['vref'],"owner"),"username",0)."</a></td>";
|
||||
echo "<td class=\"dur\">".$generator->getTimeFormat($market->onsale[$i]['duration'])."</td>";
|
||||
if(($market->onsale[$i]['wtype'] == 1 && $village->awood <= $market->onsale[$i]['wamt']) ||($market->onsale[$i]['wtype'] == 2 && $village->aclay <= $market->onsale[$i]['wamt']) ||($market->onsale[$i]['wtype'] == 3 && $village->airon <= $market->onsale[$i]['wamt']) ||($market->onsale[$i]['wtype'] == 4 && $village->acrop <= $market->onsale[$i]['wamt'])) {
|
||||
echo "<td class=\"act none\">Not Enough Resource</td></tr>";
|
||||
echo "<td class=\"act none\">".NOT_ENOUGH_RESOURCES."</td></tr>";
|
||||
}
|
||||
else if($reqMerc > $market->merchantAvail()) {
|
||||
echo "<td class=\"act none\">Not Enough Merchant</td></tr>";
|
||||
echo "<td class=\"act none\">".NOT_ENOUGH_MERCHANTS."</td></tr>";
|
||||
}
|
||||
else if($session->access != BANNED){
|
||||
echo "<td class=\"act\"><a href=\"build.php?id=$id&t=1&a=".$session->mchecker."&g=".$market->onsale[$i]['id']."\">Accept offer</a></td>";
|
||||
echo "<td class=\"act\"><a href=\"build.php?id=$id&t=1&a=".$session->mchecker."&g=".$market->onsale[$i]['id']."\">".LUMBER."Accept offer</a></td>";
|
||||
}else{
|
||||
echo "<td class=\"act\"><a href=\"banned.php\">Accept offer</a></td>";
|
||||
echo "<td class=\"act\"><a href=\"banned.php\">".ACCEP_OFFER."</a></td>";
|
||||
}
|
||||
echo"</tr>";
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "<tr><td class=\"none\" colspan=\"5\">There are no avaliable offers on the market</td></tr>";
|
||||
echo "<tr><td class=\"none\" colspan=\"5\">".NO_AVAILABLE_OFFERS."</td></tr>";
|
||||
}
|
||||
?>
|
||||
</tbody><tfoot><tr><td colspan="5">
|
||||
|
||||
+30
-30
@@ -1,8 +1,8 @@
|
||||
<div id="build" class="gid17"><a href="#" onClick="return Popup(17,4);" class="build_logo">
|
||||
<img class="building g17" src="img/x.gif" alt="Marketplace" title="Marketplace" />
|
||||
<img class="building g17" src="img/x.gif" alt="Marketplace" title="<?php echo MARKETPLACE;?>" />
|
||||
</a>
|
||||
<h1>Marketplace <span class="level">level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">At the Marketplace you can trade resources with other players. The higher its level, the more resources can be transported at the same time.</p>
|
||||
<h1><?php echo LEVEL;?> <span class="level"><?php echo MARKETPLACE;?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo LEVEL;?><?php echo MARKETPLACE_DESC;?></p>
|
||||
|
||||
<?php include("17_menu.tpl"); ?>
|
||||
<form method="POST" action="build.php">
|
||||
@@ -11,34 +11,34 @@
|
||||
|
||||
<table id="sell" cellpadding="1" cellspacing="1">
|
||||
<tr>
|
||||
<th>Offering</th>
|
||||
<th><?php echo OFFERING;?></th>
|
||||
<td class="val"><input class="text" tabindex="1" name="m1" value="" maxlength="6" /></td>
|
||||
<td class="res">
|
||||
<select name="rid1" tabindex="2" class="dropdown">
|
||||
<option value="1" selected="selected">Lumber</option>
|
||||
<option value="2">Clay</option>
|
||||
<option value="3">Iron</option>
|
||||
<option value="4">Crop</option>
|
||||
<option value="1" selected="selected"><?php echo LUMBER;?></option>
|
||||
<option value="2"><?php echo CLAY;?></option>
|
||||
<option value="3"><?php echo IRON;?></option>
|
||||
<option value="4"><?php echo CROP;?></option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="tra"><input class="check" type="checkbox" tabindex="5" name="d1" value="1" /> max. time of transport: <input class="text" tabindex="6" name="d2" value="2" maxlength="2" /> hours</td>
|
||||
<td class="tra"><input class="check" type="checkbox" tabindex="5" name="d1" value="1" /> <?php echo MAX_TIME_TRANSPORT;?>: <input class="text" tabindex="6" name="d2" value="2" maxlength="2" /> <?php echo HOURS;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Searching</th>
|
||||
<th><?php echo SEARCHING;?></th>
|
||||
<td class="val"><input class="text" tabindex="3" name="m2" value="" maxlength="6" /></td>
|
||||
<td class="res">
|
||||
<select name="rid2" tabindex="4" class="dropdown">
|
||||
<option value="1">Lumber</option>
|
||||
<option value="2" selected="selected">Clay</option>
|
||||
<option value="3">Iron</option>
|
||||
<option value="4">Crop</option>
|
||||
<option value="1"><?php echo LUMBER;?></option>
|
||||
<option value="2" selected="selected"><?php echo CLAY;?></option>
|
||||
<option value="3"><?php echo IRON;?></option>
|
||||
<option value="4"><?php echo CROP;?></option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="al">
|
||||
<?php
|
||||
if($session->userinfo['alliance'] != 0)
|
||||
{
|
||||
echo "<input class=\"check\" type=\"checkbox\" tabindex=\"7\" name=\"ally\" value=\"1\" /> own alliance only";
|
||||
echo "<input class=\"check\" type=\"checkbox\" tabindex=\"7\" name=\"ally\" value=\"1\" /> ".OWN_ALLIANCE_ONLY."";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
@@ -48,15 +48,15 @@
|
||||
<?php
|
||||
if(isset($_GET['e1']))
|
||||
{
|
||||
echo "<p class=\"error2\">Not enough resources</p>";
|
||||
echo "<p class=\"error2\">".NOT_ENOUGH_RESOURCES."</p>";
|
||||
}
|
||||
elseif(isset($_GET['e2']))
|
||||
{
|
||||
echo "<p class=\"error2\">Invalid offer</p>";
|
||||
echo "<p class=\"error2\">".INVALID_OFFER."</p>";
|
||||
}
|
||||
elseif(isset($_GET['e3']))
|
||||
{
|
||||
echo "<p class=\"error2\">Not enough merchants</p>";
|
||||
echo "<p class=\"error2\">".NOT_ENOUGH_MERCHANTS."</p>";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -68,25 +68,25 @@
|
||||
<?php
|
||||
if(count($market->onmarket) > 0)
|
||||
{
|
||||
echo "<table id=\"sell_overview\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"6\">Own offers</th></tr><tr><td> </td><td>Offer</td><td>Search</td><td>Merchants</td><td>Alliance</td><td>Duration</td></tr></thead><tbody>";
|
||||
echo "<table id=\"sell_overview\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"7\">".OWN_OFFERS."</th></tr><tr><td> </td><td>".OFFER."</td><td>ratio</td><td>".SEARCH."</td><td>".MERCHANT."</td><td>".ALLIANCE."</td><td>".DURATION."</td></tr></thead><tbody>";
|
||||
foreach($market->onmarket as $offer)
|
||||
{
|
||||
if($session->access != BANNED)
|
||||
{
|
||||
echo "<tr><td class=\"abo\"><a href=\"build.php?id=$id&t=2&a=5&del=".$offer['id']."\"><img class=\"del\"src=\"img/x.gif\" alt=\"Delete\" title=\"Delete\" /></a></td>";
|
||||
echo "<tr><td class=\"abo\"><a href=\"build.php?id=$id&t=2&a=5&del=".$offer['id']."\"><img class=\"del\"src=\"img/x.gif\" alt=\"Delete\" title=\"".DELETE."\" /></a></td>";
|
||||
echo "<td class=\"val\">";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<tr><td class=\"abo\"><a href=\"banned.php\"><img class=\"del\"src=\"img/x.gif\" alt=\"Delete\" title=\"Delete\" /></a></td>";
|
||||
echo "<tr><td class=\"abo\"><a href=\"banned.php\"><img class=\"del\"src=\"img/x.gif\" alt=\"Delete\" title=\"".DELETE."\" /></a></td>";
|
||||
echo "<td class=\"val\">";
|
||||
}
|
||||
switch($offer['gtype'])
|
||||
{
|
||||
case 1: echo "<img src=\"img/x.gif\" class=\"r1\" alt=\"Wood\" title=\"Wood\" />"; break;
|
||||
case 2: echo "<img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" />"; break;
|
||||
case 3: echo "<img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" />"; break;
|
||||
case 4: echo "<img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" />"; break;
|
||||
case 1: echo "<img src=\"img/x.gif\" class=\"r1\" alt=\"Wood\" title=\"".LUMBER."\" />"; break;
|
||||
case 2: echo "<img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"".CLAY."\" />"; break;
|
||||
case 3: echo "<img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"".IRON."\" />"; break;
|
||||
case 4: echo "<img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"".CROP."\" />"; break;
|
||||
}
|
||||
echo $offer['gamt'];
|
||||
$sss = ($offer['wamt']/$offer['gamt']);
|
||||
@@ -101,10 +101,10 @@ if(count($market->onmarket) > 0)
|
||||
echo "</td><td class=\"ratio\"> ".$ratio." </td> <td class=\"val\">";
|
||||
switch($offer['wtype'])
|
||||
{
|
||||
case 1: echo "<img src=\"img/x.gif\" class=\"r1\" alt=\"Wood\" title=\"Wood\" />"; break;
|
||||
case 2: echo "<img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" />"; break;
|
||||
case 3: echo "<img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" />"; break;
|
||||
case 4: echo "<img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" />"; break;
|
||||
case 1: echo "<img src=\"img/x.gif\" class=\"r1\" alt=\"Wood\" title=\"".LUMBER."\" />"; break;
|
||||
case 2: echo "<img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"".CLAY."\" />"; break;
|
||||
case 3: echo "<img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"".IRON."\" />"; break;
|
||||
case 4: echo "<img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"".CROP."\" />"; break;
|
||||
}
|
||||
echo $offer['wamt'];
|
||||
echo "</td><td class=\"tra\">".$offer['merchant']." </td><td class=\"al\">";
|
||||
@@ -117,7 +117,7 @@ if(count($market->onmarket) > 0)
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "All";
|
||||
echo "".ALL."";
|
||||
}
|
||||
echo "</td></tr>";
|
||||
}
|
||||
|
||||
+18
-19
@@ -1,9 +1,9 @@
|
||||
<?php if($session->gold > 2){ ?>
|
||||
<div id="build" class="gid17"><a href="#" onClick="return Popup(17,4);" class="build_logo">
|
||||
<img class="building g17" src="img/x.gif" alt="Marketplace" title="Marketplace" />
|
||||
<img class="building g17" src="img/x.gif" alt="Marketplace" title="<?php echo MARKETPLACE;?>" />
|
||||
</a>
|
||||
<h1>Marketplace <span class="level">level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">At the Marketplace you can trade resources with other players. The higher its level, the more resources can be transported at the same time.
|
||||
<h1><?php echo MARKETPLACE;?> <span class="level"><?php echo LEVEL;?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo MARKETPLACE_DESC;?>
|
||||
</p>
|
||||
|
||||
<?php include("17_menu.tpl");
|
||||
@@ -12,12 +12,11 @@
|
||||
if(isset($_GET['c'])){
|
||||
?>
|
||||
|
||||
<p><b>NPC completed.</b> Cost 3<img src="img/x.gif" class="gold" alt="Gold" title="Gold" /></p>
|
||||
<a href="javascript: history.go(-2)">Back to building</a>
|
||||
<p><b><?php echo NPC_COMPLETED;?>.</b> <?php echo COSTS;?> 3<img src="img/x.gif" class="gold" alt="Gold" title="<?php echo GOLD;?>" /></p>
|
||||
<a href="javascript: history.go(-2)"><?php echo BACK_BUILDING;?></a>
|
||||
<?php } else { ?>
|
||||
|
||||
<p>With the NPC merchant you can distribute the resources in your warehouse as you desire. <br /><br />
|
||||
The first line shows the current stock. In the second line you can choose another distribution. The third line shows the difference between the old and new stock.</p>
|
||||
<p><?php echo NPC_TRADE_DESC;?></p>
|
||||
|
||||
|
||||
<script language="JavaScript">
|
||||
@@ -152,7 +151,7 @@ function portionOut() {
|
||||
|
||||
function testSum() {
|
||||
if (document.getElementById("remain").innerHTML!=0) {
|
||||
document.getElementById("submitText").innerHTML="<a href='javascript:portionOut();'>Distribute resources at (step 1 of 2)</a>";
|
||||
document.getElementById("submitText").innerHTML="<a href='javascript:portionOut();'><?php echo DISTRIBUTE_RESOURCES; ?></a>";
|
||||
document.getElementById("submitText").style.display="block";
|
||||
document.getElementById("submitButton").style.display="none";
|
||||
} else {
|
||||
@@ -175,30 +174,30 @@ function testSum() {
|
||||
<table id="npc" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="5">NPC Trade</th>
|
||||
<th colspan="5"><?php echo NPC_TRADE;?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="all">
|
||||
<a href="javascript:fillup(0);"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /></a>
|
||||
<a href="javascript:fillup(0);"><img class="r1" src="img/x.gif" alt="Lumber" title="<?php echo LUMBER;?>" /></a>
|
||||
<span id="org0"><?php echo floor($village->awood); ?></span>
|
||||
</td>
|
||||
|
||||
<td class="all">
|
||||
<a href="javascript:fillup(1);"><img class="r2" src="img/x.gif" alt="Clay" title="Clay" /></a>
|
||||
<a href="javascript:fillup(1);"><img class="r2" src="img/x.gif" alt="Clay" title="<?php echo CLAY;?>" /></a>
|
||||
<span id="org1"><?php echo floor($village->aclay); ?></span>
|
||||
</td>
|
||||
|
||||
<td class="all">
|
||||
<a href="javascript:fillup(2);"><img class="r3" src="img/x.gif" alt="Iron" title="Iron" /></a>
|
||||
<a href="javascript:fillup(2);"><img class="r3" src="img/x.gif" alt="Iron" title="<?php echo IRON;?>" /></a>
|
||||
<span id="org2"><?php echo floor($village->airon); ?></span>
|
||||
</td>
|
||||
|
||||
<td class="all">
|
||||
<a href="javascript:fillup(3);"><img class="r4" src="img/x.gif" alt="Crop" title="Crop" /></a>
|
||||
<a href="javascript:fillup(3);"><img class="r4" src="img/x.gif" alt="Crop" title="<?php echo CROP;?>" /></a>
|
||||
<span id="org3"><?php echo floor($village->acrop); ?></span>
|
||||
</td>
|
||||
|
||||
<td class="sum">Sum: <span id="org4"><?php echo floor($village->awood+$village->acrop+$village->airon+$village->aclay); ?></span></td>
|
||||
<td class="sum"><?php echo SUM;?>: <span id="org4"><?php echo floor($village->awood+$village->acrop+$village->airon+$village->aclay); ?></span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -224,7 +223,7 @@ function testSum() {
|
||||
<input type="hidden" name="m1[]" value="<?php echo floor($village->acrop); ?>" />
|
||||
</td>
|
||||
|
||||
<td class="sum">Sum: <span id="newsum"><?php if(isset($_GET['r1']) && isset($_GET['r2']) && isset($_GET['r3']) && isset($_GET['r4'])) { echo $_GET['r1']+$_GET['r2']+$_GET['r3']+$_GET['r4']; } else { echo 0; } ?></span></td>
|
||||
<td class="sum"><?php echo SUM;?>: <span id="newsum"><?php if(isset($_GET['r1']) && isset($_GET['r2']) && isset($_GET['r3']) && isset($_GET['r4'])) { echo $_GET['r1']+$_GET['r2']+$_GET['r3']+$_GET['r4']; } else { echo 0; } ?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -244,7 +243,7 @@ function testSum() {
|
||||
<span id="diff3"><?php echo 0-floor($village->acrop); ?></span>
|
||||
</td>
|
||||
|
||||
<td class="sum">Rest: <span id="remain">
|
||||
<td class="sum"><?php echo REST;?>: <span id="remain">
|
||||
<?php if(isset($_GET['r1']) && isset($_GET['r2']) && isset($_GET['r3']) && isset($_GET['r4'])) {
|
||||
echo floor($village->awood+$village->acrop+$village->airon+$village->aclay)-($_GET['r1']+$_GET['r2']+$_GET['r3']+$_GET['r4']);
|
||||
} else { echo floor($village->awood+$village->acrop+$village->airon+$village->aclay); } ?></span></td>
|
||||
@@ -252,7 +251,7 @@ function testSum() {
|
||||
</tbody>
|
||||
</table>
|
||||
<p id="submitButton">
|
||||
<?php if($session->userinfo['gold'] >= 3) { ?><a href="javascript:document.snd.submit();">Trade resources at (step 2 of 2)</a> <span class="none">(Costs: <img src="img/x.gif" class="gold_g" alt="Gold" title="Gold" /><b>3</b>)</span><?php } else { echo"<span class='none'>Trade resources at (step 2 of 2)</span> (Costs: <img src='img/x.gif' class='gold' alt='Gold' title='Gold' /><b>3</b>)"; }?> </p>
|
||||
<?php if($session->userinfo['gold'] >= 3) { ?><a href="javascript:document.snd.submit();"><?php echo TRADE_RESOURCES;?>)</a> <span class="none">(<?php echo COSTS;?>: <img src="img/x.gif" class="gold_g" alt="Gold" title="<?php echo GOLD;?>" /><b>3</b>)</span><?php } else { echo"<span class='none'>".TRADE_RESOURCES.")</span> (".COSTS.": <img src='img/x.gif' class='gold' alt='Gold' title='".GOLD."' /><b>3</b>)"; }?> </p>
|
||||
<p id="submitText"></p>
|
||||
</form>
|
||||
<script>
|
||||
@@ -261,11 +260,11 @@ function testSum() {
|
||||
|
||||
<?php }else{ ?>
|
||||
</br></br>
|
||||
<?php echo "You can't use NPC trade in WW village.";
|
||||
<?php echo "".YOU_CAN_NAT_NPC_WW."";
|
||||
}} ?>
|
||||
</div>
|
||||
<?php
|
||||
}else{
|
||||
header("Location: build.php?id=".$_GET['id']."");
|
||||
}
|
||||
?>
|
||||
?>
|
||||
+17
-18
@@ -1,9 +1,9 @@
|
||||
<?php if($session->goldclub == 1 && count($database->getProfileVillages($session->uid)) > 1) { ?>
|
||||
<div id="build" class="gid17"><a href="#" onClick="return Popup(17,4);" class="build_logo">
|
||||
<img class="building g17" src="img/x.gif" alt="Marketplace" title="Marketplace" />
|
||||
<img class="building g17" src="img/x.gif" alt="Marketplace" title="<?php echo MARKETPLACE;?>" />
|
||||
</a>
|
||||
<h1>Marketplace <span class="level">level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">At the Marketplace you can trade resources with other players. The higher its level, the more resources can be transported at the same time.
|
||||
<h1><?php echo MARKETPLACE;?> <span class="level"><?php echo LEVEL;?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo MARKETPLACE_DESC;?>
|
||||
</p>
|
||||
|
||||
<?php include("17_menu.tpl");
|
||||
@@ -22,35 +22,34 @@ include("17_edit.tpl");
|
||||
}else{
|
||||
?>
|
||||
|
||||
<p>Trade route allows you to set up routes for your merchant that he will walk every day at a certain hour. <br /><br />
|
||||
Standard this holds on for 7 days, but you can extend it with 7 days for the cost of <img src="../../<?php echo GP_LOCATE; ?>img/a/gold.gif" alt="Gold" title="Gold">2.</p>
|
||||
<p><?php echo TRADE_ROUTES_DESC;?> <img src="../../<?php echo GP_LOCATE; ?>img/a/gold.gif" alt="Gold" title="<?php echo GOLD;?>">2.</p>
|
||||
|
||||
<table id="npc" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>description</th>
|
||||
<th>start</th>
|
||||
<th>Merchants</th>
|
||||
<th>time left</th>
|
||||
<th><?php echo DESCRIPTION;?></th>
|
||||
<th><?php echo START;?></th>
|
||||
<th><?php echo MERCHANT;?></th>
|
||||
<th><?php echo TIME_LEFT;?></th>
|
||||
</tr></thead><tbody>
|
||||
<?php
|
||||
$routes = $database->getTradeRoute($session->uid);
|
||||
if(count($routes) == 0) {
|
||||
echo "<td colspan=\"5\" class=\"none\">No active trade routes.</td></tr>";
|
||||
echo "<td colspan=\"5\" class=\"none\">".NO_TRADE_ROUTES.".</td></tr>";
|
||||
}else{
|
||||
foreach($routes as $route){
|
||||
?>
|
||||
<tr>
|
||||
<th><label><input class="radio" type="radio" onclick="window.location.href = '?id=<?php echo $id; ?>&t=4&routeid=<?php echo $route['id']; ?>';" name="routeid" value="<?php echo $route['id']; ?>" <?php if($routeid == $route['id']) { echo "checked"; } ?>></label></th>
|
||||
<th><label><input class="radio" type="radio" onclick="window.location.href = '?id=<?php echo $id; ?>&t=4&routeid=<?php echo $route['id']; ?>';" name="routeid" value="<?php echo $route['id']; ?>" <?php if($routeid == $route['id']) { echo "".CHECKED.""; } ?>></label></th>
|
||||
<th>
|
||||
<?php
|
||||
echo "Trade route to <a href=karte.php?d=".$route['wid']."&c=".$generator->getMapCheck($route['wid']).">".$database->getVillageField($route['wid'],"name")."</a>";
|
||||
echo "".TRADE_ROUTE_TO." <a href=karte.php?d=".$route['wid']."&c=".$generator->getMapCheck($route['wid']).">".$database->getVillageField($route['wid'],"name")."</a>";
|
||||
?>
|
||||
</th>
|
||||
<th><?php if($route['start'] > 9){ echo $route['start'];}else{ echo "0".$route['start'];} echo ":00"; ?></th>
|
||||
<th><?php echo $route['deliveries']."x".$route['merchant']; ?></th>
|
||||
<th><?php echo ceil(($route['timeleft']-time())/86400); echo " days"; ?></th>
|
||||
<th><?php echo ceil(($route['timeleft']-time())/86400); echo " ".DAYS.""; ?></th>
|
||||
</tr>
|
||||
<?php }} ?>
|
||||
</tbody><tfoot><tr>
|
||||
@@ -58,14 +57,14 @@ echo "Trade route to <a href=karte.php?d=".$route['wid']."&c=".$generator->getMa
|
||||
</th>
|
||||
<th colspan="4">
|
||||
<?php $routeid=$routeid == 0? $routeid=0:$routeid; ?>
|
||||
<a href="build.php?action=extendRoute&routeid=<?php echo $routeid; ?>">extend</a>*
|
||||
| <a href="build.php?id=<?php echo $id; ?>&t=4&action=editRoute&routeid=<?php echo $routeid; ?>">edit</a>
|
||||
| <a href="build.php?action=delRoute&routeid=<?php echo $routeid; ?>">delete</a>
|
||||
<a href="build.php?action=extendRoute&routeid=<?php echo $routeid; ?>"><?php echo EXTEND;?></a>*
|
||||
| <a href="build.php?id=<?php echo $id; ?>&t=4&action=editRoute&routeid=<?php echo $routeid; ?>"><?php echo EDIT;?></a>
|
||||
| <a href="build.php?action=delRoute&routeid=<?php echo $routeid; ?>"><?php echo DELETE;?></a>
|
||||
</th></tr></tfoot></table>
|
||||
* Extend the trade route by 7 days for <img src="../../<?php echo GP_LOCATE; ?>img/a/gold.gif" alt="Gold" title="Gold">2
|
||||
* <?php echo EXTEND_TRADE_ROUTES;?> <img src="../../<?php echo GP_LOCATE; ?>img/a/gold.gif" alt="Gold" title="<?php echo GOLD;?>">2
|
||||
<br>
|
||||
<div class="options">
|
||||
<a class="arrow" href="build.php?gid=17&t=4&create">» Create new trade route</a>
|
||||
<a class="arrow" href="build.php?gid=17&t=4&create">» <?php echo CREATE_TRADE_ROUTES;?></a>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
<table cellpadding="1" cellspacing="1" id="npc" class="transparent">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">Create trade route</th>
|
||||
<th colspan="2"><?php echo CREATE_TRADE_ROUTE;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
target village: </th>
|
||||
<?php echo TARGET_VILLAGE;?>: </th>
|
||||
<td>
|
||||
|
||||
<select id="tvillage" name="tvillage">
|
||||
@@ -36,37 +36,37 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
Resources: </th>
|
||||
<?php echo RESOURCES;?>: </th>
|
||||
<td>
|
||||
<img src="../../<?php echo GP_LOCATE; ?>img/r/1.gif" alt="Lumber" title="Lumber"> <input class="text" type="text" name="r1" id="r1" value="" maxlength="5" tabindex="1" style="width:50px;"> <img src="../../<?php echo GP_LOCATE; ?>img/r/2.gif" alt="Clay" title="Clay"> <input class="text" type="text" name="r2" id="r2" value="" maxlength="5" tabindex="1" style="width:50px;"> <img src="../../<?php echo GP_LOCATE; ?>img/r/3.gif" alt="Iron" title="Iron"> <input class="text" type="text" name="r3" id="r3" value="" maxlength="5" tabindex="1" style="width:50px;"> <img src="../../<?php echo GP_LOCATE; ?>img/r/4.gif" alt="Crop" title="Crop"> <input class="text" type="text" name="r4" id="r4" value="" maxlength="5" tabindex="1" style="width:50px;">
|
||||
<img src="../../<?php echo GP_LOCATE; ?>img/r/1.gif" alt="Lumber" title="<?php echo LUMBER;?>"> <input class="text" type="text" name="r1" id="r1" value="" maxlength="5" tabindex="1" style="width:50px;"> <img src="../../<?php echo GP_LOCATE; ?>img/r/2.gif" alt="Clay" title="<?php echo CLAY;?>"> <input class="text" type="text" name="r2" id="r2" value="" maxlength="5" tabindex="1" style="width:50px;"> <img src="../../<?php echo GP_LOCATE; ?>img/r/3.gif" alt="Iron" title="<?php echo IRON;?>"> <input class="text" type="text" name="r3" id="r3" value="" maxlength="5" tabindex="1" style="width:50px;"> <img src="../../<?php echo GP_LOCATE; ?>img/r/4.gif" alt="Crop" title="<?php echo CROP;?>"> <input class="text" type="text" name="r4" id="r4" value="" maxlength="5" tabindex="1" style="width:50px;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
start time: </th>
|
||||
<?php echo START_TIME_TRADE;?>: </th>
|
||||
<td>
|
||||
<select name="start"><option value="0" selected="selected">00</option><option value="1">01</option><option value="2">02</option><option value="3">03</option><option value="4">04</option><option value="5">05</option><option value="6">06</option><option value="7">07</option><option value="8">08</option><option value="9">09</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option></select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
deliveries: </th>
|
||||
<?php echo DELIVERIES;?>: </th>
|
||||
<td>
|
||||
<select name="deliveries"><option value="1" selected="selected">1</option><option value="2">2</option><option value="3">3</option></select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
costs: </th>
|
||||
<?php echo COSTS;?>: </th>
|
||||
<td>
|
||||
<img src="../../<?php echo GP_LOCATE; ?>img/a/gold.gif" alt="Gold" title="Gold"> 2
|
||||
<img src="../../<?php echo GP_LOCATE; ?>img/a/gold.gif" alt="Gold" title="<?php echo GOLD;?>"> 2
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
Duration: </th>
|
||||
<?php echo DURATION;?>: </th>
|
||||
<td>
|
||||
7 days
|
||||
7 <?php echo DAYS;?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
|
||||
@@ -6,27 +6,27 @@
|
||||
<table cellpadding="1" cellspacing="1" id="npc" class="transparent">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">Edit trade route</th>
|
||||
<th colspan="2"><?php echo EDIT_TRADE_ROUTES;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
Resources: </th>
|
||||
<?php echo RESOURCES;?>: </th>
|
||||
<td>
|
||||
<img src="../../<?php echo GP_LOCATE; ?>img/r/1.gif" alt="Lumber" title="Lumber"> <input class="text" type="text" name="r1" id="r1" value="<?php echo $edited_route['wood']; ?>" maxlength="5" tabindex="1" style="width:50px;"> <img src="../../<?php echo GP_LOCATE; ?>img/r/2.gif" alt="Clay" title="CLay"> <input class="text" type="text" name="r2" id="r2" value="<?php echo $edited_route['clay']; ?>" maxlength="5" tabindex="1" style="width:50px;"> <img src="../../<?php echo GP_LOCATE; ?>img/r/3.gif" alt="Iron" title="Iron"> <input class="text" type="text" name="r3" id="r3" value="<?php echo $edited_route['iron']; ?>" maxlength="5" tabindex="1" style="width:50px;"> <img src="../../<?php echo GP_LOCATE; ?>img/r/4.gif" alt="Crop" title="Crop"> <input class="text" type="text" name="r4" id="r4" value="<?php echo $edited_route['crop']; ?>" maxlength="5" tabindex="1" style="width:50px;">
|
||||
<img src="../../<?php echo GP_LOCATE; ?>img/r/1.gif" alt="Lumber" title="<?php echo LUMBER;?>"> <input class="text" type="text" name="r1" id="r1" value="<?php echo $edited_route['wood']; ?>" maxlength="5" tabindex="1" style="width:50px;"> <img src="../../<?php echo GP_LOCATE; ?>img/r/2.gif" alt="Clay" title="<?php echo CLAY;?>"> <input class="text" type="text" name="r2" id="r2" value="<?php echo $edited_route['clay']; ?>" maxlength="5" tabindex="1" style="width:50px;"> <img src="../../<?php echo GP_LOCATE; ?>img/r/3.gif" alt="Iron" title="<?php echo IRON;?>"> <input class="text" type="text" name="r3" id="r3" value="<?php echo $edited_route['iron']; ?>" maxlength="5" tabindex="1" style="width:50px;"> <img src="../../<?php echo GP_LOCATE; ?>img/r/4.gif" alt="Crop" title="<?php echo CROP;?>"> <input class="text" type="text" name="r4" id="r4" value="<?php echo $edited_route['crop']; ?>" maxlength="5" tabindex="1" style="width:50px;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
start time: </th>
|
||||
<?php echo START_TIME_TRADE;?>: </th>
|
||||
<td>
|
||||
<select name="start"><?php for($i=0;$i<=23;$i++){?><option value="<?php echo $i; ?>" <?php if($i == $edited_route['start']){echo "selected";} ?>><?php if($i > 9){echo $i;}else{echo "0".$i;}?></option><?php } ?></select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
deliveries: </th>
|
||||
<?php echo DELIVERIES;?>: </th>
|
||||
<td>
|
||||
<select name="deliveries"><?php for($i=1;$i<=3;$i++){?><option value="<?php echo $i; ?>" <?php if($i == $edited_route['deliveries']){echo "selected";} ?>><?php echo $i; ?></option><?php } ?></select>
|
||||
</td>
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
<div id="textmenu">
|
||||
<a href="build.php?id=<?php echo $id; ?>"<?php if(!isset($_GET['t'])) { echo "class=\"selected\""; } ?>">Send Resouces</a>
|
||||
| <a href="build.php?id=<?php echo $id; ?>&t=1" <?php if(isset($_GET['t']) && $_GET['t'] == 1) { echo "class=\"selected\""; } ?>>Buy</a>
|
||||
| <a href="build.php?id=<?php echo $id; ?>&t=2" <?php if(isset($_GET['t']) && $_GET['t'] == 2) { echo "class=\"selected\""; } ?>>Offer</a>
|
||||
<a href="build.php?id=<?php echo $id; ?>"<?php if(!isset($_GET['t'])) { echo "class=\"selected\""; } ?>"><?php echo SEND_RESOURCES;?></a>
|
||||
| <a href="build.php?id=<?php echo $id; ?>&t=1" <?php if(isset($_GET['t']) && $_GET['t'] == 1) { echo "class=\"selected\""; } ?>><?php echo BUY;?></a>
|
||||
| <a href="build.php?id=<?php echo $id; ?>&t=2" <?php if(isset($_GET['t']) && $_GET['t'] == 2) { echo "class=\"selected\""; } ?>><?php echo OFFER;?></a>
|
||||
<?php if($session->userinfo['gold'] > 2) {
|
||||
?>
|
||||
| <a href="build.php?id=<?php echo $id; ?>&t=3" <?php if(isset($_GET['t']) && $_GET['t'] == 3) { echo "class=\"selected\""; } ?>>NPC trading</a>
|
||||
| <a href="build.php?id=<?php echo $id; ?>&t=3" <?php if(isset($_GET['t']) && $_GET['t'] == 3) { echo "class=\"selected\""; } ?>><?php echo NPC_TRADING;?></a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php if($session->goldclub == 1 && count($database->getProfileVillages($session->uid)) > 1) {
|
||||
?>
|
||||
| <a href="build.php?id=<?php echo $id; ?>&t=4" <?php if(isset($_GET['t']) && $_GET['t'] == 4) { echo "class=\"selected\""; } ?>>trade routes</a>
|
||||
| <a href="build.php?id=<?php echo $id; ?>&t=4" <?php if(isset($_GET['t']) && $_GET['t'] == 4) { echo "class=\"selected\""; } ?>><?php echo TRADE_ROUTES;?></a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
+11
-11
@@ -1,8 +1,8 @@
|
||||
<div id="build" class="gid18"><a href="#" onClick="return Popup(18,4);" class="build_logo">
|
||||
<img class="building g18" src="img/x.gif" alt="Embassy" title="Embassy" />
|
||||
<img class="building g18" src="img/x.gif" alt="Embassy" title="<?php echo EMBASSY; ?>" />
|
||||
</a>
|
||||
<h1>Embassy <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">The embassy is a place for diplomats. The higher its level the more options the king gains.</p>
|
||||
<h1><?php echo EMBASSY; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo EMBASSY_DESC; ?></p>
|
||||
|
||||
<?php
|
||||
if($village->resarray['f'.$id] >= 3 && $session->alliance == 0) {
|
||||
@@ -12,15 +12,15 @@ if($session->alliance != 0) {
|
||||
echo "
|
||||
<table cellpadding=\"1\" cellspacing=\"1\" id=\"ally_info\">
|
||||
<thead><tr>
|
||||
<th colspan=\"2\">Alliance</th>
|
||||
<th colspan=\"2\">".ALLIANCE."</th>
|
||||
</tr></thead>
|
||||
|
||||
<tbody><tr>
|
||||
<th>Tag</th>
|
||||
<th>".TAG."</th>
|
||||
<td>".$alliance->allianceArray['tag']."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>".NAME."</th>
|
||||
<td>".$alliance->allianceArray['name']."</td>
|
||||
|
||||
</tr>
|
||||
@@ -28,7 +28,7 @@ echo "
|
||||
<td class=\"empty\" colspan=\"2\"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=\"2\"><a href=\"allianz.php\"> » to the alliance</a></td>
|
||||
<td colspan=\"2\"><a href=\"allianz.php\"> » ".TO_THE_ALLIANCE."</a></td>
|
||||
</tr></tbody>
|
||||
</table>";
|
||||
}
|
||||
@@ -40,19 +40,19 @@ echo "
|
||||
<input type="hidden" name="a" value="2">
|
||||
|
||||
<thead><tr>
|
||||
<th colspan="3">join alliance</th>
|
||||
<th colspan="3"><?php echo JOIN_ALLIANCE; ?></th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<?php
|
||||
if($alliance->gotInvite) {
|
||||
foreach($alliance->inviteArray as $invite) {
|
||||
echo "<td class=\"abo\"><a href=\"build.php?id=".$id."&a=2&d=".$invite['id']."\"><img class=\"del\" src=\"img/x.gif\" alt=\"refuse\" title=\"refuse\" /></a></td>
|
||||
echo "<td class=\"abo\"><a href=\"build.php?id=".$id."&a=2&d=".$invite['id']."\"><img class=\"del\" src=\"img/x.gif\" alt=\"refuse\" title=\"".REFUSE."\" /></a></td>
|
||||
<td class=\"nam\"><a href=\"allianz.php?aid=".$invite['alliance']."\"> ".$database->getAllianceName($invite['alliance'])."</a></td>
|
||||
<td class=\"acc\"><a href=\"build.php?id=".$id."&a=3&d=".$invite['id']."\"> accept</a></td><tr>";
|
||||
<td class=\"acc\"><a href=\"build.php?id=".$id."&a=3&d=".$invite['id']."\"> ".ACCEPT."</a></td><tr>";
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "<td colspan=\"3\" class=\"none\">There are no invitations available.</td>";
|
||||
echo "<td colspan=\"3\" class=\"none\">".NO_INVITATIONS."</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
<input type="hidden" name="id" value="<?php echo $id ?>">
|
||||
<input type="hidden" name="ft" value="ali1">
|
||||
<thead><tr>
|
||||
<th colspan="2">found alliance</th>
|
||||
<th colspan="2"><?php echo FOUND_ALLIANCE; ?></th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<th>Tag</th>
|
||||
<th><?php echo TAG; ?></th>
|
||||
<td class="tag">
|
||||
<input class="text" name="ally1" value="<?php echo $form->getValue("ally1"); ?>" maxlength="15">
|
||||
<span class="error"><?php echo $form->getError("ally1"); ?></span>
|
||||
@@ -15,7 +15,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th><?php echo NAME; ?></th>
|
||||
<td class="nam">
|
||||
<input class="text" name="ally2" value="<?php echo $form->getValue("ally2"); ?>" maxlength="50">
|
||||
<span class="error"><?php echo $form->getError("ally2"); ?></span>
|
||||
@@ -32,10 +32,10 @@
|
||||
<input type="hidden" name="id" value="<?php echo $id ?>">
|
||||
<input type="hidden" name="ft" value="ali1">
|
||||
<thead><tr>
|
||||
<th colspan="2">found alliance</th>
|
||||
<th colspan="2"><?php echo FOUND_ALLIANCE; ?></th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<th>Tag</th>
|
||||
<th><?php echo TAG; ?></th>
|
||||
<td class="tag">
|
||||
<input class="text" name="ally1" disabled="disabled" value="<?php echo $form->getValue("ally1"); ?>" maxlength="8">
|
||||
<span class="error"><?php echo $form->getError("ally1"); ?></span>
|
||||
@@ -43,7 +43,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th><?php echo NAME; ?></th>
|
||||
<td class="nam">
|
||||
<input class="text" name="ally2" disabled="disabled" value="<?php echo $form->getValue("ally2"); ?>" maxlength="25">
|
||||
<span class="error"><?php echo $form->getError("ally2"); ?></span>
|
||||
@@ -52,7 +52,7 @@
|
||||
</tr></tbody>
|
||||
</table>
|
||||
<?php
|
||||
echo "Banned player can't create an alliance.";
|
||||
echo "".NO_CREATE_ALLIANCE."";
|
||||
?></br><?php
|
||||
}
|
||||
?>
|
||||
|
||||
+11
-11
@@ -1,8 +1,8 @@
|
||||
<div id="build" class="gid19"><a href="#" onClick="return Popup(19,4);" class="build_logo">
|
||||
<img class="building g19" src="img/x.gif" alt="Barracks" title="Barracks" />
|
||||
<img class="building g19" src="img/x.gif" alt="Barracks" title="<?php echo BARRACKS; ?>" />
|
||||
</a>
|
||||
<h1>Barracks <span class="level">level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">All foot soldiers are trained in the barracks. The higher the level of the barracks, the faster the troops are trained.</p>
|
||||
<h1><?php echo BARRACKS; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo BARRACKS_DESC; ?> </p>
|
||||
|
||||
<?php if ($building->getTypeLevel(19) > 0) { ?>
|
||||
<form method="POST" name="snd" action="build.php">
|
||||
@@ -10,9 +10,9 @@
|
||||
<input type="hidden" name="ft" value="t1" />
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
<thead><tr>
|
||||
<td>Name</td>
|
||||
<td>Quantity</td>
|
||||
<td>Max</td>
|
||||
<td><?php echo NAME; ?></td>
|
||||
<td><?php echo QUANTITY; ?></td>
|
||||
<td><?php echo MAX; ?></td>
|
||||
</tr></thead><tbody>
|
||||
<?php
|
||||
include("19_train.tpl");
|
||||
@@ -20,7 +20,7 @@
|
||||
<p><input type="image" id="btn_train" class="dynamic_img" value="ok" name="s1" src="img/x.gif" alt="train" onclick="this.disabled=true;this.form.submit();"/></form></p>
|
||||
<?php
|
||||
} else {
|
||||
echo "<b>Training can commence when barracks are completed.</b><br>\n";
|
||||
echo "<b>".TRAINING_COMMENCE_BARRACKS."</b><br>\n";
|
||||
}
|
||||
$trainlist = $technology->getTrainingList(1);
|
||||
if(count($trainlist) > 0) {
|
||||
@@ -28,9 +28,9 @@
|
||||
echo "
|
||||
<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\">
|
||||
<thead><tr>
|
||||
<td>Training</td>
|
||||
<td>Duration</td>
|
||||
<td>Finished</td>
|
||||
<td>".TRAINING."</td>
|
||||
<td>".DURATION."</td>
|
||||
<td>".FINISHED."</td>
|
||||
</tr></thead>
|
||||
<tbody>";
|
||||
$TrainCount = 0;
|
||||
@@ -52,7 +52,7 @@
|
||||
}
|
||||
echo $time[1];
|
||||
} ?>
|
||||
</tr><tr class="next"><td colspan="3">The next unit will be finished in <span id="timer2"><?php echo $NextFinished; ?></span></td></tr>
|
||||
</tr><tr class="next"><td colspan="3"><?php echo UNIT_FINISHED; ?> <span id="timer2"><?php echo $NextFinished; ?></span></td></tr>
|
||||
</tbody></table>
|
||||
<?php }
|
||||
include("upgrade.tpl");
|
||||
|
||||
@@ -22,10 +22,10 @@
|
||||
echo "<tr><td class=\"desc\">
|
||||
<div class=\"tit\">
|
||||
<img class=\"unit u".$i."\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" />
|
||||
<a href=\"#\" onClick=\"return Popup(".$i.",1);\"> ".$technology->getUnitName($i)."</a> <span class=\"info\">(Available: ".$village->unitarray['u'.$i].")</span>
|
||||
<a href=\"#\" onClick=\"return Popup(".$i.",1);\"> ".$technology->getUnitName($i)."</a> <span class=\"info\">(".AVAILABLE.": ".$village->unitarray['u'.$i].")</span>
|
||||
</div>
|
||||
<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".(${'u'.$i}['wood'])."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".(${'u'.$i}['clay'])."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".(${'u'.$i}['iron'])."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".(${'u'.$i}['crop'])."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />".${'u'.$i}['pop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />";
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".(${'u'.$i}['wood'])."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".(${'u'.$i}['clay'])."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".(${'u'.$i}['iron'])."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".(${'u'.$i}['crop'])."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />".${'u'.$i}['pop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />";
|
||||
$dur=round(${'u'.$i}['time'] * ($bid19[$village->resarray['f'.$id]]['attri'] / 100) / SPEED * $artefact_bonus2 / $artefact_bonus);
|
||||
$foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid);
|
||||
if(count($foolartefact) > 0){
|
||||
@@ -55,10 +55,10 @@ echo "</div>
|
||||
echo "<tr><td class=\"desc\">
|
||||
<div class=\"tit\">
|
||||
<img class=\"unit u".$i."\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" />
|
||||
<a href=\"#\" onClick=\"return Popup(".$i.",1);\"> ".$technology->getUnitName($i)."</a> <span class=\"info\">(Available: ".$village->unitarray['u'.$i].")</span>
|
||||
<a href=\"#\" onClick=\"return Popup(".$i.",1);\"> ".$technology->getUnitName($i)."</a> <span class=\"info\">(".AVAILABLE.": ".$village->unitarray['u'.$i].")</span>
|
||||
</div>
|
||||
<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".(${'u'.$i}['wood'])."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".(${'u'.$i}['clay'])."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".(${'u'.$i}['iron'])."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".(${'u'.$i}['crop'])."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />".${'u'.$i}['pop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />";
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".(${'u'.$i}['wood'])."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".(${'u'.$i}['clay'])."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".(${'u'.$i}['iron'])."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".(${'u'.$i}['crop'])."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />".${'u'.$i}['pop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />";
|
||||
$dur=round(${'u'.$i}['time'] * ($bid19[$village->resarray['f'.$id]]['attri'] / 100) / SPEED * $artefact_bonus2 / $artefact_bonus);
|
||||
$foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid);
|
||||
if(count($foolartefact) > 0){
|
||||
|
||||
+11
-11
@@ -1,8 +1,8 @@
|
||||
<div id="build" class="gid20"><a href="#" onClick="return Popup(20,4);" class="build_logo">
|
||||
<img class="building g20" src="img/x.gif" alt="Stable" title="Stable" /> </a>
|
||||
<img class="building g20" src="img/x.gif" alt="Stable" title="<?php echo STABLE; ?>" /> </a>
|
||||
|
||||
<h1>Stable <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">Cavalry can be trained in the stable. The higher its level the faster the troops are trained.<br /></p>
|
||||
<h1><?php echo STABLE; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo STABLE_DESC; ?><br /></p>
|
||||
|
||||
<?php if ($building->getTypeLevel(20) > 0) { ?>
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Name</td>
|
||||
<td>Quantity</td>
|
||||
<td>Max</td>
|
||||
<td><?php echo NAME; ?></td>
|
||||
<td><?php echo QUANTITY; ?></td>
|
||||
<td><?php echo MAX; ?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -32,7 +32,7 @@
|
||||
</form>
|
||||
<?php
|
||||
} else {
|
||||
echo "<b>Training can commence when stables are completed.</b><br>\n";
|
||||
echo "<b>".TRAINING_COMMENCE_STABLE."</b><br>\n";
|
||||
}
|
||||
$trainlist = $technology->getTrainingList(2);
|
||||
if(count($trainlist) > 0) {
|
||||
@@ -40,9 +40,9 @@
|
||||
echo "
|
||||
<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\">
|
||||
<thead><tr>
|
||||
<td>Training</td>
|
||||
<td>Duration</td>
|
||||
<td>Finished</td>
|
||||
<td>".TRAINING."</td>
|
||||
<td>".DURATION."</td>
|
||||
<td>".FINISHED."</td>
|
||||
</tr></thead>
|
||||
<tbody>";
|
||||
$TrainCount = 0;
|
||||
@@ -64,7 +64,7 @@
|
||||
}
|
||||
echo $time[1];
|
||||
} ?>
|
||||
</tr><tr class="next"><td colspan="3">The next unit will be finished in <span id="timer2"><?php echo $NextFinished; ?></span></td></tr>
|
||||
</tr><tr class="next"><td colspan="3"><?php echo UNIT_FINISHED; ?> <span id="timer2"><?php echo $NextFinished; ?></span></td></tr>
|
||||
</tbody></table>
|
||||
<?php }
|
||||
?>
|
||||
|
||||
@@ -19,13 +19,13 @@ $success = 0;
|
||||
for($i=4;$i<=6;$i++) {
|
||||
if($technology->getTech($i)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u$i\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" />
|
||||
<a href=\"#\" onClick=\"return Popup($i,1);\">".$technology->getUnitName($i)."</a> <span class=\"info\">(Avaliable: ".$village->unitarray['u'.$i].")</span></div>";
|
||||
<a href=\"#\" onClick=\"return Popup($i,1);\">".$technology->getUnitName($i)."</a> <span class=\"info\">(".AVAILABLE.": ".$village->unitarray['u'.$i].")</span></div>";
|
||||
if(${'u'.$i}['drinking'] <= $building->getTypeLevel(41)) {
|
||||
echo "<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".${'u'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".${'u'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".${'u'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".${'u'.$i}['crop']."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />".(${'u'.$i}['pop']-1)."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />";
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".${'u'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".${'u'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".${'u'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".${'u'.$i}['crop']."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />".(${'u'.$i}['pop']-1)."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />";
|
||||
}else{
|
||||
echo "<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".${'u'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".${'u'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".${'u'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".${'u'.$i}['crop']."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />".(${'u'.$i}['pop'])."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />";
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".${'u'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".${'u'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".${'u'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".${'u'.$i}['crop']."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />".(${'u'.$i}['pop'])."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />";
|
||||
}
|
||||
$dur=round(${'u'.$i}['time'] * ($bid20[$village->resarray['f'.$id]]['attri'] / 100) * ($building->getTypeLevel(41)>=1?(1/$bid41[$building->getTypeLevel(41)]['attri']):1) / SPEED * $artefact_bonus2 / $artefact_bonus);
|
||||
$foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid);
|
||||
@@ -57,6 +57,6 @@ for($i=4;$i<=6;$i++) {
|
||||
}
|
||||
}
|
||||
if($success == 0) {
|
||||
echo "<tr><td colspan=\"3\"><div class=\"none\" align=\"center\">No units avaliable. Research at academy</div></td></tr>";
|
||||
echo "<tr><td colspan=\"3\"><div class=\"none\" align=\"center\">".AVAILABLE_ACADEMY."</div></td></tr>";
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -19,9 +19,9 @@ $success = 0;
|
||||
for($i=15;$i<=16;$i++) {
|
||||
if($technology->getTech($i)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u$i\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" />
|
||||
<a href=\"#\" onClick=\"return Popup($i,1);\">".$technology->getUnitName($i)."</a> <span class=\"info\">(Avaliable: ".$village->unitarray['u'.$i].")</span></div>";
|
||||
<a href=\"#\" onClick=\"return Popup($i,1);\">".$technology->getUnitName($i)."</a> <span class=\"info\">(".AVAILABLE.": ".$village->unitarray['u'.$i].")</span></div>";
|
||||
echo "<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".${'u'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".${'u'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".${'u'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".${'u'.$i}['crop']."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />".${'u'.$i}['pop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />";
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".${'u'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".${'u'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".${'u'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".${'u'.$i}['crop']."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />".${'u'.$i}['pop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />";
|
||||
$dur=round(${'u'.$i}['time'] * ($bid20[$village->resarray['f'.$id]]['attri'] / 100) / SPEED * $artefact_bonus2 / $artefact_bonus);
|
||||
$foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid);
|
||||
if(count($foolartefact) > 0){
|
||||
@@ -52,6 +52,6 @@ for($i=15;$i<=16;$i++) {
|
||||
}
|
||||
}
|
||||
if($success == 0) {
|
||||
echo "<tr><td class=\"none\" colspan=\"3\">No units avaliable. Research at academy</td></tr>";
|
||||
echo "<tr><td class=\"none\" colspan=\"3\">".AVAILABLE_ACADEMY."</td></tr>";
|
||||
}
|
||||
?>
|
||||
@@ -19,9 +19,9 @@ $success = 0;
|
||||
for($i=23;$i<=26;$i++) {
|
||||
if($technology->getTech($i)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u$i\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" />
|
||||
<a href=\"#\" onClick=\"return Popup($i,1);\">".$technology->getUnitName($i)."</a> <span class=\"info\">(Avaliable: ".$village->unitarray['u'.$i].")</span></div>";
|
||||
<a href=\"#\" onClick=\"return Popup($i,1);\">".$technology->getUnitName($i)."</a> <span class=\"info\">(".AVAILABLE.": ".$village->unitarray['u'.$i].")</span></div>";
|
||||
echo "<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".${'u'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".${'u'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".${'u'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".${'u'.$i}['crop']."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />".${'u'.$i}['pop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />";
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".${'u'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".${'u'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".${'u'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".${'u'.$i}['crop']."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />".${'u'.$i}['pop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />";
|
||||
$dur=round(${'u'.$i}['time'] * ($bid20[$village->resarray['f'.$id]]['attri'] / 100) / SPEED * $artefact_bonus2 / $artefact_bonus);
|
||||
$foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid);
|
||||
if(count($foolartefact) > 0){
|
||||
@@ -52,6 +52,6 @@ for($i=23;$i<=26;$i++) {
|
||||
}
|
||||
}
|
||||
if($success == 0) {
|
||||
echo "<tr><td class=\"none\" colspan=\"3\">No units avaliable. Research at academy</td></tr>";
|
||||
echo "<tr><td class=\"none\" colspan=\"3\">".AVAILABLE_ACADEMY."</td></tr>";
|
||||
}
|
||||
?>
|
||||
@@ -19,9 +19,9 @@ $success = 0;
|
||||
for($i=35;$i<=36;$i++) {
|
||||
if($technology->getTech($i)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u$i\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" />
|
||||
<a href=\"#\" onClick=\"return Popup($i,1);\">".$technology->getUnitName($i)."</a> <span class=\"info\">(Avaliable: ".$village->unitarray['u'.$i].")</span></div>";
|
||||
<a href=\"#\" onClick=\"return Popup($i,1);\">".$technology->getUnitName($i)."</a> <span class=\"info\">(".AVAILABLE.": ".$village->unitarray['u'.$i].")</span></div>";
|
||||
echo "<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".${'u'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".${'u'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".${'u'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".${'u'.$i}['crop']."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />".${'u'.$i}['pop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />";
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".${'u'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".${'u'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".${'u'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".${'u'.$i}['crop']."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />".${'u'.$i}['pop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />";
|
||||
$dur=round(${'u'.$i}['time'] * ($bid20[$village->resarray['f'.$id]]['attri'] / 100) / SPEED * $artefact_bonus2 / $artefact_bonus);
|
||||
$foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid);
|
||||
if(count($foolartefact) > 0){
|
||||
@@ -52,6 +52,6 @@ for($i=35;$i<=36;$i++) {
|
||||
}
|
||||
}
|
||||
if($success == 0) {
|
||||
echo "<tr><td class=\"none\" colspan=\"3\">No units avaliable. Research at academy</td></tr>";
|
||||
echo "<tr><td class=\"none\" colspan=\"3\">".AVAILABLE_ACADEMY."</td></tr>";
|
||||
}
|
||||
?>
|
||||
@@ -19,9 +19,9 @@ $success = 0;
|
||||
for($i=45;$i<=46;$i++) {
|
||||
if($technology->getTech($i)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u$i\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" />
|
||||
<a href=\"#\" onClick=\"return Popup($i,1);\">".$technology->getUnitName($i)."</a> <span class=\"info\">(Avaliable: ".$village->unitarray['u'.$i].")</span></div>";
|
||||
<a href=\"#\" onClick=\"return Popup($i,1);\">".$technology->getUnitName($i)."</a> <span class=\"info\">(".AVAILABLE.": ".$village->unitarray['u'.$i].")</span></div>";
|
||||
echo "<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".${'u'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".${'u'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".${'u'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".${'u'.$i}['crop']."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />".${'u'.$i}['pop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />";
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".${'u'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".${'u'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".${'u'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".${'u'.$i}['crop']."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />".${'u'.$i}['pop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />";
|
||||
$dur=round(${'u'.$i}['time'] * ($bid20[$village->resarray['f'.$id]]['attri'] / 100) / SPEED * $artefact_bonus2 / $artefact_bonus);
|
||||
$foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid);
|
||||
if(count($foolartefact) > 0){
|
||||
@@ -49,6 +49,6 @@ for($i=45;$i<=46;$i++) {
|
||||
}
|
||||
}
|
||||
if($success == 0) {
|
||||
echo "<tr><td class=\"none\" colspan=\"3\">No units avaliable. Research at academy</td></tr>";
|
||||
echo "<tr><td class=\"none\" colspan=\"3\">".AVAILABLE_ACADEMY."</td></tr>";
|
||||
}
|
||||
?>
|
||||
+14
-14
@@ -1,8 +1,8 @@
|
||||
<div id="build" class="gid21"><a href="#" onClick="return Popup(21,4, 'gid');" class="build_logo">
|
||||
<img class="building g21" src="img/x.gif" alt="Workshop" title="Workshop" /> </a>
|
||||
<img class="building g21" src="img/x.gif" alt="Workshop" title="<?php echo WORKSHOP; ?>" /> </a>
|
||||
|
||||
<h1>Workshop <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">Siege engines like catapults and rams can be built in the workshop. The higher its level the faster the units are produced.</p>
|
||||
<h1><?php echo WORKSHOP; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo WORKSHOP_DESC; ?></p>
|
||||
<?php if ($building->getTypeLevel(21) > 0) { ?>
|
||||
|
||||
<form method="POST" name="snd" action="build.php">
|
||||
@@ -11,9 +11,9 @@
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Name</td>
|
||||
<td>Quantity</td>
|
||||
<td>Max</td>
|
||||
<td><?php echo NAME; ?></td>
|
||||
<td><?php echo QUANTITY; ?></td>
|
||||
<td><?php echo MAX; ?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -49,9 +49,9 @@
|
||||
for($i=$start;$i<=($start+1);$i++) {
|
||||
if($technology->getTech($i)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u$i\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" />
|
||||
<a href=\"#\" onClick=\"return Popup($i,1);\">".$technology->getUnitName($i)."</a> <span class=\"info\">(Avaliable: ".$village->unitarray['u'.$i].")</span></div>";
|
||||
<a href=\"#\" onClick=\"return Popup($i,1);\">".$technology->getUnitName($i)."</a> <span class=\"info\">(".AVAILABLE.": ".$village->unitarray['u'.$i].")</span></div>";
|
||||
echo "<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".${'u'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".${'u'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".${'u'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".${'u'.$i}['crop']."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />".${'u'.$i}['pop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />";
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".${'u'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".${'u'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".${'u'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".${'u'.$i}['crop']."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />".${'u'.$i}['pop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />";
|
||||
$dur=round(${'u'.$i}['time'] * ($bid21[$village->resarray['f'.$id]]['attri'] / 100) / SPEED * $artefact_bonus2 / $artefact_bonus);
|
||||
$foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid);
|
||||
if(count($foolartefact) > 0){
|
||||
@@ -82,7 +82,7 @@
|
||||
}
|
||||
}
|
||||
if($success == 0) {
|
||||
echo "<tr><td class=\"none\" colspan=\"3\">No units avaliable. Research at academy</td></tr>";
|
||||
echo "<tr><td class=\"none\" colspan=\"3\">".AVAILABLE_ACADEMY."</td></tr>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -95,7 +95,7 @@
|
||||
</form>
|
||||
<?php
|
||||
} else {
|
||||
echo "<b>Training can commence when workshop are completed.</b><br>\n";
|
||||
echo "<b>".TRAINING_COMMENCE_WORKSHOP."</b><br>\n";
|
||||
}
|
||||
|
||||
$trainlist = $technology->getTrainingList(3);
|
||||
@@ -104,9 +104,9 @@
|
||||
echo "
|
||||
<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\">
|
||||
<thead><tr>
|
||||
<td>Training</td>
|
||||
<td>Duration</td>
|
||||
<td>Finished</td>
|
||||
<td>".TRAINING."</td>
|
||||
<td>".DURATION."</td>
|
||||
<td>".FINISHED."</td>
|
||||
</tr></thead>
|
||||
<tbody>";
|
||||
$TrainCount = 0;
|
||||
@@ -128,7 +128,7 @@
|
||||
}
|
||||
echo $time[1];
|
||||
} ?>
|
||||
</tr><tr class="next"><td colspan="3">The next unit will be finished in <span id="timer2"><?php echo $NextFinished; ?></span></td></tr>
|
||||
</tr><tr class="next"><td colspan="3"><?php echo UNIT_FINISHED; ?> <span id="timer2"><?php echo $NextFinished; ?></span></td></tr>
|
||||
</tbody></table>
|
||||
<?php }
|
||||
include("upgrade.tpl");
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<div id="build" class="gid22"><a href="#" onClick="return Popup(22,4);" class="build_logo">
|
||||
|
||||
<img class="building g22" src="img/x.gif" alt="Academy" title="Academy" />
|
||||
<img class="building g22" src="img/x.gif" alt="Academy" title="<?php echo ACADEMY; ?>" />
|
||||
</a>
|
||||
<h1>Academy <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">In the academy new unit types can be researched. By increasing its level you can order the research of better units.</p>
|
||||
<h1><?php echo ACADEMY; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo ACADEMY_DESC; ?></p>
|
||||
<?php
|
||||
if ($building->getTypeLevel(22) > 0) {
|
||||
include("22_".$session->tribe.".tpl");
|
||||
} else {
|
||||
echo "<p><b>Research can commence when academy is completed.</b><br>\n";
|
||||
echo "<p><b>".RESEARCH_COMMENCE_ACADEMY."</b><br>\n";
|
||||
}
|
||||
|
||||
include("upgrade.tpl");
|
||||
|
||||
+41
-41
@@ -1,7 +1,7 @@
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
<thead><tr>
|
||||
<td>Academy</td>
|
||||
<td>Action</td>
|
||||
<td><?php echo ACADEMY; ?></td>
|
||||
<td><?php echo ACTION; ?></td>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
|
||||
@@ -15,45 +15,45 @@ for($i=2;$i<=9;$i++) {
|
||||
<img class=\"unit u".$i."\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" />
|
||||
<a href=\"#\" onClick=\"return Popup(".$i.",1);\">".$technology->getUnitName($i)."</a>
|
||||
</div>
|
||||
<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"Lumber\" />".${'r'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".${'r'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".${'r'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".${'r'.$i}['crop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"duration\" title=\"duration\" />";
|
||||
<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"".LUMBER."\" />".${'r'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".${'r'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".${'r'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".${'r'.$i}['crop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"duration\" title=\"".DURATION."\" />";
|
||||
echo $generator->getTimeFormat(round(${'r'.$i}['time'] * ($bid22[$village->resarray['f'.$id]]['attri'] / 100)/SPEED));
|
||||
if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) > 1) {
|
||||
echo "|<a href=\"build.php?gid=17&t=3&r1=".${'r'.$i}['wood']."&r2=".${'r'.$i}['clay']."&r3=".${'r'.$i}['iron']."&r4=".${'r'.$i}['crop']."\" title=\"NPC trade\"><img class=\"npc\" src=\"img/x.gif\" alt=\"NPC trade\" title=\"NPC trade\" /></a>";
|
||||
}
|
||||
if(${'r'.$i}['wood'] > $village->maxstore || ${'r'.$i}['clay'] > $village->maxstore || ${'r'.$i}['iron'] > $village->maxstore) {
|
||||
echo "<br><span class=\"none\">Expand warehouse</span></div></td>";
|
||||
echo "<br><span class=\"none\">".EXPAND_WAREHOUSE1."</span></div></td>";
|
||||
echo "<td class=\"act\">
|
||||
<div class=\"none\">Expand<br>warehouse</div>
|
||||
<div class=\"none\">".EXPAND_WAREHOUSE."</div>
|
||||
</td></tr>";
|
||||
}
|
||||
else if(${'r'.$i}['crop'] > $village->maxcrop) {
|
||||
echo "<br><span class=\"none\">Expand granary</span></div></td>";
|
||||
echo "<br><span class=\"none\">".EXPAND_GRANARY1."</span></div></td>";
|
||||
echo "<td class=\"act\">
|
||||
<div class=\"none\">Expand<br>granary</div>
|
||||
<div class=\"none\">".EXPAND_GRANARY."</div>
|
||||
</td></tr>";
|
||||
}
|
||||
else if(${'r'.$i}['wood'] > $village->awood || ${'r'.$i}['clay'] > $village->aclay || ${'r'.$i}['iron'] > $village->airon || ${'r'.$i}['crop'] > $village->acrop) {
|
||||
if($village->getProd("crop")>0){
|
||||
$time = $technology->calculateAvaliable(22,${'r'.$i});
|
||||
echo "<br><span class=\"none\">Enough resources ".$time[0]." at ".$time[1]."</span></div></td>";
|
||||
echo "<br><span class=\"none\">".ENOUGH_RESOURCES." ".$time[0]." at ".$time[1]."</span></div></td>";
|
||||
} else {
|
||||
echo "<br><span class=\"none\">Crop production is negative so you will never reach the required resources</span></div></td>";
|
||||
echo "<br><span class=\"none\">".CROP_NEGATIVE."</span></div></td>";
|
||||
}
|
||||
echo "<td class=\"act\"><div class=\"none\">Too few<br>resources</div></td></tr>";
|
||||
echo "<td class=\"act\"><div class=\"none\">".TOO_FEW_RESOURCES."</div></td></tr>";
|
||||
}
|
||||
else if (count($acares) > 0) {
|
||||
echo "</td>";
|
||||
echo "<td class=\"none\">
|
||||
Research in progress</td></tr>";
|
||||
".RESEARCH_IN_PROGRESS."</td></tr>";
|
||||
}
|
||||
else if($session->access != BANNED){
|
||||
echo "</td>";
|
||||
echo "<td class=\"act\">
|
||||
<a class=\"research\" href=\"build.php?id=$id&a=$i&c=".$session->mchecker."\">Research</a></td></tr>";
|
||||
<a class=\"research\" href=\"build.php?id=$id&a=$i&c=".$session->mchecker."\">".RESEARCH."</a></td></tr>";
|
||||
}else{
|
||||
echo "</td>";
|
||||
echo "<td class=\"act\">
|
||||
<a class=\"research\" href=\"banned.php\">Research</a></td></tr>";
|
||||
<a class=\"research\" href=\"banned.php\">".RESEARCH."</a></td></tr>";
|
||||
}
|
||||
$success += 1;
|
||||
}
|
||||
@@ -62,59 +62,59 @@ for($i=2;$i<=9;$i++) {
|
||||
}
|
||||
}
|
||||
if($success == 0) {
|
||||
echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">There are no researches avaliable</div></td>";
|
||||
echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">".RESEARCH_AVAILABLE."</div></td>";
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php
|
||||
if($fail > 0) {
|
||||
echo "<p class=\"switch\"><a id=\"researchFutureLink\" href=\"#\" onclick=\"return $('researchFuture').toggle();\">show more</a></p>
|
||||
echo "<p class=\"switch\"><a id=\"researchFutureLink\" href=\"#\" onclick=\"return $('researchFuture').toggle();\">".SHOW_MORE."</a></p>
|
||||
<table id=\"researchFuture\" class=\"build_details hide\" cellspacing=\"1\" cellpadding=\"1\">
|
||||
<thead><tr><td colspan=\"2\">Prerequisites</td></tr><tbody>";
|
||||
<thead><tr><td colspan=\"2\">".PREREQUISITES."</td></tr><tbody>";
|
||||
if(!$technology->meetRRequirement(2) && !$technology->getTech(2)) {
|
||||
echo"<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u2\" title=\"Praetorian\" alt=\"Praetorian\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(2, 1);\" href=\"#\">Praetorian</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 1);\">Academy</a>
|
||||
<span title=\"+2\"> Level 1</span><br /><a href=\"#\" onclick=\"return Popup(13, 4);\">Armoury </a><span title=\"+1\"> Level 1</span></td></tr>";
|
||||
echo"<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u2\" title=\"".U2."\" alt=\"Praetorian\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(2, 1);\" href=\"#\">Praetorian</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 1);\">".ACADEMY."</a>
|
||||
<span title=\"+2\"> ".LEVEL." 1</span><br /><a href=\"#\" onclick=\"return Popup(13, 4);\">".ARMOURY." </a><span title=\"+1\"> ".LEVEL." 1</span></td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(3) && !$technology->getTech(3)) {
|
||||
echo"<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u3\" title=\"Imperian\" alt=\"Imperian\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(3, 1);\" href=\"#\">Imperian</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">Academy</a>
|
||||
<span title=\"+2\"> Level 5</span><br /><a href=\"#\" onclick=\"return Popup(12, 4);\">Blacksmith </a><span title=\"+1\"> Level 1</span> </td></tr>";
|
||||
echo"<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u3\" title=\"".U3."\" alt=\"Imperian\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(3, 1);\" href=\"#\">Imperian</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a>
|
||||
<span title=\"+2\"> ".LEVEL." 5</span><br /><a href=\"#\" onclick=\"return Popup(12, 4);\">".BLACKSMITH." </a><span title=\"+1\"> ".LEVEL." 1</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(4) && !$technology->getTech(4)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u4\" title=\"Equites Legati\" alt=\"Equites Legati\" src=\"img/x.gif\"/>
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u4\" title=\"".U4."\" alt=\"Equites Legati\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(4, 1);\" href=\"#\">Equites Legati</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">Academy</a><span title=\"+2\"> Level 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">Stable</a><span title=\"+1\"> Level 1</span> </td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a><span title=\"+2\"> ".LEVEL." 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">".STABLE."</a><span title=\"+1\"> ".LEVEL." 1</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(5) && !$technology->getTech(5)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u5\" title=\"Equites Imperatoris\" alt=\"Equites Imperatoris\" src=\"img/x.gif\"/>
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u5\" title=\"".U5."\" alt=\"Equites Imperatoris\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(5, 1);\" href=\"#\">Equites Imperatoris</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">Academy</a><span title=\"+2\"> Level 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">Stable</a><span title=\"+5\"> Level 5</span> </td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a><span title=\"+2\"> ".LEVEL." 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">".STABLE."</a><span title=\"+5\"> ".LEVEL." 5</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(6) && !$technology->getTech(6)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u6\" title=\"Equites Caesaris\" alt=\"Equites Caesaris\" src=\"img/x.gif\"/>
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u6\" title=\"".U6."\" alt=\"Equites Caesaris\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(6, 1);\" href=\"#\">Equites Caesaris</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">Academy</a><span title=\"+12\"> Level 15</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">
|
||||
Stable</a><span title=\"+10\"> Level 10</span> </td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a><span title=\"+12\"> ".LEVEL." 15</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">
|
||||
".STABLE."</a><span title=\"+10\"> ".LEVEL." 10</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(7) && !$technology->getTech(7)) {
|
||||
echo "
|
||||
<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u7\" title=\"Battering Ram\" alt=\"Battering Ram\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(7, 1);\" href=\"#\">Battering Ram</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">Academy</a>
|
||||
<span title=\"+7\"> Level 10</span><br /><a href=\"#\" onclick=\"return Popup(21, 4);\">Workshop</a><span title=\"+1\"> Level 1</span></td></tr>";
|
||||
<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u7\" title=\"".U7."\" alt=\"Battering Ram\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(7, 1);\" href=\"#\">Battering Ram</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a>
|
||||
<span title=\"+7\"> ".LEVEL." 10</span><br /><a href=\"#\" onclick=\"return Popup(21, 4);\">".WORKSHOP."</a><span title=\"+1\"> ".LEVEL." 1</span></td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(8) && !$technology->getTech(8)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u8\" title=\"Fire Catapult\" alt=\"Fire Catapult\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(8, 1);\" href=\"#\">Fire Catapult</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(21, 4);\">Workshop</a>
|
||||
<span title=\"+10\"> Level 10</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">Academy</a><span title=\"+12\"> Level 15</span> </td>
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u8\" title=\"".U8."\" alt=\"Fire Catapult\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(8, 1);\" href=\"#\">Fire Catapult</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(21, 4);\">".WORKSHOP."</a>
|
||||
<span title=\"+10\"> ".LEVEL." 10</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a><span title=\"+12\"> ".LEVEL." 15</span> </td>
|
||||
</tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(9) && !$technology->getTech(9)) {
|
||||
echo " <tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u9\" title=\"Senator\" alt=\"Senator\" src=\"img/x.gif\"/>
|
||||
echo " <tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u9\" title=\"".U9."\" alt=\"Senator\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(9, 1);\" href=\"#\">Senator</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(16, 4);\">Rally Point</a><span title=\"+9\"> Level 10</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">
|
||||
Academy</a><span title=\"+17\"> Level 20</span></td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(16, 4);\">".RALLYPOINT."</a><span title=\"+9\"> ".LEVEL." 10</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">
|
||||
".ACADEMY."</a><span title=\"+17\"> ".LEVEL." 20</span></td></tr>";
|
||||
}
|
||||
echo "<script type=\"text/javascript\">
|
||||
//<![CDATA[
|
||||
@@ -124,8 +124,8 @@ if($fail > 0) {
|
||||
|
||||
$(\"researchFutureLink\").set(\"text\",
|
||||
this.hasClass(\"hide\")
|
||||
? \"show more\"
|
||||
: \"hide more\"
|
||||
? \"".SHOW_MORE."\"
|
||||
: \"".HIDE_MORE."\"
|
||||
);
|
||||
|
||||
return false;
|
||||
@@ -136,7 +136,7 @@ if($fail > 0) {
|
||||
}
|
||||
//$acares = $technology->grabAcademyRes();
|
||||
if(count($acares) > 0) {
|
||||
echo "<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\"><thead><tr><td>Researching</td><td>Duration</td><td>Complete</td></tr>
|
||||
echo "<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\"><thead><tr><td>".RESEARCHING."</td><td>".DURATION."</td><td>".COMPLETE."</td></tr>
|
||||
</thead><tbody>";
|
||||
$timer = 1;
|
||||
foreach($acares as $aca) {
|
||||
|
||||
+40
-40
@@ -1,7 +1,7 @@
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
<thead><tr>
|
||||
<td>Academy</td>
|
||||
<td>Action</td>
|
||||
<td><?php echo ACADEMY; ?></td>
|
||||
<td><?php echo ACTION; ?></td>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
|
||||
@@ -15,45 +15,45 @@ for($i=12;$i<=19;$i++) {
|
||||
<img class=\"unit u".$i."\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" />
|
||||
<a href=\"#\" onClick=\"return Popup(".$i.",1);\">".$technology->getUnitName($i)."</a>
|
||||
</div>
|
||||
<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"Lumber\" />".${'r'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".${'r'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".${'r'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".${'r'.$i}['crop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"duration\" title=\"duration\" />";
|
||||
<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"".LUMBER."\" />".${'r'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".${'r'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".${'r'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".${'r'.$i}['crop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"duration\" title=\"".DURATION."\" />";
|
||||
echo $generator->getTimeFormat(round(${'r'.$i}['time'] * ($bid22[$village->resarray['f'.$id]]['attri'] / 100)/SPEED));
|
||||
if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) > 1) {
|
||||
echo "|<a href=\"build.php?gid=17&t=3&r1=".${'r'.$i}['wood']."&r2=".${'r'.$i}['clay']."&r3=".${'r'.$i}['iron']."&r4=".${'r'.$i}['crop']."\" title=\"NPC trade\"><img class=\"npc\" src=\"img/x.gif\" alt=\"NPC trade\" title=\"NPC trade\" /></a>";
|
||||
}
|
||||
if(${'r'.$i}['wood'] > $village->maxstore || ${'r'.$i}['clay'] > $village->maxstore || ${'r'.$i}['iron'] > $village->maxstore) {
|
||||
echo "<br><span class=\"none\">Expand warehouse</span></div></td>";
|
||||
echo "<br><span class=\"none\">".EXPAND_WAREHOUSE1."</span></div></td>";
|
||||
echo "<td class=\"none\">
|
||||
<div class=\"none\">Expand<br>warehouse</div>
|
||||
<div class=\"none\">".EXPAND_WAREHOUSE."</div>
|
||||
</td></tr>";
|
||||
}
|
||||
else if(${'r'.$i}['crop'] > $village->maxcrop) {
|
||||
echo "<br><span class=\"none\">Expand granary</span></div></td>";
|
||||
echo "<br><span class=\"none\">".EXPAND_GRANARY1."</span></div></td>";
|
||||
echo "<td class=\"none\">
|
||||
<div class=\"none\">Expand<br>granary</div>
|
||||
<div class=\"none\">".EXPAND_GRANARY."</div>
|
||||
</td></tr>";
|
||||
}
|
||||
else if(${'r'.$i}['wood'] > $village->awood || ${'r'.$i}['clay'] > $village->aclay || ${'r'.$i}['iron'] > $village->airon || ${'r'.$i}['crop'] > $village->acrop) {
|
||||
if($village->getProd("crop")>0){
|
||||
$time = $technology->calculateAvaliable(22,${'r'.$i});
|
||||
echo "<br><span class=\"none\">Enough resources ".$time[0]." at ".$time[1]."</span></div></td>";
|
||||
echo "<br><span class=\"none\">".ENOUGH_RESOURCES." ".$time[0]." at ".$time[1]."</span></div></td>";
|
||||
} else {
|
||||
echo "<br><span class=\"none\">Crop production is negative so you will never reach the required resources</span></div></td>";
|
||||
echo "<br><span class=\"none\">".CROP_NEGATIVE."</span></div></td>";
|
||||
}
|
||||
echo "<td class=\"act\"><div class=\"none\">Too few<br>resources</div></td></tr>";
|
||||
echo "<td class=\"act\"><div class=\"none\">".TOO_FEW_RESOURCES."</div></td></tr>";
|
||||
}
|
||||
else if ( count($acares) > 0 ) {
|
||||
echo "</td>";
|
||||
echo "<td class=\"none\">
|
||||
Research in progress</td></tr>";
|
||||
".RESEARCH_IN_PROGRESS."</td></tr>";
|
||||
}
|
||||
else if($session->access != BANNED){
|
||||
echo "</td>";
|
||||
echo "<td class=\"act\">
|
||||
<a class=\"research\" href=\"build.php?id=$id&a=$i&c=".$session->mchecker."\">Research</a></td></tr>";
|
||||
<a class=\"research\" href=\"build.php?id=$id&a=$i&c=".$session->mchecker."\">".RESEARCH."</a></td></tr>";
|
||||
}else{
|
||||
echo "</td>";
|
||||
echo "<td class=\"act\">
|
||||
<a class=\"research\" href=\"banned.php\">Research</a></td></tr>";
|
||||
<a class=\"research\" href=\"banned.php\">".RESEARCH."</a></td></tr>";
|
||||
}
|
||||
$success += 1;
|
||||
}
|
||||
@@ -62,55 +62,55 @@ for($i=12;$i<=19;$i++) {
|
||||
}
|
||||
}
|
||||
if($success == 0) {
|
||||
echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">There are no researches avaliable</div></td>";
|
||||
echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">".RESEARCH_AVAILABLE."</div></td>";
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if($fail > 0) {
|
||||
echo "<p class=\"switch\"><a id=\"researchFutureLink\" href=\"#\" onclick=\"return $('researchFuture').toggle();\">show more</a></p>
|
||||
echo "<p class=\"switch\"><a id=\"researchFutureLink\" href=\"#\" onclick=\"return $('researchFuture').toggle();\">".SHOW_MORE."</a></p>
|
||||
<table id=\"researchFuture\" class=\"build_details hide\" cellspacing=\"1\" cellpadding=\"1\">
|
||||
<thead><tr><td colspan=\"2\">Prerequisites</td></tr><tbody>";
|
||||
<thead><tr><td colspan=\"2\">".PREREQUISITES."</td></tr><tbody>";
|
||||
if(!$technology->meetRRequirement(13) && !$technology->getTech(13)) {
|
||||
echo"<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u13\" title=\"Axeman\" alt=\"Axeman\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(13, 1);\" href=\"#\">Axeman</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">Academy </a>
|
||||
<span title=\"+2\">Level 3</span><br /><a href=\"#\" onclick=\"return Popup(12, 4);\">Blacksmith </a><span title=\"+1\">Level 1</span> </td></tr>";
|
||||
echo"<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u13\" title=\"".U13."\" alt=\"Axeman\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(13, 1);\" href=\"#\">Axeman</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY." </a>
|
||||
<span title=\"+2\">".LEVEL." 3</span><br /><a href=\"#\" onclick=\"return Popup(12, 4);\">".BLACKSMITH." </a><span title=\"+1\">".LEVEL." 1</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(14) && !$technology->getTech(14)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u14\" title=\"Scout\" alt=\"Scout\" src=\"img/x.gif\"/>
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u14\" title=\"".U14."\" alt=\"Scout\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(14, 1);\" href=\"#\">Scout</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">Academy </a><span title=\"+2\">Level 1</span><br /><a href=\"#\" onclick=\"return Popup(15, 4);\">Main Building</a>
|
||||
<span title=\"+3\">Level 5</span> </td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY." </a><span title=\"+2\">".LEVEL." 1</span><br /><a href=\"#\" onclick=\"return Popup(15, 4);\">".MAINBUILDING."</a>
|
||||
<span title=\"+3\">".LEVEL." 5</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(15) && !$technology->getTech(15)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u15\" title=\"Paladin\" alt=\"Paladin\" src=\"img/x.gif\"/>
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u15\" title=\"".U15."\" alt=\"Paladin\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(15, 1);\" href=\"#\">Paladin</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">Academy </a><span title=\"+2\">Level 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">Stable </a>
|
||||
<span title=\"+5\">Level 5</span> </td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY." </a><span title=\"+2\">".LEVEL." 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">".STABLE." </a>
|
||||
<span title=\"+5\">".LEVEL." 5</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(16) && !$technology->getTech(16)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u16\" title=\"Teutonic Knight\" alt=\"Teutonic Knight\" src=\"img/x.gif\"/>
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u16\" title=\"".U16."\" alt=\"Teutonic Knight\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(16, 1);\" href=\"#\">Teutonic Knight</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">Academy </a><span title=\"+2\">Level 15</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">
|
||||
Stable </a><span title=\"+3\">Level 10</span> </td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY." </a><span title=\"+2\">".LEVEL." 15</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">
|
||||
".STABLE." </a><span title=\"+3\">".LEVEL." 10</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(17) && !$technology->getTech(17)) {
|
||||
echo "
|
||||
<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u17\" title=\"Ram\" alt=\"Ram\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(17, 1);\" href=\"#\">Ram</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">Academy </a>
|
||||
<span title=\"+7\">Level 10</span><br /><a href=\"#\" onclick=\"return Popup(21, 4);\">Workshop </a><span title=\"+1\">Level 1</span></td></tr>";
|
||||
<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u17\" title=\"".U17."\" alt=\"Ram\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(17, 1);\" href=\"#\">Ram</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY." </a>
|
||||
<span title=\"+7\">".LEVEL." 10</span><br /><a href=\"#\" onclick=\"return Popup(21, 4);\">".WORKSHOP." </a><span title=\"+1\">".LEVEL." 1</span></td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(18) && !$technology->getTech(18)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u18\" title=\"Catapult\" alt=\"Catapult\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(18, 1);\" href=\"#\">Catapult</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(21, 4);\">Workshop</a>
|
||||
<span title=\"+10\">Level 10</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">Academy </a><span title=\"+12\">Level 15</span> </td>
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u18\" title=\"".U18."\" alt=\"Catapult\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(18, 1);\" href=\"#\">Catapult</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(21, 4);\">".WORKSHOP."</a>
|
||||
<span title=\"+10\">".LEVEL." 10</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY." </a><span title=\"+12\">".LEVEL." 15</span> </td>
|
||||
</tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(19) && !$technology->getTech(19)) {
|
||||
echo " <tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u19\" title=\"Chief\" alt=\"Chief\" src=\"img/x.gif\"/>
|
||||
echo " <tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u19\" title=\"".U19."\" alt=\"Chief\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(19, 1);\" href=\"#\">Chief</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(16, 4);\">Rally Point </a><span title=\"+4\">Level 5</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">
|
||||
Academy </a><span title=\"+17\">Level 20</span></td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(16, 4);\">".RALLYPOINT." </a><span title=\"+4\">".LEVEL." 5</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">
|
||||
Academy </a><span title=\"+17\">".LEVEL." 20</span></td></tr>";
|
||||
}
|
||||
echo " <script type=\"text/javascript\">
|
||||
//<![CDATA[
|
||||
@@ -120,8 +120,8 @@ echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">There are no resear
|
||||
|
||||
$(\"researchFutureLink\").set(\"text\",
|
||||
this.hasClass(\"hide\")
|
||||
? \"show more\"
|
||||
: \"hide more\"
|
||||
? \"".SHOW_MORE."\"
|
||||
: \"".HIDE_MORE."\"
|
||||
);
|
||||
|
||||
return false;
|
||||
@@ -132,7 +132,7 @@ echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">There are no resear
|
||||
}
|
||||
//$acares = $technology->grabAcademyRes();
|
||||
if(count($acares) > 0) {
|
||||
echo "<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\"><thead><tr><td>Researching</td><td>Duration</td><td>Complete</td></tr>
|
||||
echo "<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\"><thead><tr><td>".RESEARCHING."</td><td>".DURATION."</td><td>".COMPLETE."</td></tr>
|
||||
</thead><tbody>";
|
||||
$timer = 1;
|
||||
foreach($acares as $aca) {
|
||||
|
||||
+43
-43
@@ -1,7 +1,7 @@
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
<thead><tr>
|
||||
<td>Academy</td>
|
||||
<td>Action</td>
|
||||
<td><?php echo ACADEMY; ?></td>
|
||||
<td><?php echo ACTION; ?></td>
|
||||
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
@@ -15,45 +15,45 @@ for($i=22;$i<=29;$i++) {
|
||||
<img class=\"unit u".$i."\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" />
|
||||
<a href=\"#\" onClick=\"return Popup(".$i.",1);\">".$technology->getUnitName($i)."</a>
|
||||
</div>
|
||||
<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"Lumber\" />".${'r'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".${'r'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".${'r'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".${'r'.$i}['crop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"duration\" title=\"duration\" />";
|
||||
<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"".LUMBER."\" />".${'r'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".${'r'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".${'r'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".${'r'.$i}['crop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"duration\" title=\"".DURATION."\" />";
|
||||
echo $generator->getTimeFormat(round(${'r'.$i}['time'] * ($bid22[$village->resarray['f'.$id]]['attri'] / 100)/SPEED));
|
||||
if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) > 1) {
|
||||
echo "|<a href=\"build.php?gid=17&t=3&r1=".${'r'.$i}['wood']."&r2=".${'r'.$i}['clay']."&r3=".${'r'.$i}['iron']."&r4=".${'r'.$i}['crop']."\" title=\"NPC trade\"><img class=\"npc\" src=\"img/x.gif\" alt=\"NPC trade\" title=\"NPC trade\" /></a>";
|
||||
}
|
||||
if(${'r'.$i}['wood'] > $village->maxstore || ${'r'.$i}['clay'] > $village->maxstore || ${'r'.$i}['iron'] > $village->maxstore) {
|
||||
echo "<br><span class=\"none\">Expand warehouse</span></div></td>";
|
||||
echo "<br><span class=\"none\">".EXPAND_WAREHOUSE1."</span></div></td>";
|
||||
echo "<td class=\"none\">
|
||||
<div class=\"none\">Expand<br>warehouse</div>
|
||||
<div class=\"none\">".EXPAND_WAREHOUSE."</div>
|
||||
</td></tr>";
|
||||
}
|
||||
else if(${'r'.$i}['crop'] > $village->maxcrop) {
|
||||
echo "<br><span class=\"none\">Expand granary</span></div></td>";
|
||||
echo "<br><span class=\"none\">".EXPAND_GRANARY1."</span></div></td>";
|
||||
echo "<td class=\"none\">
|
||||
<div class=\"none\">Expand<br>granary</div>
|
||||
<div class=\"none\">".EXPAND_GRANARY."</div>
|
||||
</td></tr>";
|
||||
}
|
||||
else if(${'r'.$i}['wood'] > $village->awood || ${'r'.$i}['clay'] > $village->aclay || ${'r'.$i}['iron'] > $village->airon || ${'r'.$i}['crop'] > $village->acrop) {
|
||||
if($village->getProd("crop")>0){
|
||||
$time = $technology->calculateAvaliable(22,${'r'.$i});
|
||||
echo "<br><span class=\"none\">Enough resources ".$time[0]." at ".$time[1]."</span></div></td>";
|
||||
echo "<br><span class=\"none\">".ENOUGH_RESOURCES." ".$time[0]." at ".$time[1]."</span></div></td>";
|
||||
} else {
|
||||
echo "<br><span class=\"none\">Crop production is negative so you will never reach the required resources</span></div></td>";
|
||||
echo "<br><span class=\"none\">".CROP_NEGATIVE."</span></div></td>";
|
||||
}
|
||||
echo "<td class=\"act\"><div class=\"none\">Too few<br>resources</div></td></tr>";
|
||||
echo "<td class=\"act\"><div class=\"none\">".TOO_FEW_RESOURCES."</div></td></tr>";
|
||||
}
|
||||
else if ( count($acares) > 0 ) {
|
||||
echo "</td>";
|
||||
echo "<td class=\"none\">
|
||||
Research in progress</td></tr>";
|
||||
".RESEARCH_IN_PROGRESS."</td></tr>";
|
||||
}
|
||||
else if($session->access != BANNED){
|
||||
echo "</td>";
|
||||
echo "<td class=\"act\">
|
||||
<a class=\"research\" href=\"build.php?id=$id&a=$i&c=".$session->mchecker."\">Research</a></td></tr>";
|
||||
<a class=\"research\" href=\"build.php?id=$id&a=$i&c=".$session->mchecker."\">".RESEARCH."</a></td></tr>";
|
||||
}else{
|
||||
echo "</td>";
|
||||
echo "<td class=\"act\">
|
||||
<a class=\"research\" href=\"banned.php\">Research</a></td></tr>";
|
||||
<a class=\"research\" href=\"banned.php\">".RESEARCH."</a></td></tr>";
|
||||
}
|
||||
$success +=1;
|
||||
}
|
||||
@@ -62,59 +62,59 @@ for($i=22;$i<=29;$i++) {
|
||||
}
|
||||
}
|
||||
if($success == 0) {
|
||||
echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">There are no researches avaliable</div></td>";
|
||||
echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">".RESEARCH_AVAILABLE."</div></td>";
|
||||
}
|
||||
?>
|
||||
</tbody></table>
|
||||
<?php if($fail > 0) {
|
||||
echo "<p class=\"switch\"><a id=\"researchFutureLink\" href=\"#\" onclick=\"return $('researchFuture').toggle();\">show more</a></p>
|
||||
echo "<p class=\"switch\"><a id=\"researchFutureLink\" href=\"#\" onclick=\"return $('researchFuture').toggle();\">".SHOW_MORE."</a></p>
|
||||
<table id=\"researchFuture\" class=\"build_details hide\" cellspacing=\"1\" cellpadding=\"1\">
|
||||
<thead><tr><td colspan=\"2\">Prerequisites</td></tr><tbody>";
|
||||
<thead><tr><td colspan=\"2\">".PREREQUISITES."</td></tr><tbody>";
|
||||
if(!$technology->meetRRequirement(22) && !$technology->getTech(22)) {
|
||||
echo"<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u22\" title=\"Swordsman\" alt=\"Swordsman\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(22, 1);\" href=\"#\">Swordsman</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">Academy</a>
|
||||
<span title=\"+2\"> Level 3</span><br /><a href=\"#\" onclick=\"return Popup(12, 4);\">Blacksmith </a><span title=\"+1\"> Level 1</span></td></tr>";
|
||||
echo"<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u22\" title=\"".U22."\" alt=\"Swordsman\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(22, 1);\" href=\"#\">Swordsman</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a>
|
||||
<span title=\"+2\"> ".LEVEL." 3</span><br /><a href=\"#\" onclick=\"return Popup(12, 4);\">".BLACKSMITH." </a><span title=\"+1\"> ".LEVEL." 1</span></td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(23) && !$technology->getTech(23)) {
|
||||
echo"<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u23\" title=\"Pathfinder\" alt=\"Pathfinder\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(23, 1);\" href=\"#\">Pathfinder</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">Academy</a>
|
||||
<span title=\"+2\"> Level 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">Stable </a><span title=\"+1\"> Level 1</span> </td></tr>";
|
||||
echo"<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u23\" title=\"".U23."\" alt=\"Pathfinder\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(23, 1);\" href=\"#\">Pathfinder</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a>
|
||||
<span title=\"+2\"> ".LEVEL." 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">".STABLE." </a><span title=\"+1\"> ".LEVEL." 1</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(24) && !$technology->getTech(24)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u24\" title=\"Theutates Thunder\" alt=\"Theutates Thunder\" src=\"img/x.gif\"/>
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u24\" title=\"".U24."\" alt=\"Theutates Thunder\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(24, 1);\" href=\"#\">Theutates Thunder</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">Academy</a><span title=\"+2\"> Level 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">Stable</a>
|
||||
<span title=\"+3\"> Level 3</span> </td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a><span title=\"+2\"> ".LEVEL." 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">".STABLE."</a>
|
||||
<span title=\"+3\"> ".LEVEL." 3</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(25) && !$technology->getTech(25)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u25\" title=\"Druidrider\" alt=\"Druidrider\" src=\"img/x.gif\"/>
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u25\" title=\"".U25."\" alt=\"Druidrider\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(25, 1);\" href=\"#\">Druidrider</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">Academy</a><span title=\"+2\"> Level 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">Stable</a>
|
||||
<span title=\"+5\"> Level 5</span> </td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a><span title=\"+2\"> ".LEVEL." 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">".STABLE."</a>
|
||||
<span title=\"+5\"> ".LEVEL." 5</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(26) && !$technology->getTech(26)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u26\" title=\"Haeduan\" alt=\"Haeduan\" src=\"img/x.gif\"/>
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u26\" title=\"".U26."\" alt=\"Haeduan\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(26, 1);\" href=\"#\">Haeduan</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">Academy</a><span title=\"+12\"> Level 15</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">
|
||||
Stable</a><span title=\"+10\"> Level 10</span> </td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a><span title=\"+12\"> ".LEVEL." 15</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">
|
||||
".STABLE."</a><span title=\"+10\"> ".LEVEL." 10</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(27) && !$technology->getTech(27)) {
|
||||
echo "
|
||||
<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u27\" title=\"Ram\" alt=\"Ram\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(27, 1);\" href=\"#\">Ram</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">Academy</a>
|
||||
<span title=\"+7\"> Level 10</span><br /><a href=\"#\" onclick=\"return Popup(21, 4);\">Workshop</a><span title=\"+1\"> Level 1</span></td></tr>";
|
||||
<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u27\" title=\"".U27."\" alt=\"Ram\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(27, 1);\" href=\"#\">Ram</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a>
|
||||
<span title=\"+7\"> ".LEVEL." 10</span><br /><a href=\"#\" onclick=\"return Popup(21, 4);\">".WORKSHOP."</a><span title=\"+1\"> ".LEVEL." 1</span></td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(28) && !$technology->getTech(28)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u28\" title=\"Trebuchet\" alt=\"Trebuchet\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(28, 1);\" href=\"#\">Trebuchet</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(21, 4);\">Workshop</a>
|
||||
<span title=\"+10\"> Level 10</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">Academy</a><span title=\"+12\"> Level 15</span> </td>
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u28\" title=\"".U28."\" alt=\"Trebuchet\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(28, 1);\" href=\"#\">Trebuchet</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(21, 4);\">".WORKSHOP."</a>
|
||||
<span title=\"+10\"> ".LEVEL." 10</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a><span title=\"+12\"> ".LEVEL." 15</span> </td>
|
||||
</tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(29) && !$technology->getTech(29)) {
|
||||
echo " <tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u29\" title=\"Chieftain\" alt=\"Chieftain\" src=\"img/x.gif\"/>
|
||||
echo " <tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u29\" title=\"".U29."\" alt=\"Chieftain\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(29, 1);\" href=\"#\">Chieftain</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(14, 4);\">Rally Point</a><span title=\"+9\"> Level 10</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">
|
||||
Academy</a><span title=\"+17\"> Level 20</span></td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(14, 4);\">".RALLYPOINT."</a><span title=\"+9\"> ".LEVEL." 10</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">
|
||||
".ACADEMY."</a><span title=\"+17\"> ".LEVEL." 20</span></td></tr>";
|
||||
}
|
||||
echo " <script type=\"text/javascript\">
|
||||
//<![CDATA[
|
||||
@@ -124,8 +124,8 @@ echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">There are no resear
|
||||
|
||||
$(\"researchFutureLink\").set(\"text\",
|
||||
this.hasClass(\"hide\")
|
||||
? \"show more\"
|
||||
: \"hide more\"
|
||||
? \"".SHOW_MORE."\"
|
||||
: \"".HIDE_MORE."\"
|
||||
);
|
||||
|
||||
return false;
|
||||
@@ -136,7 +136,7 @@ echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">There are no resear
|
||||
}
|
||||
$acares = $technology->grabAcademyRes();
|
||||
if(count($acares) > 0) {
|
||||
echo "<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\"><thead><tr><td>Researching</td><td>Duration</td><td>Complete</td></tr>
|
||||
echo "<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\"><thead><tr><td>".RESEARCHING."</td><td>".DURATION."</td><td>".COMPLETE."</td></tr>
|
||||
</thead><tbody>";
|
||||
$timer = 1;
|
||||
foreach($acares as $aca) {
|
||||
|
||||
+32
-32
@@ -1,7 +1,7 @@
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
<thead><tr>
|
||||
<td>Academy</td>
|
||||
<td>Action</td>
|
||||
<td><?php echo ACADEMY; ?></td>
|
||||
<td><?php echo ACTION; ?></td>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
|
||||
@@ -15,44 +15,44 @@ for($i=32;$i<=39;$i++) {
|
||||
<img class=\"unit u".$i."\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" />
|
||||
<a href=\"#\" onClick=\"return Popup(".$i.",1);\">".$technology->getUnitName($i)."</a>
|
||||
</div>
|
||||
<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"Lumber\" />".${'r'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".${'r'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".${'r'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".${'r'.$i}['crop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"duration\" title=\"duration\" />";
|
||||
<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"".LUMBER."\" />".${'r'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".${'r'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".${'r'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".${'r'.$i}['crop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"duration\" title=\"".DURATION."\" />";
|
||||
echo $generator->getTimeFormat(round(${'r'.$i}['time'] * ($bid22[$village->resarray['f'.$id]]['attri'] / 100)/SPEED));
|
||||
if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) > 1) {
|
||||
echo "|<a href=\"build.php?gid=17&t=3&r1=".${'r'.$i}['wood']."&r2=".${'r'.$i}['clay']."&r3=".${'r'.$i}['iron']."&r4=".${'r'.$i}['crop']."\" title=\"NPC trade\"><img class=\"npc\" src=\"img/x.gif\" alt=\"NPC trade\" title=\"NPC trade\" /></a>";
|
||||
}
|
||||
if(${'r'.$i}['wood'] > $village->maxstore || ${'r'.$i}['clay'] > $village->maxstore || ${'r'.$i}['iron'] > $village->maxstore) {
|
||||
echo "<br><span class=\"none\">Expand warehouse</span></div></td>";
|
||||
echo "<br><span class=\"none\">".EXPAND_WAREHOUSE1."</span></div></td>";
|
||||
echo "<td class=\"none\">
|
||||
<div class=\"none\">Expand<br>warehouse</div>
|
||||
<div class=\"none\">".EXPAND_WAREHOUSE."</div>
|
||||
</td></tr>";
|
||||
}
|
||||
else if(${'r'.$i}['crop'] > $village->maxcrop) {
|
||||
echo "<br><span class=\"none\">Expand granary</span></div></td>";
|
||||
echo "<br><span class=\"none\">".EXPAND_GRANARY1."</span></div></td>";
|
||||
echo "<td class=\"none\">
|
||||
<div class=\"none\">Expand<br>granary</div>
|
||||
<div class=\"none\">".EXPAND_GRANARY."</div>
|
||||
</td></tr>";
|
||||
}
|
||||
else if(${'r'.$i}['wood'] > $village->awood || ${'r'.$i}['clay'] > $village->aclay || ${'r'.$i}['iron'] > $village->airon || ${'r'.$i}['crop'] > $village->acrop) {
|
||||
$time = $technology->calculateAvaliable($i);
|
||||
echo "<br><span class=\"none\">Enough resources ".$time[0]." at ".$time[1]."</span></div></td>";
|
||||
echo "<br><span class=\"none\">".ENOUGH_RESOURCES." ".$time[0]." at ".$time[1]."</span></div></td>";
|
||||
echo "<td class=\"none\">
|
||||
<div class=\"none\">Too few<br>resources</div>
|
||||
<div class=\"none\">".TOO_FEW_RESOURCES."</div>
|
||||
</td></tr>";
|
||||
}
|
||||
else if ( count($acares) > 0 ) {
|
||||
echo "</td>";
|
||||
echo "<td class=\"none\">
|
||||
Research in progress</td></tr>";
|
||||
".RESEARCH_IN_PROGRESS."</td></tr>";
|
||||
}
|
||||
else {
|
||||
else if($session->access != BANNED){
|
||||
echo "</td>";
|
||||
echo "<td class=\"act\">
|
||||
<a class=\"research\" href=\"build.php?id=$id&a=$i&c=".$session->mchecker."\">Research</a></td></tr>";
|
||||
<a class=\"research\" href=\"build.php?id=$id&a=$i&c=".$session->mchecker."\">".RESEARCH."</a></td></tr>";
|
||||
}else{
|
||||
echo "</td>";
|
||||
echo "<td class=\"act\">
|
||||
<a class=\"research\" href=\"banned.php\">Research</a></td></tr>";
|
||||
<a class=\"research\" href=\"banned.php\">".RESEARCH."</a></td></tr>";
|
||||
}
|
||||
$success += 1;
|
||||
}
|
||||
@@ -61,55 +61,55 @@ for($i=32;$i<=39;$i++) {
|
||||
}
|
||||
}
|
||||
if($success == 0) {
|
||||
echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">There are no researches avaliable</div></td>";
|
||||
echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">".RESEARCH_AVAILABLE."</div></td>";
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if($fail > 0) {
|
||||
echo "<p class=\"switch\"><a id=\"researchFutureLink\" href=\"#\" onclick=\"return $('researchFuture').toggle();\">show more</a></p>
|
||||
echo "<p class=\"switch\"><a id=\"researchFutureLink\" href=\"#\" onclick=\"return $('researchFuture').toggle();\">".SHOW_MORE."</a></p>
|
||||
<table id=\"researchFuture\" class=\"build_details hide\" cellspacing=\"1\" cellpadding=\"1\">
|
||||
<thead><tr><td colspan=\"2\">Prerequisites</td></tr><tbody>";
|
||||
<thead><tr><td colspan=\"2\">".PREREQUISITES."</td></tr><tbody>";
|
||||
if(!$technology->meetRRequirement(33) && !$technology->getTech(33)) {
|
||||
echo"<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u33\" title=\"".U33."\" alt=\"".U33."\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(33, 1);\" href=\"#\">".U33."</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">Academy </a>
|
||||
<span title=\"+2\">Level 3</span><br /><a href=\"#\" onclick=\"return Popup(12, 4);\">Blacksmith </a><span title=\"+1\">Level 1</span> </td></tr>";
|
||||
<a onclick=\"return Popup(33, 1);\" href=\"#\">".U33."</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY." </a>
|
||||
<span title=\"+2\">".LEVEL." 3</span><br /><a href=\"#\" onclick=\"return Popup(12, 4);\">".BLACKSMITH." </a><span title=\"+1\">".LEVEL." 1</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(34) && !$technology->getTech(34)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u34\" title=\"".U34."\" alt=\"".U34."\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(34, 1);\" href=\"#\">".U34."</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">Academy </a><span title=\"+2\">Level 1</span><br /><a href=\"#\" onclick=\"return Popup(15, 4);\">Main Building</a>
|
||||
<span title=\"+3\">Level 5</span> </td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY." </a><span title=\"+2\">".LEVEL." 1</span><br /><a href=\"#\" onclick=\"return Popup(15, 4);\">".MAINBUILDING."</a>
|
||||
<span title=\"+3\">".LEVEL." 5</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(35) && !$technology->getTech(35)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u35\" title=\"".U35."\" alt=\"".U35."\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(35, 1);\" href=\"#\">".U35."</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">Academy </a><span title=\"+2\">Level 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">Stable </a>
|
||||
<span title=\"+5\">Level 5</span> </td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY." </a><span title=\"+2\">".LEVEL." 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">".STABLE." </a>
|
||||
<span title=\"+5\">".LEVEL." 5</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(36) && !$technology->getTech(36)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u36\" title=\"".U36."\" alt=\"".U36."\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(36, 1);\" href=\"#\">".U36."</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">Academy </a><span title=\"+2\">Level 15</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">
|
||||
Stable </a><span title=\"+3\">Level 10</span> </td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY." </a><span title=\"+2\">".LEVEL." 15</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">
|
||||
".STABLE." </a><span title=\"+3\">".LEVEL." 10</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(17) && !$technology->getTech(17)) {
|
||||
echo "
|
||||
<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u37\" title=\"".U37."\" alt=\"".U37."\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(37, 1);\" href=\"#\">".U37."</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">Academy </a>
|
||||
<span title=\"+7\">Level 10</span><br /><a href=\"#\" onclick=\"return Popup(21, 4);\">Workshop </a><span title=\"+1\">Level 1</span></td></tr>";
|
||||
<a onclick=\"return Popup(37, 1);\" href=\"#\">".U37."</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY." </a>
|
||||
<span title=\"+7\">".LEVEL." 10</span><br /><a href=\"#\" onclick=\"return Popup(21, 4);\">".WORKSHOP." </a><span title=\"+1\">".LEVEL." 1</span></td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(38) && !$technology->getTech(38)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u38\" title=\"".U38."\" alt=\"".U38."\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(38, 1);\" href=\"#\">".U38."</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(21, 4);\">Workshop</a>
|
||||
<span title=\"+10\">Level 10</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">Academy </a><span title=\"+12\">Level 15</span> </td>
|
||||
<a onclick=\"return Popup(38, 1);\" href=\"#\">".U38."</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(21, 4);\">".WORKSHOP."</a>
|
||||
<span title=\"+10\">".LEVEL." 10</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY." </a><span title=\"+12\">".LEVEL." 15</span> </td>
|
||||
</tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(39) && !$technology->getTech(39)) {
|
||||
echo " <tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u39\" title=\"".U33."\" alt=\"".U33."\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(39, 1);\" href=\"#\">".U39."</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(16, 4);\">Rally Point </a><span title=\"+4\">Level 5</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">
|
||||
Academy </a><span title=\"+17\">Level 20</span></td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(16, 4);\">".RALLYPOINT." </a><span title=\"+4\">".LEVEL." 5</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">
|
||||
".ACADEMY." </a><span title=\"+17\">".LEVEL." 20</span></td></tr>";
|
||||
}
|
||||
echo " <script type=\"text/javascript\">
|
||||
//<![CDATA[
|
||||
@@ -119,8 +119,8 @@ echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">There are no resear
|
||||
|
||||
$(\"researchFutureLink\").set(\"text\",
|
||||
this.hasClass(\"hide\")
|
||||
? \"show more\"
|
||||
: \"hide more\"
|
||||
? \"".SHOW_MORE."\"
|
||||
: \"".HIDE_MORE."\"
|
||||
);
|
||||
|
||||
return false;
|
||||
@@ -131,7 +131,7 @@ echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">There are no resear
|
||||
}
|
||||
//$acares = $technology->grabAcademyRes();
|
||||
if(count($acares) > 0) {
|
||||
echo "<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\"><thead><tr><td>Researching</td><td>Duration</td><td>Complete</td></tr>
|
||||
echo "<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\"><thead><tr><td>".RESEARCHING."</td><td>".DURATION."</td><td>".COMPLETE."</td></tr>
|
||||
</thead><tbody>";
|
||||
$timer = 1;
|
||||
foreach($acares as $aca) {
|
||||
|
||||
+31
-31
@@ -1,7 +1,7 @@
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
<thead><tr>
|
||||
<td>Academy</td>
|
||||
<td>Action</td>
|
||||
<td><?php echo ACADEMY; ?></td>
|
||||
<td><?php echo ACTION; ?></td>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
|
||||
@@ -15,39 +15,39 @@ for($i=42;$i<=49;$i++) {
|
||||
<img class=\"unit u".$i."\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" />
|
||||
<a href=\"#\" onClick=\"return Popup(".$i.",1);\">".$technology->getUnitName($i)."</a>
|
||||
</div>
|
||||
<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"Lumber\" />".${'r'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".${'r'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".${'r'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".${'r'.$i}['crop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"duration\" title=\"duration\" />";
|
||||
<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"".LUMBER."\" />".${'r'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".${'r'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".${'r'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".${'r'.$i}['crop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"duration\" title=\"".DURATION."\" />";
|
||||
echo $generator->getTimeFormat(round(${'r'.$i}['time'] * ($bid22[$village->resarray['f'.$id]]['attri'] / 100)/SPEED));
|
||||
if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) > 1) {
|
||||
echo "|<a href=\"build.php?gid=17&t=3&r1=".${'r'.$i}['wood']."&r2=".${'r'.$i}['clay']."&r3=".${'r'.$i}['iron']."&r4=".${'r'.$i}['crop']."\" title=\"NPC trade\"><img class=\"npc\" src=\"img/x.gif\" alt=\"NPC trade\" title=\"NPC trade\" /></a>";
|
||||
}
|
||||
if(${'r'.$i}['wood'] > $village->maxstore || ${'r'.$i}['clay'] > $village->maxstore || ${'r'.$i}['iron'] > $village->maxstore) {
|
||||
echo "<br><span class=\"none\">Expand warehouse</span></div></td>";
|
||||
echo "<br><span class=\"none\">".EXPAND_WAREHOUSE1."</span></div></td>";
|
||||
echo "<td class=\"none\">
|
||||
<div class=\"none\">Expand<br>warehouse</div>
|
||||
<div class=\"none\">".EXPAND_WAREHOUSE."</div>
|
||||
</td></tr>";
|
||||
}
|
||||
else if(${'r'.$i}['crop'] > $village->maxcrop) {
|
||||
echo "<br><span class=\"none\">Expand granary</span></div></td>";
|
||||
echo "<br><span class=\"none\">".EXPAND_GRANARY1."</span></div></td>";
|
||||
echo "<td class=\"none\">
|
||||
<div class=\"none\">Expand<br>granary</div>
|
||||
<div class=\"none\">".EXPAND_GRANARY."</div>
|
||||
</td></tr>";
|
||||
}
|
||||
else if(${'r'.$i}['wood'] > $village->awood || ${'r'.$i}['clay'] > $village->aclay || ${'r'.$i}['iron'] > $village->airon || ${'r'.$i}['crop'] > $village->acrop) {
|
||||
$time = $technology->calculateAvaliable($i);
|
||||
echo "<br><span class=\"none\">Enough resources ".$time[0]." at ".$time[1]."</span></div></td>";
|
||||
echo "<br><span class=\"none\">".ENOUGH_RESOURCES." ".$time[0]." at ".$time[1]."</span></div></td>";
|
||||
echo "<td class=\"none\">
|
||||
<div class=\"none\">Too few<br>resources</div>
|
||||
<div class=\"none\">".TOO_FEW_RESOURCES."</div>
|
||||
</td></tr>";
|
||||
}
|
||||
else if ( count($acares) > 0 ) {
|
||||
echo "</td>";
|
||||
echo "<td class=\"none\">
|
||||
Research in progress</td></tr>";
|
||||
".RESEARCH_IN_PROGRESS."</td></tr>";
|
||||
}
|
||||
else {
|
||||
echo "</td>";
|
||||
echo "<td class=\"act\">
|
||||
<a class=\"research\" href=\"build.php?id=$id&a=$i&c=".$session->mchecker."\">Research</a></td></tr>";
|
||||
<a class=\"research\" href=\"build.php?id=$id&a=$i&c=".$session->mchecker."\">".RESEARCH."</a></td></tr>";
|
||||
}
|
||||
$success += 1;
|
||||
}
|
||||
@@ -56,55 +56,55 @@ for($i=42;$i<=49;$i++) {
|
||||
}
|
||||
}
|
||||
if($success == 0) {
|
||||
echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">There are no researches avaliable</div></td>";
|
||||
echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">".RESEARCH_AVAILABLE."</div></td>";
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if($fail > 0) {
|
||||
echo "<p class=\"switch\"><a id=\"researchFutureLink\" href=\"#\" onclick=\"return $('researchFuture').toggle();\">show more</a></p>
|
||||
echo "<p class=\"switch\"><a id=\"researchFutureLink\" href=\"#\" onclick=\"return $('researchFuture').toggle();\">".SHOW_MORE."</a></p>
|
||||
<table id=\"researchFuture\" class=\"build_details hide\" cellspacing=\"1\" cellpadding=\"1\">
|
||||
<thead><tr><td colspan=\"2\">Prerequisites</td></tr><tbody>";
|
||||
<thead><tr><td colspan=\"2\">".PREREQUISITES."</td></tr><tbody>";
|
||||
if(!$technology->meetRRequirement(43) && !$technology->getTech(43)) {
|
||||
echo"<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u43\" title=\"".U43."\" alt=\"".U33."\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(43, 1);\" href=\"#\">".U43."</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">Academy </a>
|
||||
<span title=\"+2\">Level 3</span><br /><a href=\"#\" onclick=\"return Popup(12, 4);\">Blacksmith </a><span title=\"+1\">Level 1</span> </td></tr>";
|
||||
<a onclick=\"return Popup(43, 1);\" href=\"#\">".U43."</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY." </a>
|
||||
<span title=\"+2\">".LEVEL." 3</span><br /><a href=\"#\" onclick=\"return Popup(12, 4);\">".BLACKSMITH." </a><span title=\"+1\">".LEVEL." 1</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(44) && !$technology->getTech(44)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u44\" title=\"".U44."\" alt=\"".U44."\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(34, 1);\" href=\"#\">".U44."</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(44, 5);\">Academy </a><span title=\"+2\">Level 1</span><br /><a href=\"#\" onclick=\"return Popup(15, 4);\">Main Building</a>
|
||||
<span title=\"+3\">Level 5</span> </td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(44, 5);\">".ACADEMY." </a><span title=\"+2\">".LEVEL." 1</span><br /><a href=\"#\" onclick=\"return Popup(15, 4);\">".MAINBUILDING."</a>
|
||||
<span title=\"+3\">".LEVEL." 5</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(45) && !$technology->getTech(45)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u45\" title=\"".U45."\" alt=\"".U45."\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(45, 1);\" href=\"#\">".U45."</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(45, 4);\">Academy </a><span title=\"+2\">Level 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">Stable </a>
|
||||
<span title=\"+5\">Level 5</span> </td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(45, 4);\">".ACADEMY." </a><span title=\"+2\">".LEVEL." 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">".STABLE." </a>
|
||||
<span title=\"+5\">".LEVEL." 5</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(46) && !$technology->getTech(46)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u46\" title=\"".U46."\" alt=\"".U46."\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(46, 1);\" href=\"#\">".U46."</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">Academy </a><span title=\"+2\">Level 15</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">
|
||||
Stable </a><span title=\"+3\">Level 10</span> </td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY." </a><span title=\"+2\">".LEVEL." 15</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">
|
||||
".STABLE." </a><span title=\"+3\">".LEVEL." 10</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(47) && !$technology->getTech(47)) {
|
||||
echo "
|
||||
<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u47\" title=\"".U47."\" alt=\"".U47."\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(47, 1);\" href=\"#\">".U47."</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">Academy </a>
|
||||
<span title=\"+7\">Level 10</span><br /><a href=\"#\" onclick=\"return Popup(21, 4);\">Workshop </a><span title=\"+1\">Level 1</span></td></tr>";
|
||||
<a onclick=\"return Popup(47, 1);\" href=\"#\">".U47."</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY." </a>
|
||||
<span title=\"+7\">".LEVEL." 10</span><br /><a href=\"#\" onclick=\"return Popup(21, 4);\">".WORKSHOP." </a><span title=\"+1\">".LEVEL." 1</span></td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(48) && !$technology->getTech(48)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u48\" title=\"".U48."\" alt=\"".U48."\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(48, 1);\" href=\"#\">".U48."</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(21, 4);\">Workshop</a>
|
||||
<span title=\"+10\">Level 10</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">Academy </a><span title=\"+12\">Level 15</span> </td>
|
||||
<a onclick=\"return Popup(48, 1);\" href=\"#\">".U48."</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(21, 4);\">".WORKSHOP."</a>
|
||||
<span title=\"+10\">".LEVEL." 10</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY." </a><span title=\"+12\">".LEVEL." 15</span> </td>
|
||||
</tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(49) && !$technology->getTech(49)) {
|
||||
echo " <tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u49\" title=\"".U49."\" alt=\"".U43."\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(49, 1);\" href=\"#\">".U49."</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(16, 4);\">Rally Point </a><span title=\"+4\">Level 5</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">
|
||||
Academy </a><span title=\"+17\">Level 20</span></td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(16, 4);\">".RALLYPOINT." </a><span title=\"+4\">".LEVEL." 5</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">
|
||||
".ACADEMY." </a><span title=\"+17\">".LEVEL." 20</span></td></tr>";
|
||||
}
|
||||
echo " <script type=\"text/javascript\">
|
||||
//<![CDATA[
|
||||
@@ -114,8 +114,8 @@ echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">There are no resear
|
||||
|
||||
$(\"researchFutureLink\").set(\"text\",
|
||||
this.hasClass(\"hide\")
|
||||
? \"show more\"
|
||||
: \"hide more\"
|
||||
? \"".SHOW_MORE."\"
|
||||
: \"".HIDE_MORE."\"
|
||||
);
|
||||
|
||||
return false;
|
||||
@@ -126,7 +126,7 @@ echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">There are no resear
|
||||
}
|
||||
//$acares = $technology->grabAcademyRes();
|
||||
if(count($acares) > 0) {
|
||||
echo "<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\"><thead><tr><td>Researching</td><td>Duration</td><td>Complete</td></tr>
|
||||
echo "<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\"><thead><tr><td>".RESEARCHING."</td><td>".DURATION."</td><td>".COMPLETE."</td></tr>
|
||||
</thead><tbody>";
|
||||
$timer = 1;
|
||||
foreach($acares as $aca) {
|
||||
|
||||
+12
-12
@@ -25,23 +25,23 @@ include("next.tpl");
|
||||
}
|
||||
?>
|
||||
<div id="build" class="gid23"><a href="#" onClick="return Popup(23,4);" class="build_logo">
|
||||
<img class="building g23" src="img/x.gif" alt="Cranny" title="Cranny" />
|
||||
<img class="building g23" src="img/x.gif" alt="Cranny" title="<?php echo CRANNY; ?>" />
|
||||
</a>
|
||||
<h1>Cranny <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">The cranny is used to hide some of your resources when the village is attacked. These resources cannot be stolen.</p>
|
||||
<h1><?php echo CRANNY; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo CRANNY_DESC; ?></p>
|
||||
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="build_value">
|
||||
<tr>
|
||||
<th>Currently hidden units per resource:</th>
|
||||
<th><?php echo CURRENT_HIDDEN_UNITS; ?></th>
|
||||
<?php
|
||||
if($session->tribe == 3) {
|
||||
?>
|
||||
<td><b><?php echo $bid23[$village->resarray['f'.$id]]['attri']*2*CRANNY_CAPACITY; ?></b> units</td>
|
||||
<td><b><?php echo $bid23[$village->resarray['f'.$id]]['attri']*2*CRANNY_CAPACITY; ?></b> <?php echo UNITS; ?></td>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<td><b><?php echo $bid23[$village->resarray['f'.$id]]['attri']*CRANNY_CAPACITY; ?></b> units</td>
|
||||
<td><b><?php echo $bid23[$village->resarray['f'.$id]]['attri']*CRANNY_CAPACITY; ?></b> <?php echo UNITS; ?></td>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
@@ -51,27 +51,27 @@ include("next.tpl");
|
||||
if(!$building->isMax($village->resarray['f'.$id.'t'],$id)) {
|
||||
if($next<=10){
|
||||
?>
|
||||
<th>Hidden units per resource at level <?php echo $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; ?>:</th>
|
||||
<th><?php echo HIDDEN_UNITS_LEVEL; ?> <?php echo $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; ?>:</th>
|
||||
<?php
|
||||
if($session->tribe == 3) {
|
||||
?>
|
||||
<td><b><?php echo $bid23[$village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master]['attri']*2*CRANNY_CAPACITY*$artefact_bouns*$good_effect/$bad_effect; ?></b> units</td>
|
||||
<td><b><?php echo $bid23[$village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master]['attri']*2*CRANNY_CAPACITY*$artefact_bouns*$good_effect/$bad_effect; ?></b> <?php echo UNITS; ?></td>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<td><b><?php echo $bid23[$village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master]['attri']*CRANNY_CAPACITY*$artefact_bouns*$good_effect/$bad_effect; ?></b> units</td>
|
||||
<td><b><?php echo $bid23[$village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master]['attri']*CRANNY_CAPACITY*$artefact_bouns*$good_effect/$bad_effect; ?></b> <?php echo UNITS; ?></td>
|
||||
<?php
|
||||
}}else{
|
||||
?>
|
||||
<th>Hidden units per resource at level 20:</th>
|
||||
<th><?php echo HIDDEN_UNITS_LEVEL; ?> 20:</th>
|
||||
<?php
|
||||
if($session->tribe == 3) {
|
||||
?>
|
||||
<td><b><?php echo $bid23[10]['attri']*2*CRANNY_CAPACITY*$artefact_bouns*$good_effect/$bad_effect; ?></b> units</td>
|
||||
<td><b><?php echo $bid23[10]['attri']*2*CRANNY_CAPACITY*$artefact_bouns*$good_effect/$bad_effect; ?></b> <?php echo UNITS; ?></td>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<td><b><?php echo $bid23[10]['attri']*CRANNY_CAPACITY*$artefact_bouns*$good_effect/$bad_effect; ?></b> units</td>
|
||||
<td><b><?php echo $bid23[10]['attri']*CRANNY_CAPACITY*$artefact_bouns*$good_effect/$bad_effect; ?></b> <?php echo UNITS; ?></td>
|
||||
<?php
|
||||
}}}
|
||||
?>
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
<div id="build" class="gid24"><a href="#" onClick="return Popup(24,4);" class="build_logo">
|
||||
<img class="building g24" src="img/x.gif" alt="Town Hall" title="Town Hall" />
|
||||
<img class="building g24" src="img/x.gif" alt="Town Hall" title="<?php echo TOWNHALL; ?>" />
|
||||
</a>
|
||||
<h1>Town Hall <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">You can hold pompous celebrations in the Town Hall. Such a celebration increases your culture points. Building up your Town Hall to a higher level will decrease the length of the celebration.
|
||||
<h1><?php echo TOWNHALL; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo TOWNHALL_DESC; ?>
|
||||
</p>
|
||||
<?php
|
||||
if ($building->getTypeLevel(24) > 0) {
|
||||
include("Templates/Build/24_1.tpl");
|
||||
include("Templates/Build/24_2.tpl");
|
||||
} else {
|
||||
echo "<p><b>Celebrations can commence when the town hall is completed.</b><br>\n";
|
||||
echo "<p><b>".CELEBRATIONS_COMMENCE_TOWNHALL."</b><br>\n";
|
||||
}
|
||||
|
||||
include("upgrade.tpl");
|
||||
|
||||
+16
-16
@@ -1,8 +1,8 @@
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Celebrations</td>
|
||||
<td>Action</td>
|
||||
<td><?php echo CELEBRATIONS; ?></td>
|
||||
<td><?php echo ACTION; ?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -13,63 +13,63 @@
|
||||
$inuse = $database->getVillageField($village->wid, 'celebration');
|
||||
$time = Time();
|
||||
$i = 1;
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\">".$cel[$i]['name']." (".$cel[$i]['attri']." culture points)</div>
|
||||
<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"Lumber\" />".$cel[$i]['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".$cel[$i]['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".$cel[$i]['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".$cel[$i]['crop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"duration\" title=\"duration\" />";
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\">".$cel[$i]['name']." (".$cel[$i]['attri']." ".CULTURE_POINTS.")</div>
|
||||
<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"".LUMBER."\" />".$cel[$i]['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".$cel[$i]['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".$cel[$i]['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".$cel[$i]['crop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"duration\" title=\"".DURATION."\" />";
|
||||
echo $generator->getTimeFormat(round($cel[$i]['time'] * ($bid24[$building->getTypeLevel(24)]['attri'] / 100)/SPEED));
|
||||
if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
|
||||
echo "|<a href=\"build.php?gid=17&t=3&r1=".$cel[$i]['wood']."&r2=".$cel[$i]['clay']."&r3=".$cel[$i]['iron']."&r4=".$cel[$i]['crop']."\" title=\"NPC trade\"><img class=\"npc\" src=\"img/x.gif\" alt=\"NPC trade\" title=\"NPC trade\" /></a>";
|
||||
}
|
||||
if($inuse > $time){
|
||||
echo "<td class=\"act\">
|
||||
<div class=\"none\">Celebration</br>in progress</div>
|
||||
<div class=\"none\">".CELEBRATIONS_IN_PROGRESS."</div>
|
||||
</td></tr>";
|
||||
}
|
||||
else if($cel[$i]['wood'] > $village->awood || $cel[$i]['clay'] > $village->aclay || $cel[$i]['iron'] > $village->airon || $cel[$i]['crop'] > $village->acrop) {
|
||||
if($village->getProd("crop")>0){
|
||||
$time = $technology->calculateAvaliable(24,$cel[$i]);
|
||||
echo "<br><span class=\"none\">Enough resources ".$time[0]." at ".$time[1]."</span></div></td>";
|
||||
echo "<br><span class=\"none\">".ENOUGH_RESOURCES." ".$time[0]." at ".$time[1]."</span></div></td>";
|
||||
} else {
|
||||
echo "<br><span class=\"none\">Crop production is negative so you will never reach the required resources</span></div></td>";
|
||||
echo "<br><span class=\"none\">".CROP_NEGATIVE."</span></div></td>";
|
||||
}
|
||||
echo "<td class=\"act\"><div class=\"none\">Too few<br>resources</div></td></tr>";
|
||||
echo "<td class=\"act\"><div class=\"none\">".TOO_FEW_RESOURCES."</div></td></tr>";
|
||||
}
|
||||
else {
|
||||
echo "</td>";
|
||||
echo "<td class=\"act\">";
|
||||
echo "<a class=\"research\" href=\"celebration.php?type=$i&id=$id\">hold</a></td></tr>";
|
||||
echo "<a class=\"research\" href=\"celebration.php?type=$i&id=$id\">".HOLD."</a></td></tr>";
|
||||
}
|
||||
|
||||
if($level >= 10){
|
||||
$level = $village->resarray['f'.$id];
|
||||
echo "<tr><td class=\"desc\">
|
||||
<div class=\"tit\">
|
||||
Great celebration (2000 culture points)
|
||||
".GREAT_CELEBRATIONS." (2000 ".CULTURE_POINTS.")
|
||||
</div>
|
||||
<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"Lumber\" />29700|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />33250|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />32000|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />6700|<img class=\"clock\" src=\"img/x.gif\" alt=\"duration\" title=\"duration\" />";
|
||||
<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"".LUMBER."\" />29700|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />33250|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />32000|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />6700|<img class=\"clock\" src=\"img/x.gif\" alt=\"duration\" title=\"".DURATION."\" />";
|
||||
echo $generator->getTimeFormat(round($gc[$level]/SPEED));
|
||||
if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) > 1) {
|
||||
echo "|<a href=\"build.php?gid=17&t=3&r1=29700&r2=33250&r3=32000&r4=6700\" title=\"NPC trade\"><img class=\"npc\" src=\"img/x.gif\" alt=\"NPC trade\" title=\"NPC trade\" /></a>";
|
||||
}
|
||||
if($inuse > $time){
|
||||
echo "<td class=\"act\">
|
||||
<div class=\"none\">Celebration<br />in progress</div>
|
||||
<div class=\"none\">".CELEBRATIONS_IN_PROGRESS."</div>
|
||||
</td></tr>";
|
||||
}
|
||||
else if(29700 > $village->awood || 33250 > $village->aclay || 32000 > $village->airon || 6700 > $village->acrop) {
|
||||
if($village->getProd("crop")>0){
|
||||
$time = $technology->calculateAvaliable(24,$cel[2]);
|
||||
echo "<br><span class=\"none\">Enough resources ".$time[0]." at ".$time[1]."</span></div></td>";
|
||||
echo "<br><span class=\"none\">".ENOUGH_RESOURCES." ".$time[0]." at ".$time[1]."</span></div></td>";
|
||||
} else {
|
||||
echo "<br><span class=\"none\">Crop production is negative so you will never reach the required resources</span></div></td>";
|
||||
echo "<br><span class=\"none\">".CROP_NEGATIVE."</span></div></td>";
|
||||
}
|
||||
echo "<td class=\"act\">
|
||||
<div class=\"none\">Too few<br>resources</div>
|
||||
<div class=\"none\">".TOO_FEW_RESOURCES."</div>
|
||||
</td></tr>";
|
||||
}
|
||||
else {
|
||||
echo "</td>";
|
||||
echo "<td class=\"act\">
|
||||
<a class=\"research\" href=\"celebration.php?type=2&id=$id\">hold</a></td></tr>";
|
||||
<a class=\"research\" href=\"celebration.php?type=2&id=$id\">".HOLD."</a></td></tr>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
<div id="build" class="gid25"><h1>Residence <span class="level">level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<div id="build" class="gid25"><h1><?php echo RESIDENCE; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">
|
||||
<a href="#" onClick="return Popup(25,4, 'gid');"
|
||||
class="build_logo"> <img
|
||||
class="building g25"
|
||||
src="img/x.gif" alt="Residence"
|
||||
title="Residence" /> </a>
|
||||
The residence is a small palace, where the king or queen lives when (s)he visits the village. The residence protects the village against enemies who want to conquer it.</p>
|
||||
title="<?php echo RESIDENCE; ?>" /> </a>
|
||||
<?php echo RESIDENCE_DESC; ?></p>
|
||||
|
||||
<?php
|
||||
if ($village->capital == 1) {
|
||||
echo "<p class=\"act\">This is your capital</p>";
|
||||
echo "<p class=\"act\">".CAPITAL."</p>";
|
||||
}
|
||||
|
||||
include("25_menu.tpl");
|
||||
@@ -18,7 +18,7 @@ if($village->resarray['f'.$id] >= 10){
|
||||
include ("25_train.tpl");
|
||||
}
|
||||
else{
|
||||
echo '<div class="c">In order to found a new village you need a level 10 or 20 residence and 3 settlers. In order to conquer a new village you need a level 10 or 20 residence and a senator, chief or chieftain.</div>';
|
||||
echo '<div class="c">'.RESIDENCE_TRAIN_DESC.'</div>';
|
||||
}
|
||||
|
||||
include("upgrade.tpl");
|
||||
|
||||
+10
-10
@@ -1,28 +1,28 @@
|
||||
<div id="build" class="gid25"><h1>Residence <span class="level">level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<div id="build" class="gid25"><h1><?php echo RESIDENCE; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">
|
||||
<a href="#" onClick="return Popup(25,4, 'gid');"
|
||||
class="build_logo"> <img
|
||||
class="building g25"
|
||||
src="img/x.gif" alt="Residence"
|
||||
title="Residence" /> </a>
|
||||
The residence is a small palace, where the king or queen lives when (s)he visits the village. The residence protects the village against enemies who want to conquer it.</p>
|
||||
title="<?php echo RESIDENCE; ?>" /> </a>
|
||||
<?php echo RESIDENCE_DESC; ?></p>
|
||||
|
||||
<?php include("25_menu.tpl"); ?>
|
||||
|
||||
<p>In order to extend your empire you need culture points. These culture points increase in the course of time and do so faster as your building levels increase.</p>
|
||||
<p><?php echo RESIDENCE_CULTURE_DESC; ?></p>
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="build_value">
|
||||
<tr>
|
||||
<th>Production of this village:</th>
|
||||
<th><?php echo PRODUCTION_POINTS; ?></th>
|
||||
<?php if($database->getVillageField($village->wid, 'natar') == 0){ ?>
|
||||
<td><b><?php echo $database->getVillageField($village->wid, 'cp'); ?></b> Culture points per day</td>
|
||||
<td><b><?php echo $database->getVillageField($village->wid, 'cp'); ?></b> <?php echo POINTS_DAY; ?></td>
|
||||
<?php }else{ ?>
|
||||
<td><b>0</b> Culture points per day</td>
|
||||
<td><b>0</b> <?php echo POINTS_DAY; ?></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Production of all villages:</th>
|
||||
<td><b><?php echo $database->getVSumField($session->uid, 'cp'); ?></b> Culture points per day</td>
|
||||
<th><?php echo PRODUCTION_ALL_POINTS; ?></th>
|
||||
<td><b><?php echo $database->getVSumField($session->uid, 'cp'); ?></b> <?php echo POINTS_DAY; ?></td>
|
||||
</tr>
|
||||
</table><p>Your villages have produced <b><?php echo $session->cp; ?></b> points in total. To found or conquer a new village you need <b><?php $mode = CP; $total = count($database->getProfileVillages($session->uid)); echo ${'cp'.$mode}[$total+1]; ?></b> points.</p>
|
||||
</table><p><?php echo VILLAGES_PRODUCED; ?> <b><?php echo $session->cp; ?></b> <?php echo POINTS_NEED; ?> <b><?php $mode = CP; $total = count($database->getProfileVillages($session->uid)); echo ${'cp'.$mode}[$total+1]; ?></b> <?php echo POINTS; ?>.</p>
|
||||
</div>
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<div id="build" class="gid25"><h1>Residence <span class="level">level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<div id="build" class="gid25"><h1><?php echo RESIDENCE; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">
|
||||
<a href="#" onClick="return Popup(25,4, 'gid');"
|
||||
class="build_logo"> <img
|
||||
class="building g25"
|
||||
src="img/x.gif" alt="Residence"
|
||||
title="Residence" /> </a>
|
||||
The residence is a small palace, where the king or queen lives when (s)he visits the village. The residence protects the village against enemies who want to conquer it.</p>
|
||||
title="<?php echo RESIDENCE; ?>" /> </a>
|
||||
<?php echo RESIDENCE_DESC; ?></p>
|
||||
|
||||
|
||||
<?php include("25_menu.tpl"); ?>
|
||||
|
||||
By attacking with senators, chiefs or chieftains a village's loyalty can be brought down. If it reaches zero, the village joins the realm of the attacker. The loyalty of this village is currently at <b><?php echo floor($database->getVillageField($village->wid,'loyalty')); ?></b> percent.</div>
|
||||
<?php echo RESIDENCE_LOYALTY_DESC; ?> <b><?php echo floor($database->getVillageField($village->wid,'loyalty')); ?></b> <?php echo PERCENT; ?>.</div>
|
||||
|
||||
+10
-10
@@ -1,24 +1,24 @@
|
||||
<div id="build" class="gid25"><h1>Residence <span class="level">level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<div id="build" class="gid25"><h1><?php echo RESIDENCE; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">
|
||||
<a href="#" onClick="return Popup(25,4, 'gid');"
|
||||
class="build_logo"> <img
|
||||
class="building g25"
|
||||
src="img/x.gif" alt="Residence"
|
||||
title="Residence" /> </a>
|
||||
The residence is a small palace, where the king or queen lives when (s)he visits the village. The residence protects the village against enemies who want to conquer it.</p>
|
||||
title="<?php echo RESIDENCE; ?>" /> </a>
|
||||
<?php echo RESIDENCE_DESC; ?></p>
|
||||
|
||||
<?php include("25_menu.tpl"); ?>
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="expansion">
|
||||
<thead><tr>
|
||||
<th colspan="6"><a name="h2"></a>Villages founded or conquered by this village</th>
|
||||
<th colspan="6"><a name="h2"></a><?php echo CONQUERED_BY_VILLAGE; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">Village</td>
|
||||
<td>Player</td>
|
||||
<td>Inhabitants</td>
|
||||
<td>Coordinates</td>
|
||||
<td>Date</td>
|
||||
<td colspan="2"><?php echo VILLAGE; ?></td>
|
||||
<td><?php echo PLAYER; ?></td>
|
||||
<td><?php echo INHABITANTS; ?></td>
|
||||
<td><?php echo COORDINATES; ?></td>
|
||||
<td><?php echo DATE; ?></td>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<?php
|
||||
@@ -48,7 +48,7 @@ echo '
|
||||
}
|
||||
}
|
||||
else{
|
||||
echo '<tr><td colspan="6" class="none">No other village has been founded or conquered by this village yet.</td></tr>';
|
||||
echo '<tr><td colspan="6" class="none">'.NONE_CONQUERED_BY_VILLAGE.'</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody></table></div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
<div id="textmenu">
|
||||
<a href="build.php?id=<?php echo $id; ?>" <?php if(!isset($_GET['s'])) { echo "class=\"selected\""; } ?>>Train</a>
|
||||
| <a href="build.php?id=<?php echo $id; ?>&s=2" <?php if(isset($_GET['s']) && $_GET['s'] == 2) { echo "class=\"selected\""; } ?>>Culture points</a>
|
||||
| <a href="build.php?id=<?php echo $id; ?>&s=3" <?php if(isset($_GET['s']) && $_GET['s'] == 3) { echo "class=\"selected\""; } ?>>Loyalty</a>
|
||||
| <a href="build.php?id=<?php echo $id; ?>&s=4" <?php if(isset($_GET['s']) && $_GET['s'] == 4) { echo "class=\"selected\""; } ?>>Expansion</a>
|
||||
<a href="build.php?id=<?php echo $id; ?>" <?php if(!isset($_GET['s'])) { echo "class=\"selected\""; } ?>><?php echo TRAIN; ?></a>
|
||||
| <a href="build.php?id=<?php echo $id; ?>&s=2" <?php if(isset($_GET['s']) && $_GET['s'] == 2) { echo "class=\"selected\""; } ?>><?php echo CULTURE_POINTS; ?></a>
|
||||
| <a href="build.php?id=<?php echo $id; ?>&s=3" <?php if(isset($_GET['s']) && $_GET['s'] == 3) { echo "class=\"selected\""; } ?>><?php echo LOYALTY; ?></a>
|
||||
| <a href="build.php?id=<?php echo $id; ?>&s=4" <?php if(isset($_GET['s']) && $_GET['s'] == 4) { echo "class=\"selected\""; } ?>><?php echo EXPANSION; ?></a>
|
||||
</div>
|
||||
@@ -4,9 +4,9 @@
|
||||
echo "
|
||||
<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\">
|
||||
<thead><tr>
|
||||
<td>Training</td>
|
||||
<td>Duration</td>
|
||||
<td>Finished</td>
|
||||
<td>".TRAINING."</td>
|
||||
<td>".DURATION."</td>
|
||||
<td>".FINISHED."</td>
|
||||
</tr></thead>
|
||||
<tbody>";
|
||||
$TrainCount = 0;
|
||||
@@ -28,7 +28,7 @@
|
||||
}
|
||||
echo $time[1];
|
||||
} ?>
|
||||
</tr><tr class="next"><td colspan="3">The next unit will be finished in <span id="timer2"><?php echo $NextFinished; ?></span></td></tr>
|
||||
</tr><tr class="next"><td colspan="3"><?php echo UNIT_FINISHED; ?> <span id="timer2"><?php echo $NextFinished; ?></span></td></tr>
|
||||
</tbody></table>
|
||||
<?php }
|
||||
?>
|
||||
|
||||
@@ -36,9 +36,9 @@
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Name</td>
|
||||
<td>Quantity</td>
|
||||
<td>Max</td>
|
||||
<td><?php echo NAME; ?></td>
|
||||
<td><?php echo QUANTITY; ?></td>
|
||||
<td><?php echo MAX; ?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -50,8 +50,8 @@
|
||||
echo "<tr><td class=\"desc\">
|
||||
<div class=\"tit\">
|
||||
<img class=\"unit u".$i."\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" />
|
||||
<a href=\"#\" onClick=\"return Popup(".$i.",1);\">".$technology->getUnitName($i)."</a> <span class=\"info\">(Available: ".$village->unitarray['u'.$i].")</span></div>
|
||||
<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"Lumber\" />".${'u'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".${'u'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".${'u'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".${'u'.$i}['crop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"duration\" title=\"duration\" />";
|
||||
<a href=\"#\" onClick=\"return Popup(".$i.",1);\">".$technology->getUnitName($i)."</a> <span class=\"info\">(".AVAILABLE.": ".$village->unitarray['u'.$i].")</span></div>
|
||||
<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"".LUMBER."\" />".${'u'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".${'u'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".${'u'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".${'u'.$i}['crop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"duration\" title=\"".DURATION."\" />";
|
||||
$dur=round(${'u'.$i}['time'] * ($bid25[$village->resarray['f'.$id]]['attri'] / 100) / SPEED * $artefact_bonus2 / $artefact_bonus);
|
||||
$foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid);
|
||||
if(count($foolartefact) > 0){
|
||||
@@ -82,7 +82,7 @@ echo "<td class=\"val\"><input type=\"text\" class=\"text\" name=\"t".$i."\" val
|
||||
</form>
|
||||
<?php
|
||||
} else {
|
||||
echo '<div class="c">In order to found a new village you need a level 10 or 20 residence and 3 settlers. In order to conquer a new village you need a level 10 or 20 residence and a senator, chief or chieftain.</div>';
|
||||
echo '<div class="c">'.RESIDENCE_TRAIN_DESC.'</div>';
|
||||
}
|
||||
include ("25_progress.tpl");
|
||||
?>
|
||||
|
||||
+33
-35
@@ -19,52 +19,50 @@ if($_POST AND $_GET['action'] == 'change_capital') {
|
||||
if($data2['f' . $i] > 10) {
|
||||
$query2 = mysql_query('UPDATE `' . TB_PREFIX . 'fdata` SET `f' . $i . '` = 10 WHERE `vref` = ' . $data2['vref']) or die(mysql_error());
|
||||
}
|
||||
}
|
||||
|
||||
for($i=19; $i<=40; ++$i) {
|
||||
}
|
||||
for($i=19; $i<=40; ++$i) {
|
||||
if($data2['f' . $i . 't'] == 34) {
|
||||
$query3 = mysql_query('UPDATE `' . TB_PREFIX . 'fdata` SET `f' . $i . 't` = 0, `f' . $i . '` = 0 WHERE `vref` = ' . $data2['vref']) or die(mysql_error());
|
||||
}
|
||||
}
|
||||
|
||||
for($i=19; $i<=40; ++$i) {
|
||||
}
|
||||
|
||||
for($i=19; $i<=40; ++$i) {
|
||||
if($data2['f' . $i . 't'] == 29 or $data2['f' . $i . 't'] == 30 or $data2['f' . $i . 't'] == 38 or $data2['f' . $i . 't'] == 39 or $data2['f' . $i . 't'] == 42) {
|
||||
$query3 = mysql_query('UPDATE `' . TB_PREFIX . 'fdata` SET `f' . $i . 't` = 0, `f' . $i . '` = 0 WHERE `vref` = ' . $village->wid) or die(mysql_error());
|
||||
}
|
||||
}
|
||||
|
||||
$query3 = mysql_query('UPDATE `' . TB_PREFIX . 'vdata` SET `capital` = 0 WHERE `wref` = ' . $data1['wref']);
|
||||
$query4 = mysql_query('UPDATE `' . TB_PREFIX . 'vdata` SET `capital` = 1 WHERE `wref` = ' . $village->wid);
|
||||
}
|
||||
} else {
|
||||
$error = '<br /><font color="red">password is wrong</font><br />';
|
||||
}
|
||||
$query3 = mysql_query('UPDATE `' . TB_PREFIX . 'vdata` SET `capital` = 0 WHERE `wref` = ' . $data1['wref']);
|
||||
$query4 = mysql_query('UPDATE `' . TB_PREFIX . 'vdata` SET `capital` = 1 WHERE `wref` = ' . $village->wid);
|
||||
}
|
||||
} else {
|
||||
$error = '<br /><font color="red">'.LOGIN_PW_ERROR.'</font><br />';
|
||||
$_SESSION['error_p'] = $error;
|
||||
$_SESSION['time_p'] = time();
|
||||
print '<script language="javascript">location.href="build.php?id=' . $building->getTypeField(26) . '&confirm=yes";</script>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div id="build" class="gid26"><h1>Palace <span class="level">level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<div id="build" class="gid26"><h1><?php echo PALACE; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">
|
||||
<a href="#" onClick="return Popup(26,4, 'gid');"
|
||||
class="build_logo"> <img
|
||||
class="building g26"
|
||||
src="img/x.gif" alt="Palace"
|
||||
title="Palace" /> </a>
|
||||
The king or queen of the empire lives in the palace. Only one palace can exist in your realm at a time. You need a palace in order to proclaim a village to be your capital.</p>
|
||||
<a href="#" onClick="return Popup(26,4, 'gid');"
|
||||
class="build_logo"> <img
|
||||
class="building g26"
|
||||
src="img/x.gif" alt="Palace"
|
||||
title="<?php echo PALACE; ?>" /> </a>
|
||||
<?php echo PALACE_DESC; ?></p>
|
||||
|
||||
<?php
|
||||
<?php
|
||||
if ($building->getTypeLevel(26) > 0) {
|
||||
|
||||
include("26_menu.tpl");
|
||||
include("26_menu.tpl");
|
||||
|
||||
$test=$database->getAvailableExpansionTraining();
|
||||
|
||||
if($village->resarray['f'.$id] >= 10){
|
||||
include ("26_train.tpl");
|
||||
include ("26_train.tpl");
|
||||
}
|
||||
else{
|
||||
echo '<div class="c">In order to found a new village you need a level 10, 15 or 20 palace and 3 settlers. In order to conquer a new village you need a level 10, 15 or 20 palace and a senator, chief or chieftain.</div>';
|
||||
echo '<div class="c">'.PALACE_TRAIN_DESC.'</div>';
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -74,24 +72,24 @@ $query = mysql_query('SELECT * FROM `' . TB_PREFIX . 'vdata` WHERE `owner` = ' .
|
||||
$data = mysql_fetch_assoc($query);
|
||||
if($data['wref'] == $village->wid) {
|
||||
?>
|
||||
<p class="none">This is your capital</p>
|
||||
<?php
|
||||
<p class="none"><?php echo CAPITAL; ?></p>
|
||||
<?php
|
||||
} else {
|
||||
if($_GET['confirm'] == '') {
|
||||
print '<p><a href="?id=' . $building->getTypeField(26) . '&confirm=yes">» change capital</a></p>';
|
||||
print '<p><a href="?id=' . $building->getTypeField(26) . '&confirm=yes">» '.CHANGE_CAPITAL.'</a></p>';
|
||||
} else {
|
||||
print '<p>Are you sure, that you want to change your capital?<br /><b>You can\'t undo this!</b><br />For security you must enter your password to confirm:<br />
|
||||
<form method="post" action="build.php?id=' . $building->getTypeField(26) . '&action=change_capital">
|
||||
' . $_SESSION['error_p'] . '
|
||||
password: <input type="password" name="pass" /><br />
|
||||
<input type="image" id="btn_ok" class="dynamic_img" value="ok" name="s1" src="img/x.gif" alt="train" />
|
||||
</form>
|
||||
</p>';
|
||||
<form method="post" action="build.php?id=' . $building->getTypeField(26) . '&action=change_capital">
|
||||
' . $_SESSION['error_p'] . '
|
||||
'.PASSWORD.': <input type="password" name="pass" /><br />
|
||||
<input type="image" id="btn_ok" class="dynamic_img" value="ok" name="s1" src="img/x.gif" alt="train" />
|
||||
</form>
|
||||
</p>';
|
||||
}
|
||||
}
|
||||
} else {
|
||||
echo "<b>Palace under construction</b>";
|
||||
echo "<b><?php echo PALACE_CONSTRUCTION; ?></b>";
|
||||
}
|
||||
include("upgrade.tpl");
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,27 +1,27 @@
|
||||
<div id="build" class="gid26"><h1>Palace <span class="level">level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<div id="build" class="gid26"><h1><?php echo PALACE; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">
|
||||
<a href="#" onClick="return Popup(26,4, 'gid');"
|
||||
class="build_logo"> <img
|
||||
class="building g26"
|
||||
src="img/x.gif" alt="Palace"
|
||||
title="Palace" /> </a>
|
||||
The king or queen of the empire lives in the palace. Only one palace can exist in your realm at a time. You need a palace in order to proclaim a village to be your capital.</p>
|
||||
<?php echo PALACE_DESC; ?></p>
|
||||
|
||||
<?php include("26_menu.tpl"); ?>
|
||||
|
||||
<p>In order to extend your empire you need culture points. These culture points increase in the course of time and do so faster as your building levels increase.</p>
|
||||
<p><?php echo RESIDENCE_CULTURE_DESC; ?></p>
|
||||
<table cellpadding="1" cellspacing="1" id="build_value">
|
||||
<tr>
|
||||
<th>Production of this village:</th>
|
||||
<th><?php echo PRODUCTION_POINTS; ?></th>
|
||||
<?php if($database->getVillageField($village->wid, 'natar') == 0){ ?>
|
||||
<td><b><?php echo $database->getVillageField($village->wid, 'cp'); ?></b> Culture points per day</td>
|
||||
<td><b><?php echo $database->getVillageField($village->wid, 'cp'); ?></b> <?php echo POINTS_DAY; ?></td>
|
||||
<?php }else{ ?>
|
||||
<td><b>0</b> Culture points per day</td>
|
||||
<td><b>0</b> <?php echo POINTS_DAY; ?></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Production of all villages:</th>
|
||||
<td><b><?php echo $database->getVSumField($session->uid, 'cp'); ?></b> Culture points per day</td>
|
||||
<th><?php echo PRODUCTION_ALL_POINTS; ?></th>
|
||||
<td><b><?php echo $database->getVSumField($session->uid, 'cp'); ?></b> <?php echo POINTS_DAY; ?></td>
|
||||
</tr>
|
||||
</table><p>Your villages have produced <b><?php echo $session->cp; ?></b> points in total. To found or conquer a new village you need <b><?php $mode = CP; $total = count($database->getProfileVillages($session->uid)); echo ${'cp'.$mode}[$total+1]; ?></b> points.</p>
|
||||
</table><p><?php echo VILLAGES_PRODUCED; ?> <b><?php echo $session->cp; ?></b> <?php echo POINTS_NEED; ?> <b><?php $mode = CP; $total = count($database->getProfileVillages($session->uid)); echo ${'cp'.$mode}[$total+1]; ?></b> <?php echo POINTS; ?>.</p>
|
||||
</div>
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<div id="build" class="gid26"><h1>Palace <span class="level">level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<div id="build" class="gid26"><h1><?php echo PALACE; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">
|
||||
<a href="#" onClick="return Popup(26,4, 'gid');"
|
||||
class="build_logo"> <img
|
||||
class="building g26"
|
||||
src="img/x.gif" alt="Palace"
|
||||
title="Palace" /> </a>
|
||||
The king or queen of the empire lives in the palace. Only one palace can exist in your realm at a time. You need a palace in order to proclaim a village to be your capital.</p>
|
||||
title="<?php echo PALACE; ?>" /> </a>
|
||||
<?php echo PALACE_DESC; ?></p>
|
||||
|
||||
|
||||
<?php include("26_menu.tpl"); ?>
|
||||
|
||||
By attacking with senators, chiefs or chieftains a village's loyalty can be brought down. If it reaches zero, the village joins the realm of the attacker. The loyalty of this village is currently at <b><?php echo floor($database->getVillageField($village->wid,'loyalty')); ?></b> percent.</div>
|
||||
<?php echo RESIDENCE_LOYALTY_DESC; ?> <b><?php echo floor($database->getVillageField($village->wid,'loyalty')); ?></b> <?php echo PERCENT; ?>.</div>
|
||||
|
||||
+10
-10
@@ -1,25 +1,25 @@
|
||||
<div id="build" class="gid26"><h1>Palace <span class="level">level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<div id="build" class="gid26"><h1><?php echo PALACE; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">
|
||||
<a href="#" onClick="return Popup(26,4, 'gid');"
|
||||
class="build_logo"> <img
|
||||
class="building g26"
|
||||
src="img/x.gif" alt="Palace"
|
||||
title="Palace" /> </a>
|
||||
title="<?php echo PALACE; ?>" /> </a>
|
||||
|
||||
The king or queen of the empire lives in the palace. Only one palace can exist in your realm at a time. You need a palace in order to proclaim a village to be your capital.
|
||||
<?php echo PALACE_DESC; ?>
|
||||
|
||||
<?php include("26_menu.tpl"); ?>
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="expansion">
|
||||
<thead><tr>
|
||||
<th colspan="6"><a name="h2"></a>Villages founded or conquered by this village</th>
|
||||
<th colspan="6"><a name="h2"></a><?php echo CONQUERED_BY_VILLAGE; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">Village</td>
|
||||
<td>Player</td>
|
||||
<td>Inhabitants</td>
|
||||
<td>Coordinates</td>
|
||||
<td>Date</td>
|
||||
<td colspan="2"><?php echo VILLAGE; ?></td>
|
||||
<td><?php echo PLAYER; ?></td>
|
||||
<td><?php echo INHABITANTS; ?></td>
|
||||
<td><?php echo COORDINATES; ?></td>
|
||||
<td><?php echo DATE; ?></td>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<?php
|
||||
@@ -49,7 +49,7 @@ echo '
|
||||
}
|
||||
}
|
||||
else{
|
||||
echo '<tr><td colspan="6" class="none">No other village has been founded or conquered by this village yet.</td></tr>';
|
||||
echo '<tr><td colspan="6" class="none">'.NONE_CONQUERED_BY_VILLAGE.'</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody></table></div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
<div id="textmenu">
|
||||
<a href="build.php?id=<?php echo $id; ?>" <?php if(!isset($_GET['s'])) { echo "class=\"selected\""; } ?>>Train</a>
|
||||
| <a href="build.php?id=<?php echo $id; ?>&s=2" <?php if(isset($_GET['s']) && $_GET['s'] == 2) { echo "class=\"selected\""; } ?>>Culture points</a>
|
||||
| <a href="build.php?id=<?php echo $id; ?>&s=3" <?php if(isset($_GET['s']) && $_GET['s'] == 3) { echo "class=\"selected\""; } ?>>Loyalty</a>
|
||||
| <a href="build.php?id=<?php echo $id; ?>&s=4" <?php if(isset($_GET['s']) && $_GET['s'] == 4) { echo "class=\"selected\""; } ?>>Expansion</a>
|
||||
<a href="build.php?id=<?php echo $id; ?>" <?php if(!isset($_GET['s'])) { echo "class=\"selected\""; } ?>><?php echo TRAIN; ?></a>
|
||||
| <a href="build.php?id=<?php echo $id; ?>&s=2" <?php if(isset($_GET['s']) && $_GET['s'] == 2) { echo "class=\"selected\""; } ?>><?php echo CULTURE_POINTS; ?></a>
|
||||
| <a href="build.php?id=<?php echo $id; ?>&s=3" <?php if(isset($_GET['s']) && $_GET['s'] == 3) { echo "class=\"selected\""; } ?>><?php echo LOYALTY; ?></a>
|
||||
| <a href="build.php?id=<?php echo $id; ?>&s=4" <?php if(isset($_GET['s']) && $_GET['s'] == 4) { echo "class=\"selected\""; } ?>><?php echo EXPANSION; ?></a>
|
||||
</div>
|
||||
@@ -4,9 +4,9 @@
|
||||
echo "
|
||||
<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\">
|
||||
<thead><tr>
|
||||
<td>Training</td>
|
||||
<td>Duration</td>
|
||||
<td>Finished</td>
|
||||
<td>".TRAINING."</td>
|
||||
<td>".DURATION."</td>
|
||||
<td>".FINISHED."</td>
|
||||
</tr></thead>
|
||||
<tbody>";
|
||||
$TrainCount = 0;
|
||||
@@ -28,7 +28,7 @@
|
||||
}
|
||||
echo $time[1];
|
||||
} ?>
|
||||
</tr><tr class="next"><td colspan="3">The next unit will be finished in <span id="timer2"><?php echo $NextFinished; ?></span></td></tr>
|
||||
</tr><tr class="next"><td colspan="3"><?php echo UNIT_FINISHED; ?> <span id="timer2"><?php echo $NextFinished; ?></span></td></tr>
|
||||
</tbody></table>
|
||||
<?php }
|
||||
?>
|
||||
|
||||
@@ -36,9 +36,9 @@
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Name</td>
|
||||
<td>Quantity</td>
|
||||
<td>Max</td>
|
||||
<td><?php echo NAME; ?></td>
|
||||
<td><?php echo QUANTITY; ?></td>
|
||||
<td><?php echo MAX; ?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -50,8 +50,8 @@
|
||||
echo "<tr><td class=\"desc\">
|
||||
<div class=\"tit\">
|
||||
<img class=\"unit u".$i."\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" />
|
||||
<a href=\"#\" onClick=\"return Popup(".$i.",1);\">".$technology->getUnitName($i)."</a> <span class=\"info\">(Available: ".$village->unitarray['u'.$i].")</span></div>
|
||||
<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"Lumber\" />".${'u'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".${'u'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".${'u'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".${'u'.$i}['crop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"duration\" title=\"duration\" />";
|
||||
<a href=\"#\" onClick=\"return Popup(".$i.",1);\">".$technology->getUnitName($i)."</a> <span class=\"info\">(".AVAILABLE.": ".$village->unitarray['u'.$i].")</span></div>
|
||||
<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"".LUMBER."\" />".${'u'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".${'u'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".${'u'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".${'u'.$i}['crop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"duration\" title=\"".DURATION."\" />";
|
||||
$dur=round(${'u'.$i}['time'] * ($bid26[$village->resarray['f'.$id]]['attri'] / 100) / SPEED * $artefact_bonus2 / $artefact_bonus);
|
||||
$foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid);
|
||||
if(count($foolartefact) > 0){
|
||||
@@ -82,7 +82,7 @@ echo "<td class=\"val\"><input type=\"text\" class=\"text\" name=\"t".$i."\" val
|
||||
</form>
|
||||
<?php
|
||||
} else {
|
||||
echo '<div class="c">In order to found a new village you need a level 10, 15 or 20 palace and 3 settlers. In order to conquer a new village you need a level 10, 15 or 20 palace and a senator, chief or chieftain.</div>';
|
||||
echo '<div class="c">'.PALACE_TRAIN_DESC.'</div>';
|
||||
}
|
||||
include ("26_progress.tpl");
|
||||
?>
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
<body>
|
||||
<div id="build" class="gid27">
|
||||
<a href="#" onclick="return Popup(27,4);" class="build_logo"><img class="building g27" src="img/x.gif" alt="Treasury" title="Treasury"></a>
|
||||
<a href="#" onclick="return Popup(27,4);" class="build_logo"><img class="building g27" src="img/x.gif" alt="Treasury" title="<?php echo TREASURY; ?>"></a>
|
||||
|
||||
<h1>Treasury <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<h1><?php echo TREASURY; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
|
||||
<p class="build_desc">The riches of your empire are kept in the treasury. The treasury has room for one treasure. After you have captured an artefact it takes 24 hours on a normal server or 12 hours on a thrice speed server to be effective.</p>
|
||||
<p class="build_desc"><?php echo TREASURY_DESC; ?></p>
|
||||
<?php
|
||||
|
||||
include("27_menu.tpl");
|
||||
|
||||
+98
-98
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
$artefact1 = $database->getOwnArtefactInfo3($session->uid);
|
||||
$wref = $village->wid;
|
||||
$coor = $database->getCoor($wref);
|
||||
function getDistance($coorx1, $coory1, $coorx2, $coory2) {
|
||||
$artefact1 = $database->getOwnArtefactInfo3($session->uid);
|
||||
$wref = $village->wid;
|
||||
$coor = $database->getCoor($wref);
|
||||
function getDistance($coorx1, $coory1, $coorx2, $coory2) {
|
||||
$max = 2 * WORLD_MAX + 1;
|
||||
$x1 = intval($coorx1);
|
||||
$y1 = intval($coory1);
|
||||
@@ -16,134 +16,134 @@
|
||||
?>
|
||||
<div class="gid27">
|
||||
<body>
|
||||
<table id="own" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="4">Own artefacts</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>Name</td>
|
||||
<td>Village</td>
|
||||
<td>Conquered</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<table id="own" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="4"><?php echo OWN_ARTIFACTS; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><?php echo NAME; ?></td>
|
||||
<td><?php echo VILLAGE; ?></td>
|
||||
<td><?php echo CONQUERED; ?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if (count($artefact1)==0){
|
||||
echo '<tr><td colspan="4" class="none">You do not own any artefacts.</td></tr>';
|
||||
if (count($artefact1)==0){
|
||||
echo '<tr><td colspan="4" class="none">'.ANY_ARTIFACTS.'</td></tr>';
|
||||
} else {
|
||||
foreach($artefact1 as $artefact){
|
||||
$coor2 = $database->getCoor($artefact['vref']);
|
||||
foreach($artefact1 as $artefact){
|
||||
$coor2 = $database->getCoor($artefact['vref']);
|
||||
if($artefact['size'] == 1 && $artefact['type'] != 11){
|
||||
$reqlvl = 10;
|
||||
$effect = "village";
|
||||
}else{
|
||||
if($artefact['type'] != 11){
|
||||
if($artefact['type'] != 11){
|
||||
$reqlvl = 20;
|
||||
}else{
|
||||
$reqlvl = 10;
|
||||
}
|
||||
$effect = "account";
|
||||
}
|
||||
echo '<tr><td class="icon"><img class="artefact_icon_' . $artefact['type'] . '" src="img/x.gif"></td>';
|
||||
echo '<td class="nam">
|
||||
<a href="build.php?id=' . $id . '&show='.$artefact['id'].'">' . $artefact['name'] . '</a> <span class="bon">' . $artefact['effect'] . '</span>
|
||||
<div class="info">
|
||||
Treasury <b>' . $reqlvl . '</b>, Effect <b>' . $effect . '</b>
|
||||
</div>
|
||||
</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $artefact['vref'] . '&c=' . $generator->getMapCheck($artefact['vref']) . '">' . $database->getVillageField($artefact['vref'], "name") . '</a></td>';
|
||||
echo '<td class="dist">' . date("d/m/Y H:i", $artefact['conquered']) . '</td></tr>';
|
||||
}
|
||||
}
|
||||
}else{
|
||||
$reqlvl = 10;
|
||||
}
|
||||
$effect = "account";
|
||||
}
|
||||
echo '<tr><td class="icon"><img class="artefact_icon_' . $artefact['type'] . '" src="img/x.gif"></td>';
|
||||
echo '<td class="nam">
|
||||
<a href="build.php?id=' . $id . '&show='.$artefact['id'].'">' . $artefact['name'] . '</a> <span class="bon">' . $artefact['effect'] . '</span>
|
||||
<div class="info">
|
||||
Treasury <b>' . $reqlvl . '</b>, Effect <b>' . $effect . '</b>
|
||||
</div>
|
||||
</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $artefact['vref'] . '&c=' . $generator->getMapCheck($artefact['vref']) . '">' . $database->getVillageField($artefact['vref'], "name") . '</a></td>';
|
||||
echo '<td class="dist">' . date("d/m/Y H:i", $artefact['conquered']) . '</td></tr>';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table id="near" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="4">Artefacts in your area</th>
|
||||
</tr>
|
||||
<table id="near" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="4"><?php echo ARTIFACTS_AREA; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<tr>
|
||||
<td></td>
|
||||
|
||||
<td>Name</td>
|
||||
<td><?php echo NAME; ?></td>
|
||||
|
||||
<td>Player</td>
|
||||
<td><?php echo PLAYER; ?></td>
|
||||
|
||||
<td>Distance</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<td><?php echo DISTANCE; ?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if(mysql_num_rows(mysql_query("SELECT * FROM " . TB_PREFIX . "artefacts")) == 0) {
|
||||
echo '<td colspan="4" class="none">There is no artefacts in your area.</td>';
|
||||
if(mysql_num_rows(mysql_query("SELECT * FROM " . TB_PREFIX . "artefacts")) == 0) {
|
||||
echo '<td colspan="4" class="none">'.NO_ARTIFACTS_AREA.'</td>';
|
||||
} else {
|
||||
|
||||
|
||||
function haversine($l1, $o1, $l2, $o2) {
|
||||
$l1 = deg2rad($l1);
|
||||
$sinl1 = sin($l1);
|
||||
$l2 = deg2rad($l2);
|
||||
$o1 = deg2rad($o1);
|
||||
$o2 = deg2rad($o2);
|
||||
function haversine($l1, $o1, $l2, $o2) {
|
||||
$l1 = deg2rad($l1);
|
||||
$sinl1 = sin($l1);
|
||||
$l2 = deg2rad($l2);
|
||||
$o1 = deg2rad($o1);
|
||||
$o2 = deg2rad($o2);
|
||||
|
||||
return (7926 - 26 * $sinl1) * asin(min(1, 0.707106781186548 * sqrt((1 - (sin($l2) * $sinl1) - cos($l1) * cos($l2) * cos($o2 - $o1)))));
|
||||
}
|
||||
return (7926 - 26 * $sinl1) * asin(min(1, 0.707106781186548 * sqrt((1 - (sin($l2) * $sinl1) - cos($l1) * cos($l2) * cos($o2 - $o1)))));
|
||||
}
|
||||
|
||||
|
||||
unset($reqlvl);
|
||||
unset($effect);
|
||||
$arts = mysql_query("SELECT * FROM " . TB_PREFIX . "artefacts");
|
||||
$rows = array();
|
||||
while($row = mysql_fetch_array($arts)) {
|
||||
$query = mysql_query('SELECT * FROM `' . TB_PREFIX . 'wdata` WHERE `id` = ' . $row['vref']);
|
||||
$coor2 = mysql_fetch_assoc($query);
|
||||
unset($reqlvl);
|
||||
unset($effect);
|
||||
$arts = mysql_query("SELECT * FROM " . TB_PREFIX . "artefacts");
|
||||
$rows = array();
|
||||
while($row = mysql_fetch_array($arts)) {
|
||||
$query = mysql_query('SELECT * FROM `' . TB_PREFIX . 'wdata` WHERE `id` = ' . $row['vref']);
|
||||
$coor2 = mysql_fetch_assoc($query);
|
||||
|
||||
|
||||
$dist = round(getDistance($coor['x'], $coor['y'], $coor2['x'], $coor2['y']),1);
|
||||
|
||||
$dist = round(getDistance($coor['x'], $coor['y'], $coor2['x'], $coor2['y']),1);
|
||||
|
||||
$rows[$dist] = $row;
|
||||
$rows[$dist] = $row;
|
||||
|
||||
}
|
||||
ksort($rows);
|
||||
foreach($rows as $row) {
|
||||
}
|
||||
ksort($rows);
|
||||
foreach($rows as $row) {
|
||||
$wref = $village->wid;
|
||||
$coor = $database->getCoor($wref);
|
||||
$wref2 = $row['vref'];
|
||||
$coor2 = $database->getCoor($wref2);
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span>';
|
||||
echo '<div class="info">';
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span>';
|
||||
echo '<div class="info">';
|
||||
if($row['size'] == 1 && $row['type'] != 11){
|
||||
$reqlvl = 10;
|
||||
$effect = "village";
|
||||
$effect = VILLAGE;
|
||||
}else{
|
||||
if($row['type'] != 11){
|
||||
if($row['type'] != 11){
|
||||
$reqlvl = 20;
|
||||
}else{
|
||||
$reqlvl = 10;
|
||||
}
|
||||
$effect = "account";
|
||||
}
|
||||
echo '<div class="info">Treasury <b>' . $reqlvl . '</b>, Effect <b>' . $effect . '</b>';
|
||||
echo '</div></td><td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="dist">'.getDistance($coor['x'], $coor['y'], $coor2['x'], $coor2['y']).'</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
}else{
|
||||
$reqlvl = 10;
|
||||
}
|
||||
$effect = ACCOUNT;
|
||||
}
|
||||
echo '<div class="info">'.TREASURY.' <b>' . $reqlvl . '</b>, '.EFFECT.' <b>' . $effect . '</b>';
|
||||
echo '</div></td><td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="dist">'.getDistance($coor['x'], $coor['y'], $coor2['x'], $coor2['y']).'</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
+16
-16
@@ -1,14 +1,14 @@
|
||||
<body>
|
||||
<div id="build" class="gid27">
|
||||
<a href="#" onclick="return Popup(27,4);" class="build_logo"><img class="building g27" src="img/x.gif" alt="Treasury" title="Treasury"></a>
|
||||
<a href="#" onclick="return Popup(27,4);" class="build_logo"><img class="building g27" src="img/x.gif" alt="Treasury" title="<?php echo TREASURY; ?>"></a>
|
||||
|
||||
<h1>Treasury <span class="level">Level <?php
|
||||
<h1><?php echo TREASURY; ?> <span class="level"><?php echo LEVEL; ?> <?php
|
||||
|
||||
echo $village->resarray['f' . $id];
|
||||
|
||||
?></span></h1>
|
||||
|
||||
<p class="build_desc">The riches of your empire are kept in the treasury. The treasury has room for one treasure. After you have captured an artefact it takes 24 hours on a normal server or 12 hours on a thrice speed server to be effective.</p>
|
||||
<p class="build_desc"><?php echo TREASURY_DESC; ?></p>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -19,20 +19,20 @@
|
||||
<table id="show_artefacts" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="4">Small artefacts</th>
|
||||
<th colspan="4"><?php echo SMALL_ARTIFACTS; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>Name</td>
|
||||
<td>Player</td>
|
||||
<td>Alliance</td>
|
||||
<td><?php echo NAME; ?></td>
|
||||
<td><?php echo PLAYER; ?></td>
|
||||
<td><?php echo ALLIANCE; ?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if(mysql_num_rows(mysql_query("SELECT * FROM " . TB_PREFIX . "artefacts")) == 0) {
|
||||
echo '<td colspan="4" class="none">There is no artefacts.</td>';
|
||||
echo '<td colspan="4" class="none">'.NO_ARTIFACTS.'</td>';
|
||||
} else {
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>10</b>, Effect <b>Village</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>10</b>, '.EFFECT.' <b>'.VILLAGE.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
@@ -61,7 +61,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>10</b>, Effect <b>Village</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>10</b>, '.EFFECT.' <b>'.VILLAGE.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
@@ -81,7 +81,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>10</b>, Effect <b>Village</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>10</b>, '.EFFECT.' <b>'.VILLAGE.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
@@ -101,7 +101,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>10</b>, Effect <b>Village</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>10</b>, '.EFFECT.' <b>'.VILLAGE.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
@@ -120,7 +120,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>10</b>, Effect <b>Village</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>10</b>, '.EFFECT.' <b>'.VILLAGE.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
@@ -139,7 +139,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>10</b>, Effect <b>Village</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>10</b>, '.EFFECT.' <b>'.VILLAGE.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
@@ -158,7 +158,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>10</b>, Effect <b>Village</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>10</b>, '.EFFECT.' <b>'.VILLAGE.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
@@ -191,7 +191,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>10</b>, Effect <b>Village</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>10</b>, '.EFFECT.' <b>'.VILLAGE.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
|
||||
+24
-24
@@ -1,14 +1,14 @@
|
||||
<body>
|
||||
<div id="build" class="gid27">
|
||||
<a href="#" onclick="return Popup(27,4);" class="build_logo"><img class="building g27" src="img/x.gif" alt="Treasury" title="Treasury"></a>
|
||||
<a href="#" onclick="return Popup(27,4);" class="build_logo"><img class="building g27" src="img/x.gif" alt="Treasury" title="<?php echo TREASURY; ?>"></a>
|
||||
|
||||
<h1>Treasury <span class="level">Level <?php
|
||||
<h1><?php echo TREASURY; ?> <span class="level"><?php echo LEVEL; ?> <?php
|
||||
|
||||
echo $Account->resarray['f' . $id];
|
||||
|
||||
?></span></h1>
|
||||
|
||||
<p class="build_desc">The riches of your empire are kept in the treasury. The treasury has room for one treasure. After you have captured an artefact it takes 24 hours on a normal server or 12 hours on a thrice speed server to be effective.</p>
|
||||
<p class="build_desc"><?php echo TREASURY_DESC; ?></p>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -19,20 +19,20 @@
|
||||
<table id="show_artefacts" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="4">Big artefacts</th>
|
||||
<th colspan="4"><?php echo LARGE_ARTIFACTS; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>Name</td>
|
||||
<td>Player</td>
|
||||
<td>Alliance</td>
|
||||
<td><?php echo NAME; ?></td>
|
||||
<td><?php echo PLAYER; ?></td>
|
||||
<td><?php echo ALLIANCE; ?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if(mysql_num_rows(mysql_query("SELECT * FROM " . TB_PREFIX . "artefacts")) == 0) {
|
||||
echo '<td colspan="4" class="none">There is no artefacts.</td>';
|
||||
echo '<td colspan="4" class="none">'.NO_ARTIFACTS.'</td>';
|
||||
} else {
|
||||
|
||||
$artefact = mysql_query("SELECT * FROM `" . TB_PREFIX . "artefacts` WHERE size = 2 AND type = 1");
|
||||
@@ -40,7 +40,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>20</b>, Effect <b>Account</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>20</b>, '.EFFECT.' <b>'.ACCOUNT.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
@@ -54,7 +54,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>20</b>, Effect <b>Account</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>20</b>, '.EFFECT.' <b>'.ACCOUNT.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
@@ -74,7 +74,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>20</b>, Effect <b>Account</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>20</b>, '.EFFECT.' <b>'.ACCOUNT.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
@@ -88,7 +88,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>20</b>, Effect <b>Account</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>20</b>, '.EFFECT.' <b>'.ACCOUNT.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
@@ -108,7 +108,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>20</b>, Effect <b>Account</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>20</b>, '.EFFECT.' <b>'.ACCOUNT.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
@@ -122,7 +122,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>20</b>, Effect <b>Account</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>20</b>, '.EFFECT.' <b>'.ACCOUNT.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
@@ -142,7 +142,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>20</b>, Effect <b>Account</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>20</b>, '.EFFECT.' <b>'.ACCOUNT.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
@@ -156,7 +156,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>20</b>, Effect <b>Account</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>20</b>, '.EFFECT.' <b>'.ACCOUNT.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
@@ -175,7 +175,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>20</b>, Effect <b>Account</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>20</b>, '.EFFECT.' <b>'.ACCOUNT.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
@@ -189,7 +189,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>20</b>, Effect <b>Account</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>20</b>, '.EFFECT.' <b>'.ACCOUNT.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
@@ -208,7 +208,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>20</b>, Effect <b>Account</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>20</b>, '.EFFECT.' <b>'.ACCOUNT.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
@@ -222,7 +222,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>20</b>, Effect <b>Account</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>20</b>, '.EFFECT.' <b>'.ACCOUNT.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
@@ -241,7 +241,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>20</b>, Effect <b>Account</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>20</b>, '.EFFECT.' <b>'.ACCOUNT.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
@@ -255,7 +255,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>20</b>, Effect <b>Account</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>20</b>, '.EFFECT.' <b>'.ACCOUNT.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
@@ -274,7 +274,7 @@
|
||||
echo '<tr>';
|
||||
echo '<td class="icon"><img class="artefact_icon_' . $row['type'] . '" src="img/x.gif" alt="" title=""></td>';
|
||||
echo '<td class="nam">';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">Treasury <b>20</b>, Effect <b>Account</b></div>';
|
||||
echo '<a href="build.php?id=' . $id . '&show='.$row['id'].'">' . $row['name'] . '</a> <span class="bon">' . $row['effect'] . '</span><div class="info">'.TREASURY.' <b>20</b>, '.EFFECT.' <b>'.ACCOUNT.'</b></div>';
|
||||
echo '</td>';
|
||||
echo '<td class="pla"><a href="karte.php?d=' . $row['vref'] . '&c=' . $generator->getMapCheck($row['vref']) . '">' . $database->getUserField($row['owner'], "username", 0) . '</a></td>';
|
||||
echo '<td class="al"><a href="allianz.php?aid=' . $database->getUserField($row['owner'], "alliance", 0) . '">' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '</a></td>';
|
||||
@@ -295,4 +295,4 @@
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -6,7 +6,7 @@
|
||||
}
|
||||
|
||||
?>
|
||||
">Own artefacts</a>
|
||||
"><?php echo OWN_ARTIFACTS; ?></a>
|
||||
|
||||
| <a href="build.php?id=<?php echo $id; ?>&t=2" <?php
|
||||
|
||||
@@ -14,12 +14,12 @@
|
||||
echo "class=\"selected\"";
|
||||
}
|
||||
|
||||
?>">Small artefacts</a>
|
||||
?>"><?php echo SMALL_ARTIFACTS; ?></a>
|
||||
|
||||
| <a href="build.php?id=<?php echo $id; ?>&t=3" <?php
|
||||
|
||||
if(isset($_GET['t']) && $_GET['t'] == 3) {
|
||||
echo "class=\"selected\"";
|
||||
}
|
||||
?>">Large artefacts</a>
|
||||
?>"><?php echo LARGE_ARTIFACTS; ?></a>
|
||||
</div>
|
||||
+108
-108
@@ -1,129 +1,129 @@
|
||||
<?php
|
||||
|
||||
$artefact = $database->getArtefactDetails($_GET['show']);
|
||||
if($artefact['size'] == 1 && $artefact['type'] != 11){
|
||||
$artefact = $database->getArtefactDetails($_GET['show']);
|
||||
if($artefact['size'] == 1 && $artefact['type'] != 11){
|
||||
$reqlvl = 10;
|
||||
$effect = "village";
|
||||
$effect = VILLAGE;
|
||||
}else{
|
||||
if($artefact['type'] != 11){
|
||||
if($artefact['type'] != 11){
|
||||
$reqlvl = 20;
|
||||
}else{
|
||||
$reqlvl = 10;
|
||||
}
|
||||
$effect = "account";
|
||||
}
|
||||
if ($artefact['conquered'] >= (time()-86400)){
|
||||
}else{
|
||||
$reqlvl = 10;
|
||||
}
|
||||
$effect = ACCOUNT;
|
||||
}
|
||||
if ($artefact['conquered'] >= (time()-86400)){
|
||||
$active = date("Y-m-d H:i:s",$artefact['conquered']+86400);
|
||||
}else{
|
||||
$active = "Active";
|
||||
$active = ACTIVE;
|
||||
}
|
||||
//// Added by brainiac - thank you
|
||||
if ($artefact['type'] == 8){$kind=$artefact['kind']; $effecty=$artefact['effect2'];}else{$kind=$artefact['type']; $effecty=$artefact['effect'];}
|
||||
switch($kind){
|
||||
case 1:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder="building weaker with";}else{$betterorbadder="building stronger with";}
|
||||
break;
|
||||
case 2:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder="makes troops slowest with";}else{$betterorbadder="makes troops faster with";}
|
||||
break;
|
||||
case 3:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder="spies decrese ability with";}else{$betterorbadder="spies increase ability with";}
|
||||
break;
|
||||
case 4:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder="all troops consume high with";}else{$betterorbadder="all troops consume less with";}
|
||||
break;
|
||||
case 5:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder="troops make slowest with";}else{$betterorbadder="troops make faster with";}
|
||||
break;
|
||||
case 6:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder="you can construct ";}else{$betterorbadder="you can construct ";}
|
||||
break;
|
||||
case 7:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder="cranny capacity is decrese by";}else{$betterorbadder="cranny capacity is increased by";}
|
||||
break;
|
||||
case 8:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder="spies increase ability with";}else{$betterorbadder="spies decrease ability with";}
|
||||
//// Added by brainiac - thank you
|
||||
if ($artefact['type'] == 8){$kind=$artefact['kind']; $effecty=$artefact['effect2'];}else{$kind=$artefact['type']; $effecty=$artefact['effect'];}
|
||||
switch($kind){
|
||||
case 1:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder=BUILDING_WEAKER;}else{$betterorbadder=BUILDING_STRONGER;}
|
||||
break;
|
||||
case 2:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder=TROOPS_SLOWEST;}else{$betterorbadder=TROOPS_FASTER;}
|
||||
break;
|
||||
case 3:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder=SPIES_DECRESE;}else{$betterorbadder=SPIES_INCREASE;}
|
||||
break;
|
||||
case 4:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder=CONSUME_HIGH;}else{$betterorbadder=CONSUME_LESS;}
|
||||
break;
|
||||
case 5:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder=TROOPS_MAKE_SLOWEST;}else{$betterorbadder=TROOPS_MAKE_FASTER;}
|
||||
break;
|
||||
case 6:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder=YOU_CONSTRUCT;}else{$betterorbadder=YOU_CONSTRUCT;}
|
||||
break;
|
||||
case 7:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder=CRANNY_DECRESE;}else{$betterorbadder=CRANNY_INCREASED;}
|
||||
break;
|
||||
case 8:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder=SPIES_INCREASE;}else{$betterorbadder=SPIES_DECRESE;}
|
||||
|
||||
break;
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$bonus=$betterorbadder." ".$effecty."";
|
||||
$bonus=$betterorbadder." ".$effecty."";
|
||||
?>
|
||||
|
||||
<div class="artefact image-6">
|
||||
<table id="art_details" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2"><?php echo $artefact['name'];?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="2" class="desc">
|
||||
<div class="artefact image-6">
|
||||
<table id="art_details" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2"><?php echo $artefact['name'];?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="2" class="desc">
|
||||
|
||||
<span class="detail"><?php echo $artefact['desc'];?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Owner</th>
|
||||
<td>
|
||||
<a href="spieler.php?uid=<?php echo $artefact['owner'];?>"><?php echo $database->getUserField($artefact['owner'],"username",0);?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Village</th>
|
||||
<td>
|
||||
<a href="karte.php?d=<?php echo $artefact['vref'];?>&c=<?php echo $generator->getMapCheck($artefact['vref']);?>"><?php echo $database->getVillageField($artefact['vref'], "name");?> </a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Alliance</th>
|
||||
<td><a href="allianz.php?aid=<?php echo $database->getUserField($artefact['owner'],"alliance",0);?>"><?php echo $database->getAllianceName($database->getUserField($artefact['owner'],"alliance",0)); ?></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Area of effect</th>
|
||||
<td><?php echo $effect; ?></td>
|
||||
</tr>
|
||||
<span class="detail"><?php echo $artefact['desc'];?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo OWNER; ?></th>
|
||||
<td>
|
||||
<a href="spieler.php?uid=<?php echo $artefact['owner'];?>"><?php echo $database->getUserField($artefact['owner'],"username",0);?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo VILLAGE; ?></th>
|
||||
<td>
|
||||
<a href="karte.php?d=<?php echo $artefact['vref'];?>&c=<?php echo $generator->getMapCheck($artefact['vref']);?>"><?php echo $database->getVillageField($artefact['vref'], "name");?> </a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo ALLIANCE; ?></th>
|
||||
<td><a href="allianz.php?aid=<?php echo $database->getUserField($artefact['owner'],"alliance",0);?>"><?php echo $database->getAllianceName($database->getUserField($artefact['owner'],"alliance",0)); ?></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo AREA_EFFECT; ?></th>
|
||||
<td><?php echo $effect; ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>Bonus</th>
|
||||
<td><?php echo $bonus; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo BONUS; ?></th>
|
||||
<td><?php echo $bonus; ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>Required level</th>
|
||||
<td>Treasury level <b><?php echo $reqlvl; ?></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo REQUIRED_LEVEL; ?></th>
|
||||
<td><?php echo TREASURY; ?> <?php echo LEVEL; ?> <b><?php echo $reqlvl; ?></b></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>Time of conquer</th>
|
||||
<td><?php echo date("Y-m-d H:i:s",$artefact['conquered']);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo TIME_CONQUER; ?></th>
|
||||
<td><?php echo date("Y-m-d H:i:s",$artefact['conquered']);?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>Time of activation</th>
|
||||
<td><?php echo $active;?></td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
<table class="art_details" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3">Former owner(s)</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Player</td>
|
||||
<td>Village</td>
|
||||
<td>conquered</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th><?php echo TIME_ACTIVATION; ?></th>
|
||||
<td><?php echo $active;?></td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
<table class="art_details" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3"><?php echo FORMER_OWNER; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo PLAYER; ?></td>
|
||||
<td><?php echo VILLAGE; ?></td>
|
||||
<td><?php echo CONQUERED; ?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td><span class="none"><a href="spieler.php?uid=<?php echo $artefact['owner'];?>"><?php echo $database->getUserField($artefact['owner'],"username",0);?></a></span></td>
|
||||
<td><span class="none"><a href="karte.php?d=<?php echo $artefact['vref'];?>&c=<?php echo $generator->getMapCheck($artefact['vref']);?>"><?php echo $database->getVillageField($artefact['vref'], "name");?> </a></span></td>
|
||||
<td><span class="none"><?php echo date("Y-m-d H:i:s",$artefact['conquered']);?></span></td>
|
||||
<tr>
|
||||
<td><span class="none"><a href="spieler.php?uid=<?php echo $artefact['owner'];?>"><?php echo $database->getUserField($artefact['owner'],"username",0);?></a></span></td>
|
||||
<td><span class="none"><a href="karte.php?d=<?php echo $artefact['vref'];?>&c=<?php echo $generator->getMapCheck($artefact['vref']);?>"><?php echo $database->getVillageField($artefact['vref'], "name");?> </a></span></td>
|
||||
<td><span class="none"><?php echo date("Y-m-d H:i:s",$artefact['conquered']);?></span></td>
|
||||
|
||||
</tr>
|
||||
</tr>
|
||||
|
||||
</tr></tbody></table></div>
|
||||
</tr></tbody></table></div>
|
||||
@@ -2,16 +2,16 @@
|
||||
include("next.tpl");
|
||||
?>
|
||||
<div id="build" class="gid28"><a href="#" onClick="return Popup(28,4);" class="build_logo">
|
||||
<img class="building g28" src="img/x.gif" alt="Trade Office" title="Trade Office" />
|
||||
<img class="building g28" src="img/x.gif" alt="Trade Office" title="<?php echo TRADEOFFICE; ?>" />
|
||||
</a>
|
||||
<h1>Trade Office <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">In the trade office the merchants' carts get improved and equipped with powerful horses. The higher its level the more your merchants are able to carry.</p>
|
||||
<h1><?php echo TRADEOFFICE; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo TRADEOFFICE_DESC; ?></p>
|
||||
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="build_value">
|
||||
<tr>
|
||||
<th>Current merchant load:</th>
|
||||
<td><b><?php echo $bid28[$village->resarray['f'.$id]]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo CURRENT_MERCHANT; ?></th>
|
||||
<td><b><?php echo $bid28[$village->resarray['f'.$id]]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
@@ -19,13 +19,13 @@ include("next.tpl");
|
||||
$next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master;
|
||||
if($next<=20){
|
||||
?>
|
||||
<th>Merchant load at level <?php echo $next; ?>:</th>
|
||||
<td><b><?php echo $bid28[$next]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo MERCHANT_LEVEL; ?> <?php echo $next; ?>:</th>
|
||||
<td><b><?php echo $bid28[$next]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<th>Merchant load at level 20:</th>
|
||||
<td><b><?php echo $bid28[20]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo MERCHANT_LEVEL; ?> 20:</th>
|
||||
<td><b><?php echo $bid28[20]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}}
|
||||
?>
|
||||
|
||||
+11
-11
@@ -1,8 +1,8 @@
|
||||
<div id="build" class="gid29"><a href="#" onClick="return Popup(29,4);" class="build_logo">
|
||||
<img class="building g29" src="img/x.gif" alt="Great Barracks" title="Great Barracks" />
|
||||
<img class="building g29" src="img/x.gif" alt="Great Barracks" title="<?php echo GREATBARRACKS; ?>" />
|
||||
</a>
|
||||
<h1>Great Barracks <span class="level">level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">Foot soldiers are trained in the great barracks. The higher the level of the barracks, the faster the troops are trained.</p>
|
||||
<h1><?php echo GREATBARRACKS; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo GREATBARRACKS_DESC; ?></p>
|
||||
|
||||
<?php if ($building->getTypeLevel(29) > 0) { ?>
|
||||
<form method="POST" name="snd" action="build.php">
|
||||
@@ -10,9 +10,9 @@
|
||||
<input type="hidden" name="ft" value="t3" />
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
<thead><tr>
|
||||
<td>Name</td>
|
||||
<td>Quantity</td>
|
||||
<td>Max</td>
|
||||
<td><?php echo NAME; ?></td>
|
||||
<td><?php echo QUANTITY; ?></td>
|
||||
<td><?php echo MAX; ?></td>
|
||||
</tr></thead><tbody>
|
||||
<?php
|
||||
include("29_train.tpl");
|
||||
@@ -20,16 +20,16 @@
|
||||
<p><input type="image" id="btn_train" class="dynamic_img" value="ok" name="s1" src="img/x.gif" alt="train" /></form></p>
|
||||
<?php
|
||||
} else {
|
||||
echo "<b>Training can commence when great barracks are completed.</b><br>\n";
|
||||
echo "<b>".TRAINING_COMMENCE_GREATBARRACKS."</b><br>\n";
|
||||
}
|
||||
$trainlist = $technology->getTrainingList(5);
|
||||
if(count($trainlist) > 0) {
|
||||
echo "
|
||||
<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\">
|
||||
<thead><tr>
|
||||
<td>Training</td>
|
||||
<td>Duration</td>
|
||||
<td>Finished</td>
|
||||
<td>".TRAINING."</td>
|
||||
<td>".DURATION."</td>
|
||||
<td>".FINISHED."</td>
|
||||
</tr></thead>
|
||||
<tbody>";
|
||||
$TrainCount = 0;
|
||||
@@ -51,7 +51,7 @@
|
||||
}
|
||||
echo $time[1];
|
||||
} ?>
|
||||
</tr><tr class="next"><td colspan="3">The next unit will be finished in <span id="timer2"><?php echo $NextFinished; ?></span></td></tr>
|
||||
</tr><tr class="next"><td colspan="3"><?php echo UNIT_FINISHED; ?> <span id="timer2"><?php echo $NextFinished; ?></span></td></tr>
|
||||
</tbody></table>
|
||||
<?php }
|
||||
include("upgrade.tpl");
|
||||
|
||||
@@ -21,10 +21,10 @@
|
||||
echo "<tr><td class=\"desc\">
|
||||
<div class=\"tit\">
|
||||
<img class=\"unit u".$i."\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" />
|
||||
<a href=\"#\" onClick=\"return Popup(".$i.",1);\"> ".$technology->getUnitName($i)."</a> <span class=\"info\">(Available: ".$village->unitarray['u'.$i].")</span>
|
||||
<a href=\"#\" onClick=\"return Popup(".$i.",1);\"> ".$technology->getUnitName($i)."</a> <span class=\"info\">(".AVAILABLE.": ".$village->unitarray['u'.$i].")</span>
|
||||
</div>
|
||||
<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".(${'u'.$i}['wood']*3)."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".(${'u'.$i}['clay']*3)."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".(${'u'.$i}['iron']*3)."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".(${'u'.$i}['crop']*3)."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />".${'u'.$i}['pop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />";
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".(${'u'.$i}['wood']*3)."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".(${'u'.$i}['clay']*3)."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".(${'u'.$i}['iron']*3)."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".(${'u'.$i}['crop']*3)."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />".${'u'.$i}['pop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />";
|
||||
$dur=round(${'u'.$i}['time'] * ($bid29[$village->resarray['f'.$id]]['attri'] / 100) / SPEED * $artefact_bonus2 / $artefact_bonus);
|
||||
$foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid);
|
||||
if(count($foolartefact) > 0){
|
||||
|
||||
+11
-11
@@ -1,8 +1,8 @@
|
||||
<div id="build" class="gid30"><a href="#" onClick="return Popup(30,4);" class="build_logo">
|
||||
<img class="building g30" src="img/x.gif" alt="Great Stables" title="Great Stables" />
|
||||
<img class="building g30" src="img/x.gif" alt="Great Stables" title="<?php echo GREATSTABLE; ?>" />
|
||||
</a>
|
||||
<h1>Great Stables <span class="level">level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">Cavalry can be trained in the great stable. The higher its level the faster the troops are trained.<br /></p>
|
||||
<h1><?php echo GREATSTABLE; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo GREATSTABLE_DESC; ?><br /></p>
|
||||
|
||||
<?php if ($building->getTypeLevel(30) > 0) { ?>
|
||||
<form method="POST" name="snd" action="build.php">
|
||||
@@ -10,9 +10,9 @@
|
||||
<input type="hidden" name="ft" value="t3" />
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
<thead><tr>
|
||||
<td>Name</td>
|
||||
<td>Quantity</td>
|
||||
<td>Max</td>
|
||||
<td><?php echo NAME; ?></td>
|
||||
<td><?php echo QUANTITY; ?></td>
|
||||
<td><?php echo MAX; ?></td>
|
||||
</tr></thead><tbody>
|
||||
<?php
|
||||
include("30_train.tpl");
|
||||
@@ -20,16 +20,16 @@
|
||||
<p><input type="image" id="btn_train" class="dynamic_img" value="ok" name="s1" src="img/x.gif" alt="train" /></form></p>
|
||||
<?php
|
||||
} else {
|
||||
echo "<b>Training can commence when great stables are completed.</b><br>\n";
|
||||
echo "<b>".TRAINING_COMMENCE_GREATSTABLE."</b><br>\n";
|
||||
}
|
||||
$trainlist = $technology->getTrainingList(6);
|
||||
if(count($trainlist) > 0) {
|
||||
echo "
|
||||
<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\">
|
||||
<thead><tr>
|
||||
<td>Training</td>
|
||||
<td>Duration</td>
|
||||
<td>Finished</td>
|
||||
<td>".TRAINING."</td>
|
||||
<td>".DURATION."</td>
|
||||
<td>".FINISHED."</td>
|
||||
</tr></thead>
|
||||
<tbody>";
|
||||
$TrainCount = 0;
|
||||
@@ -51,7 +51,7 @@
|
||||
}
|
||||
echo $time[1];
|
||||
} ?>
|
||||
</tr><tr class="next"><td colspan="3">The next unit will be finished in <span id="timer2"><?php echo $NextFinished; ?></span></td></tr>
|
||||
</tr><tr class="next"><td colspan="3"><?php echo UNIT_FINISHED; ?> <span id="timer2"><?php echo $NextFinished; ?></span></td></tr>
|
||||
</tbody></table>
|
||||
<?php }
|
||||
include("upgrade.tpl");
|
||||
|
||||
@@ -21,10 +21,10 @@
|
||||
echo "<tr><td class=\"desc\">
|
||||
<div class=\"tit\">
|
||||
<img class=\"unit u".$i."\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" />
|
||||
<a href=\"#\" onClick=\"return Popup(".$i.",1);\"> ".$technology->getUnitName($i)."</a> <span class=\"info\">(Available: ".$village->unitarray['u'.$i].")</span>
|
||||
<a href=\"#\" onClick=\"return Popup(".$i.",1);\"> ".$technology->getUnitName($i)."</a> <span class=\"info\">(".AVAILABLE.": ".$village->unitarray['u'.$i].")</span>
|
||||
</div>
|
||||
<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".(${'u'.$i}['wood']*3)."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".(${'u'.$i}['clay']*3)."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".(${'u'.$i}['iron']*3)."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".(${'u'.$i}['crop']*3)."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />".(${'u'.$i}['pop']-($building->getTypeLevel(41)>=1?1:0))."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />";
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".(${'u'.$i}['wood']*3)."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".(${'u'.$i}['clay']*3)."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".(${'u'.$i}['iron']*3)."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".(${'u'.$i}['crop']*3)."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />".(${'u'.$i}['pop']-($building->getTypeLevel(41)>=1?1:0))."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />";
|
||||
$dur=round(${'u'.$i}['time'] * ($bid30[$village->resarray['f'.$id]]['attri'] * ($building->getTypeLevel(41)>=1?(1/$bid41[$building->getTypeLevel(41)]['attri']):1) / 100) / SPEED * $artefact_bonus2 / $artefact_bonus);
|
||||
$foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid);
|
||||
if(count($foolartefact) > 0){
|
||||
|
||||
@@ -2,27 +2,27 @@
|
||||
include("next.tpl");
|
||||
?>
|
||||
<div id="build" class="gid31">
|
||||
<h1>City Wall <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">By building a City Wall you can protect your village against the barbarian hordes of your enemies. The higher the wall's level, the higher the bonus given to your forces' defence.</p>
|
||||
<h1><?php echo CITYWALL; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo CITYWALL_DESC; ?></p>
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="build_value">
|
||||
<tr>
|
||||
<th>Defence Bonus now:</th>
|
||||
<td><b><?php echo $bid31[$village->resarray['f'.$id]]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo DEFENCE_NOW; ?></th>
|
||||
<td><b><?php echo $bid31[$village->resarray['f'.$id]]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
</tr><tr>
|
||||
<?php
|
||||
if(!$building->isMax($village->resarray['f'.$id.'t'],$id)) {
|
||||
$next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master;
|
||||
if($next<=20){
|
||||
?>
|
||||
<th>Defence Bonus at level <?php echo $next; ?>:</th>
|
||||
<th><?php echo DEFENCE_LEVEL; ?> <?php echo $next; ?>:</th>
|
||||
|
||||
<td><b><?php echo $bid31[$next]['attri']; ?></b> Percent</td>
|
||||
<td><b><?php echo $bid31[$next]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<th>Defence Bonus at level 20:</th>
|
||||
<td><b><?php echo $bid31[20]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo DEFENCE_LEVEL; ?> 20:</th>
|
||||
<td><b><?php echo $bid31[20]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,27 +2,27 @@
|
||||
include("next.tpl");
|
||||
?>
|
||||
<div id="build" class="gid32">
|
||||
<h1>Earth Wall <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">By building a Earth Wall you can protect your village against the barbarian hordes of your enemies. The higher the wall's level, the higher the bonus given to your forces' defence.</p>
|
||||
<h1><?php echo EARTHWALL; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo EARTHWALL_DESC; ?></p>
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="build_value">
|
||||
<tr>
|
||||
<th>Defence Bonus now:</th>
|
||||
<td><b><?php echo $bid32[$village->resarray['f'.$id]]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo DEFENCE_NOW; ?></th>
|
||||
<td><b><?php echo $bid32[$village->resarray['f'.$id]]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
</tr><tr>
|
||||
<?php
|
||||
if(!$building->isMax($village->resarray['f'.$id.'t'],$id)) {
|
||||
$next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master;
|
||||
if($next<=20){
|
||||
?>
|
||||
<th>Defence Bonus at level <?php echo $next; ?>:</th>
|
||||
<th><?php echo DEFENCE_LEVEL; ?> <?php echo $next; ?>:</th>
|
||||
|
||||
<td><b><?php echo $bid32[$next]['attri']; ?></b> Percent</td>
|
||||
<td><b><?php echo $bid32[$next]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<th>Defence Bonus at level 20:</th>
|
||||
<td><b><?php echo $bid32[20]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo DEFENCE_LEVEL; ?> 20:</th>
|
||||
<td><b><?php echo $bid32[20]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,27 +2,27 @@
|
||||
include("next.tpl");
|
||||
?>
|
||||
<div id="build" class="gid33">
|
||||
<h1>Palisade <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">By building a Palisade you can protect your village against the barbarian hordes of your enemies. The higher the wall's level, the higher the bonus given to your forces' defence.</p>
|
||||
<h1><?php echo PALISADE; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo PALISADE_DESC; ?></p>
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="build_value">
|
||||
<tr>
|
||||
<th>Defence Bonus now:</th>
|
||||
<td><b><?php echo $bid33[$village->resarray['f'.$id]]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo DEFENCE_NOW; ?></th>
|
||||
<td><b><?php echo $bid33[$village->resarray['f'.$id]]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
</tr><tr>
|
||||
<?php
|
||||
if(!$building->isMax($village->resarray['f'.$id.'t'],$id)) {
|
||||
$next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master;
|
||||
if($next<=20){
|
||||
?>
|
||||
<th>Defence Bonus at level <?php echo $next; ?>:</th>
|
||||
<th><?php echo DEFENCE_LEVEL; ?> <?php echo $next; ?>:</th>
|
||||
|
||||
<td><b><?php echo $bid33[$next]['attri']; ?></b> Percent</td>
|
||||
<td><b><?php echo $bid33[$next]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<th>Defence Bonus at level 20:</th>
|
||||
<td><b><?php echo $bid33[20]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo DEFENCE_LEVEL; ?> 20:</th>
|
||||
<td><b><?php echo $bid33[20]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
include("next.tpl");
|
||||
?>
|
||||
<div id="build" class="gid34"><a href="#" onClick="return Popup(34,4);" class="build_logo">
|
||||
<img class="building g34" src="img/x.gif" alt="Stonemason's Lodge" title="Stonemason's Lodge" />
|
||||
<img class="building g34" src="img/x.gif" alt="Stonemason's Lodge" title="<?php echo STONEMASON; ?>" />
|
||||
</a>
|
||||
<h1>Stonemason's Lodge <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">The stonemason's lodge is an expert at cutting stone. The further the building is extended the higher the stability of the village's buildings.</p>
|
||||
<h1><?php echo STONEMASON; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo STONEMASON_DESC; ?></p>
|
||||
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="build_value">
|
||||
<tr>
|
||||
<th>Current stability bonus:</th>
|
||||
<td><b><?php echo $bid34[$village->resarray['f'.$id]]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo CURRENT_STABILITY; ?></th>
|
||||
<td><b><?php echo $bid34[$village->resarray['f'.$id]]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
@@ -19,13 +19,13 @@ include("next.tpl");
|
||||
$next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master;
|
||||
if($next<=20){
|
||||
?>
|
||||
<th>Stability bonus at level <?php echo $next; ?>:</th>
|
||||
<td><b><?php echo $bid34[$next]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo STABILITY_LEVEL; ?> <?php echo $next; ?>:</th>
|
||||
<td><b><?php echo $bid34[$next]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<th>Stability bonus at level 20:</th>
|
||||
<td><b><?php echo $bid34[20]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo STABILITY_LEVEL; ?> 20:</th>
|
||||
<td><b><?php echo $bid34[20]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}}
|
||||
?>
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
include("next.tpl");
|
||||
?>
|
||||
<div id="build" class="gid35"><a href="#" onClick="return Popup(35,4);" class="build_logo">
|
||||
<img class="building g35" src="img/x.gif" alt="Brewery" title="Brewery" />
|
||||
<img class="building g35" src="img/x.gif" alt="Brewery" title="<?php echo BREWERY; ?>" />
|
||||
</a>
|
||||
<h1>Brewery <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">Tasty mead is brewed in the Brewery and later quaffed by the soldiers during the celebrations.</p>
|
||||
<h1><?php echo BREWERY; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo BREWERY_DESC; ?></p>
|
||||
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="build_value">
|
||||
<tr>
|
||||
<th>Current bonus:</th>
|
||||
<td><b><?php echo $bid35[$village->resarray['f'.$id]]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo CURRENT_BONUS; ?></th>
|
||||
<td><b><?php echo $bid35[$village->resarray['f'.$id]]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
@@ -19,13 +19,13 @@ include("next.tpl");
|
||||
$next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master;
|
||||
if($next<=10){
|
||||
?>
|
||||
<th>Bonus at level <?php echo $next; ?>:</th>
|
||||
<td><b><?php echo $bid35[$next]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo BONUS_LEVEL; ?> <?php echo $next; ?>:</th>
|
||||
<td><b><?php echo $bid35[$next]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<th>Bonus at level 10:</th>
|
||||
<td><b><?php echo $bid35[10]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo BONUS_LEVEL; ?> 10:</th>
|
||||
<td><b><?php echo $bid35[10]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}}
|
||||
?>
|
||||
|
||||
+25
-25
@@ -1,20 +1,20 @@
|
||||
<?php
|
||||
include("next.tpl");
|
||||
?>
|
||||
<div id="build" class="gid36"><h1>Trapper <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<div id="build" class="gid36"><h1><?php echo TRAPPER; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">
|
||||
<a href="#" onClick="return Popup(36,4, 'gid');"
|
||||
class="build_logo"> <img
|
||||
class="building g36"
|
||||
src="img/x.gif" alt="Trapper"
|
||||
title="Trapper" /> </a>
|
||||
The trapper protects your village with well hidden traps. This means that unwary enemies can be imprisoned and won't be able to harm your village anymore. </p>
|
||||
title="<?php echo TRAPPER; ?>" /> </a>
|
||||
<?php echo TRAPPER_DESC; ?> </p>
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="build_value">
|
||||
<tr>
|
||||
<th>Currect maximum traps to train:</th>
|
||||
<th><?php echo CURRENT_TRAPS; ?></th>
|
||||
|
||||
<td><b><?php echo $bid36[$village->resarray['f'.$id]]['attri']*TRAPPER_CAPACITY; ?></b> Traps</td>
|
||||
<td><b><?php echo $bid36[$village->resarray['f'.$id]]['attri']*TRAPPER_CAPACITY; ?></b> <?php echo TRAPS; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
@@ -22,13 +22,13 @@ include("next.tpl");
|
||||
$next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master;
|
||||
if($next<=20){
|
||||
?>
|
||||
<th>Maximum traps to train at level <?php echo $next; ?>:</th>
|
||||
<td><b><?php echo $bid36[$next]['attri']*TRAPPER_CAPACITY; ?></b> Traps</td>
|
||||
<th><?php echo TRAPS_LEVEL; ?> <?php echo $next; ?>:</th>
|
||||
<td><b><?php echo $bid36[$next]['attri']*TRAPPER_CAPACITY; ?></b> <?php echo TRAPS; ?></td>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<th>Maximum traps to train at level 20:</th>
|
||||
<td><b><?php echo $bid36[20]['attri']*TRAPPER_CAPACITY; ?></b> Traps</td>
|
||||
<th><?php echo TRAPS_LEVEL; ?> 20:</th>
|
||||
<td><b><?php echo $bid36[20]['attri']*TRAPPER_CAPACITY; ?></b> <?php echo TRAPS; ?></td>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
@@ -36,7 +36,7 @@ include("next.tpl");
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<p>Your currently have <b><?php echo $village->unitarray['u99']; ?></b> traps, <b><?php echo $village->unitarray['u99o']; ?></b> of which are occupied.</p>
|
||||
<p><?php echo CURRENT_HAVE; ?> <b><?php echo $village->unitarray['u99']; ?></b> <?php echo TRAPS; ?>, <b><?php echo $village->unitarray['u99o']; ?></b> <?php echo WHICH_OCCUPIED; ?></p>
|
||||
<?php if ($building->getTypeLevel(36) > 0) { ?>
|
||||
<form method="POST" name="snd" action="build.php">
|
||||
<input type="hidden" name="id" value="<?php echo $id; ?>" />
|
||||
@@ -45,9 +45,9 @@ include("next.tpl");
|
||||
<thead>
|
||||
|
||||
<tr>
|
||||
<td>Name</td>
|
||||
<td>Quantity</td>
|
||||
<td>Max</td>
|
||||
<td><?php echo NAME; ?></td>
|
||||
<td><?php echo QUANTITY; ?></td>
|
||||
<td><?php echo MAX; ?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -57,16 +57,16 @@ include("next.tpl");
|
||||
<div class="tit"><img class="unit u99" src="img/x.gif"
|
||||
alt="Trap"
|
||||
title="Trap" /> <a href="#"
|
||||
onClick="return Popup(36,4,'gid');">Trap</a> <span class="info">(Available: <?php echo $village->unitarray['u99']; ?>)</span>
|
||||
onClick="return Popup(36,4,'gid');"><?php echo TRAP; ?></a> <span class="info">(<?php echo AVAILABLE; ?>: <?php echo $village->unitarray['u99']; ?>)</span>
|
||||
</div>
|
||||
<div class="details">
|
||||
<span><img class="r1" src="img/x.gif"
|
||||
alt="Lumber" title="Lumber" />20|</span><span><img class="r2" src="img/x.gif"
|
||||
alt="Clay" title="Clay" />30|</span><span><img class="r3" src="img/x.gif"
|
||||
alt="Iron" title="Iron" />10|</span><span><img class="r4" src="img/x.gif"
|
||||
alt="Crop" title="Crop" />20|</span><span><img class="r5" src="img/x.gif" alt="Crop consumption"
|
||||
title="Crop consumption" />0|<img class="clock" src="img/x.gif"
|
||||
alt="Duration" title="Duration" /><?php $dur=$generator->getTimeFormat(round(${'u99'}['time'] * ($bid19[$village->resarray['f'.$id]]['attri']*TRAPPER_CAPACITY / 100) / SPEED));
|
||||
alt="Lumber" title="<?php echo LUMBER; ?>" />20|</span><span><img class="r2" src="img/x.gif"
|
||||
alt="Clay" title="<?php echo CLAY; ?>" />30|</span><span><img class="r3" src="img/x.gif"
|
||||
alt="Iron" title="<?php echo IRON; ?>" />10|</span><span><img class="r4" src="img/x.gif"
|
||||
alt="Crop" title="<?php echo CROP; ?>" />20|</span><span><img class="r5" src="img/x.gif" alt="Crop consumption"
|
||||
title="<?php echo CROP_COM; ?>" />0|<img class="clock" src="img/x.gif"
|
||||
alt="Duration" title="<?php echo DURATION; ?>" /><?php $dur=$generator->getTimeFormat(round(${'u99'}['time'] * ($bid19[$village->resarray['f'.$id]]['attri']*TRAPPER_CAPACITY / 100) / SPEED));
|
||||
echo ($dur=="0:00:00")? "0:00:01":$dur; ?></span>
|
||||
|
||||
</div>
|
||||
@@ -99,15 +99,15 @@ include("next.tpl");
|
||||
<p><input type="image" id="btn_train" class="dynamic_img" value="ok" name="s1" src="img/x.gif" alt="train" onclick="this.disabled=true;this.form.submit();"/></p></form>
|
||||
<?php
|
||||
} else {
|
||||
echo "<b>Training can commence when trapper are completed.</b><br>\n";
|
||||
echo "<b>".TRAINING_COMMENCE_TRAPPER."</b><br>\n";
|
||||
}
|
||||
if(count($trainlist) > 0) {
|
||||
echo "
|
||||
<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\">
|
||||
<thead><tr>
|
||||
<td>Training</td>
|
||||
<td>Duration</td>
|
||||
<td>Finished</td>
|
||||
<td>".TRAINING."</td>
|
||||
<td>".DURATION."</td>
|
||||
<td>".FINISHED."</td>
|
||||
</tr></thead>
|
||||
<tbody>";
|
||||
$TrainCount = 0;
|
||||
@@ -129,7 +129,7 @@ include("next.tpl");
|
||||
}
|
||||
echo $time[1];
|
||||
} ?>
|
||||
</tr><tr class="next"><td colspan="3">The next unit will be finished in <span id="timer2"><?php echo $NextFinished; ?></span></td></tr>
|
||||
</tr><tr class="next"><td colspan="3"><?php echo UNIT_FINISHED; ?> <span id="timer2"><?php echo $NextFinished; ?></span></td></tr>
|
||||
</tbody></table>
|
||||
<?php }
|
||||
include("upgrade.tpl");
|
||||
|
||||
+19
-19
@@ -17,44 +17,44 @@
|
||||
|
||||
|
||||
<div id="build" class="gid37">
|
||||
<a href="#" onclick="return Popup(37,4, 'gid');" class="build_logo"><img class="building g37" src="img/x.gif" alt="Hero's mansion" title="Hero's mansion"></a>
|
||||
<a href="#" onclick="return Popup(37,4, 'gid');" class="build_logo"><img class="building g37" src="img/x.gif" alt="Hero's mansion" title="<?php echo HEROSMANSION; ?>"></a>
|
||||
|
||||
<h1>Hero's mansion <span class="level">Level <?php echo $village->resarray['f' . $id]; ?></span></h1>
|
||||
<h1><?php echo HEROSMANSION; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f' . $id]; ?></span></h1>
|
||||
|
||||
<p class="build_desc">In the Hero's mansion you can train your own hero and at level 10, 15 and 20 you can conquer oases with Hero in the immediate vicinity.</p>
|
||||
<p class="build_desc"><?php echo HEROSMANSION_DESC; ?></p>
|
||||
|
||||
|
||||
<?php
|
||||
if($hero_info['unit'] == 1) {
|
||||
$name = "Legionnaire";
|
||||
$name = U1;
|
||||
} else if($hero_info['unit'] == 2) {
|
||||
$name = "Praetorian";
|
||||
$name = U2;
|
||||
} else if($hero_info['unit'] == 3) {
|
||||
$name = "Imperian";
|
||||
$name = U3;
|
||||
} else if($hero_info['unit'] == 5) {
|
||||
$name = "Equites Imperatoris";
|
||||
$name = U5;
|
||||
} else if($hero_info['unit'] == 6) {
|
||||
$name = "Equites Caesaris";
|
||||
$name = U6;
|
||||
} else if($hero_info['unit'] == 11) {
|
||||
$name = "Clubswinger";
|
||||
$name = U11;
|
||||
} else if($hero_info['unit'] == 12) {
|
||||
$name = "Spearman";
|
||||
$name = U12;
|
||||
} else if($hero_info['unit'] == 13) {
|
||||
$name = "Axeman";
|
||||
$name = U13;
|
||||
} else if($hero_info['unit'] == 15) {
|
||||
$name = "Paladin";
|
||||
$name = U15;
|
||||
} else if($hero_info['unit'] == 16) {
|
||||
$name = "Teutonic Knight";
|
||||
$name = U16;
|
||||
} else if($hero_info['unit'] == 21) {
|
||||
$name = "Phalanx";
|
||||
$name = U21;
|
||||
} else if($hero_info['unit'] == 22) {
|
||||
$name = "Swordsman";
|
||||
$name = U22;
|
||||
} else if($hero_info['unit'] == 24) {
|
||||
$name = "Theutates Thunder";
|
||||
$name = U24;
|
||||
} else if($hero_info['unit'] == 25) {
|
||||
$name = "Druidrider";
|
||||
$name = U25;
|
||||
} else if($hero_info['unit'] == 26) {
|
||||
$name = "Haeduan";
|
||||
$name = U26;
|
||||
}
|
||||
$name1 = $hero_info['name'];
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
<table id="distribution" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<?php echo "<tr class='next'><th>Hero will be ready in <span id=timer1>" . $timeleft . "</span></th></tr>"; ?>
|
||||
<?php echo "<tr class='next'><th>".HERO_READY."<span id=timer1>" . $timeleft . "</span></th></tr>"; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
||||
+14
-14
@@ -16,7 +16,7 @@ if (isset($_POST['name'])) {
|
||||
mysql_query("UPDATE ".TB_PREFIX."hero SET `name`='".($_POST['name'])."' where `uid`='".$session->uid."'") or die("ERROR:".mysql_error());
|
||||
$hero = mysql_query("SELECT * FROM " . TB_PREFIX . "hero WHERE `uid` = " . $session->uid . "");
|
||||
$hero_info = mysql_fetch_array($hero);
|
||||
echo "Hero name has been changed";
|
||||
echo "".NAME_CHANGED."";
|
||||
}
|
||||
|
||||
$hero = $units->Hero($session->uid);
|
||||
@@ -32,10 +32,10 @@ if (isset($_POST['name'])) {
|
||||
echo "<a href=\"build.php?id=".$id."&rename\">".$hero_info['name']."</a></form>";
|
||||
}
|
||||
?>
|
||||
Level <?php echo $hero_info['level']; ?> <span class="info">( <?php echo"<img class=\"unit u".$hero_info['unit']."\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($hero_info['unit'])."\" title=\"".$technology->getUnitName($hero_info['unit'])."\" /> ".$technology->getUnitName($hero_info['unit']); ?> )</span></th>
|
||||
<?php echo LEVEL; ?> <?php echo $hero_info['level']; ?> <span class="info">( <?php echo"<img class=\"unit u".$hero_info['unit']."\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($hero_info['unit'])."\" title=\"".$technology->getUnitName($hero_info['unit'])."\" /> ".$technology->getUnitName($hero_info['unit']); ?> )</span></th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<th>Offence</th>
|
||||
<th><?php echo OFFENCE; ?></th>
|
||||
<td class="val"><?php echo $hero['atk']; ?></td>
|
||||
<td class="xp"><img class="bar" src="img/x.gif" style="width:<?php echo (2*$hero_info['attack'])+1; ?>px;" alt="<?php echo $hero['atk']; ?>" title="<?php echo $hero['atk']; ?>" /></td>
|
||||
<td class="up"><span class="none">
|
||||
@@ -54,7 +54,7 @@ if (isset($_POST['name'])) {
|
||||
<td class="po"><?php echo $hero_info['attack']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Defence</th>
|
||||
<th><?php echo DEFENCE; ?></th>
|
||||
<td class="val"><?php echo $hero['di'] . "/" . $hero['dc']; ?></td>
|
||||
<td class="xp"><img class="bar" src="img/x.gif" style="width:<?php echo (2*$hero_info['defence'])+1; ?>px;" alt="<?php echo ($hero['di']) . "/" . ($hero['dc']); ?>" title="<?php echo ($hero['di']) . "/" . ($hero['dc']); ?>" /></td>
|
||||
<td class="up"><span class="none">
|
||||
@@ -73,7 +73,7 @@ if (isset($_POST['name'])) {
|
||||
<td class="po"><?php echo $hero_info['defence']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Off-Bonus</th>
|
||||
<th><?php echo OFF_BONUS; ?></th>
|
||||
<td class="val"><?php echo ($hero['ob']-1)*100; ?>%</td>
|
||||
<td class="xp"><img class="bar" src="img/x.gif" style="width:<?php echo ($hero['ob']-1)*1000+1; ?>px;" alt="<?php echo ($hero['ob']-1)*100; ?>%" title="<?php echo ($hero['ob']-1)*100; ?>%" /></td>
|
||||
<td class="up"><span class="none">
|
||||
@@ -93,7 +93,7 @@ if (isset($_POST['name'])) {
|
||||
<td class="po"><?php echo $hero_info['attackbonus']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Def-Bonus</th>
|
||||
<th><?php echo DEF_BONUS; ?></th>
|
||||
<td class="val"><?php echo ($hero['db']-1)*100; ?>%</td>
|
||||
<td class="xp"><img class="bar" src="img/x.gif" style="width:<?php echo ($hero['db']-1)*1000+1; ?>px;" alt="<?php echo ($hero['db']-1)*100; ?>%" title="<?php echo ($hero['db']-1)*100; ?>%" /></td>
|
||||
<td class="up"><span class="none">
|
||||
@@ -113,8 +113,8 @@ if (isset($_POST['name'])) {
|
||||
<td class="po"><?php echo $hero_info['defencebonus']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Regeneration</th>
|
||||
<td class="val"><?php echo ($hero_info['regeneration']*5*SPEED); ?>/Day</td>
|
||||
<th><?php echo REGENERATION; ?></th>
|
||||
<td class="val"><?php echo ($hero_info['regeneration']*5*SPEED); ?>/<?php echo DAY; ?></td>
|
||||
<td class="xp"><img class="bar" src="img/x.gif" style="width:<?php echo ($hero_info['regeneration']*2)+1; ?>px;" alt="<?php echo ($hero_info['regeneration']*5*SPEED); ?>%/Day" title="<?php echo ($hero_info['regeneration']*5*SPEED); ?>%/Day" /></td>
|
||||
<td class="up"><span class="none">
|
||||
<?php
|
||||
@@ -137,13 +137,13 @@ if (isset($_POST['name'])) {
|
||||
</tr>
|
||||
<tr>
|
||||
<?php if($hero_info['experience'] < 495000){ ?>
|
||||
<th title="until the next level">Experience:</th>
|
||||
<th title="until the next level"><?php echo EXPERIENCE; ?>:</th>
|
||||
<td class="val"><?php echo (int) (($hero_info['experience'] - $hero_levels[$hero_info['level']]) / ($hero_levels[$hero_info['level']+1] - $hero_levels[$hero_info['level']])*100) ?>%</td>
|
||||
<td class="xp"><img class="bar" src="img/x.gif" style="width:<?php echo ($hero_info['experience'] - $hero_levels[$hero_info['level']]) / ($hero_levels[$hero_info['level']+1] - $hero_levels[$hero_info['level']])*100*2 ?>px;" alt="<?php echo ($hero_info['experience'] - $hero_levels[$hero_info['level']]) / ($hero_levels[$hero_info['level']+1] - $hero_levels[$hero_info['level']])*100 ?>%" title="<?php echo ($hero_info['experience'] - $hero_levels[$hero_info['level']]) / ($hero_levels[$hero_info['level']+1] - $hero_levels[$hero_info['level']])*100 ?>%" /></td>
|
||||
<td class="up"></td>
|
||||
<td class="rem"><?php echo $hero_info['points']; ?></td>
|
||||
<?php }else{ ?>
|
||||
<th title="until the next level">Experience:</th>
|
||||
<th title="until the next level"><?php echo EXPERIENCE; ?>:</th>
|
||||
<td class="val">100%</td>
|
||||
<td class="xp"><img class="bar" src="img/x.gif" style="width:200px;" alt="100%" title="100%" /></td>
|
||||
<td class="up"></td>
|
||||
@@ -153,15 +153,15 @@ if (isset($_POST['name'])) {
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(isset($_GET['e'])){
|
||||
echo "<p><font size=\"1\" color=\"red\"><b>Error: name too short</b></font></p>";
|
||||
echo "<p><font size=\"1\" color=\"red\"><b>".ERROR_NAME_SHORT."</b></font></p>";
|
||||
}
|
||||
?>
|
||||
<?php if($hero_info['level'] <= 3){ ?>
|
||||
<p>You can <a href="build.php?id=<?php echo $id; ?>&add=reset">reset</a> your points until you are level <b>3</b> or lower!</p>
|
||||
<p><?php echo YOU_CAN; ?> <a href="build.php?id=<?php echo $id; ?>&add=reset"><?php echo RESET; ?></a><?php echo YOUR_POINT_UNTIL; ?> <b>3</b><?php echo OR_LOWER; ?> </p>
|
||||
<?php } ?>
|
||||
|
||||
<p>Your hero has <b><?php echo floor($hero_info['health']); ?></b>% of his hit points.<br/>
|
||||
Your hero has conquered <b><?php echo $database->VillageOasisCount($village->wid); ?></b> <a href="build.php?id=<?php echo $id; ?>&land">oases</a>.</p>
|
||||
<p><?php echo YOUR_HERO_HAS; ?> <b><?php echo floor($hero_info['health']); ?></b>% <?php echo OF_HIT_POINTS; ?>.<br/>
|
||||
<?php echo YOUR_HERO_HAS; ?> <?php echo CONQUERED; ?> <b><?php echo $database->VillageOasisCount($village->wid); ?></b> <a href="build.php?id=<?php echo $id; ?>&land"><?php echo OASES; ?></a>.</p>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
+17
-17
@@ -14,13 +14,13 @@ if($session->access != BANNED){
|
||||
?>
|
||||
<table id="oases" cellpadding="1" cellspacing="1">
|
||||
<thead><tr>
|
||||
<th colspan="4">oases</th>
|
||||
<th colspan="4"><?php echo OASES; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Name</td>
|
||||
<td>Coordinates</td>
|
||||
<td>Loyality</td>
|
||||
<td>Resources</td>
|
||||
<td><?php echo NAME; ?></td>
|
||||
<td><?php echo COORDINATES; ?></td>
|
||||
<td><?php echo LOYALTY; ?></td>
|
||||
<td><?php echo RESOURCES; ?></td>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
|
||||
@@ -31,7 +31,7 @@ if($session->access != BANNED){
|
||||
?>
|
||||
<tr>
|
||||
<td class="nam">
|
||||
<a href="build.php?gid=37&c=<?php echo $generator->getMapCheck($oasisarray[$i]['wref']); ?>&del=<?php echo $oasisarray[$i]['wref']; ?>&land"><img class="del" src="img/x.gif" alt="delete" title="delete"></a>
|
||||
<a href="build.php?gid=37&c=<?php echo $generator->getMapCheck($oasisarray[$i]['wref']); ?>&del=<?php echo $oasisarray[$i]['wref']; ?>&land"><img class="del" src="img/x.gif" alt="delete" title="<?php echo DELETE; ?>"></a>
|
||||
<a href="karte.php?d=<?php echo $oasisarray[$i]['wref']; ?>&c=<?php echo $generator->getMapCheck($oasisarray[$i]['wref']) ?>"><?php echo $oasisarray[$i]['name']; ?></a>
|
||||
</td>
|
||||
<td class="aligned_coords">
|
||||
@@ -44,34 +44,34 @@ if($session->access != BANNED){
|
||||
switch($oasisarray[$i]['type']) {
|
||||
case 1:
|
||||
case 2:
|
||||
?><img class="r1" src="img/x.gif" alt="Wood" title="Wood" />+25%<?php
|
||||
?><img class="r1" src="img/x.gif" alt="Wood" title="<?php echo LUMBER; ?>" />+25%<?php
|
||||
break;
|
||||
case 3:
|
||||
?><img class="r1" src="img/x.gif" alt="Wood" title="Wood" />+25%
|
||||
<img class="r4" src="img/x.gif" alt="Crop" title="Crop" />+25%<?php
|
||||
?><img class="r1" src="img/x.gif" alt="Wood" title="<?php echo LUMBER; ?>" />+25%
|
||||
<img class="r4" src="img/x.gif" alt="Crop" title="<?php echo CROP; ?>" />+25%<?php
|
||||
break;
|
||||
case 4:
|
||||
case 5:
|
||||
?><img class="r2" src="img/x.gif" alt="Clay" title="Clay" />+25%<?php
|
||||
?><img class="r2" src="img/x.gif" alt="Clay" title="<?php echo CLAY; ?>" />+25%<?php
|
||||
break;
|
||||
case 6:
|
||||
?><img class="r2" src="img/x.gif" alt="Clay" title="Clay" />+25%
|
||||
<img class="r4" src="img/x.gif" alt="Crop" title="Crop" />+25%<?php
|
||||
?><img class="r2" src="img/x.gif" alt="Clay" title="<?php echo CLAY; ?>" />+25%
|
||||
<img class="r4" src="img/x.gif" alt="Crop" title="<?php echo CROP; ?>" />+25%<?php
|
||||
break;
|
||||
case 7:
|
||||
case 8:
|
||||
?><img class="r3" src="img/x.gif" alt="Iron" title="Iron" />+25%<?php
|
||||
?><img class="r3" src="img/x.gif" alt="Iron" title="<?php echo IRON; ?>" />+25%<?php
|
||||
break;
|
||||
case 9:
|
||||
?><img class="r3" src="img/x.gif" alt="Iron" title="Iron" />+25%
|
||||
<img class="r4" src="img/x.gif" alt="Crop" title="Crop" />+25%<?php
|
||||
?><img class="r3" src="img/x.gif" alt="Iron" title="<?php echo IRON; ?>" />+25%
|
||||
<img class="r4" src="img/x.gif" alt="Crop" title="<?php echo CROP; ?>" />+25%<?php
|
||||
break;
|
||||
case 10:
|
||||
case 11:
|
||||
?><img class="r4" src="img/x.gif" alt="Crop" title="Crop" />+25%<?php
|
||||
?><img class="r4" src="img/x.gif" alt="Crop" title="<?php echo CROP; ?>" />+25%<?php
|
||||
break;
|
||||
case 12:
|
||||
?><img class="r4" src="img/x.gif" alt="Crop" title="Crop" />+50%<?php
|
||||
?><img class="r4" src="img/x.gif" alt="Crop" title="<?php echo CROP; ?>" />+50%<?php
|
||||
break;
|
||||
}
|
||||
?></td>
|
||||
|
||||
@@ -24,35 +24,35 @@
|
||||
\*-------------------------------------------------------*/
|
||||
|
||||
if($hero_info['unit'] == 1) {
|
||||
$name = "Legionnaire";
|
||||
$name = U1;
|
||||
} else if($hero_info['unit'] == 2) {
|
||||
$name = "Praetorian";
|
||||
$name = U2;
|
||||
} else if($hero_info['unit'] == 3) {
|
||||
$name = "Imperian";
|
||||
$name = U3;
|
||||
} else if($hero_info['unit'] == 5) {
|
||||
$name = "Equites Imperatoris";
|
||||
$name = U5;
|
||||
} else if($hero_info['unit'] == 6) {
|
||||
$name = "Equites Caesaris";
|
||||
$name = U6;
|
||||
} else if($hero_info['unit'] == 11) {
|
||||
$name = "Clubswinger";
|
||||
$name = U11;
|
||||
} else if($hero_info['unit'] == 12) {
|
||||
$name = "Spearman";
|
||||
$name = U12;
|
||||
} else if($hero_info['unit'] == 13) {
|
||||
$name = "Axeman";
|
||||
$name = U13;
|
||||
} else if($hero_info['unit'] == 15) {
|
||||
$name = "Paladin";
|
||||
$name = U15;
|
||||
} else if($hero_info['unit'] == 16) {
|
||||
$name = "Teutonic Knight";
|
||||
$name = U16;
|
||||
} else if($hero_info['unit'] == 21) {
|
||||
$name = "Phalanx";
|
||||
$name = U21;
|
||||
} else if($hero_info['unit'] == 22) {
|
||||
$name = "Swordsman";
|
||||
$name = U22;
|
||||
} else if($hero_info['unit'] == 24) {
|
||||
$name = "Theutates Thunder";
|
||||
$name = U24;
|
||||
} else if($hero_info['unit'] == 25) {
|
||||
$name = "Druidrider";
|
||||
$name = U25;
|
||||
} else if($hero_info['unit'] == 26) {
|
||||
$name = "Haeduan";
|
||||
$name = U26;
|
||||
}
|
||||
if($hero_info['level'] <= 60){
|
||||
$wood = (${'h'.$hero_info['unit'].'_full'}[$hero_info['level']]['wood']);
|
||||
@@ -74,7 +74,7 @@
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">Revive hero</th>
|
||||
<th colspan="2"><?php echo REVIVE; ?> <?php echo U0; ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
<table id="distribution" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<?php echo "<tr class='next'><th>Hero will be ready in <span id=timer1>" . $timeleft . "</span></th></tr>"; ?>
|
||||
<?php echo "<tr class='next'><th>".HERO_READY." <span id=timer1>" . $timeleft . "</span></th></tr>"; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -110,12 +110,12 @@
|
||||
<?php echo $name . " (Level " . $hero_info['level'] . ")"; ?>
|
||||
</div>
|
||||
<div class="details">
|
||||
<img class="r1" src="img/x.gif" alt="Wood" title="Wood" /><?php echo $wood; ?>|
|
||||
<img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $clay; ?>|
|
||||
<img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $iron; ?>|
|
||||
<img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $crop; ?>|
|
||||
<img class="r5" src="img/x.gif" alt="Crop consumption" title="Crop consumption" />6|
|
||||
<img class="clock" src="img/x.gif" alt="Duration" title="Duration" />
|
||||
<img class="r1" src="img/x.gif" alt="Wood" title="<?php echo LUMBER; ?>" /><?php echo $wood; ?>|
|
||||
<img class="r2" src="img/x.gif" alt="Clay" title="<?php echo CLAY; ?>" /><?php echo $clay; ?>|
|
||||
<img class="r3" src="img/x.gif" alt="Iron" title="<?php echo IRON; ?>" /><?php echo $iron; ?>|
|
||||
<img class="r4" src="img/x.gif" alt="Crop" title="<?php echo CROP; ?>" /><?php echo $crop; ?>|
|
||||
<img class="r5" src="img/x.gif" alt="Crop consumption" title="<?php echo CROP_COM; ?>" />6|
|
||||
<img class="clock" src="img/x.gif" alt="Duration" title="<?php echo DURATION; ?>" />
|
||||
<?php echo $training_time; ?>
|
||||
</div>
|
||||
</td>
|
||||
@@ -123,9 +123,9 @@
|
||||
<td class="val" width="20%"><center>
|
||||
<?php
|
||||
if($village->awood < $wood OR $village->aclay < $clay OR $village->airon < $iron OR $village->acrop < $crop) {
|
||||
echo "<span class=\"none\">No enough resources</span>";
|
||||
echo "<span class=\"none\">".NOT."".ENOUGH_RESOURCES."</span>";
|
||||
}else {
|
||||
echo "<a href=\"build.php?id=".$id."&revive=1\">Revive</a>";
|
||||
echo "<a href=\"build.php?id=".$id."&revive=1\">".REVIVE."</a>";
|
||||
}
|
||||
|
||||
?></center></td>
|
||||
@@ -141,12 +141,12 @@
|
||||
<?php echo $name . " (Level " . $hero_info['level'] . ")"; ?>
|
||||
</div>
|
||||
<div class="details">
|
||||
<img class="r1" src="img/x.gif" alt="Wood" title="Wood" /><?php echo $wood; ?>|
|
||||
<img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $clay; ?>|
|
||||
<img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $iron; ?>|
|
||||
<img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $crop; ?>|
|
||||
<img class="r5" src="img/x.gif" alt="Crop consumption" title="Crop consumption" />6|
|
||||
<img class="clock" src="img/x.gif" alt="Duration" title="Duration" />
|
||||
<img class="r1" src="img/x.gif" alt="Wood" title="<?php echo LUMBER; ?>" /><?php echo $wood; ?>|
|
||||
<img class="r2" src="img/x.gif" alt="Clay" title="<?php echo CLAY; ?>" /><?php echo $clay; ?>|
|
||||
<img class="r3" src="img/x.gif" alt="Iron" title="<?php echo IRON; ?>" /><?php echo $iron; ?>|
|
||||
<img class="r4" src="img/x.gif" alt="Crop" title="<?php echo CROP; ?>" /><?php echo $crop; ?>|
|
||||
<img class="r5" src="img/x.gif" alt="Crop consumption" title="<?php echo CROP_COM; ?>" />6|
|
||||
<img class="clock" src="img/x.gif" alt="Duration" title="<?php echo DURATION; ?>" />
|
||||
<?php echo $training_time; ?>
|
||||
</div>
|
||||
</td>
|
||||
@@ -154,9 +154,9 @@
|
||||
<td class="val" width="20%"><center>
|
||||
<?php
|
||||
if($village->awood < $wood OR $village->aclay < $clay OR $village->airon < $iron OR $village->acrop < $crop) {
|
||||
echo "<span class=\"none\">No enough resources</span>";
|
||||
echo "<span class=\"none\">".NOT."".ENOUGH_RESOURCES."</span>";
|
||||
}else {
|
||||
echo "<a href=\"build.php?id=".$id."&revive=1\">Revive</a>";
|
||||
echo "<a href=\"build.php?id=".$id."&revive=1\">".REVIVE."</a>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
+136
-136
@@ -40,7 +40,7 @@ $units = mysql_fetch_array($result);
|
||||
$output="<table cellpadding=1 cellspacing=1 class=\"build_details\">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan=2>Train New Hero</th>
|
||||
<th colspan=2>".TRAIN_HERO."</th>
|
||||
</tr>
|
||||
</thead>";
|
||||
|
||||
@@ -52,12 +52,12 @@ if($session->tribe == 1) {
|
||||
".U1."
|
||||
</div>
|
||||
<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".$u1['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".$u1['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".$u1['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".$u1['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />";
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".$u1['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".$u1['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".$u1['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".$u1['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />";
|
||||
$output.=$generator->getTimeFormat(round($u1['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*3);
|
||||
$output.="</div>
|
||||
</td>
|
||||
@@ -66,10 +66,10 @@ if($session->tribe == 1) {
|
||||
|
||||
|
||||
if($village->awood < $u1['wood'] || $village->aclay < $u1['clay'] || $village->airon < $u1['iron'] || $village->acrop < $u1['crop'])
|
||||
$output.="<span class=\"none\">Not enough resources</span>";
|
||||
$output.="<span class=\"none\">".NOT."".ENOUGH_RESOURCES."</span>";
|
||||
elseif($units['u1'] == 0)
|
||||
$output.="<span class=\"none\">Not available units</span>";
|
||||
else $output.="<a href=\"build.php?id=".$id."&train=1\">Train</a>";
|
||||
$output.="<span class=\"none\">".NOT_UNITS."</span>";
|
||||
else $output.="<a href=\"build.php?id=".$id."&train=1\">".TRAIN."</a>";
|
||||
|
||||
|
||||
$output.="</center></td>
|
||||
@@ -85,12 +85,12 @@ if($session->tribe == 1) {
|
||||
".U2."
|
||||
</div>
|
||||
<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".$u2['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".$u2['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".$u2['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".$u2['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />";
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".$u2['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".$u2['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".$u2['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".$u2['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />";
|
||||
$output.=$generator->getTimeFormat(round($u2['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*3);
|
||||
|
||||
$output.="</div>
|
||||
@@ -99,11 +99,11 @@ if($session->tribe == 1) {
|
||||
<td class=\"val\" width=\"20%\"><center>";
|
||||
|
||||
if($village->awood < $u2['wood'] OR $village->aclay < $u2['clay'] OR $village->airon < $u2['iron'] OR $village->acrop < $u2['crop'])
|
||||
$output.="<span class=\"none\">Not enough resources</span>";
|
||||
$output.="<span class=\"none\">".NOT."".ENOUGH_RESOURCES."</span>";
|
||||
elseif($units['u2'] == 0)
|
||||
$output.="<span class=\"none\">Not available units</span>";
|
||||
$output.="<span class=\"none\">".NOT_UNITS."</span>";
|
||||
else
|
||||
$output.="<a href=\"build.php?id=".$id."&train=2\">Train</a>";
|
||||
$output.="<a href=\"build.php?id=".$id."&train=2\">".TRAIN."</a>";
|
||||
|
||||
$output.="</center></td>
|
||||
</tr>";
|
||||
@@ -118,12 +118,12 @@ if($session->tribe == 1) {
|
||||
".U3."
|
||||
</div>
|
||||
<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".$u3['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".$u3['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".$u3['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".$u3['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />";
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".$u3['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".$u3['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".$u3['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".$u3['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />";
|
||||
|
||||
$output.= $generator->getTimeFormat(round($u3['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*3);
|
||||
|
||||
@@ -133,11 +133,11 @@ if($session->tribe == 1) {
|
||||
<td class=\"val\" width=\"20%\"><center>";
|
||||
|
||||
if($village->awood < $u3['wood'] OR $village->aclay < $u3['clay'] OR $village->airon < $u3['iron'] OR $village->acrop < $u3['crop']) {
|
||||
$output.="<span class=\"none\">Not enough resources</span>";
|
||||
$output.="<span class=\"none\">".NOT."".ENOUGH_RESOURCES."</span>";
|
||||
}else if($units['u3'] == 0){
|
||||
$output.="<span class=\"none\">Not available units</span>";
|
||||
$output.="<span class=\"none\">".NOT_UNITS."</span>";
|
||||
}else {
|
||||
$output.="<a href=\"build.php?id=".$id."&train=3\">Train</a>";
|
||||
$output.="<a href=\"build.php?id=".$id."&train=3\">".TRAIN."</a>";
|
||||
}
|
||||
"</center></td>
|
||||
</tr> " ;
|
||||
@@ -151,12 +151,12 @@ if($session->tribe == 1) {
|
||||
".U5."
|
||||
</div>
|
||||
<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".$u5['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".$u5['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".$u5['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".$u5['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />".
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".$u5['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".$u5['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".$u5['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".$u5['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />".
|
||||
$generator->getTimeFormat(round($u5['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*3)."
|
||||
</div>
|
||||
</td>
|
||||
@@ -164,11 +164,11 @@ if($session->tribe == 1) {
|
||||
<td class=\"val\" width=\"20%\"><center>";
|
||||
|
||||
if($village->awood < $u5['wood'] OR $village->aclay < $u5['clay'] OR $village->airon < $u5['iron'] OR $village->acrop < $u5['crop']) {
|
||||
$output.= "<span class=\"none\">Not enough resources</span>";
|
||||
$output.= "<span class=\"none\">".NOT."".ENOUGH_RESOURCES."</span>";
|
||||
}else if($units['u5'] == 0){
|
||||
$output.= "<span class=\"none\">Not available units</span>";
|
||||
$output.= "<span class=\"none\">".NOT_UNITS."</span>";
|
||||
}else {
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=5\">Train</a>";
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=5\">".TRAIN."</a>";
|
||||
}
|
||||
$output.="</center></td>
|
||||
</tr>";
|
||||
@@ -182,12 +182,12 @@ if($session->tribe == 1) {
|
||||
".U6."
|
||||
</div>
|
||||
<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".$u6['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".$u6['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".$u6['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".$u6['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />".
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".$u6['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".$u6['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".$u6['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".$u6['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />".
|
||||
$generator->getTimeFormat(round($u6['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*3)."
|
||||
</div>
|
||||
</td>
|
||||
@@ -195,11 +195,11 @@ if($session->tribe == 1) {
|
||||
<td class=\"val\" width=\"20%\"><center> ";
|
||||
|
||||
if($village->awood < $u6['wood'] OR $village->aclay < $u6['clay'] OR $village->airon < $u6['iron'] OR $village->acrop < $u6['crop']) {
|
||||
$output.= "<span class=\"none\">Not enough resources</span>";
|
||||
$output.= "<span class=\"none\">".NOT."".ENOUGH_RESOURCES."</span>";
|
||||
}else if($units['u6'] == 0){
|
||||
$output.= "<span class=\"none\">Not available units</span>";
|
||||
$output.= "<span class=\"none\">".NOT_UNITS."</span>";
|
||||
}else {
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=6\">Train</a>";
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=6\">".TRAIN."</a>";
|
||||
}
|
||||
|
||||
$output.="</center></td>
|
||||
@@ -216,12 +216,12 @@ $output.="<tr>
|
||||
".U11."
|
||||
</div>
|
||||
<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".$u11['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".$u11['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".$u11['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".$u11['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />".
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".$u11['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".$u11['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".$u11['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".$u11['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />".
|
||||
$generator->getTimeFormat(round($u11['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*3)."
|
||||
</div>
|
||||
</td>
|
||||
@@ -229,11 +229,11 @@ $output.="<tr>
|
||||
<td class=\"val\" width=\"20%\"><center>";
|
||||
|
||||
if($village->awood < $u11['wood'] OR $village->aclay < $u11['clay'] OR $village->airon < $u11['iron'] OR $village->acrop < $u11['crop']) {
|
||||
$output.= "<span class=\"none\">Not enough resources</span>";
|
||||
$output.= "<span class=\"none\">".NOT."".ENOUGH_RESOURCES."</span>";
|
||||
}else if($units['u11'] == 0){
|
||||
$output.= "<span class=\"none\">Not available units</span>";
|
||||
$output.= "<span class=\"none\">".NOT_UNITS."</span>";
|
||||
}else {
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=11\">Train</a>";
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=11\">".TRAIN."</a>";
|
||||
}
|
||||
$output.="</center></td>
|
||||
</tr>";
|
||||
@@ -247,12 +247,12 @@ $output.="<tr>
|
||||
".U12."
|
||||
</div>
|
||||
<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".$u12['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".$u12['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".$u12['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".$u12['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />".
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".$u12['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".$u12['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".$u12['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".$u12['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />".
|
||||
$generator->getTimeFormat(round($u12['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*3)."
|
||||
</div>
|
||||
</td>
|
||||
@@ -260,11 +260,11 @@ $output.="<tr>
|
||||
<td class=\"val\" width=\"20%\"><center>";
|
||||
|
||||
if($village->awood < $u12['wood'] OR $village->aclay < $u12['clay'] OR $village->airon < $u12['iron'] OR $village->acrop < $u12['crop']) {
|
||||
$output.= "<span class=\"none\">Not enough resources</span>";
|
||||
$output.= "<span class=\"none\">".NOT."".ENOUGH_RESOURCES."</span>";
|
||||
}else if($units['u12'] == 0){
|
||||
$output.= "<span class=\"none\">Not available units</span>";
|
||||
$output.= "<span class=\"none\">".NOT_UNITS."</span>";
|
||||
}else {
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=12\">Train</a>";
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=12\">".TRAIN."</a>";
|
||||
}
|
||||
$output.="</center></td>
|
||||
</tr>";
|
||||
@@ -279,12 +279,12 @@ $output.="<tr>
|
||||
".U13."
|
||||
</div>
|
||||
<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".$u13['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".$u13['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".$u13['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".$u13['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />".
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".$u13['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".$u13['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".$u13['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".$u13['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />".
|
||||
$generator->getTimeFormat(round($u13['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*3)."
|
||||
</div>
|
||||
</td>
|
||||
@@ -292,11 +292,11 @@ $output.="<tr>
|
||||
<td class=\"val\" width=\"20%\"><center>";
|
||||
|
||||
if($village->awood < $u13['wood'] OR $village->aclay < $u13['clay'] OR $village->airon < $u13['iron'] OR $village->acrop < $u13['crop']) {
|
||||
$output.= "<span class=\"none\">Not enough resources</span>";
|
||||
$output.= "<span class=\"none\">".NOT."".ENOUGH_RESOURCES."</span>";
|
||||
}else if($units['u13'] == 0){
|
||||
$output.= "<span class=\"none\">Not available units</span>";
|
||||
$output.= "<span class=\"none\">".NOT_UNITS."</span>";
|
||||
}else {
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=13\">Train</a>";
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=13\">".TRAIN."</a>";
|
||||
}
|
||||
$output.="</center></td>
|
||||
</tr>";
|
||||
@@ -310,12 +310,12 @@ $output.="<tr>
|
||||
".U15."
|
||||
</div>
|
||||
<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".$u15['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".$u15['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".$u15['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".$u15['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />".
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".$u15['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".$u15['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".$u15['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".$u15['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />".
|
||||
$generator->getTimeFormat(round($u15['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*3)."
|
||||
</div>
|
||||
</td>
|
||||
@@ -323,11 +323,11 @@ $output.="<tr>
|
||||
<td class=\"val\" width=\"20%\"><center>";
|
||||
|
||||
if($village->awood < $u15['wood'] OR $village->aclay < $u15['clay'] OR $village->airon < $u15['iron'] OR $village->acrop < $u15['crop']) {
|
||||
$output.= "<span class=\"none\">Not enough resources</span>";
|
||||
$output.= "<span class=\"none\">".NOT."".ENOUGH_RESOURCES."</span>";
|
||||
}else if($units['u15'] == 0){
|
||||
$output.= "<span class=\"none\">Not available units</span>";
|
||||
$output.= "<span class=\"none\">".NOT_UNITS."</span>";
|
||||
}else {
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=15\">Train</a>";
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=15\">".TRAIN."</a>";
|
||||
}
|
||||
$output.="</center></td>
|
||||
</tr>";
|
||||
@@ -342,12 +342,12 @@ $output.="<tr>
|
||||
".U16."
|
||||
</div>
|
||||
<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".$u16['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".$u16['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".$u16['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".$u16['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />".
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".$u16['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".$u16['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".$u16['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".$u16['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />".
|
||||
$generator->getTimeFormat(round($u16['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*3)."
|
||||
</div>
|
||||
</td>
|
||||
@@ -355,11 +355,11 @@ $output.="<tr>
|
||||
<td class=\"val\" width=\"20%\"><center>";
|
||||
|
||||
if($village->awood < $u16['wood'] OR $village->aclay < $u16['clay'] OR $village->airon < $u16['iron'] OR $village->acrop < $u16['crop']) {
|
||||
$output.= "<span class=\"none\">Not enough resources</span>";
|
||||
$output.= "<span class=\"none\">".NOT."".ENOUGH_RESOURCES."</span>";
|
||||
}else if($units['u16'] == 0){
|
||||
$output.= "<span class=\"none\">Not available units</span>";
|
||||
$output.= "<span class=\"none\">".NOT_UNITS."</span>";
|
||||
}else {
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=16\">Train</a>";
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=16\">".TRAIN."</a>";
|
||||
}
|
||||
$output.="</center></td>
|
||||
</tr>";
|
||||
@@ -376,12 +376,12 @@ $output.="<tr>
|
||||
".U21."
|
||||
</div>
|
||||
<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".$u21['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".$u21['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".$u21['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".$u21['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />".
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".$u21['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".$u21['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".$u21['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".$u21['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />".
|
||||
$generator->getTimeFormat(round($u21['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*3)."
|
||||
</div>
|
||||
</td>
|
||||
@@ -389,11 +389,11 @@ $output.="<tr>
|
||||
<td class=\"val\" width=\"20%\"><center>";
|
||||
|
||||
if($village->awood < $u21['wood'] OR $village->aclay < $u21['clay'] OR $village->airon < $u21['iron'] OR $village->acrop < $u21['crop']) {
|
||||
$output.= "<span class=\"none\">Not enough resources</span>";
|
||||
$output.= "<span class=\"none\">".NOT."".ENOUGH_RESOURCES."</span>";
|
||||
}else if($units['u21'] == 0){
|
||||
$output.= "<span class=\"none\">Not available units</span>";
|
||||
$output.= "<span class=\"none\">".NOT_UNITS."</span>";
|
||||
}else {
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=21\">Train</a>";
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=21\">".TRAIN."</a>";
|
||||
}
|
||||
$output.="</center></td>
|
||||
</tr>";
|
||||
@@ -407,12 +407,12 @@ $output.="<tr>
|
||||
".U22."
|
||||
</div>
|
||||
<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".$u22['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".$u22['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".$u22['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".$u22['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />".
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".$u22['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".$u22['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".$u22['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".$u22['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />".
|
||||
$generator->getTimeFormat(round($u22['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*3)."
|
||||
</div>
|
||||
</td>
|
||||
@@ -420,11 +420,11 @@ $output.="<tr>
|
||||
<td class=\"val\" width=\"20%\"><center>";
|
||||
|
||||
if($village->awood < $u22['wood'] OR $village->aclay < $u22['clay'] OR $village->airon < $u22['iron'] OR $village->acrop < $u22['crop']) {
|
||||
$output.= "<span class=\"none\">Not enough resources</span>";
|
||||
$output.= "<span class=\"none\">".NOT."".ENOUGH_RESOURCES."</span>";
|
||||
}else if($units['u22'] == 0){
|
||||
$output.= "<span class=\"none\">Not available units</span>";
|
||||
$output.= "<span class=\"none\">".NOT_UNITS."</span>";
|
||||
}else {
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=22\">Train</a>";
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=22\">".TRAIN."</a>";
|
||||
}
|
||||
$output.="</center></td>
|
||||
</tr>";
|
||||
@@ -439,12 +439,12 @@ $output.="<tr>
|
||||
".U24."
|
||||
</div>
|
||||
<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".$u24['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".$u24['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".$u24['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".$u24['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />".
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".$u24['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".$u24['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".$u24['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".$u24['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />".
|
||||
$generator->getTimeFormat(round($u24['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*3)."
|
||||
</div>
|
||||
</td>
|
||||
@@ -452,11 +452,11 @@ $output.="<tr>
|
||||
<td class=\"val\" width=\"20%\"><center>";
|
||||
|
||||
if($village->awood < $u24['wood'] OR $village->aclay < $u24['clay'] OR $village->airon < $u24['iron'] OR $village->acrop < $u24['crop']) {
|
||||
$output.= "<span class=\"none\">Not enough resources</span>";
|
||||
$output.= "<span class=\"none\">".NOT."".ENOUGH_RESOURCES."</span>";
|
||||
}else if($units['u24'] == 0){
|
||||
$output.= "<span class=\"none\">Not available units</span>";
|
||||
$output.= "<span class=\"none\">".NOT_UNITS."</span>";
|
||||
}else {
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=24\">Train</a>";
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=24\">".TRAIN."</a>";
|
||||
}
|
||||
$output.="</center></td>
|
||||
</tr>";
|
||||
@@ -470,12 +470,12 @@ $output.="<tr>
|
||||
".U25."
|
||||
</div>
|
||||
<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".$u25['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".$u25['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".$u25['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".$u25['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />".
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".$u25['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".$u25['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".$u25['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".$u25['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />".
|
||||
$generator->getTimeFormat(round($u25['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*3)."
|
||||
</div>
|
||||
</td>
|
||||
@@ -483,11 +483,11 @@ $output.="<tr>
|
||||
<td class=\"val\" width=\"20%\"><center>";
|
||||
|
||||
if($village->awood < $u25['wood'] OR $village->aclay < $u25['clay'] OR $village->airon < $u25['iron'] OR $village->acrop < $u25['crop']) {
|
||||
$output.= "<span class=\"none\">Not enough resources</span>";
|
||||
$output.= "<span class=\"none\">".NOT."".ENOUGH_RESOURCES."</span>";
|
||||
}else if($units['u25'] == 0){
|
||||
$output.= "<span class=\"none\">Not available units</span>";
|
||||
$output.= "<span class=\"none\">".NOT_UNITS."</span>";
|
||||
}else {
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=25\">Train</a>";
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=25\">".TRAIN."</a>";
|
||||
}
|
||||
$output.="</center></td>
|
||||
</tr>";
|
||||
@@ -502,12 +502,12 @@ $output.="<tr>
|
||||
".U26."
|
||||
</div>
|
||||
<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".$u26['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".$u26['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".$u26['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".$u26['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />".
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".$u26['wood']."|
|
||||
<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".$u26['clay']."|
|
||||
<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".$u26['iron']."|
|
||||
<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".$u26['crop']."|
|
||||
<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />6|
|
||||
<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />".
|
||||
$generator->getTimeFormat(round($u26['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*3)."
|
||||
</div>
|
||||
</td>
|
||||
@@ -515,11 +515,11 @@ $output.="<tr>
|
||||
<td class=\"val\" width=\"20%\"><center>";
|
||||
|
||||
if($village->awood < $u26['wood'] OR $village->aclay < $u26['clay'] OR $village->airon < $u26['iron'] OR $village->acrop < $u26['crop']) {
|
||||
$output.= "<span class=\"none\">Not enough resources</span>";
|
||||
$output.= "<span class=\"none\">".NOT."".ENOUGH_RESOURCES."</span>";
|
||||
}else if($units['u26'] == 0){
|
||||
$output.= "<span class=\"none\">Not available units</span>";
|
||||
$output.= "<span class=\"none\">".NOT_UNITS."</span>";
|
||||
}else {
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=26\">Train</a>";
|
||||
$output.= "<a href=\"build.php?id=".$id."&train=26\">".TRAIN."</a>";
|
||||
}
|
||||
$output.="</center></td>
|
||||
</tr>";
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
include("next.tpl");
|
||||
?>
|
||||
<div id="build" class="gid38"><a href="#" onClick="return Popup(38,4);" class="build_logo">
|
||||
<img class="building g38" src="img/x.gif" alt="Great Warehouse" title="Great Warehouse" />
|
||||
<img class="building g38" src="img/x.gif" alt="Great Warehouse" title="<?php echo GREATWAREHOUSE; ?>" />
|
||||
</a>
|
||||
<h1>Great Warehouse <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">Wood, clay and iron are stored in the warehouse. The great warehouse offers you more space and keeps your goods drier and safer than the normal one.</p>
|
||||
<h1><?php echo GREATWAREHOUSE; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo GREATWAREHOUSE_DESC; ?></p>
|
||||
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="build_value">
|
||||
<tr>
|
||||
<th>Current capacity:</th>
|
||||
<td><b><?php echo $bid38[$village->resarray['f'.$id]]['attri']*STORAGE_MULTIPLIER; ?></b> Resource units</td>
|
||||
<th><?php echo CURRENT_CAPACITY; ?></th>
|
||||
<td><b><?php echo $bid38[$village->resarray['f'.$id]]['attri']*STORAGE_MULTIPLIER; ?></b> <?php echo RESOURCE_UNITS; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
@@ -19,13 +19,13 @@ include("next.tpl");
|
||||
$next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master;
|
||||
if($next<=20){
|
||||
?>
|
||||
<th>Capacity at level <?php echo $next ?>:</th>
|
||||
<td><b><?php echo $bid38[$next]['attri']*STORAGE_MULTIPLIER; ?></b> Resource units</td>
|
||||
<th><?php echo CAPACITY_LEVEL; ?> <?php echo $next ?>:</th>
|
||||
<td><b><?php echo $bid38[$next]['attri']*STORAGE_MULTIPLIER; ?></b> <?php echo RESOURCE_UNITS; ?></td>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<th>Capacity at level 20:</th>
|
||||
<td><b><?php echo $bid38[20]['attri']*STORAGE_MULTIPLIER; ?></b> Resource units</td>
|
||||
<th><?php echo CAPACITY_LEVEL; ?> 20:</th>
|
||||
<td><b><?php echo $bid38[20]['attri']*STORAGE_MULTIPLIER; ?></b> <?php echo RESOURCE_UNITS; ?></td>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
include("next.tpl");
|
||||
?>
|
||||
<div id="build" class="gid39"><a href="#" onClick="return Popup(39,4);" class="build_logo">
|
||||
<img class="building g39" src="img/x.gif" alt="Great Granary" title="Great Granary" />
|
||||
<img class="building g39" src="img/x.gif" alt="Great Granary" title="<?php echo GREATGRANARY; ?>" />
|
||||
</a>
|
||||
<h1>Great Granary <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">Crop produced by your farms is stored in the granary. The great granary offers you more space and keeps your crops drier and safer than the normal one.</p>
|
||||
<h1><?php echo GREATGRANARY; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo GREATGRANARY_DESC; ?></p>
|
||||
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="build_value">
|
||||
<tr>
|
||||
<th>Current capacity:</th>
|
||||
<td><b><?php echo $bid39[$village->resarray['f'.$id]]['attri']*STORAGE_MULTIPLIER; ?></b> Crop units</td>
|
||||
<th><?php echo CURRENT_CAPACITY; ?></th>
|
||||
<td><b><?php echo $bid39[$village->resarray['f'.$id]]['attri']*STORAGE_MULTIPLIER; ?></b> <?php echo CROP_UNITS; ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@@ -20,13 +20,13 @@ include("next.tpl");
|
||||
$next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master;
|
||||
if($next<=20){
|
||||
?>
|
||||
<th>Capacity at level <?php echo $next ?>:</th>
|
||||
<td><b><?php echo $bid39[$next]['attri']*STORAGE_MULTIPLIER; ?></b> Crop units</td>
|
||||
<th><?php echo CAPACITY_LEVEL; ?> <?php echo $next ?>:</th>
|
||||
<td><b><?php echo $bid39[$next]['attri']*STORAGE_MULTIPLIER; ?></b> <?php echo CROP_UNITS; ?></td>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<th>Capacity at level 20:</th>
|
||||
<td><b><?php echo $bid39[20]['attri']*STORAGE_MULTIPLIER; ?></b> Crop units</td>
|
||||
<th><?php echo CAPACITY_LEVEL; ?> 20:</th>
|
||||
<td><b><?php echo $bid39[20]['attri']*STORAGE_MULTIPLIER; ?></b> <?php echo CROP_UNITS; ?></td>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<div id="build" class="gid41"><a href="#" onClick="return Popup(41,4);" class="build_logo">
|
||||
<img class="building g41" src="img/x.gif" alt="Horse Drinking Trough" title="Horse Drinking Trough" />
|
||||
<img class="building g41" src="img/x.gif" alt="Horse Drinking Trough" title="<?php echo HORSEDRINKING; ?>" />
|
||||
</a>
|
||||
<h1>Horse Drinking Trough <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">The horse drinking trough of the Romans decreases the training time of cavalry and the upkeep of these troops as well.</p>
|
||||
<h1><?php echo HORSEDRINKING; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo HORSEDRINKING_DESC; ?></p>
|
||||
|
||||
<?php
|
||||
include("upgrade.tpl");
|
||||
|
||||
+11
-11
@@ -1,8 +1,8 @@
|
||||
<div id="build" class="gid42"><a href="#" onClick="return Popup(42,4);" class="build_logo">
|
||||
<img class="building g42" src="img/x.gif" alt="Great Workshop" title="Great Workshop" />
|
||||
<img class="building g42" src="img/x.gif" alt="Great Workshop" title="<?php echo GREATWORKSHOP; ?>" />
|
||||
</a>
|
||||
<h1>Great Workshop <span class="level">level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">Siege engines like catapults and rams can be built in the great workshop. The higher its level the faster the units are produced.</p>
|
||||
<h1><?php echo GREATWORKSHOP; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo GREATWORKSHOP_DESC; ?></p>
|
||||
|
||||
<?php if ($building->getTypeLevel(42) > 0) { ?>
|
||||
<form method="POST" name="snd" action="build.php">
|
||||
@@ -10,9 +10,9 @@
|
||||
<input type="hidden" name="ft" value="t3" />
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
<thead><tr>
|
||||
<td>Name</td>
|
||||
<td>Quantity</td>
|
||||
<td>Max</td>
|
||||
<td><?php echo NAME; ?></td>
|
||||
<td><?php echo QUANTITY; ?></td>
|
||||
<td><?php echo MAX; ?></td>
|
||||
</tr></thead><tbody>
|
||||
<?php
|
||||
include("42_train.tpl");
|
||||
@@ -20,16 +20,16 @@
|
||||
<p><input type="image" id="btn_train" class="dynamic_img" value="ok" name="s1" src="img/x.gif" alt="train" /></form></p>
|
||||
<?php
|
||||
} else {
|
||||
echo "<b>Training can commence when great workshop is completed.</b><br>\n";
|
||||
echo "<b>".TRAINING_COMMENCE_GREATWORKSHOP."</b><br>\n";
|
||||
}
|
||||
$trainlist = $technology->getTrainingList(7);
|
||||
if(count($trainlist) > 0) {
|
||||
echo "
|
||||
<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\">
|
||||
<thead><tr>
|
||||
<td>Training</td>
|
||||
<td>Duration</td>
|
||||
<td>Finished</td>
|
||||
<td>".TRAINING."</td>
|
||||
<td>".DURATION."</td>
|
||||
<td>".FINISHED."</td>
|
||||
</tr></thead>
|
||||
<tbody>";
|
||||
$TrainCount = 0;
|
||||
@@ -51,7 +51,7 @@
|
||||
}
|
||||
echo $time[1];
|
||||
} ?>
|
||||
</tr><tr class="next"><td colspan="3">The next unit will be finished in <span id="timer2"><?php echo $NextFinished; ?></span></td></tr>
|
||||
</tr><tr class="next"><td colspan="3"><?php echo UNIT_FINISHED; ?> <span id="timer2"><?php echo $NextFinished; ?></span></td></tr>
|
||||
</tbody></table>
|
||||
<?php }
|
||||
include("upgrade.tpl");
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
echo "<tr><td class=\"desc\">
|
||||
<div class=\"tit\">
|
||||
<img class=\"unit u".$i."\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" />
|
||||
<a href=\"#\" onClick=\"return Popup(".$i.",1);\"> ".$technology->getUnitName($i)."</a> <span class=\"info\">(Available: ".$village->unitarray['u'.$i].")</span>
|
||||
<a href=\"#\" onClick=\"return Popup(".$i.",1);\"> ".$technology->getUnitName($i)."</a> <span class=\"info\">(".AVAILABLE.": ".$village->unitarray['u'.$i].")</span>
|
||||
</div>
|
||||
<div class=\"details\">
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"Wood\" />".(${'u'.$i}['wood']*3)."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".(${'u'.$i}['clay']*3)."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".(${'u'.$i}['iron']*3)."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".(${'u'.$i}['crop']*3)."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"Crop consumption\" />".${'u'.$i}['pop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"Duration\" />";
|
||||
<img class=\"r1\" src=\"img/x.gif\" alt=\"Wood\" title=\"".LUMBER."\" />".(${'u'.$i}['wood']*3)."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".(${'u'.$i}['clay']*3)."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".(${'u'.$i}['iron']*3)."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".(${'u'.$i}['crop']*3)."|<img class=\"r5\" src=\"img/x.gif\" alt=\"Crop consumption\" title=\"".CROP_COM."\" />".${'u'.$i}['pop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"Duration\" title=\"".DURATION."\" />";
|
||||
$dur=round(${'u'.$i}['time'] * ($bid42[$village->resarray['f'.$id]]['attri'] / 100) / SPEED * $artefact_bonus2 / $artefact_bonus);
|
||||
$foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid);
|
||||
if(count($foolartefact) > 0){
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
include("next.tpl");
|
||||
?>
|
||||
<div id="build" class="gid5"><a href="#" onClick="return Popup(5,4);" class="build_logo">
|
||||
<img class="building g5" src="img/x.gif" alt="Sawmill" title="Sawmill" />
|
||||
<img class="building g5" src="img/x.gif" alt="Sawmill" title="<?php echo SAWMILL; ?>" />
|
||||
</a>
|
||||
<h1>Sawmill <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">Here wood delivered by your Woodcutters is processed. Based on its level your sawmill can increase your wood production by up to 25 percent.</p>
|
||||
<h1><?php echo SAWMILL; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo SAWMILL_DESC; ?></p>
|
||||
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="build_value">
|
||||
<tr>
|
||||
<th>Current wood bonus:</th>
|
||||
<td><b><?php echo $bid5[$village->resarray['f'.$id]]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo CURRENT_WOOD_BONUS; ?></th>
|
||||
<td><b><?php echo $bid5[$village->resarray['f'.$id]]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
@@ -19,13 +19,13 @@ include("next.tpl");
|
||||
$next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master;
|
||||
if($next<=5){
|
||||
?>
|
||||
<th>Wood bonus at level <?php echo $next; ?>:</th>
|
||||
<td><b><?php echo $bid5[$next]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo WOOD_BONUS_LEVEL; ?> <?php echo $next; ?>:</th>
|
||||
<td><b><?php echo $bid5[$next]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<th>Wood bonus at level 5:</th>
|
||||
<td><b><?php echo $bid5[5]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo WOOD_BONUS_LEVEL; ?> 5:</th>
|
||||
<td><b><?php echo $bid5[5]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}}
|
||||
?>
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
include("next.tpl");
|
||||
?>
|
||||
<div id="build" class="gid6"><a href="#" onClick="return Popup(6,4);" class="build_logo">
|
||||
<img class="building g6" src="img/x.gif" alt="Brickyard" title="Brickyard" />
|
||||
<img class="building g6" src="img/x.gif" alt="Brickyard" title="<?php echo BRICKYARD; ?>" />
|
||||
</a>
|
||||
<h1>Brickyard <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">Here clay is processed into bricks. Based on its level your Brickyard can increase your clay production by up to 25 percent.</p>
|
||||
<h1><?php echo BRICKYARD; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo BRICKYARD_DESC; ?></p>
|
||||
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="build_value">
|
||||
<tr>
|
||||
<th>Current clay bonus:</th>
|
||||
<td><b><?php echo $bid6[$village->resarray['f'.$id]]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo CURRENT_WOOD_BONUS; ?></th>
|
||||
<td><b><?php echo $bid6[$village->resarray['f'.$id]]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
@@ -19,13 +19,13 @@ include("next.tpl");
|
||||
$next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master;
|
||||
if($next<=5){
|
||||
?>
|
||||
<th>Clay bonus at level <?php echo $next; ?>:</th>
|
||||
<td><b><?php echo $bid6[$next]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo CLAY_BONUS_LEVEL; ?> <?php echo $next; ?>:</th>
|
||||
<td><b><?php echo $bid6[$next]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<th>Clay bonus at level 5:</th>
|
||||
<td><b><?php echo $bid6[5]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo CLAY_BONUS_LEVEL; ?> 5:</th>
|
||||
<td><b><?php echo $bid6[5]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}}
|
||||
?>
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
include("next.tpl");
|
||||
?>
|
||||
<div id="build" class="gid7"><a href="#" onClick="return Popup(7,4);" class="build_logo">
|
||||
<img class="building g7" src="img/x.gif" alt="Iron Foundry" title="Iron Foundry" />
|
||||
<img class="building g7" src="img/x.gif" alt="Iron Foundry" title="<?php echo IRONFOUNDRY; ?>" />
|
||||
</a>
|
||||
<h1>Iron Foundry <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">Iron is smelted here. Based on its level your Iron Foundry can increase your iron production by up to 25 percent.</p>
|
||||
<h1><?php echo IRONFOUNDRY; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo IRONFOUNDRY_DESC; ?></p>
|
||||
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="build_value">
|
||||
<tr>
|
||||
<th>Current iron bonus:</th>
|
||||
<td><b><?php echo $bid7[$village->resarray['f'.$id]]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo CURRENT_IRON_BONUS; ?></th>
|
||||
<td><b><?php echo $bid7[$village->resarray['f'.$id]]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
@@ -19,13 +19,13 @@ include("next.tpl");
|
||||
$next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master;
|
||||
if($next<=5){
|
||||
?>
|
||||
<th>Iron bonus at level <?php echo $next; ?>:</th>
|
||||
<td><b><?php echo $bid7[$next]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo IRON_BONUS_LEVEL; ?> <?php echo $next; ?>:</th>
|
||||
<td><b><?php echo $bid7[$next]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<th>Iron bonus at level 5:</th>
|
||||
<td><b><?php echo $bid7[5]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo IRON_BONUS_LEVEL; ?> 5:</th>
|
||||
<td><b><?php echo $bid7[5]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}}
|
||||
?>
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
include("next.tpl");
|
||||
?>
|
||||
<div id="build" class="gid8"><a href="#" onClick="return Popup(8,4);" class="build_logo">
|
||||
<img class="building g8" src="img/x.gif" alt="Grain Mill" title="Grain Mill" />
|
||||
<img class="building g8" src="img/x.gif" alt="Grain Mill" title="<?php echo GRAINMILL; ?>" />
|
||||
</a>
|
||||
<h1>Grain Mill <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">Here your grain is milled in order to produce flour. Based on its level your grain mill can increase your crop production by up to 25 percent.</p>
|
||||
<h1><?php echo GRAINMILL; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo GRAINMILL_DESC; ?></p>
|
||||
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="build_value">
|
||||
<tr>
|
||||
<th>Current crop bonus:</th>
|
||||
<td><b><?php echo $bid8[$village->resarray['f'.$id]]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo CURRENT_CROP_BONUS; ?></th>
|
||||
<td><b><?php echo $bid8[$village->resarray['f'.$id]]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
@@ -19,13 +19,13 @@ include("next.tpl");
|
||||
$next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master;
|
||||
if($next<=5){
|
||||
?>
|
||||
<th>Crop bonus at level <?php echo $next; ?>:</th>
|
||||
<td><b><?php echo $bid8[$next]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo CROP_BONUS_LEVEL; ?> <?php echo $next; ?>:</th>
|
||||
<td><b><?php echo $bid8[$next]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<th>Crop bonus at level 5:</th>
|
||||
<td><b><?php echo $bid8[5]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo CROP_BONUS_LEVEL; ?> 5:</th>
|
||||
<td><b><?php echo $bid8[5]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}}
|
||||
?>
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
include("next.tpl");
|
||||
?>
|
||||
<div id="build" class="gid9"><a href="#" onClick="return Popup(9,4);" class="build_logo">
|
||||
<img class="building g9" src="img/x.gif" alt="Bakery" title="Bakery" />
|
||||
<img class="building g9" src="img/x.gif" alt="Bakery" title="<?php echo BAKERY; ?>" />
|
||||
</a>
|
||||
<h1>Bakery <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc">Here the flour produced in your mill is used to bake bread. In addition with the Grain Mill the increase in crop production can go up to 50 percent.</p>
|
||||
<h1><?php echo BAKERY; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
||||
<p class="build_desc"><?php echo BAKERY_DESC; ?></p>
|
||||
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="build_value">
|
||||
<tr>
|
||||
<th>Current crop bonus:</th>
|
||||
<td><b><?php echo $bid9[$village->resarray['f'.$id]]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo CURRENT_CROP_BONUS; ?></th>
|
||||
<td><b><?php echo $bid9[$village->resarray['f'.$id]]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
@@ -19,13 +19,13 @@ include("next.tpl");
|
||||
$next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master;
|
||||
if($next<=5){
|
||||
?>
|
||||
<th>Crop bonus at level <?php echo $next; ?>:</th>
|
||||
<td><b><?php echo $bid9[$next]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo CROP_BONUS_LEVEL; ?> <?php echo $next; ?>:</th>
|
||||
<td><b><?php echo $bid9[$next]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<th>Crop bonus at level 5:</th>
|
||||
<td><b><?php echo $bid9[5]['attri']; ?></b> Percent</td>
|
||||
<th><?php echo CROP_BONUS_LEVEL; ?> 5:</th>
|
||||
<td><b><?php echo $bid9[5]['attri']; ?></b> <?php echo PERCENT; ?></td>
|
||||
<?php
|
||||
}}
|
||||
?>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
$normalA = $database->getOwnArtefactInfoByType($village->wid,6);
|
||||
$normalA = $database->getOwnArtefactInfoByType($village->wid,6);
|
||||
$largeA = $database->getOwnUniqueArtefactInfo($session->uid,6,2);
|
||||
|
||||
$mainbuilding = $building->getTypeLevel(15);
|
||||
@@ -40,7 +40,7 @@ $brewery = $building->getTypeLevel(35);
|
||||
$horsedrinkingtrough = $building->getTypeLevel(41);
|
||||
$herosmansion = $building->getTypeLevel(37);
|
||||
$greatwarehouse = $building->getTypeLevel(38);
|
||||
$greatgranary = $building->getTypeLevel(39);
|
||||
$greatgranary = $building->getTypeLevel(39);
|
||||
$greatworkshop = $building->getTypeLevel(42);
|
||||
|
||||
$mainbuilding1 = $database->getBuildingByType2($village->wid,15);
|
||||
@@ -81,13 +81,13 @@ $brewery1 = $database->getBuildingByType2($village->wid,35);
|
||||
$horsedrinkingtrough1 = $database->getBuildingByType2($village->wid,41);
|
||||
$herosmansion1 = $database->getBuildingByType2($village->wid,37);
|
||||
$greatwarehouse1 = $database->getBuildingByType2($village->wid,38);
|
||||
$greatgranary1 = $database->getBuildingByType2($village->wid,39);
|
||||
$greatgranary1 = $database->getBuildingByType2($village->wid,39);
|
||||
$greatworkshop1 = $database->getBuildingByType2($village->wid,42);
|
||||
|
||||
?>
|
||||
<div id="build" class="gid0"><h1>Construct new building</h1>
|
||||
<div id="build" class="gid0"><h1<?php echo CONSTRUCT_NEW_BUILDING;?></h1>
|
||||
<?php
|
||||
if($mainbuilding == 0 && $mainbuilding1 == 0 && $id != 39 && $id != 40) {
|
||||
if($mainbuilding == 0 && $mainbuilding1 == 0 && $id != 39 && $id != 40) {
|
||||
include("avaliable/mainbuilding.tpl");
|
||||
}
|
||||
if((($cranny == 0 && $cranny1 == 0) || $cranny == 10) && $mainbuilding >= 1 && $id != 39 && $id != 40) {
|
||||
@@ -100,16 +100,16 @@ if($wall == 0 && $wall1 == 0) {
|
||||
if($session->tribe == 1 && $id != 39) {
|
||||
include("avaliable/citywall.tpl");
|
||||
}
|
||||
if($session->tribe == 2 && $id != 39) {
|
||||
if($session->tribe == 2 && $id != 39) {
|
||||
include("avaliable/earthwall.tpl");
|
||||
}
|
||||
if($session->tribe == 3 && $id != 39) {
|
||||
if($session->tribe == 3 && $id != 39) {
|
||||
include("avaliable/palisade.tpl");
|
||||
}
|
||||
if($session->tribe == 4 && $id != 39) {
|
||||
if($session->tribe == 4 && $id != 39) {
|
||||
include("avaliable/earthwall.tpl");
|
||||
}
|
||||
if($session->tribe == 5 && $id != 39) {
|
||||
if($session->tribe == 5 && $id != 39) {
|
||||
include("avaliable/citywall.tpl");
|
||||
}
|
||||
}
|
||||
@@ -121,7 +121,7 @@ if((($greatwarehouse == 0 && $greatwarehouse1 == 0) || $greatwarehouse == 20) &&
|
||||
}
|
||||
if((($greatgranary == 0 && $greatgranary1 == 0) || $greatgranary == 20) && $mainbuilding >= 10 && ($largeA['owner'] == $session->uid || $normalA['vref'] == $village->wid || $village->natar==1) && ($id != 39 && $id != 40)) {
|
||||
include("avaliable/greatgranary.tpl");
|
||||
}
|
||||
}
|
||||
if((($trapper == 0 && $trapper1 == 0) || $trapper == 20) && $rallypoint >= 1 && $session->tribe == 3 && $id != 39 && $id != 40) {
|
||||
include("avaliable/trapper.tpl");
|
||||
}
|
||||
@@ -132,7 +132,7 @@ if($embassy == 0 && $embassy1 == 0 && $id != 39 && $id != 40) {
|
||||
include("avaliable/embassy.tpl");
|
||||
}
|
||||
//fix hero
|
||||
if($hero == 0 && $hero1 == 0 && $mainbuilding >= 3 && $rallypoint >= 1 && $id != 39 && $id != 40) {
|
||||
if($hero == 0 && $hero1 == 0 && $mainbuilding >= 3 && $rallypoint >= 1 && $id != 39 && $id != 40) {
|
||||
include("avaliable/hero.tpl");
|
||||
}
|
||||
//fix barracks
|
||||
@@ -170,22 +170,22 @@ mysql_select_db(SQL_DB);
|
||||
$query = mysql_query("SELECT * FROM ".TB_PREFIX."vdata WHERE owner = ".$user."");
|
||||
while($villaggi_array = mysql_fetch_array($query)){
|
||||
|
||||
//loop structure village
|
||||
$query1 = mysql_query("SELECT * FROM ".TB_PREFIX."fdata WHERE vref = ".$villaggi_array['wref']."");
|
||||
$strutture= mysql_fetch_array($query1);
|
||||
//loop structure village
|
||||
$query1 = mysql_query("SELECT * FROM ".TB_PREFIX."fdata WHERE vref = ".$villaggi_array['wref']."");
|
||||
$strutture= mysql_fetch_array($query1);
|
||||
|
||||
//search Castle in array structure village
|
||||
$test = in_array(26,$strutture);
|
||||
if ($test){
|
||||
break;
|
||||
}
|
||||
//search Castle in array structure village
|
||||
$test = in_array(26,$strutture);
|
||||
if ($test){
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
//if Castle no ready include palace.tpl
|
||||
if (!$test){
|
||||
include("avaliable/palace.tpl");
|
||||
include("avaliable/palace.tpl");
|
||||
}
|
||||
|
||||
//end Fix
|
||||
@@ -201,37 +201,37 @@ include("avaliable/stonemason.tpl");
|
||||
if($stable == 0 && $stable1 == 0 && $blacksmith >= 3 && $academy >= 5 && $id != 39 && $id != 40) {
|
||||
include("avaliable/stable.tpl");
|
||||
}
|
||||
if($treasury == 0 && $treasury1 == 0 && $village->natar == 0 && $mainbuilding >= 10 && $id != 39 && $id != 40) {
|
||||
if($treasury == 0 && $treasury1 == 0 && $village->natar == 0 && $mainbuilding >= 10 && $id != 39 && $id != 40) {
|
||||
include("avaliable/treasury.tpl");
|
||||
}
|
||||
if($brickyard == 0 && $brickyard1 == 0 && $claypit >= 10 && $mainbuilding >= 5 && $id != 39 && $id != 40 ) {
|
||||
if($brickyard == 0 && $brickyard1 == 0 && $claypit >= 10 && $mainbuilding >= 5 && $id != 39 && $id != 40 ) {
|
||||
include("avaliable/brickyard.tpl");
|
||||
}
|
||||
if($sawmill == 0 && $sawmill1 == 0 && $woodcutter >= 10 && $mainbuilding >= 5 && $id != 39 && $id != 40) {
|
||||
if($sawmill == 0 && $sawmill1 == 0 && $woodcutter >= 10 && $mainbuilding >= 5 && $id != 39 && $id != 40) {
|
||||
include("avaliable/sawmill.tpl");
|
||||
}
|
||||
if($ironfoundry == 0 && $ironfoundry1 == 0 && $ironmine >= 10 && $mainbuilding >= 5 && $id != 39 && $id != 40) {
|
||||
if($ironfoundry == 0 && $ironfoundry1 == 0 && $ironmine >= 10 && $mainbuilding >= 5 && $id != 39 && $id != 40) {
|
||||
include("avaliable/ironfoundry.tpl");
|
||||
}
|
||||
if($workshop == 0 && $workshop1 == 0 && $academy >= 10 && $mainbuilding >= 5 && $id != 39 && $id != 40) {
|
||||
if($workshop == 0 && $workshop1 == 0 && $academy >= 10 && $mainbuilding >= 5 && $id != 39 && $id != 40) {
|
||||
include("avaliable/workshop.tpl");
|
||||
}
|
||||
if($tournamentsquare == 0 && $tournamentsquare1 == 0 && $rallypoint >= 15 && $id != 39 && $id != 40) {
|
||||
if($tournamentsquare == 0 && $tournamentsquare1 == 0 && $rallypoint >= 15 && $id != 39 && $id != 40) {
|
||||
include("avaliable/tsquare.tpl");
|
||||
}
|
||||
if($bakery == 0 && $bakery1 == 0 && $grainmill >= 5 && $cropland >= 10 && $mainbuilding >= 5 && $id != 39 && $id != 40) {
|
||||
if($bakery == 0 && $bakery1 == 0 && $grainmill >= 5 && $cropland >= 10 && $mainbuilding >= 5 && $id != 39 && $id != 40) {
|
||||
include("avaliable/bakery.tpl");
|
||||
}
|
||||
if($townhall == 0 && $townhall1 == 0 && $mainbuilding >= 10 && $academy >= 10 && $id != 39 && $id != 40) {
|
||||
if($townhall == 0 && $townhall1 == 0 && $mainbuilding >= 10 && $academy >= 10 && $id != 39 && $id != 40) {
|
||||
include("avaliable/townhall.tpl");
|
||||
}
|
||||
if($tradeoffice == 0 && $tradeoffice1 == 0 && $market == 20 && $stable >= 10 && $id != 39 && $id != 40) {
|
||||
if($tradeoffice == 0 && $tradeoffice1 == 0 && $market == 20 && $stable >= 10 && $id != 39 && $id != 40) {
|
||||
include("avaliable/tradeoffice.tpl");
|
||||
}
|
||||
if($session->tribe == 1 && $horsedrinkingtrough == 0 && $horsedrinkingtrough1 == 0 && $rallypoint >= 10 && $stable == 20 && $id != 39 && $id != 40) {
|
||||
if($session->tribe == 1 && $horsedrinkingtrough == 0 && $horsedrinkingtrough1 == 0 && $rallypoint >= 10 && $stable == 20 && $id != 39 && $id != 40) {
|
||||
include("avaliable/horsedrinking.tpl");
|
||||
}
|
||||
if($session->tribe == 2 && $village->capital == 1 && $brewery == 0 && $brewery1 == 0 && $rallypoint >= 10 && $granary == 20 && $id != 39 && $id != 40) {
|
||||
if($session->tribe == 2 && $village->capital == 1 && $brewery == 0 && $brewery1 == 0 && $rallypoint >= 10 && $granary == 20 && $id != 39 && $id != 40) {
|
||||
include("avaliable/brewery.tpl");
|
||||
}
|
||||
if($greatbarracks == 0 && $greatbarracks1 == 0 && $barrack == 20 && $village->capital == 0 && $id != 39 && $id != 40) {
|
||||
@@ -245,7 +245,7 @@ if($greatworkshop == 0 && $greatworkshop1 == 0 && $workshop == 20 && $village->c
|
||||
}
|
||||
if($id != 39 && $id != 40) {
|
||||
?>
|
||||
<p class="switch"><a id="soon_link" href="javascript:show_build_list('soon');">show soon available buildings</a></p>
|
||||
<p class="switch"><a id="soon_link" href="javascript:show_build_list('soon');"><?php echo SHOWSOON_AVAILABLE_BUILDINGS;?></a></p>
|
||||
|
||||
<div id="build_list_soon" class="hide">
|
||||
<?php
|
||||
@@ -257,7 +257,7 @@ if($mainbuilding < 10 && $warehouse < 10 && $village->capital == 0 && $largeA['o
|
||||
}
|
||||
if($mainbuilding < 10 && $granary < 10 && $village->capital == 0 && $largeA['owner'] == $session->uid || $normalA['vref'] == $village->wid ) {
|
||||
include("soon/greatgranary.tpl");
|
||||
}
|
||||
}
|
||||
if($hero == 0 && ($mainbuilding <= 2 || $rallypoint == 0)){
|
||||
include("soon/hero.tpl");
|
||||
}
|
||||
@@ -292,22 +292,22 @@ mysql_select_db(SQL_DB);
|
||||
$query = mysql_query("SELECT * FROM ".TB_PREFIX."vdata WHERE owner = ".$user."");
|
||||
while($villaggi_array = mysql_fetch_array($query)){
|
||||
|
||||
//loop structure village
|
||||
$query1 = mysql_query("SELECT * FROM ".TB_PREFIX."fdata WHERE vref = ".$villaggi_array['wref']."");
|
||||
$strutture= mysql_fetch_array($query1);
|
||||
//loop structure village
|
||||
$query1 = mysql_query("SELECT * FROM ".TB_PREFIX."fdata WHERE vref = ".$villaggi_array['wref']."");
|
||||
$strutture= mysql_fetch_array($query1);
|
||||
|
||||
//search Castle in array structure village
|
||||
$test = in_array(26,$strutture);
|
||||
if ($test){
|
||||
break;
|
||||
}
|
||||
//search Castle in array structure village
|
||||
$test = in_array(26,$strutture);
|
||||
if ($test){
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
//if Castle no ready include palace.tpl
|
||||
if (!$test){
|
||||
include("soon/palace.tpl");
|
||||
include("soon/palace.tpl");
|
||||
}
|
||||
|
||||
//end Fix
|
||||
@@ -315,7 +315,7 @@ if (!$test){
|
||||
if($blacksmith == 0 && ($academy <= 2 || $mainbuilding <= 2)) {
|
||||
include("soon/blacksmith.tpl");
|
||||
}
|
||||
if($stonemasonslodge == 0 && $palace <= 2 && $palace != 0 && $mainbuilding >= 2 && $mainbuilding <= 4 && $residence == 0 && $village->capital == 1) {
|
||||
if($stonemasonslodge == 0 && $palace <= 2 && $palace != 0 && $mainbuilding >= 2 && $mainbuilding <= 4 && $residence == 0 && $village->capital == 1) {
|
||||
include("soon/stonemason.tpl");
|
||||
}
|
||||
if($stable == 0 && (($blacksmith <= 2 && $blacksmith != 0) || ($academy >= 2 && $academy <= 4))) {
|
||||
@@ -324,7 +324,7 @@ if($stable == 0 && (($blacksmith <= 2 && $blacksmith != 0) || ($academy >= 2 &&
|
||||
if($treasury == 0 && $mainbuilding <= 9 && $mainbuilding >= 5 && $village->natar == 0) {
|
||||
include("soon/treasury.tpl");
|
||||
}
|
||||
if($brickyard == 0 && $claypit <= 9 && $claypit >= 5 && $mainbuilding >= 2 && $mainbuilding <= 4) {
|
||||
if($brickyard == 0 && $claypit <= 9 && $claypit >= 5 && $mainbuilding >= 2 && $mainbuilding <= 4) {
|
||||
include("soon/brickyard.tpl");
|
||||
}
|
||||
if($sawmill == 0 && $woodcutter <= 9 && $woodcutter >= 5 && $mainbuilding >= 2 && $mainbuilding <= 4) {
|
||||
@@ -339,7 +339,7 @@ if($workshop == 0 && $academy <= 9 && $academy >= 5 && $mainbuilding >= 2 && $ma
|
||||
if($tournamentsquare == 0 && $rallypoint <= 14 && $rallypoint >= 7) {
|
||||
include("soon/tsquare.tpl");
|
||||
}
|
||||
if($bakery == 0 && $grainmill <= 4 && $grainmill != 0 && $cropland >= 5 && $cropland <= 9 && $mainbuilding >= 2 && $mainbuilding <= 4) {
|
||||
if($bakery == 0 && $grainmill <= 4 && $grainmill != 0 && $cropland >= 5 && $cropland <= 9 && $mainbuilding >= 2 && $mainbuilding <= 4) {
|
||||
include("soon/bakery.tpl");
|
||||
}
|
||||
if($townhall == 0 && ($mainbuilding <= 9 && $mainbuilding >= 5) || ($academy >= 5 && $academy <= 9)) {
|
||||
@@ -363,71 +363,70 @@ if($greatstable == 0 && $stable >= 18 && $village->capital == 0) {
|
||||
if($greatworkshop == 0 && $workshop >= 18 && $village->capital == 0 && GREAT_WKS) {
|
||||
include("soon/greatworkshop.tpl");
|
||||
}
|
||||
?>
|
||||
</div><p class="switch"><a id="all_link" class="hide"
|
||||
href="javascript:show_build_list('all');">show more</a></p>
|
||||
|
||||
<div id="build_list_all" class="hide">
|
||||
<?php
|
||||
if($academy == 0 && ($mainbuilding == 1 || $barrack == 0)) {
|
||||
?>
|
||||
</div><p class="switch"><a id="all_link" class="hide"
|
||||
href="javascript:show_build_list('all');"><?php echo SHOW_MORE;?></a></p>
|
||||
<div id="build_list_all" class="hide">
|
||||
<?php
|
||||
if($academy == 0 && ($mainbuilding == 1 || $barrack == 0)) {
|
||||
include("soon/academy.tpl");
|
||||
}
|
||||
if($palace == 0 && ($embassy == 0 || $mainbuilding <= 2) && $village->natar == 0) {
|
||||
if($palace == 0 && ($embassy == 0 || $mainbuilding <= 2) && $village->natar == 0) {
|
||||
include("soon/palace.tpl");
|
||||
}
|
||||
if($blacksmith == 0 && ($academy == 0 || $mainbuilding == 1)) {
|
||||
if($blacksmith == 0 && ($academy == 0 || $mainbuilding == 1)) {
|
||||
include("soon/blacksmith.tpl");
|
||||
}
|
||||
if($stonemason == 0 && ($palace == 0 || $mainbuilding <= 2) && $residence == 0) {
|
||||
if($stonemason == 0 && ($palace == 0 || $mainbuilding <= 2) && $residence == 0) {
|
||||
include("soon/stonemason.tpl");
|
||||
}
|
||||
if($stable == 0 && ($blacksmith == 0 || $academy <= 2)) {
|
||||
if($stable == 0 && ($blacksmith == 0 || $academy <= 2)) {
|
||||
include("soon/stable.tpl");
|
||||
}
|
||||
if($treasury == 0 && $mainbuilding <= 5) {
|
||||
if($treasury == 0 && $mainbuilding <= 5) {
|
||||
include("soon/treasury.tpl");
|
||||
}
|
||||
if($brickyard == 0 && ($claypit <= 5 || $mainbuilding <= 2)) {
|
||||
if($brickyard == 0 && ($claypit <= 5 || $mainbuilding <= 2)) {
|
||||
include("soon/brickyard.tpl");
|
||||
}
|
||||
if($sawmill == 0 && ($woodcutter <= 5 || $mainbuilding <= 2)) {
|
||||
if($sawmill == 0 && ($woodcutter <= 5 || $mainbuilding <= 2)) {
|
||||
include("soon/sawmill.tpl");
|
||||
}
|
||||
if($ironfoundry == 0 && ($ironmine <= 5 || $mainbuilding <= 2)) {
|
||||
if($ironfoundry == 0 && ($ironmine <= 5 || $mainbuilding <= 2)) {
|
||||
include("soon/ironfoundry.tpl");
|
||||
}
|
||||
if($workshop == 0 && ($academy <= 5 || $mainbuilding <= 2)) {
|
||||
if($workshop == 0 && ($academy <= 5 || $mainbuilding <= 2)) {
|
||||
include("soon/workshop.tpl");
|
||||
}
|
||||
if($tournamentsquare == 0 && $rallypoint <= 7) {
|
||||
if($tournamentsquare == 0 && $rallypoint <= 7) {
|
||||
include("soon/tsquare.tpl");
|
||||
}
|
||||
if($bakery == 0 && ($grainmill == 0 || $cropland <= 5 || $mainbuilding <= 2)) {
|
||||
if($bakery == 0 && ($grainmill == 0 || $cropland <= 5 || $mainbuilding <= 2)) {
|
||||
include("soon/bakery.tpl");
|
||||
}
|
||||
if($townhall == 0 && ($mainbuilding <= 5 || $academy <= 5)) {
|
||||
if($townhall == 0 && ($mainbuilding <= 5 || $academy <= 5)) {
|
||||
include("soon/townhall.tpl");
|
||||
}
|
||||
if($tradeoffice == 0 && ($market <= 10 || $stable <= 5)) {
|
||||
if($tradeoffice == 0 && ($market <= 10 || $stable <= 5)) {
|
||||
include("soon/tradeoffice.tpl");
|
||||
}
|
||||
if($session->tribe == 1 && $horsedrinkingtrough == 0 && ($rallypoint <= 5 || $stable <= 10)) {
|
||||
if($session->tribe == 1 && $horsedrinkingtrough == 0 && ($rallypoint <= 5 || $stable <= 10)) {
|
||||
include("soon/horsedrinking.tpl");
|
||||
}
|
||||
if($brewery == 0 && ($rallypoint <= 5 || $granary <= 10) && $session->tribe == 2 && $village->capital == 1) {
|
||||
if($brewery == 0 && ($rallypoint <= 5 || $granary <= 10) && $session->tribe == 2 && $village->capital == 1) {
|
||||
include("soon/brewery.tpl");
|
||||
}
|
||||
if($greatbarracks == 0 && $barrack >= 15 && $village->capital == 0) {
|
||||
if($greatbarracks == 0 && $barrack >= 15 && $village->capital == 0) {
|
||||
include("soon/greatbarracks.tpl");
|
||||
}
|
||||
if($greatstable == 0 && $stable >= 15 && $village->capital == 0) {
|
||||
if($greatstable == 0 && $stable >= 15 && $village->capital == 0) {
|
||||
include("soon/greatstable.tpl");
|
||||
}
|
||||
if($greatworkshop == 0 && $workshop >= 15 && $village->capital == 0 && GREAT_WKS) {
|
||||
if($greatworkshop == 0 && $workshop >= 15 && $village->capital == 0 && GREAT_WKS) {
|
||||
include("soon/greatworkshop.tpl");
|
||||
}
|
||||
?>
|
||||
</div><script language="JavaScript" type="text/javascript">
|
||||
?>
|
||||
</div><script language="JavaScript" type="text/javascript">
|
||||
function show_build_list(list) {
|
||||
// aktuelle liste, aktueller link
|
||||
var build_list = document.getElementById('build_list_'+list);
|
||||
@@ -442,29 +441,29 @@ function show_build_list(list) {
|
||||
if (build_list.className == 'hide') {
|
||||
build_list.className = '';
|
||||
if (link == soon_link) {
|
||||
link.innerHTML = 'hide soon available buildings';
|
||||
link.innerHTML = '<?php echo HIDESOON_AVAILABLE_BUILDINGS;?>';
|
||||
if (all_link !== null) {
|
||||
all_link.className = '';
|
||||
}
|
||||
} else {
|
||||
link.innerHTML = 'hide more';
|
||||
} else {
|
||||
link.innerHTML = '<?php echo HIDE_MORE;?>';
|
||||
}
|
||||
} else {
|
||||
} else {
|
||||
build_list.className = 'hide';
|
||||
if (link == soon_link) {
|
||||
link.innerHTML = 'show soon available buildings';
|
||||
link.innerHTML = '<?php echo SHOWSOON_AVAILABLE_BUILDINGS;?>';
|
||||
if (all_link !== null) {
|
||||
all_link.innerHTML = 'show more';
|
||||
all_link.className = 'hide';
|
||||
build_list_all.className = 'hide';
|
||||
}
|
||||
} else {
|
||||
link.innerHTML = 'show more';
|
||||
} else {
|
||||
link.innerHTML = '<?php echo SHOW_MORE;?>';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
//fix by ronix
|
||||
$bid = $_GET['bid'];
|
||||
unset($_GET['bid']);
|
||||
$bindicator = $building->canBuild($id,$bid);
|
||||
@@ -7,45 +6,44 @@ $loopsame = ($building->isCurrent($id) || $building->isLoop($id))?1:0;
|
||||
$doublebuild = ($building->isCurrent($id) && $building->isLoop($id))?1:0;
|
||||
$uprequire = $building->resourceRequired($id,$bid);
|
||||
$mastertime = $uprequire['time'];
|
||||
$_SESSION['mas'][$bid]=$bid.",".$id.",".$mastertime;
|
||||
?>
|
||||
<td class="res">
|
||||
<img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><?php echo $uprequire['wood']; ?> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $uprequire['clay']; ?> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $uprequire['iron']; ?> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $uprequire['crop']; ?> | <img class="r5" src="img/x.gif" alt="Crop consumption" title="Crop consumption" /><?php echo $uprequire['pop']; ?> | <img class="clock" src="img/x.gif" alt="duration" title="duration" /><?php echo $generator->getTimeFormat($uprequire['time']);
|
||||
<img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><?php echo $uprequire['wood']; ?> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $uprequire['clay']; ?> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $uprequire['iron']; ?> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $uprequire['crop']; ?> | <img class="r5" src="img/x.gif" alt="Crop consumption" title="Crop consumption" /><?php echo $uprequire['pop']; ?> | <img class="clock" src="img/x.gif" alt="duration" title="duration" /><?php echo $generator->getTimeFormat($uprequire['time']);
|
||||
|
||||
if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
|
||||
echo "|<a href=\"build.php?gid=17&t=3&r1=".$uprequire['wood']."&r2=".$uprequire['clay']."&r3=".$uprequire['iron']."&r4=".$uprequire['crop']."\" title=\"NPC trade\"><img class=\"npc\" src=\"img/x.gif\" alt=\"NPC trade\" title=\"NPC trade\" /></a>";
|
||||
} ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="link">
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="link">
|
||||
<?php
|
||||
if($bindicator == 2) {
|
||||
echo "<span class=\"none\">The workers are already at work.</span>";
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&time=$mastertime&c=$session->checker\">Constructing with master builder </a>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">Constructing with master builder</span>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}
|
||||
}
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&time=$mastertime\">Constructing with master builder </a>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">Constructing with master builder</span>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}
|
||||
}
|
||||
}
|
||||
else if($bindicator == 3) {
|
||||
echo "<span class=\"none\">The workers are already at work. (waiting loop)</span>";
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&time=$mastertime&c=$session->checker\">Constructing with master builder </a>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">Constructing with master builder</span>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}
|
||||
}
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&time=$mastertime\">Constructing with master builder </a>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">Constructing with master builder</span>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}
|
||||
}
|
||||
}
|
||||
else if($bindicator == 4) {
|
||||
echo "<span class=\"none\">Not enough food. Expand cropland.</span>";
|
||||
@@ -57,33 +55,33 @@ $_SESSION['mas'][$bid]=$bid.",".$id.",".$mastertime;
|
||||
echo "<span class=\"none\">Upgrade Granary.</span>";
|
||||
}
|
||||
else if($bindicator == 7) {
|
||||
$neededtime = $building->calculateAvaliable($id,$bid);
|
||||
echo "<span class=\"none\">Enough resources ".$neededtime[0]." at ".$neededtime[1]."</span>";
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
$neededtime = $building->calculateAvaliable($id,$bid);
|
||||
echo "<span class=\"none\">Enough resources ".$neededtime[0]." at ".$neededtime[1]."</span>";
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&time=$mastertime&c=$session->checker\">Constructing with master builder </a>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">Constructing with master builder</span>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}
|
||||
}
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&time=$mastertime\">Constructing with master builder </a>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">Constructing with master builder</span>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}
|
||||
}
|
||||
}
|
||||
else if($bindicator == 8) {
|
||||
if($session->access!=BANNED){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?a=$bid&id=$id&c=$session->checker\">Construct building.</a>";
|
||||
}else{
|
||||
echo "<a class=\"build\" href=\"banned.php\">Construct building.</a>";
|
||||
}
|
||||
if($session->access!=BANNED){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?a=$bid&id=$id&c=".$session->checker."\">Construct building.</a>";
|
||||
}else{
|
||||
echo "<a class=\"build\" href=\"banned.php\">Construct building.</a>";
|
||||
}
|
||||
}
|
||||
else if($bindicator == 9) {
|
||||
if($session->access!=BANNED){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?a=$bid&id=$id&c=$session->checker\">Construct building. (waiting loop)</a>";
|
||||
}else{
|
||||
echo "<a class=\"build\" href=\"banned.php?a=$bid&id=$id&c=$session->checker\">Construct building. (waiting loop)</a>";
|
||||
if($session->access!=BANNED){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?a=$bid&id=$id&c=".$session->checker."\">Construct building. (waiting loop)</a>";
|
||||
}else{
|
||||
echo "<a class=\"build\" href=\"banned.php?a=$bid&id=$id&c=".$session->checker."\">Construct building. (waiting loop)</a>";
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
?>
|
||||
</td>
|
||||
+97
-99
@@ -1,138 +1,136 @@
|
||||
<?php
|
||||
//fix by ronix
|
||||
$bid = $village->resarray['f'.$id.'t'];
|
||||
$bindicate = $building->canBuild($id,$bid);
|
||||
if($bindicate == 1) {
|
||||
echo "<p><span class=\"none\">Building already at max level</span></p>";
|
||||
echo "<p><span class=\"none\">".MAX_LEVEL."</span></p>";
|
||||
} else if($bindicate == 10) {
|
||||
echo "<p><span class=\"none\">Building max level under construction</span></p>";
|
||||
echo "<p><span class=\"none\">".BUILDING_MAX_LEVEL_UNDER."</span></p>";
|
||||
} else if($bindicate == 11) {
|
||||
echo "<p><span class=\"none\">Building presently being demolished</span></p>";
|
||||
echo "<p><span class=\"none\">".BUILDING_BEING_DEMOLISHED."</span></p>";
|
||||
} else {
|
||||
$loopsame = ($building->isCurrent($id) || $building->isLoop($id))?1:0;
|
||||
$doublebuild = ($building->isCurrent($id) && $building->isLoop($id))?1:0;
|
||||
$master = count($database->getMasterJobsByField($village->wid,$id));
|
||||
$uprequire = $building->resourceRequired($id,$village->resarray['f'.$id.'t'],1+$loopsame+$doublebuild+$master);
|
||||
$mastertime = $uprequire['time'];
|
||||
$_SESSION['mas'][$bid]=$bid.",".$id.",".$mastertime;
|
||||
$loopsame = ($building->isCurrent($id) || $building->isLoop($id))?1:0;
|
||||
$doublebuild = ($building->isCurrent($id) && $building->isLoop($id))?1:0;
|
||||
$master = count($database->getMasterJobsByField($village->wid,$id));
|
||||
$uprequire = $building->resourceRequired($id,$village->resarray['f'.$id.'t'],1+$loopsame+$doublebuild+$master);
|
||||
$mastertime = $uprequire['time'];
|
||||
?>
|
||||
<p id="contract"><b>Costs</b> for upgrading to level <?php echo $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; ?>:<br />
|
||||
<p id="contract"><b><?php echo COSTS_UPGRADING_LEVEL;?> <?php echo $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; ?>:<br />
|
||||
<img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><span class="little_res"><?php echo $uprequire['wood']; ?></span> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><span class="little_res"><?php echo $uprequire['clay']; ?></span> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><span class="little_res"><?php echo $uprequire['iron']; ?></span> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><span class="little_res"><?php echo $uprequire['crop']; ?></span> | <img class="r5" src="img/x.gif" alt="Crop consumption" title="Crop consumption" /><?php echo $uprequire['pop']; ?> | <img class="clock" src="img/x.gif" alt="duration" title="duration" /><?php echo $generator->getTimeFormat($uprequire['time']);
|
||||
if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
|
||||
echo "|<a href=\"build.php?gid=17&t=3&r1=".$uprequire['wood']."&r2=".$uprequire['clay']."&r3=".$uprequire['iron']."&r4=".$uprequire['crop']."\" title=\"NPC trade\"><img class=\"npc\" src=\"img/x.gif\" alt=\"NPC trade\" title=\"NPC trade\" /></a>";
|
||||
} ?><br />
|
||||
<?php
|
||||
if($bindicate == 2) {
|
||||
echo "<span class=\"none\">The workers are already at work.</span>";
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
echo "<span class=\"none\">".WORKERS_ALREADY_WORK."</span>";
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($id <= 18) {
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf1.php?master=$bid&id=$id&time=$mastertime&c=$session->checker\">Constructing with master builder </a>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">Constructing with master builder</span>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}
|
||||
}else{
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&time=$mastertime&c=$session->checker\">Constructing with master builder </a>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">Constructing with master builder</span>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}
|
||||
}
|
||||
}
|
||||
if($id <= 18) {
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf1.php?master=$bid&id=$id&time=$mastertime\">".CONSTRUCTING_MASTER_BUILDER." </a>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">".CONSTRUCTING_MASTER_BUILDER."</span>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}
|
||||
}else{
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&time=$mastertime\">".CONSTRUCTING_MASTER_BUILDER." </a>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">".CONSTRUCTING_MASTER_BUILDER."</span>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if($bindicate == 3) {
|
||||
echo "<span class=\"none\">The workers are already at work. (waiting loop)</span>";
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
echo "<span class=\"none\">".WORKERS_ALREADY_WORK_WAITING."</span>";
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($id <= 18) {
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf1.php?master=$bid&id=$id&time=$mastertime&c=$session->checker\">Constructing with master builder </a>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">Constructing with master builder</span>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}
|
||||
}else{
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&time=$mastertime&c=$session->checker\">Constructing with master builder </a>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">Constructing with master builder</span>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}
|
||||
}
|
||||
}
|
||||
if($id <= 18) {
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf1.php?master=$bid&id=$id&time=$mastertime\">".CONSTRUCTING_MASTER_BUILDER." </a>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">".CONSTRUCTING_MASTER_BUILDER."</span>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}
|
||||
}else{
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&time=$mastertime\">".CONSTRUCTING_MASTER_BUILDER." </a>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">".CONSTRUCTING_MASTER_BUILDER."</span>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if($bindicate == 4) {
|
||||
echo "<span class=\"none\">Not enough food. Expand cropland.</span>";
|
||||
echo "<span class=\"none\">".ENOUGH_FOOD_EXPAND_CROPLAND."</span>";
|
||||
}
|
||||
else if($bindicate == 5) {
|
||||
echo "<span class=\"none\">Upgrade Warehouse.</span>";
|
||||
echo "<span class=\"none\">".UPGRADE_WAREHOUSE.".</span>";
|
||||
}
|
||||
else if($bindicate == 6) {
|
||||
echo "<span class=\"none\">Upgrade Granary.</span>";
|
||||
echo "<span class=\"none\">".UPGRADE_GRANARY.".</span>";
|
||||
}
|
||||
else if($bindicate == 7) {
|
||||
if($village->allcrop - $village->pop - $automation->getUpkeep($village->unitall, 0) > 0){
|
||||
$neededtime = $building->calculateAvaliable($id,$village->resarray['f'.$id.'t'],1+$loopsame+$doublebuild+$master);
|
||||
echo "<span class=\"none\">Enough resources ".$neededtime[0]." at ".$neededtime[1]."</span>";
|
||||
}else{
|
||||
echo "<span class=\"none\">Your crop production is negative, you will never get the required resources.</span>";
|
||||
}
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
if($village->allcrop - $village->pop - $automation->getUpkeep($village->unitall, 0) > 0){
|
||||
$neededtime = $building->calculateAvaliable($id,$village->resarray['f'.$id.'t'],1+$loopsame+$doublebuild+$master);
|
||||
echo "<span class=\"none\">".ENOUGH_RESOURCES." ".$neededtime[0]." at ".$neededtime[1]."</span>";
|
||||
}else{
|
||||
echo "<span class=\"none\">".YOUR_CROP_NEGATIVE."</span>";
|
||||
}
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($id <= 18) {
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf1.php?master=$bid&id=$id&time=$mastertime&c=$session->checker\">Constructing with master builder </a>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">Constructing with master builder</span>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}
|
||||
}else{
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&time=$mastertime&c=$session->checker\">Constructing with master builder </a>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">Constructing with master builder</span>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}
|
||||
}
|
||||
}
|
||||
if($id <= 18) {
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf1.php?master=$bid&id=$id&time=$mastertime\">".CONSTRUCTING_MASTER_BUILDER." </a>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">".CONSTRUCTING_MASTER_BUILDER."</span>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}
|
||||
}else{
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&time=$mastertime\">".CONSTRUCTING_MASTER_BUILDER." </a>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">".CONSTRUCTING_MASTER_BUILDER."</span>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if($bindicate == 8) {
|
||||
if($session->access==BANNED){
|
||||
echo "<a class=\"build\" href=\"banned.php\">Upgrade to level ";
|
||||
}
|
||||
else if($id <= 18) {
|
||||
echo "<a class=\"build\" href=\"dorf1.php?a=$id&c=$session->checker\">Upgrade to level ";
|
||||
if($session->access==BANNED){
|
||||
echo "<a class=\"build\" href=\"banned.php\">".UPGRADE_LEVEL." ";
|
||||
}
|
||||
else if($id <= 18) {
|
||||
echo "<a class=\"build\" href=\"dorf1.php?a=$id&c=$session->checker\">".UPGRADE_LEVEL." ";
|
||||
}
|
||||
else {
|
||||
echo "<a class=\"build\" href=\"dorf2.php?a=$id&c=$session->checker\">Upgrade to level ";
|
||||
}
|
||||
echo $village->resarray['f'.$id]+1;
|
||||
echo ".</a>";
|
||||
echo "<a class=\"build\" href=\"dorf2.php?a=$id&c=$session->checker\">".UPGRADE_LEVEL." ";
|
||||
}
|
||||
echo $village->resarray['f'.$id]+1;
|
||||
echo ".</a>";
|
||||
}
|
||||
else if($bindicate == 9) {
|
||||
if($session->access==BANNED){
|
||||
echo "<a class=\"build\" href=\"banned.php\">Upgrade to level ";
|
||||
}
|
||||
else if($id <= 18) {
|
||||
echo "<a class=\"build\" href=\"dorf1.php?a=$id&c=$session->checker\">Upgrade to level ";
|
||||
if($session->access==BANNED){
|
||||
echo "<a class=\"build\" href=\"banned.php\">".UPGRADE_LEVEL." ";
|
||||
}
|
||||
else if($id <= 18) {
|
||||
echo "<a class=\"build\" href=\"dorf1.php?a=$id&c=$session->checker\">".UPGRADE_LEVEL." ";
|
||||
}
|
||||
else {
|
||||
echo "<a class=\"build\" href=\"dorf2.php?a=$id&c=$session->checker\">Upgrade to level ";
|
||||
echo "<a class=\"build\" href=\"dorf2.php?a=$id&c=$session->checker\">".UPGRADE_LEVEL." ";
|
||||
}
|
||||
echo $village->resarray['f'.$id]+($loopsame > 0 ? 2:1);
|
||||
echo ".</a> <span class=\"none\">(waiting loop)</span> ";
|
||||
echo $village->resarray['f'.$id]+($loopsame > 0 ? 2:1);
|
||||
echo ".</a> <span class=\"none\">".WAITING."</span> ";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,10 +15,10 @@
|
||||
?>
|
||||
|
||||
<div id="build" class="gid40"><a href="#" onClick="return Popup(40,4);" class="build_logo">
|
||||
<img class="building g40" src="img/x.gif" alt="World Wonder" title="World Wonder" />
|
||||
<img class="building g40" src="img/x.gif" alt="World Wonder" title="<?php echo WORLD_WONDER;?>" />
|
||||
</a>
|
||||
<h1>Wonder of the World <br /><span class="level">Level <?php echo $village->resarray['f'.$id];?></span></h1>
|
||||
<p class="build_desc">The World Wonder (otherwise known as a Wonder of the World) is as wonderful as it sounds. "This building" is built in order to win the server. Each level of the World Wonder costs hundreds of thousands (even millions) of resources to build.</p>
|
||||
<h1><?php echo WONDER;?> <br /><span class="level"><?php echo LEVEL;?> <?php echo $village->resarray['f'.$id];?></span></h1>
|
||||
<p class="build_desc"><?php echo WONDER_DESC;?></p>
|
||||
<form action="GameEngine/Game/WorldWonderName.php" method="POST">
|
||||
<input type="hidden" name="vref" value="<?php echo $_SESSION['wid']; ?>" />
|
||||
<?php
|
||||
@@ -26,18 +26,18 @@ $vref = $_SESSION['wid'];
|
||||
$wwname = $database->getWWName($vref);
|
||||
|
||||
if($village->resarray['f'.$id] < 0){
|
||||
echo 'You need to have World Wonder level 1 to be able to change its name.
|
||||
<center><br />World Wonder name: <input class="text" name="wwname" id="wwname" disabled="disabled" value="'.$wwname.'" maxlength="20"></center><p class="btn"><input type="image" value="" tabindex="9" name="s1" disabled="disabled" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" /></p>';
|
||||
echo ''.WORLD_WONDER_CHANGE_NAME.'.
|
||||
<center><br />'.WORLD_WONDER_NAME.': <input class="text" name="wwname" id="wwname" disabled="disabled" value="'.$wwname.'" maxlength="20"></center><p class="btn"><input type="image" value="" tabindex="9" name="s1" disabled="disabled" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" /></p>';
|
||||
} else if($village->resarray['f'.$id] > 0 and $village->resarray['f'.$id] < 11) {
|
||||
echo '<center><br />World Wonder name: <input class="text" name="wwname" id="wwname" value="'.$wwname.'" maxlength="20"></center><p class="btn"><input type="image" value="" tabindex="9" name="s1" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" /></p>';
|
||||
echo '<center><br />'.WORLD_WONDER_NAME.': <input class="text" name="wwname" id="wwname" value="'.$wwname.'" maxlength="20"></center><p class="btn"><input type="image" value="" tabindex="9" name="s1" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" /></p>';
|
||||
} else if ($village->resarray['f'.$id] > 10){
|
||||
echo 'You can not change the name of the World Wonder after level 10.
|
||||
<center><br />World Wonder name: <input class="text" name="wwname" id="wwname" disabled="disabled" value="'.$wwname.'" maxlength="20"></center><p class="btn"><input type="image" value="" tabindex="9" name="s1" disabled="disabled" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" /></p>';
|
||||
echo ''.WORLD_WONDER_NOTCHANGE_NAME.'.
|
||||
<center><br />'.WORLD_WONDER_NAME.': <input class="text" name="wwname" id="wwname" disabled="disabled" value="'.$wwname.'" maxlength="20"></center><p class="btn"><input type="image" value="" tabindex="9" name="s1" disabled="disabled" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" /></p>';
|
||||
}?>
|
||||
</form>
|
||||
<?php
|
||||
if(isset($_GET['n'])) {
|
||||
echo '<br /> <font color="Red"><b>Name changed.</b></font>';
|
||||
echo '<br /> <font color="Red"><b>'.WORLD_WONDER_NAME_CHANGED.'.</b></font>';
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
+155
-152
@@ -1,172 +1,175 @@
|
||||
<?php
|
||||
//fix by ronix
|
||||
<?php
|
||||
$bid = $village->resarray['f'.$id.'t'];
|
||||
$bindicate = $building->canBuild($id,$bid);
|
||||
$wwlevel = $village->resarray['f99'];
|
||||
if($wwlevel > 50){
|
||||
$needed_plan = 1;
|
||||
}else{
|
||||
$needed_plan = 0;
|
||||
}
|
||||
|
||||
$wwbuildingplan = 0;
|
||||
$villages = $database->getVillagesID($session->uid);
|
||||
foreach($villages as $village1){
|
||||
$plan = count($database->getOwnArtefactInfoByType2($village1,11));
|
||||
if($plan > 0){
|
||||
$wwbuildingplan = 1;
|
||||
}
|
||||
$plan = count($database->getOwnArtefactInfoByType2($village1,11));
|
||||
if($plan > 0){
|
||||
$wwbuildingplan = 1;
|
||||
}
|
||||
}
|
||||
if($session->alliance != 0){
|
||||
$alli_users = $database->getUserByAlliance($session->alliance);
|
||||
foreach($alli_users as $users){
|
||||
$villages = $database->getVillagesID($users['id']);
|
||||
if($users['id'] != $session->uid){
|
||||
foreach($villages as $village1){
|
||||
$plan = count($database->getOwnArtefactInfoByType2($village1,11));
|
||||
if($plan > 0){
|
||||
$wwbuildingplan += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$alli_users = $database->getUserByAlliance($session->alliance);
|
||||
foreach($alli_users as $users){
|
||||
$villages = $database->getVillagesID($users['id']);
|
||||
if($users['id'] != $session->uid){
|
||||
foreach($villages as $village1){
|
||||
$plan = count($database->getOwnArtefactInfoByType2($village1,11));
|
||||
if($plan > 0){
|
||||
$wwbuildingplan += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if($wwbuildingplan > $needed_plan){
|
||||
if($bindicate == 1) {
|
||||
echo "<p><span class=\"none\">Building already at max level</span></p>";
|
||||
}elseif($bindicate == 10) {
|
||||
echo "<p><span class=\"none\">Building max level under construction</span></p>";
|
||||
}elseif($bindicate == 11) {
|
||||
echo "<p><span class=\"none\">Building presently being demolished</span></p>";
|
||||
}else{
|
||||
$loopsame = ($building->isCurrent($id) || $building->isLoop($id))?1:0;
|
||||
$doublebuild = ($building->isCurrent($id) && $building->isLoop($id))?1:0;
|
||||
$master = count($database->getMasterJobsByField($village->wid,$id));
|
||||
$uprequire = $building->resourceRequired($id,$village->resarray['f'.$id.'t'],1+$loopsame+$doublebuild+$master);
|
||||
$mastertime = $uprequire['time'];
|
||||
$_SESSION['mas'][$bid]=$bid.",".$id.",".$mastertime;
|
||||
$currentLevel=$village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master;
|
||||
|
||||
$wwlevel = $currentLevel;
|
||||
if($wwlevel > 50){
|
||||
$needed_plan = 1;
|
||||
}else{
|
||||
$needed_plan = 0;
|
||||
}
|
||||
if($wwbuildingplan > $needed_plan){
|
||||
echo "<p><span class=\"none\">".MAX_LEVEL."</span></p>";
|
||||
} else if($bindicate == 10) {
|
||||
echo "<p><span class=\"none\">".BUILDING_MAX_LEVEL_UNDER."</span></p>";
|
||||
} else if($bindicate == 11) {
|
||||
echo "<p><span class=\"none\">".BUILDING_BEING_DEMOLISHED."</span></p>";
|
||||
} else {
|
||||
$loopsame = ($building->isCurrent($id) || $building->isLoop($id))?1:0;
|
||||
$doublebuild = ($building->isCurrent($id) && $building->isLoop($id))?1:0;
|
||||
$master = count($database->getMasterJobsByField($village->wid,$id));
|
||||
$uprequire = $building->resourceRequired($id,$village->resarray['f'.$id.'t'],1+$loopsame+$doublebuild+$master);
|
||||
$mastertime = $uprequire['time'];
|
||||
?>
|
||||
<p id="contract"><b>Costs</b> for upgrading to level <?php echo $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; ?>:<br />
|
||||
<img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><span class="little_res"><?php echo $uprequire['wood']; ?>
|
||||
</span> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><span class="little_res"><?php echo $uprequire['clay']; ?>
|
||||
</span> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><span class="little_res"><?php echo $uprequire['iron']; ?>
|
||||
</span> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><span class="little_res"><?php echo $uprequire['crop']; ?>
|
||||
</span> | <img class="r5" src="img/x.gif" alt="Crop consumption" title="Crop consumption" /><?php echo $uprequire['pop']; ?> | <img class="clock" src="img/x.gif" alt="duration" title="duration" />
|
||||
<?php echo $generator->getTimeFormat($uprequire['time']);
|
||||
if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
|
||||
echo "|<a href=\"build.php?gid=17&t=3&r1=".$uprequire['wood']."&r2=".$uprequire['clay']."&r3=".$uprequire['iron']."&r4=".$uprequire['crop']."\" title=\"NPC trade\"><img class=\"npc\" src=\"img/x.gif\" alt=\"NPC trade\" title=\"NPC trade\" /></a>";
|
||||
} ?><br />
|
||||
<p id="contract"><b><?php echo COSTS_UPGRADING_LEVEL;?> <?php echo $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; ?>:<br />
|
||||
<img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><span class="little_res"><?php echo $uprequire['wood']; ?></span> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><span class="little_res"><?php echo $uprequire['clay']; ?></span> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><span class="little_res"><?php echo $uprequire['iron']; ?></span> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><span class="little_res"><?php echo $uprequire['crop']; ?></span> | <img class="r5" src="img/x.gif" alt="Crop consumption" title="Crop consumption" /><?php echo $uprequire['pop']; ?> | <img class="clock" src="img/x.gif" alt="duration" title="duration" /><?php echo $generator->getTimeFormat($uprequire['time']);
|
||||
if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
|
||||
echo "|<a href=\"build.php?gid=17&t=3&r1=".$uprequire['wood']."&r2=".$uprequire['clay']."&r3=".$uprequire['iron']."&r4=".$uprequire['crop']."\" title=\"NPC trade\"><img class=\"npc\" src=\"img/x.gif\" alt=\"NPC trade\" title=\"NPC trade\" /></a>";
|
||||
} ?><br />
|
||||
<?php
|
||||
if($bindicate == 2) {
|
||||
echo "<span class=\"none\">The workers are already at work.</span>";
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
if($bindicate == 2) {
|
||||
echo "<span class=\"none\">".WORKERS_ALREADY_WORK."</span>";
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($id <= 18) {
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf1.php?master=$bid&id=$id&time=$mastertime&c=$session->checker\">Constructing with master builder </a>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">Constructing with master builder</span>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}
|
||||
}else{
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&time=$mastertime&c=$session->checker\">Constructing with master builder </a>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">Constructing with master builder</span>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}
|
||||
}
|
||||
}
|
||||
}elseif($bindicate == 3) {
|
||||
echo "<span class=\"none\">The workers are already at work. (waiting loop)</span>";
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
if($id <= 18) {
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf1.php?master=$bid&id=$id&time=$mastertime\">".CONSTRUCTING_MASTER_BUILDER." </a>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">".CONSTRUCTING_MASTER_BUILDER."</span>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}
|
||||
}else{
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&time=$mastertime\">".CONSTRUCTING_MASTER_BUILDER." </a>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">".CONSTRUCTING_MASTER_BUILDER."</span>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if($bindicate == 3) {
|
||||
echo "<span class=\"none\">".WORKERS_ALREADY_WORK_WAITING."</span>";
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($id <= 18) {
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf1.php?master=$bid&id=$id&time=$mastertime&c=$session->checker\">Constructing with master builder </a>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">Constructing with master builder</span>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}
|
||||
}else{
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&time=$mastertime&c=$session->checker\">Constructing with master builder </a>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">Constructing with master builder</span>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}
|
||||
}
|
||||
}
|
||||
}elseif($bindicate == 4) {
|
||||
echo "<span class=\"none\">Not enough food. Expand cropland.</span>";
|
||||
}elseif($bindicate == 5) {
|
||||
echo "<span class=\"none\">Upgrade Warehouse.</span>";
|
||||
}else if($bindicate == 6) {
|
||||
echo "<span class=\"none\">Upgrade Granary.</span>";
|
||||
}else if($bindicate == 7) {
|
||||
if($village->allcrop > 0){
|
||||
$neededtime = $building->calculateAvaliable($id,$village->resarray['f'.$id.'t'],1+$loopsame+$doublebuild+$master);
|
||||
echo "<span class=\"none\">Enough resources ".$neededtime[0]." at ".$neededtime[1]."</span>";
|
||||
}else{
|
||||
echo "<span class=\"none\">Your crop production is negative, you will never get the required resources.</span>";
|
||||
}
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
if($id <= 18) {
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf1.php?master=$bid&id=$id&time=$mastertime\">".CONSTRUCTING_MASTER_BUILDER." </a>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">".CONSTRUCTING_MASTER_BUILDER."</span>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}
|
||||
}else{
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&time=$mastertime\">".CONSTRUCTING_MASTER_BUILDER." </a>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">".CONSTRUCTING_MASTER_BUILDER."</span>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if($bindicate == 4) {
|
||||
echo "<span class=\"none\">".ENOUGH_FOOD_EXPAND_CROPLAND."</span>";
|
||||
}
|
||||
else if($bindicate == 5) {
|
||||
echo "<span class=\"none\">".UPGRADE_WAREHOUSE.".</span>";
|
||||
}
|
||||
else if($bindicate == 6) {
|
||||
echo "<span class=\"none\">".UPGRADE_GRANARY.".</span>";
|
||||
}
|
||||
else if($bindicate == 7) {
|
||||
if($village->allcrop > 0){
|
||||
$neededtime = $building->calculateAvaliable($id,$village->resarray['f'.$id.'t'],1+$loopsame+$doublebuild+$master);
|
||||
echo "<span class=\"none\">".ENOUGH_RESOURCES." ".$neededtime[0]." at ".$neededtime[1]."</span>";
|
||||
}else{
|
||||
echo "<span class=\"none\">".YOUR_CROP_NEGATIVE."</span>";
|
||||
}
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($id <= 18) {
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf1.php?master=$bid&id=$id&time=$mastertime&c=$session->checker\">Constructing with master builder </a>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">Constructing with master builder</span>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}
|
||||
}else{
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&time=$mastertime&c=$session->checker\">Constructing with master builder </a>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">Constructing with master builder</span>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}
|
||||
}
|
||||
}
|
||||
}elseif($bindicate == 8) {
|
||||
if($session->access==BANNED){
|
||||
echo "<a class=\"build\" href=\"banned.php\">Upgrade to level ";
|
||||
}elseif($id <= 18) {
|
||||
echo "<a class=\"build\" href=\"dorf1.php?a=$id&c=$session->checker\">Upgrade to level ";
|
||||
}else{
|
||||
echo "<a class=\"build\" href=\"dorf2.php?a=$id&c=$session->checker\">Upgrade to level ";
|
||||
}
|
||||
echo $village->resarray['f'.$id]+1;
|
||||
echo ".</a>";
|
||||
}elseif($bindicate == 9) {
|
||||
if($session->access==BANNED){
|
||||
echo "<a class=\"build\" href=\"banned.php\">Upgrade to level ";
|
||||
}else if($id <= 18) {
|
||||
echo "<a class=\"build\" href=\"dorf1.php?a=$id&c=$session->checker\">Upgrade to level ";
|
||||
}else{
|
||||
echo "<a class=\"build\" href=\"dorf2.php?a=$id&c=$session->checker\">Upgrade to level ";
|
||||
}
|
||||
echo $village->resarray['f'.$id]+($loopsame > 0 ? 2:1);
|
||||
echo ".</a> <span class=\"none\">(waiting loop)</span> ";
|
||||
if($id <= 18) {
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf1.php?master=$bid&id=$id&time=$mastertime\">".CONSTRUCTING_MASTER_BUILDER." </a>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">".CONSTRUCTING_MASTER_BUILDER."</span>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}
|
||||
}else{
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&time=$mastertime\">".CONSTRUCTING_MASTER_BUILDER." </a>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">".CONSTRUCTING_MASTER_BUILDER."</span>";
|
||||
echo '<font color="#B3B3B3">('.COSTS.': <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="'.GOLD.'"/>1)</font>';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if($bindicate == 8) {
|
||||
if($session->access==BANNED){
|
||||
echo "<a class=\"build\" href=\"banned.php\">".UPGRADE_LEVEL." ";
|
||||
}
|
||||
else if($id <= 18) {
|
||||
echo "<a class=\"build\" href=\"dorf1.php?a=$id&c=$session->checker\">".UPGRADE_LEVEL." ";
|
||||
}
|
||||
}else{
|
||||
if($needed_plan == 0){
|
||||
echo "<span class=\"none\">Need WW construction plan.</span>";
|
||||
}else{
|
||||
echo "<span class=\"none\">Need more WW construction plan.</span>";
|
||||
else {
|
||||
echo "<a class=\"build\" href=\"dorf2.php?a=$id&c=$session->checker\">".UPGRADE_LEVEL." ";
|
||||
}
|
||||
echo $village->resarray['f'.$id]+1;
|
||||
echo ".</a>";
|
||||
}
|
||||
else if($bindicate == 9) {
|
||||
if($session->access==BANNED){
|
||||
echo "<a class=\"build\" href=\"banned.php\">".UPGRADE_LEVEL." ";
|
||||
}
|
||||
else if($id <= 18) {
|
||||
echo "<a class=\"build\" href=\"dorf1.php?a=$id&c=$session->checker\">".UPGRADE_LEVEL." ";
|
||||
}
|
||||
else {
|
||||
echo "<a class=\"build\" href=\"dorf2.php?a=$id&c=$session->checker\">".UPGRADE_LEVEL." ";
|
||||
}
|
||||
echo $village->resarray['f'.$id]+($loopsame > 0 ? 2:1);
|
||||
echo ".</a> <span class=\"none\">".WAITING."</span> ";
|
||||
}
|
||||
}
|
||||
?>
|
||||
}else{
|
||||
if($needed_plan == 0){
|
||||
echo "<span class=\"none\">".NEED_WWCONSTRUCTION_PLAN.".</span>";
|
||||
}else{
|
||||
echo "<span class=\"none\">".NEED_MORE_WWCONSTRUCTION_PLAN.".</span>";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user