From cd885322fd0a461128fc6db382bee7969bcce6a0 Mon Sep 17 00:00:00 2001 From: armando1980 Date: Thu, 23 Jan 2014 22:27:19 -0500 Subject: [PATCH 01/50] Adding Artefact and plan by: Armando --- GameEngine/Lang/en.php | 118 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php index a33f8d2f..1efca599 100644 --- a/GameEngine/Lang/en.php +++ b/GameEngine/Lang/en.php @@ -560,6 +560,124 @@ define("WONDER","Wonder of the World"); define("HORSEDRINKING","Horse Drinking Trough"); define("GREATWORKSHOP","Great Workshop"); +//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."); +define("ARCHITECTS_SMALL","The architects slight secret"); +define("ARCHITECTS_SMALLVILLAGE","Diamond Chisel"); +define("ARCHITECTS_LARGE","The architects great secret"); +define("ARCHITECTS_LARGEVILLAGE","Giant Marble Hammer"); +define("ARCHITECTS_UNIQUE","The architects unique secret"); +define("ARCHITECTS_UNIQUEVILLAGE","Hemons Scrolls"); +define("HASTE_DESC","All troops in the area of effect move faster."); +define("HASTE_SMALL","The slight titan boots"); +define("HASTE_SMALLVILLAGE","Opal Horseshoe"); +define("HASTE_LARGE","The great titan boots"); +define("HASTE_LARGEVILLAGE","Golden Chariot"); +define("HASTE_UNIQUE","The unique titan boots"); +define("HASTE_UNIQUEVILLAGE","Pheidippides Sandals"); +define("EYESIGHT_DESC","All spies (Scouts, Pathfinders, and Equites Legati) increase their spying ability. In addition, with all versions of this artifact you can see the incoming TYPE of troops but not how many there are."); +define("EYESIGHT_SMALL","The eagles slight eyes"); +define("EYESIGHT_SMALLVILLAGE","Tale of a Rat"); +define("EYESIGHT_LARGE","The eagles great eyes"); +define("EYESIGHT_LARGEVILLAGE","Generals Letter"); +define("EYESIGHT_UNIQUE","The eagles unique eyes"); +define("EYESIGHT_UNIQUEVILLAGE","Diary of Sun Tzu"); +define("DIET_DESC","All troops in the artifacts range consume less wheat, making it possible to maintain a larger army."); +define("DIET_SMALL","Slight diet control"); +define("DIET_SMALLVILLAGE","Silver Platter"); +define("DIET_LARGE","Great diet control"); +define("DIET_LARGEVILLAGE","Sacred Hunting Bow"); +define("DIET_UNIQUE","Unique diet control"); +define("DIET_UNIQUEVILLAGE","King Arthurs Chalice"); +define("ACADEMIC_DESC","Troops are built a certain percentage faster within the scope of the artifact."); +define("ACADEMIC_SMALL","The trainers slight talent"); +define("ACADEMIC_SMALLVILLAGE","Scribed Soldiers Oath"); +define("ACADEMIC_LARGE","The trainers great talent"); +define("ACADEMIC_LARGEVILLAGE","Declaration of War"); +define("ACADEMIC_UNIQUE","The trainers unique talent"); +define("ACADEMIC_UNIQUEVILLAGE","Memoirs of Alexander the Great"); +define("STORAGE_DESC","With this building plan you are able to build the Great Granary or Great Warehouse in the Village with the artifact, or the whole account depending on the artifact. As long as you posses that artifact you are able to build and enlarge those buildings."); +define("STORAGE_SMALL","Slight storage masterplan"); +define("STORAGE_SMALLVILLAGE","Builders Sketch"); +define("STORAGE_LARGE","Great storage masterplan"); +define("STORAGE_LARGEVILLAGE","Babylonian Tablet"); +define("CONFUSION_DESC","Cranny capacity is increased by a certain amount for each type of artifact. Catapults can only shoot random on villages within this artifacts power. Exceptions are the WW which can always be targeted and the treasure chamber which can always be targeted, except with the unique artifact. When aiming at a resource field only random resource fields can be hit, when aiming at a building only random buildings can be hit."); +define("CONFUSION_SMALL","Rivals slight confusion"); +define("CONFUSION_SMALLVILLAGE","Map of the Hidden Caverns"); +define("CONFUSION_LARGE","Rivals great confusion"); +define("CONFUSION_LARGEVILLAGE","Bottomless Satchel"); +define("CONFUSION_UNIQUE","Rivals unique confusion"); +define("CONFUSION_UNIQUEVILLAGE","Trojan Horse"); +define("FOOL_DESC","Every 24 hours it gets a random effect, bonus, or penalty (all are possible with the exception of great warehouse, great granary and WW building plans). They change effect AND scope every 24 hours. The unique artifact will always take positive bonuses."); +define("FOOL_SMALL","Artefact of the slight fool"); +define("FOOL_SMALLVILLAGE","Pendant of Mischief"); +define("FOOL_UNIQUE","Artefact of the unique fool"); +define("FOOL_UNIQUEVILLAGE","Forbidden Manuscript"); +define("ARTEFACT","Construction plans + + + +Countless days have passed since the first battles upon the walls of the cursed villages of the Dread Natars, many armies of both the free ones and the Natarian empire struggled and died before the walls of the many strongholds from which the Natars had once ruled all creation. Now with the dust settled and a relative calm having settled in, armies began to count their losses and collect their dead, the stench of combat still lingering in the night air, a smell of a slaughter unforgettable in its extent and brutality yet soon to be dwarfed by yet others. The largest armies of the free ones and the Dread Natars were marshalling for yet another renewed assault upon the coveted former strongholds of the Natarian Empire. + +Soon scouts arrived telling of a most awesome sight and a chilling reminder, a dread army of an unfathomable size had been spotted marshalling at the end of the world, the Natarian capital, a force so great and unstoppable that the dust from their march would choke off all light, a force so brutal and ruthless that it would crush all hope. The free people knew that they had to race now, race against time and the endless hordes of the Natarian Empire to raise a Wonder of the World to restore the world to peace and vanquish the Natarian threat. + +But to raise such a great Wonder would be no easy task, one would need construction plans created in the distant past, plans of such an arcane nature that even the very wisest of sages knew not their contents or locations. + +Tens of thousands of scouts roamed across all existence searching in vain for these mystical plans, looking in all places but the dreaded Natarian Capital, yet could not find them. Today however, they return bearing good news, they return baring the locations of the plans, hidden by the armies of the Natars inside secret strongholds constructed to be hidden from the eyes of man. + +Now begins the final stretch, when the greatest armies of the Free people and the Natars will clash across the world for the fate of all that lies under heaven. This is the war that will echo across the eons, this is your war, and here you shall etch your name across history, here you shall become legend. + + +Facts: +To steal one, the following things must happen: +You must attack the village (NO Raid!) +WIN the Attack +Destroy the treasury +An empty treasury lvl 10 MUST be in the village where that attack came from +Have a hero in an attack + +If not, the next attack on that village, winning with a hero and empty treasury will take the building plan. + +To build a WW, you must own a plan yourself (you = the WW village owner) from lvl 0 to 49, from 50 to 100 you need an additional plan in your alliance! Two plans in the WW village account would not work! + +The construction plans are conquerable immediately when they appear to the server. + +There will be a countdown in game, showing the exact time of the release, 5 days prior to the launch. "); + + +//planos +define("PLAN","Ancient Construction Plan"); +define("PLANVILLAGE","WW Buildingplan"); +define("PLAN_DESC","With this ancient construction plan you will able to build World Wonder to level 50. to build further, your alliance must hold at least two plans."); +define("PLAN_INFO","World Wonder Construction Plans + + +Many moons ago the tribes of Travian were surprised by the unforeseen return of the Natars. This tribe from immemorial times surpassing all in wisdom, might and glory was about to trouble the free ones again. Thus they put all their efforts in preparing a last war against the Natars and vanquishing them forever. Many thought about the so-called 'Wonders of the World', a construction of many legends, as the only solution. It was told that it would render anyone invincible once completed. Ultimately making the constructors the rulers and conquerors of all known Travian. + +However, it was also told that one would need construction plans to construct such a building. Due to this fact, the architects devised cunning plans about how to store these safely. After a while, one could see temple-like buildings in many a city and metropolis - the Treasure Chambers (Treasuries). + +Sadly, no one - not even the wise and well versed - knew where to find these construction plans. The harder people tried to locate them, the more it seemed as if they where only legends. + +Today, however, this last secret will be revealed. Deprivations and endeavors of the past will not have been in vain, as today scouts of several tribes have successfully obtained the whereabouts of the construction plans. Well guarded by the Natars, they lie hidden in several oases to be found all over Travian. Only the most valiant heroes will be able to secure such a plan and bring it home safely so that the construction can begin. + +In the end, we will see whether the free tribes of Travian can once again outwit the Natars and vanquish them once and for all. Do not be so foolish as to assume that the Natars will leave without a fight, though! + + + +To steal a set of Construction Plans from the Natars, the following things must happen: +- You must Attack the village (NOT Raid!) +- You must WIN the Attack +- You must DESTROY the Treasure Chamber (Treasury) +- Your Hero MUST be in that attack, as he is the only one who may carry the Construction Plans +- An empty level 10 Treasure Chamber (Treasury) MUST be in the village where that attack came from +NOTE: If the above criteria is not met during the attack, the next attack on that village which does meet the above criteria will take the Construction Plans. + + + +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 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 From 9134afcbd66a7cac8d730696c662e4cb1e66f287 Mon Sep 17 00:00:00 2001 From: armando1980 Date: Thu, 23 Jan 2014 22:31:19 -0500 Subject: [PATCH 02/50] Adding Artefact and plan by: Armando --- GameEngine/Lang/zh_tw.php | 118 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) diff --git a/GameEngine/Lang/zh_tw.php b/GameEngine/Lang/zh_tw.php index 1c43ab11..eba63329 100644 --- a/GameEngine/Lang/zh_tw.php +++ b/GameEngine/Lang/zh_tw.php @@ -550,6 +550,124 @@ define("WONDER","Wonder of the World"); define("HORSEDRINKING","Horse Drinking Trough"); define("GREATWORKSHOP","Great Workshop"); +//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."); +define("ARCHITECTS_SMALL","The architects slight secret"); +define("ARCHITECTS_SMALLVILLAGE","Diamond Chisel"); +define("ARCHITECTS_LARGE","The architects great secret"); +define("ARCHITECTS_LARGEVILLAGE","Giant Marble Hammer"); +define("ARCHITECTS_UNIQUE","The architects unique secret"); +define("ARCHITECTS_UNIQUEVILLAGE","Hemons Scrolls"); +define("HASTE_DESC","All troops in the area of effect move faster."); +define("HASTE_SMALL","The slight titan boots"); +define("HASTE_SMALLVILLAGE","Opal Horseshoe"); +define("HASTE_LARGE","The great titan boots"); +define("HASTE_LARGEVILLAGE","Golden Chariot"); +define("HASTE_UNIQUE","The unique titan boots"); +define("HASTE_UNIQUEVILLAGE","Pheidippides Sandals"); +define("EYESIGHT_DESC","All spies (Scouts, Pathfinders, and Equites Legati) increase their spying ability. In addition, with all versions of this artifact you can see the incoming TYPE of troops but not how many there are."); +define("EYESIGHT_SMALL","The eagles slight eyes"); +define("EYESIGHT_SMALLVILLAGE","Tale of a Rat"); +define("EYESIGHT_LARGE","The eagles great eyes"); +define("EYESIGHT_LARGEVILLAGE","Generals Letter"); +define("EYESIGHT_UNIQUE","The eagles unique eyes"); +define("EYESIGHT_UNIQUEVILLAGE","Diary of Sun Tzu"); +define("DIET_DESC","All troops in the artifacts range consume less wheat, making it possible to maintain a larger army."); +define("DIET_SMALL","Slight diet control"); +define("DIET_SMALLVILLAGE","Silver Platter"); +define("DIET_LARGE","Great diet control"); +define("DIET_LARGEVILLAGE","Sacred Hunting Bow"); +define("DIET_UNIQUE","Unique diet control"); +define("DIET_UNIQUEVILLAGE","King Arthurs Chalice"); +define("ACADEMIC_DESC","Troops are built a certain percentage faster within the scope of the artifact."); +define("ACADEMIC_SMALL","The trainers slight talent"); +define("ACADEMIC_SMALLVILLAGE","Scribed Soldiers Oath"); +define("ACADEMIC_LARGE","The trainers great talent"); +define("ACADEMIC_LARGEVILLAGE","Declaration of War"); +define("ACADEMIC_UNIQUE","The trainers unique talent"); +define("ACADEMIC_UNIQUEVILLAGE","Memoirs of Alexander the Great"); +define("STORAGE_DESC","With this building plan you are able to build the Great Granary or Great Warehouse in the Village with the artifact, or the whole account depending on the artifact. As long as you posses that artifact you are able to build and enlarge those buildings."); +define("STORAGE_SMALL","Slight storage masterplan"); +define("STORAGE_SMALLVILLAGE","Builders Sketch"); +define("STORAGE_LARGE","Great storage masterplan"); +define("STORAGE_LARGEVILLAGE","Babylonian Tablet"); +define("CONFUSION_DESC","Cranny capacity is increased by a certain amount for each type of artifact. Catapults can only shoot random on villages within this artifacts power. Exceptions are the WW which can always be targeted and the treasure chamber which can always be targeted, except with the unique artifact. When aiming at a resource field only random resource fields can be hit, when aiming at a building only random buildings can be hit."); +define("CONFUSION_SMALL","Rivals slight confusion"); +define("CONFUSION_SMALLVILLAGE","Map of the Hidden Caverns"); +define("CONFUSION_LARGE","Rivals great confusion"); +define("CONFUSION_LARGEVILLAGE","Bottomless Satchel"); +define("CONFUSION_UNIQUE","Rivals unique confusion"); +define("CONFUSION_UNIQUEVILLAGE","Trojan Horse"); +define("FOOL_DESC","Every 24 hours it gets a random effect, bonus, or penalty (all are possible with the exception of great warehouse, great granary and WW building plans). They change effect AND scope every 24 hours. The unique artifact will always take positive bonuses."); +define("FOOL_SMALL","Artefact of the slight fool"); +define("FOOL_SMALLVILLAGE","Pendant of Mischief"); +define("FOOL_UNIQUE","Artefact of the unique fool"); +define("FOOL_UNIQUEVILLAGE","Forbidden Manuscript"); +define("ARTEFACT","Construction plans + + + +Countless days have passed since the first battles upon the walls of the cursed villages of the Dread Natars, many armies of both the free ones and the Natarian empire struggled and died before the walls of the many strongholds from which the Natars had once ruled all creation. Now with the dust settled and a relative calm having settled in, armies began to count their losses and collect their dead, the stench of combat still lingering in the night air, a smell of a slaughter unforgettable in its extent and brutality yet soon to be dwarfed by yet others. The largest armies of the free ones and the Dread Natars were marshalling for yet another renewed assault upon the coveted former strongholds of the Natarian Empire. + +Soon scouts arrived telling of a most awesome sight and a chilling reminder, a dread army of an unfathomable size had been spotted marshalling at the end of the world, the Natarian capital, a force so great and unstoppable that the dust from their march would choke off all light, a force so brutal and ruthless that it would crush all hope. The free people knew that they had to race now, race against time and the endless hordes of the Natarian Empire to raise a Wonder of the World to restore the world to peace and vanquish the Natarian threat. + +But to raise such a great Wonder would be no easy task, one would need construction plans created in the distant past, plans of such an arcane nature that even the very wisest of sages knew not their contents or locations. + +Tens of thousands of scouts roamed across all existence searching in vain for these mystical plans, looking in all places but the dreaded Natarian Capital, yet could not find them. Today however, they return bearing good news, they return baring the locations of the plans, hidden by the armies of the Natars inside secret strongholds constructed to be hidden from the eyes of man. + +Now begins the final stretch, when the greatest armies of the Free people and the Natars will clash across the world for the fate of all that lies under heaven. This is the war that will echo across the eons, this is your war, and here you shall etch your name across history, here you shall become legend. + + +Facts: +To steal one, the following things must happen: +You must attack the village (NO Raid!) +WIN the Attack +Destroy the treasury +An empty treasury lvl 10 MUST be in the village where that attack came from +Have a hero in an attack + +If not, the next attack on that village, winning with a hero and empty treasury will take the building plan. + +To build a WW, you must own a plan yourself (you = the WW village owner) from lvl 0 to 49, from 50 to 100 you need an additional plan in your alliance! Two plans in the WW village account would not work! + +The construction plans are conquerable immediately when they appear to the server. + +There will be a countdown in game, showing the exact time of the release, 5 days prior to the launch. "); + + +//planos +define("PLAN","Ancient Construction Plan"); +define("PLANVILLAGE","WW Buildingplan"); +define("PLAN_DESC","With this ancient construction plan you will able to build World Wonder to level 50. to build further, your alliance must hold at least two plans."); +define("PLAN_INFO","World Wonder Construction Plans + + +Many moons ago the tribes of Travian were surprised by the unforeseen return of the Natars. This tribe from immemorial times surpassing all in wisdom, might and glory was about to trouble the free ones again. Thus they put all their efforts in preparing a last war against the Natars and vanquishing them forever. Many thought about the so-called 'Wonders of the World', a construction of many legends, as the only solution. It was told that it would render anyone invincible once completed. Ultimately making the constructors the rulers and conquerors of all known Travian. + +However, it was also told that one would need construction plans to construct such a building. Due to this fact, the architects devised cunning plans about how to store these safely. After a while, one could see temple-like buildings in many a city and metropolis - the Treasure Chambers (Treasuries). + +Sadly, no one - not even the wise and well versed - knew where to find these construction plans. The harder people tried to locate them, the more it seemed as if they where only legends. + +Today, however, this last secret will be revealed. Deprivations and endeavors of the past will not have been in vain, as today scouts of several tribes have successfully obtained the whereabouts of the construction plans. Well guarded by the Natars, they lie hidden in several oases to be found all over Travian. Only the most valiant heroes will be able to secure such a plan and bring it home safely so that the construction can begin. + +In the end, we will see whether the free tribes of Travian can once again outwit the Natars and vanquish them once and for all. Do not be so foolish as to assume that the Natars will leave without a fight, though! + + + +To steal a set of Construction Plans from the Natars, the following things must happen: +- You must Attack the village (NOT Raid!) +- You must WIN the Attack +- You must DESTROY the Treasure Chamber (Treasury) +- Your Hero MUST be in that attack, as he is the only one who may carry the Construction Plans +- An empty level 10 Treasure Chamber (Treasury) MUST be in the village where that attack came from +NOTE: If the above criteria is not met during the attack, the next attack on that village which does meet the above criteria will take the Construction Plans. + + + +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 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 From f7bf4ea5ee25ad0a56535e8467ea829f6e2a5fba Mon Sep 17 00:00:00 2001 From: armando1980 Date: Thu, 23 Jan 2014 22:33:13 -0500 Subject: [PATCH 03/50] Adding Artefact and plan by: Armando --- GameEngine/Lang/ru.php | 119 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) diff --git a/GameEngine/Lang/ru.php b/GameEngine/Lang/ru.php index 9ba4e64d..73071e58 100644 --- a/GameEngine/Lang/ru.php +++ b/GameEngine/Lang/ru.php @@ -541,6 +541,125 @@ define("WONDER","Wonder of the World"); define("HORSEDRINKING","Horse Drinking Trough"); define("GREATWORKSHOP","Great Workshop"); +//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."); +define("ARCHITECTS_SMALL","The architects slight secret"); +define("ARCHITECTS_SMALLVILLAGE","Diamond Chisel"); +define("ARCHITECTS_LARGE","The architects great secret"); +define("ARCHITECTS_LARGEVILLAGE","Giant Marble Hammer"); +define("ARCHITECTS_UNIQUE","The architects unique secret"); +define("ARCHITECTS_UNIQUEVILLAGE","Hemons Scrolls"); +define("HASTE_DESC","All troops in the area of effect move faster."); +define("HASTE_SMALL","The slight titan boots"); +define("HASTE_SMALLVILLAGE","Opal Horseshoe"); +define("HASTE_LARGE","The great titan boots"); +define("HASTE_LARGEVILLAGE","Golden Chariot"); +define("HASTE_UNIQUE","The unique titan boots"); +define("HASTE_UNIQUEVILLAGE","Pheidippides Sandals"); +define("EYESIGHT_DESC","All spies (Scouts, Pathfinders, and Equites Legati) increase their spying ability. In addition, with all versions of this artifact you can see the incoming TYPE of troops but not how many there are."); +define("EYESIGHT_SMALL","The eagles slight eyes"); +define("EYESIGHT_SMALLVILLAGE","Tale of a Rat"); +define("EYESIGHT_LARGE","The eagles great eyes"); +define("EYESIGHT_LARGEVILLAGE","Generals Letter"); +define("EYESIGHT_UNIQUE","The eagles unique eyes"); +define("EYESIGHT_UNIQUEVILLAGE","Diary of Sun Tzu"); +define("DIET_DESC","All troops in the artifacts range consume less wheat, making it possible to maintain a larger army."); +define("DIET_SMALL","Slight diet control"); +define("DIET_SMALLVILLAGE","Silver Platter"); +define("DIET_LARGE","Great diet control"); +define("DIET_LARGEVILLAGE","Sacred Hunting Bow"); +define("DIET_UNIQUE","Unique diet control"); +define("DIET_UNIQUEVILLAGE","King Arthurs Chalice"); +define("ACADEMIC_DESC","Troops are built a certain percentage faster within the scope of the artifact."); +define("ACADEMIC_SMALL","The trainers slight talent"); +define("ACADEMIC_SMALLVILLAGE","Scribed Soldiers Oath"); +define("ACADEMIC_LARGE","The trainers great talent"); +define("ACADEMIC_LARGEVILLAGE","Declaration of War"); +define("ACADEMIC_UNIQUE","The trainers unique talent"); +define("ACADEMIC_UNIQUEVILLAGE","Memoirs of Alexander the Great"); +define("STORAGE_DESC","With this building plan you are able to build the Great Granary or Great Warehouse in the Village with the artifact, or the whole account depending on the artifact. As long as you posses that artifact you are able to build and enlarge those buildings."); +define("STORAGE_SMALL","Slight storage masterplan"); +define("STORAGE_SMALLVILLAGE","Builders Sketch"); +define("STORAGE_LARGE","Great storage masterplan"); +define("STORAGE_LARGEVILLAGE","Babylonian Tablet"); +define("CONFUSION_DESC","Cranny capacity is increased by a certain amount for each type of artifact. Catapults can only shoot random on villages within this artifacts power. Exceptions are the WW which can always be targeted and the treasure chamber which can always be targeted, except with the unique artifact. When aiming at a resource field only random resource fields can be hit, when aiming at a building only random buildings can be hit."); +define("CONFUSION_SMALL","Rivals slight confusion"); +define("CONFUSION_SMALLVILLAGE","Map of the Hidden Caverns"); +define("CONFUSION_LARGE","Rivals great confusion"); +define("CONFUSION_LARGEVILLAGE","Bottomless Satchel"); +define("CONFUSION_UNIQUE","Rivals unique confusion"); +define("CONFUSION_UNIQUEVILLAGE","Trojan Horse"); +define("FOOL_DESC","Every 24 hours it gets a random effect, bonus, or penalty (all are possible with the exception of great warehouse, great granary and WW building plans). They change effect AND scope every 24 hours. The unique artifact will always take positive bonuses."); +define("FOOL_SMALL","Artefact of the slight fool"); +define("FOOL_SMALLVILLAGE","Pendant of Mischief"); +define("FOOL_UNIQUE","Artefact of the unique fool"); +define("FOOL_UNIQUEVILLAGE","Forbidden Manuscript"); +define("ARTEFACT","Construction plans + + + +Countless days have passed since the first battles upon the walls of the cursed villages of the Dread Natars, many armies of both the free ones and the Natarian empire struggled and died before the walls of the many strongholds from which the Natars had once ruled all creation. Now with the dust settled and a relative calm having settled in, armies began to count their losses and collect their dead, the stench of combat still lingering in the night air, a smell of a slaughter unforgettable in its extent and brutality yet soon to be dwarfed by yet others. The largest armies of the free ones and the Dread Natars were marshalling for yet another renewed assault upon the coveted former strongholds of the Natarian Empire. + +Soon scouts arrived telling of a most awesome sight and a chilling reminder, a dread army of an unfathomable size had been spotted marshalling at the end of the world, the Natarian capital, a force so great and unstoppable that the dust from their march would choke off all light, a force so brutal and ruthless that it would crush all hope. The free people knew that they had to race now, race against time and the endless hordes of the Natarian Empire to raise a Wonder of the World to restore the world to peace and vanquish the Natarian threat. + +But to raise such a great Wonder would be no easy task, one would need construction plans created in the distant past, plans of such an arcane nature that even the very wisest of sages knew not their contents or locations. + +Tens of thousands of scouts roamed across all existence searching in vain for these mystical plans, looking in all places but the dreaded Natarian Capital, yet could not find them. Today however, they return bearing good news, they return baring the locations of the plans, hidden by the armies of the Natars inside secret strongholds constructed to be hidden from the eyes of man. + +Now begins the final stretch, when the greatest armies of the Free people and the Natars will clash across the world for the fate of all that lies under heaven. This is the war that will echo across the eons, this is your war, and here you shall etch your name across history, here you shall become legend. + + +Facts: +To steal one, the following things must happen: +You must attack the village (NO Raid!) +WIN the Attack +Destroy the treasury +An empty treasury lvl 10 MUST be in the village where that attack came from +Have a hero in an attack + +If not, the next attack on that village, winning with a hero and empty treasury will take the building plan. + +To build a WW, you must own a plan yourself (you = the WW village owner) from lvl 0 to 49, from 50 to 100 you need an additional plan in your alliance! Two plans in the WW village account would not work! + +The construction plans are conquerable immediately when they appear to the server. + +There will be a countdown in game, showing the exact time of the release, 5 days prior to the launch. "); + + +//planos +define("PLAN","Ancient Construction Plan"); +define("PLANVILLAGE","WW Buildingplan"); +define("PLAN_DESC","With this ancient construction plan you will able to build World Wonder to level 50. to build further, your alliance must hold at least two plans."); +define("PLAN_INFO","World Wonder Construction Plans + + +Many moons ago the tribes of Travian were surprised by the unforeseen return of the Natars. This tribe from immemorial times surpassing all in wisdom, might and glory was about to trouble the free ones again. Thus they put all their efforts in preparing a last war against the Natars and vanquishing them forever. Many thought about the so-called 'Wonders of the World', a construction of many legends, as the only solution. It was told that it would render anyone invincible once completed. Ultimately making the constructors the rulers and conquerors of all known Travian. + +However, it was also told that one would need construction plans to construct such a building. Due to this fact, the architects devised cunning plans about how to store these safely. After a while, one could see temple-like buildings in many a city and metropolis - the Treasure Chambers (Treasuries). + +Sadly, no one - not even the wise and well versed - knew where to find these construction plans. The harder people tried to locate them, the more it seemed as if they where only legends. + +Today, however, this last secret will be revealed. Deprivations and endeavors of the past will not have been in vain, as today scouts of several tribes have successfully obtained the whereabouts of the construction plans. Well guarded by the Natars, they lie hidden in several oases to be found all over Travian. Only the most valiant heroes will be able to secure such a plan and bring it home safely so that the construction can begin. + +In the end, we will see whether the free tribes of Travian can once again outwit the Natars and vanquish them once and for all. Do not be so foolish as to assume that the Natars will leave without a fight, though! + + + +To steal a set of Construction Plans from the Natars, the following things must happen: +- You must Attack the village (NOT Raid!) +- You must WIN the Attack +- You must DESTROY the Treasure Chamber (Treasury) +- Your Hero MUST be in that attack, as he is the only one who may carry the Construction Plans +- An empty level 10 Treasure Chamber (Treasury) MUST be in the village where that attack came from +NOTE: If the above criteria is not met during the attack, the next attack on that village which does meet the above criteria will take the Construction Plans. + + + +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 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 From f7afc69c1c6da29cd30c33444ead97e1fe712605 Mon Sep 17 00:00:00 2001 From: armando1980 Date: Thu, 23 Jan 2014 22:34:05 -0500 Subject: [PATCH 04/50] Update es.php --- GameEngine/Lang/es.php | 104 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/GameEngine/Lang/es.php b/GameEngine/Lang/es.php index 131160b5..0dd54bcb 100644 --- a/GameEngine/Lang/es.php +++ b/GameEngine/Lang/es.php @@ -516,6 +516,110 @@ define("WONDER","Maravilla del Mundo"); define("HORSEDRINKING","Bebedero Equino"); define("GREATWORKSHOP","Gran Taller"); +//artefact +define("ARCHITECTS_DESC","Los edificios son más resistentes a los ataques de las catapultas y arietes."); +define("ARCHITECTS_SMALL","Pequeños secretos de la arquitectura"); +define("ARCHITECTS_SMALLVILLAGE","Diamante Cincel"); +define("ARCHITECTS_LARGE","Grandes secretos de la arquitectura"); +define("ARCHITECTS_LARGEVILLAGE","Martillo de Mármol Gigante"); +define("ARCHITECTS_UNIQUE","El gran secreto único de los arquitectos"); +define("ARCHITECTS_UNIQUEVILLAGE","Pergaminos de Hemon"); +define("HASTE_DESC","Las tropas recorrerán las distancias en menor tiempo."); +define("HASTE_SMALL","Las botas ligeras de Titan"); +define("HASTE_SMALLVILLAGE","Opalo de herradura"); +define("HASTE_LARGE","Las grandes botas de Titan"); +define("HASTE_LARGEVILLAGE","Carroza de Oro"); +define("HASTE_UNIQUE","Las botas única de Titan "); +define("HASTE_UNIQUEVILLAGE","Sandalias Filípides"); +define("EYESIGHT_DESC","Los emisarios, Equites Legati y Batidores son más efectivos espiando, y defendiendo contra ataques de espionaje. Todas las unidades espías en la aldea/cuenta así como los espías enviados a realizar espionaje desde la aldea/cuenta se verán beneficiados. Adicionalmente, podrás ver los diferentes tipos de tropas atacando a tu aldea/cuenta, pero no la cantidad de las mismas."); +define("EYESIGHT_SMALL","Pequeños ojos de águila"); +define("EYESIGHT_SMALLVILLAGE","Historia de una rata"); +define("EYESIGHT_LARGE","Grandes ojos de águila"); +define("EYESIGHT_LARGEVILLAGE","Carta de Generales"); +define("EYESIGHT_UNIQUE","Ojos únicos de la águila"); +define("EYESIGHT_UNIQUEVILLAGE","Diario de Sun Tzu"); +define("DIET_DESC","Las tropas consumen menos cereal."); +define("DIET_SMALL","ligero Control de la dieta"); +define("DIET_SMALLVILLAGE","Plato de Plata"); +define("DIET_LARGE","Gran control de la dieta"); +define("DIET_LARGEVILLAGE","Arco de Caza Sagrado"); +define("DIET_UNIQUE","Control de la dieta única"); +define("DIET_UNIQUEVILLAGE","Cáliz del Rey Arthurs"); +define("ACADEMIC_DESC","Las tropas son entrenadas más rápido."); +define("ACADEMIC_SMALL","Entrenadores con ligero talento"); +define("ACADEMIC_SMALLVILLAGE","Soldados de Sagrado Juramento"); +define("ACADEMIC_LARGE","Entrenadores con gran talento"); +define("ACADEMIC_LARGEVILLAGE","Declaración de Guerra"); +define("ACADEMIC_UNIQUE","Entrenadores con talento único"); +define("ACADEMIC_UNIQUEVILLAGE","Memorias de Alejandro Magno"); +define("STORAGE_DESC","Estos planos te Concede la habilidad para construir el almacén grande y el granero grande"); +define("STORAGE_SMALL","Pequeño Plano de construcción para Gran Almacén y Gran Granero"); +define("STORAGE_SMALLVILLAGE","Bosquejo de Constructores"); +define("STORAGE_LARGE","Gran Plano de construcción para Gran Almacén y Gran Granero"); +define("STORAGE_LARGEVILLAGE","Tableta de de Babilonia"); +define("CONFUSION_DESC","El artefacto multiplica la capacidad del escondite y fuerza a las catapultas enemigas disparar a casualidad. El edificio de la maravilla podrá ser siempre seleccionado."); +define("CONFUSION_SMALL","Pequeña Confusión de los Rivales"); +define("CONFUSION_SMALLVILLAGE","Mapa de las Cavernas Ocultas"); +define("CONFUSION_LARGE","Gran Confusión de los Rivales"); +define("CONFUSION_LARGEVILLAGE","Taleguilla del Abismo"); +define("CONFUSION_UNIQUE","Gran Confusión única de los Rivales"); +define("CONFUSION_UNIQUEVILLAGE","Caballo de Troya"); +define("FOOL_DESC","Este artefacto cambia el efecto cada 24 horas, y puede obtener el efecto de cualquier otro artefacto. El rango de acción del efecto también es determinado cada 24 horas. La versión normal de este artefacto puede garantizar también efectos negativos, como por ejemplo que las tropas sean más lentas, o que consuman más cereal. La versión única de este artefacto sólo proporciona efectos positivos, pero el alcance de los efectos sigue siendo aleatorio. Puede garantizar un incremento de velocidad de 1% en las tropas, por ejemplo."); +define("FOOL_SMALL","Artefacto del Loco"); +define("FOOL_SMALLVILLAGE","Colgante de la Travesura"); +define("FOOL_UNIQUE","Artefacto único del Loco"); +define("FOOL_UNIQUEVILLAGE","Manuscritos Prohibidos"); +define("ARTEFACT","Misteriosas Reliquias +Mi señor, han aparecido misteriosas aldeas donde se dice que existen unos artefactos de gran poder, los ancianos del consejo las llaman reliquias. + +Completamente resguardadas por la poderosa raza Natares y su temido ejército, pero no será impedimento para vos valeroso emperador, O sí. + +Vuestros generales me han comentado que su ejército crece y crece más, pronto podremos apoderarnos de esas reliquias, los talleres fabrican vuestras catapultas para destruir el tesoro que guarda la reliquia y vuestro mejor soldado nuestro héroe se entrena cada vez más fuerte para poder traerle esta reliquia. + +Pero las tropas y los aldeanos necesitan de motivación, usted mi señor debe de generar esa fuerza necesaria para llevarnos a todos al triunfo y a la gloria. + +La mitad del camino ha llegado, la victoria está en sus manos mi señor. "); + + +//planos +define("PLAN","Planos de construcción antigua"); +define("PLANVILLAGE","Planos de Construcción MM"); +define("PLAN_DESC","Con este plano de construcción antigua usted será capaz de construir una Maravilla del Mundo a nivel 50. para construir un mayor nivel, su alianza debe tener por lo menos dos planos."); +define("PLAN_INFO","El tiempo ha llegado. + +Ahora que los días son más cortos y las noches más frías, la gente de Travian se da cuenta que el final de esta era se acerca. La leyenda de gloriosas batallas y lujosos edificios de eras pasadas... parecía ser todo lo que queda de aquel entonces. Pero las masas decidieron que este no sería el modo como esta era terminaría. + +Una maravilla debería ser construida, un edificio de infinita grandeza y poder. Esta maravilla debería unir a todos los habitantes de Travian. + +Tristemente, el conocimiento de las gloriosas maravillas se había perdido, llevado a la tumba por sus ya desaparecidos antepasados. Justo antes de que la gente perdiera toda esperanza, el destino guió su atención hacia la ancestral tribu de los Natares. Esa tribu ancestral, superviviente a muchas eras y sangrientas batallas, puede poseer aún algunos de los planos de construcción necesarios para las maravillas, pero una sensación extraña parece emanar de ellos... + +La Leyenda de los Natares. + +Una vez, antes de que los Romanos invadieran Travian, las ahora libres razas Galas y Germanas estaban esclavizadas por los Natares. Los Natares eran una raza muy especial, que habría sido olvidada en el tiempo de no ser por las historias aún contadas por ancianas, nodrizas y vagabundos. + +Ellos dominaban todo Travian y entre todo su poder y crueldad poseían un conocimiento completo acerca de las fuerzas elementales que nunca sería superado. Muy poco se sabe de esta raza, sólo quedan los informes de un testigo que vivió el poder Natare, y sobrevivió el paso de las eras. + +Quien lea este informe, encontrará la descripción de una Ciudad de Oro con un templo situado en el centro de la ciudad, una maravilla de indescriptible grandeza y poder. También habla de secretos y arcaicos lugares donde estos templos pueden ser erguidos. Lugares donde toda la sabiduría y conocimiento de los Natares puede ser encontrado para, una vez más, esclavizar Travian. + +Los planes de los Natares. + +Los Natares tienes planes propios y quieren esclavizar las razas libres para construir una maravilla. Sin embargo, quien sea que construya una maravilla en su lugar conseguirá la última gesta de convertir Travian en un mundo de paz y unidad. Al final de esta era, podremos ver si la gente libre de Travian consigue llevar a cabo esta intrépida y gloriosa hazaña, si las futuras historias, serán acerca de valientes alianzas o de los odiados Natares. + + +Para robar un conjunto de Planes de la construcción de los Natares , las siguientes cosas deben suceder : +- Usted debe atacar la aldea ( NO en Asalto !) +- Usted debe ganar el ataque +- Debes destruir a la Cámara del Tesoro (Hacienda) +- Tu héroe debe ser en ese ataque , ya que es el único que puede llevar a los planes de construcción +- Un nivel de vacío 10 Cámara del Tesoro ( Tesoro ) DEBE estar en el pueblo donde el ataque provino de +NOTA : Si no se cumplen los criterios mencionados en el ataque , el próximo ataque a ese pueblo que no cumple con los criterios anteriores se llevará a los planes de construcción. + + +Construir una Cámara del Tesoro (Hacienda) , se necesita un nivel de Edificio Principal 10 y el pueblo no debe ser una capital o contener una Maravilla del Mundo . + +Para construir una Maravilla del Mundo , debe poseer los Planes de construcción a ti mismo ( que = la Maravilla del Mundo Village propietario ) desde el nivel 0 a 49, y luego desde el nivel de 50 a 100 se necesita un conjunto adicional de Planes de la construcción en su Alianza ! Dos juegos de planos de construcción en la Cuenta de World Village Wonder no funcionan !"); +define("WWVILLAGE","Aldea MM"); + /* |-------------------------------------------------------------------------- | Index From 3db6bf2487f87abcc5e140575559876c251cf626 Mon Sep 17 00:00:00 2001 From: armando1980 Date: Thu, 23 Jan 2014 22:42:15 -0500 Subject: [PATCH 05/50] fix lang ok by: Armando --- GameEngine/Admin/Mods/natarend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Admin/Mods/natarend.php b/GameEngine/Admin/Mods/natarend.php index f83f70b0..f89db0fd 100644 --- a/GameEngine/Admin/Mods/natarend.php +++ b/GameEngine/Admin/Mods/natarend.php @@ -25,7 +25,7 @@ for($i=1;$i<=$amt;$i++) { $wid = $database->generateBase($kid); $database->setFieldTaken($wid); $time = time(); - $q = "insert into ".TB_PREFIX."vdata (`wref`,`owner`,`name`,`capital`,`pop`,`cp`,`celebration`,`type`,`wood`,`clay`,`iron`,`maxstore`,`crop`,`maxcrop`,`lastupdate`,`loyalty`,`exp1`,`exp2`,`exp3`,`created`,`natar`) values ('$wid','3','WW village',0,0,0,0,0,80000.00,80000.00,80000.00,80000,80000.00,80000,1314974534,100,0,0,0,$time,1)"; + $q = "insert into ".TB_PREFIX."vdata (`wref`,`owner`,`name`,`capital`,`pop`,`cp`,`celebration`,`type`,`wood`,`clay`,`iron`,`maxstore`,`crop`,`maxcrop`,`lastupdate`,`loyalty`,`exp1`,`exp2`,`exp3`,`created`,`natar`) values ('$wid','3','".WWVILLAGE."',0,0,0,0,0,80000.00,80000.00,80000.00,80000,80000.00,80000,1314974534,100,0,0,0,$time,1)"; mysql_query($q) or die(mysql_error()); $q = "insert into ".TB_PREFIX."fdata (`vref`,`f1`,`f1t`,`f2`,`f2t`,`f3`,`f3t`,`f4`,`f4t`,`f5`,`f5t`,`f6`,`f6t`,`f7`,`f7t`,`f8`,`f8t`,`f9`,`f9t`,`f10`,`f10t`,`f11`,`f11t`,`f12`,`f12t`,`f13`,`f13t`,`f14`,`f14t`,`f15`,`f15t`,`f16`,`f16t`,`f17`,`f17t`,`f18`,`f18t`,`f19`,`f19t`,`f20`,`f20t`,`f21`,`f21t`,`f22`,`f22t`,`f23`,`f23t`,`f24`,`f24t`,`f25`,`f25t`,`f26`,`f26t`,`f27`,`f27t`,`f28`,`f28t`,`f29`,`f29t`,`f30`,`f30t`,`f31`,`f31t`,`f32`,`f32t`,`f33`,`f33t`,`f34`,`f34t`,`f35`,`f35t`,`f36`,`f36t`,`f37`,`f37t`,`f38`,`f38t`,`f39`,`f39t`,`f40`,`f40t`,`f99`,`f99t`,`wwname`) values ($wid,0,1,0,4,0,1,0,3,0,2,0,2,0,3,0,4,0,4,0,3,0,3,0,4,0,4,0,1,0,4,0,2,0,1,0,2,20,17,20,11,20,15,20,10,10,22,10,25,0,0,0,0,10,19,0,0,0,0,0,0,10,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,16,0,0,0,40,'World Wonder')"; mysql_query($q); From 4dbd34b633dde0dc872de13e84a73984827387e3 Mon Sep 17 00:00:00 2001 From: armando1980 Date: Thu, 23 Jan 2014 22:49:13 -0500 Subject: [PATCH 06/50] fix lang ok by: Armando --- GameEngine/Admin/Mods/natarbuildingplan.php | 35 +++------------------ 1 file changed, 4 insertions(+), 31 deletions(-) diff --git a/GameEngine/Admin/Mods/natarbuildingplan.php b/GameEngine/Admin/Mods/natarbuildingplan.php index 23d775f9..5836ed1b 100644 --- a/GameEngine/Admin/Mods/natarbuildingplan.php +++ b/GameEngine/Admin/Mods/natarbuildingplan.php @@ -24,7 +24,7 @@ for($i=1;$i<=$amt;$i++) { $wid = $database->generateBase($kid); $database->setFieldTaken($wid); $time = time(); - $q = "insert into ".TB_PREFIX."vdata (`wref`,`owner`,`name`,`capital`,`pop`,`cp`,`celebration`,`type`,`wood`,`clay`,`iron`,`maxstore`,`crop`,`maxcrop`,`lastupdate`,`loyalty`,`exp1`,`exp2`,`exp3`,`created`) values ('$wid','3','WW Buildingplan',0,0,0,0,0,80000.00,80000.00,80000.00,80000,80000.00,80000,1314974534,100,0,0,0,1314968914)"; + $q = "insert into ".TB_PREFIX."vdata (`wref`,`owner`,`name`,`capital`,`pop`,`cp`,`celebration`,`type`,`wood`,`clay`,`iron`,`maxstore`,`crop`,`maxcrop`,`lastupdate`,`loyalty`,`exp1`,`exp2`,`exp3`,`created`) values ('$wid','3','".PLANVILLAGE."',0,0,0,0,0,80000.00,80000.00,80000.00,80000,80000.00,80000,1314974534,100,0,0,0,1314968914)"; mysql_query($q) or die(mysql_error()); $q = "insert into ".TB_PREFIX."fdata (`vref`,`f1`,`f1t`,`f2`,`f2t`,`f3`,`f3t`,`f4`,`f4t`,`f5`,`f5t`,`f6`,`f6t`,`f7`,`f7t`,`f8`,`f8t`,`f9`,`f9t`,`f10`,`f10t`,`f11`,`f11t`,`f12`,`f12t`,`f13`,`f13t`,`f14`,`f14t`,`f15`,`f15t`,`f16`,`f16t`,`f17`,`f17t`,`f18`,`f18t`,`f19`,`f19t`,`f20`,`f20t`,`f21`,`f21t`,`f22`,`f22t`,`f23`,`f23t`,`f24`,`f24t`,`f25`,`f25t`,`f26`,`f26t`,`f27`,`f27t`,`f28`,`f28t`,`f29`,`f29t`,`f30`,`f30t`,`f31`,`f31t`,`f32`,`f32t`,`f33`,`f33t`,`f34`,`f34t`,`f35`,`f35t`,`f36`,`f36t`,`f37`,`f37t`,`f38`,`f38t`,`f39`,`f39t`,`f40`,`f40t`,`f99`,`f99t`,`wwname`) values ($wid,0,1,0,4,0,1,0,3,0,2,0,2,0,3,0,4,0,4,0,3,0,3,0,4,0,4,0,1,0,4,0,2,0,1,0,2,20,17,20,11,10,27,20,10,10,22,10,25,0,0,20,15,10,19,0,0,0,0,0,0,10,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,16,0,0,0,0,'World Wonder')"; mysql_query($q); @@ -36,40 +36,13 @@ for($i=1;$i<=$amt;$i++) { $speed = NATARS_UNITS; $q = "UPDATE ".TB_PREFIX."units SET u41 = u41 + " . (1500 * $speed) . ", u42 = u42 + " . (1500 * $speed) . ", u43 = u43 + " . (1500 * $speed) . ", u44 = u44 + " . (1500 * $speed) . ", u45 = u45 + " . (1500 * $speed) . ", u46 = u46 + " . (1500 * $speed) . ", u47 = u47 + " . (1500 * $speed) . ", u48 = u48 + " . (1500 * $speed) . " , u49 = u49 + " . (1500 * $speed) . ", u50 = u50 + " . (1500 * $speed) . " WHERE vref = '".$wid."'"; mysql_query($q); - $desc = 'With this ancient construction plan you will able to build World Wonder to level 50. to build further, your alliance must hold at least two plans.'; - $database->addArtefact($wid, 3, 11, 1, 'Ancient Construction Plan', $desc, '', 'typeww.gif'); + $desc = PLAN_DESC; + $database->addArtefact($wid, 3, 11, 1, PLAN, $desc, '', 'typeww.gif'); } $myFile = "../../../Templates/text.tpl"; $fh = fopen($myFile, 'w') or die("


Can't open file: templates/text.tpl"); $text = file_get_contents("../../../Templates/text_format.tpl"); - $text = preg_replace("'%TEKST%'","World Wonder Construction Plans - - -Many moons ago the tribes of Travian were surprised by the unforeseen return of the Natars. This tribe from immemorial times surpassing all in wisdom, might and glory was about to trouble the free ones again. Thus they put all their efforts in preparing a last war against the Natars and vanquishing them forever. Many thought about the so-called 'Wonders of the World', a construction of many legends, as the only solution. It was told that it would render anyone invincible once completed. Ultimately making the constructors the rulers and conquerors of all known Travian. - -However, it was also told that one would need construction plans to construct such a building. Due to this fact, the architects devised cunning plans about how to store these safely. After a while, one could see temple-like buildings in many a city and metropolis - the Treasure Chambers (Treasuries). - -Sadly, no one - not even the wise and well versed - knew where to find these construction plans. The harder people tried to locate them, the more it seemed as if they where only legends. - -Today, however, this last secret will be revealed. Deprivations and endeavors of the past will not have been in vain, as today scouts of several tribes have successfully obtained the whereabouts of the construction plans. Well guarded by the Natars, they lie hidden in several oases to be found all over Travian. Only the most valiant heroes will be able to secure such a plan and bring it home safely so that the construction can begin. - -In the end, we will see whether the free tribes of Travian can once again outwit the Natars and vanquish them once and for all. Do not be so foolish as to assume that the Natars will leave without a fight, though! - - - -To steal a set of Construction Plans from the Natars, the following things must happen: -- You must Attack the village (NOT Raid!) -- You must WIN the Attack -- You must DESTROY the Treasure Chamber (Treasury) -- Your Hero MUST be in that attack, as he is the only one who may carry the Construction Plans -- An empty level 10 Treasure Chamber (Treasury) MUST be in the village where that attack came from -NOTE: If the above criteria is not met during the attack, the next attack on that village which does meet the above criteria will take the Construction Plans. - - - -To build a Treasure Chamber (Treasury), you will need a Main Building level 10 and the village MUST NOT 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!" ,$text); + $text = preg_replace("'%TEKST%'",PLAN_INFO ,$text); fwrite($fh, $text); $query="SELECT * FROM ".TB_PREFIX."users ORDER BY id + 0 DESC"; From 20f16803ffc1aa999d2551d3d2b4e165aef54bce Mon Sep 17 00:00:00 2001 From: armando1980 Date: Thu, 23 Jan 2014 22:59:09 -0500 Subject: [PATCH 07/50] fix lang ok by: Armando --- create_account.php | 139 ++++++++++++++++++--------------------------- 1 file changed, 55 insertions(+), 84 deletions(-) diff --git a/create_account.php b/create_account.php index 3e5dec37..357c298b 100644 --- a/create_account.php +++ b/create_account.php @@ -223,31 +223,31 @@ if($_POST['password'] != ""){ * THE 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.'; + $desc = ARCHITECTS_DESC; - $vname = 'Diamond Chisel'; + $vname = ARCHITECTS_SMALLVILLAGE; $effect = '(4x)'; for($i > 1; $i < 6; $i++) { - Artefact($uid, 1, 1, 'The architects slight secret', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type1.gif'); + Artefact($uid, 1, 1, ARCHITECTS_SMALL, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type1.gif'); } unset($i); unset($vname); unset($effect); - $vname = 'Giant Marble Hammer'; + $vname = ARCHITECTS_LARGEVILLAGE; $effect = '(3x)'; for($i > 1; $i < 4; $i++) { - Artefact($uid, 1, 2, 'The architects great secret', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type1.gif'); + Artefact($uid, 1, 2, ARCHITECTS_LARGE, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type1.gif'); } unset($i); unset($vname); unset($effect); - $vname = 'Hemons Scrolls'; + $vname = ARCHITECTS_UNIQUEVILLAGE; $effect = '(5x)'; for($i > 1; $i < 1; $i++) { - Artefact($uid, 1, 3, 'The architects unique secret', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type1.gif'); + Artefact($uid, 1, 3, ARCHITECTS_UNIQUE, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type1.gif'); } /** @@ -255,33 +255,33 @@ if($_POST['password'] != ""){ */ - $desc = 'All troops in the area of effect move faster.'; + $desc = HASTE_DESC; unset($i); unset($vname); unset($effect); - $vname = 'Opal Horseshoe'; + $vname = HASTE_SMALLVILLAGE; $effect = '(2x)'; for($i > 1; $i < 6; $i++) { - Artefact($uid, 2, 1, 'The slight titan boots', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type2.gif'); + Artefact($uid, 2, 1, HASTE_SMALL, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type2.gif'); } unset($i); unset($vname); unset($effect); - $vname = 'Golden Chariot'; + $vname = HASTE_LARGEVILLAGE; $effect = '(1.5x)'; for($i > 1; $i < 4; $i++) { - Artefact($uid, 2, 2, 'The great titan boots', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type2.gif'); + Artefact($uid, 2, 2, HASTE_LARGE, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type2.gif'); } unset($i); unset($vname); unset($effect); - $vname = 'Pheidippides Sandals'; + $vname = HASTE_UNIQUEVILLAGE; $effect = '(3x)'; for($i > 1; $i < 1; $i++) { - Artefact($uid, 2, 3, 'The unique titan boots', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type2.gif'); + Artefact($uid, 2, 3, HASTE_UNIQUE, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type2.gif'); } /** @@ -289,33 +289,33 @@ if($_POST['password'] != ""){ */ - $desc = 'All spies (Scouts, Pathfinders, and Equites Legati) increase their spying ability. In addition, with all versions of this artifact you can see the incoming TYPE of troops but not how many there are.'; + $desc = EYESIGHT_DESC; unset($i); unset($vname); unset($effect); - $vname = 'Tale of a Rat'; + $vname = EYESIGHT_SMALLVILLAGE; $effect = '(5x)'; for($i > 1; $i < 6; $i++) { - Artefact($uid, 3, 1, 'The eagles slight eyes', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type3.gif'); + Artefact($uid, 3, 1, EYESIGHT_SMALL, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type3.gif'); } unset($i); unset($vname); unset($effect); - $vname = 'Generals Letter'; + $vname = EYESIGHT_LARGEVILLAGE; $effect = '(3x)'; for($i > 1; $i < 4; $i++) { - Artefact($uid, 3, 2, 'The eagles great eyes', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type3.gif'); + Artefact($uid, 3, 2, EYESIGHT_LARGE, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type3.gif'); } unset($i); unset($vname); unset($effect); - $vname = 'Diary of Sun Tzu'; + $vname = EYESIGHT_UNIQUEVILLAGE; $effect = '(10x)'; for($i > 1; $i < 1; $i++) { - Artefact($uid, 3, 3, 'The eagles unique eyes', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type3.gif'); + Artefact($uid, 3, 3, EYESIGHT_UNIQUE, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type3.gif'); } /** @@ -323,33 +323,33 @@ if($_POST['password'] != ""){ */ - $desc = 'All troops in the artifacts range consume less wheat, making it possible to maintain a larger army.'; + $desc = DIET_DESC; unset($i); unset($vname); unset($effect); - $vname = 'Silver Platter'; + $vname = DIET_SMALLVILLAGE; $effect = '(50%)'; for($i > 1; $i < 6; $i++) { - Artefact($uid, 4, 1, 'Slight diet control', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type4.gif'); + Artefact($uid, 4, 1, DIET_SMALL, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type4.gif'); } unset($i); unset($vname); unset($effect); - $vname = 'Sacred Hunting Bow'; + $vname = DIET_LARGEVILLAGE; $effect = '(25%)'; for($i > 1; $i < 4; $i++) { - Artefact($uid, 4, 2, 'Great diet control', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type4.gif'); + Artefact($uid, 4, 2, DIET_LARGE, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type4.gif'); } unset($i); unset($vname); unset($effect); - $vname = 'King Arthurs Chalice'; + $vname = DIET_UNIQUEVILLAGE; $effect = '(50%)'; for($i > 1; $i < 1; $i++) { - Artefact($uid, 4, 3, 'Unique diet control', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type4.gif'); + Artefact($uid, 4, 3, DIET_UNIQUE, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type4.gif'); } @@ -358,33 +358,33 @@ if($_POST['password'] != ""){ */ - $desc = 'Troops are built a certain percentage faster within the scope of the artifact.'; + $desc = ACADEMIC_DESC; unset($i); unset($vname); unset($effect); - $vname = 'Scribed Soldiers Oath'; + $vname = ACADEMIC_SMALLVILLAGE; $effect = '(50%)'; for($i > 1; $i < 6; $i++) { - Artefact($uid, 5, 1, 'The trainers slight talent', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type5.gif'); + Artefact($uid, 5, 1, ACADEMIC_SMALL, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type5.gif'); } unset($i); unset($vname); unset($effect); - $vname = 'Declaration of War'; + $vname = ACADEMIC_LARGEVILLAGE; $effect = '(25%)'; for($i > 1; $i < 4; $i++) { - Artefact($uid, 5, 2, 'The trainers great talent', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type5.gif'); + Artefact($uid, 5, 2, ACADEMIC_LARGE, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type5.gif'); } unset($i); unset($vname); unset($effect); - $vname = 'Memoirs of Alexander the Great'; + $vname = ACADEMIC_UNIQUEVILLAGE; $effect = '(50%)'; for($i > 1; $i < 1; $i++) { - Artefact($uid, 5, 3, 'The trainers unique talent', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type5.gif'); + Artefact($uid, 5, 3, ACADEMIC_UNIQUE, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type5.gif'); } @@ -393,24 +393,24 @@ if($_POST['password'] != ""){ */ - $desc = 'With this building plan you are able to build the Great Granary or Great Warehouse in the Village with the artifact, or the whole account depending on the artifact. As long as you posses that artifact you are able to build and enlarge those buildings.'; + $desc = STORAGE_DESC; unset($i); unset($vname); unset($effect);; - $vname = 'Builders Sketch'; + $vname = STORAGE_SMALLVILLAGE; $effect = '(GG&GW)'; for($i > 1; $i < 6; $i++) { - Artefact($uid, 6, 1, 'Slight storage masterplan', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type6.gif'); + Artefact($uid, 6, 1, STORAGE_SMALL, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type6.gif'); } unset($i); unset($vname); unset($effect); - $vname = 'Babylonian Tablet'; + $vname = STORAGE_LARGEVILLAGE; $effect = '(GG&GW)'; for($i > 1; $i < 4; $i++) { - Artefact($uid, 6, 2, 'Great storage masterplan', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type6.gif'); + Artefact($uid, 6, 2, STORAGE_LARGE, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type6.gif'); } @@ -419,33 +419,33 @@ if($_POST['password'] != ""){ */ - $desc = 'Cranny capacity is increased by a certain amount for each type of artifact. Catapults can only shoot random on villages within this artifacts power. Exceptions are the WW which can always be targeted and the treasure chamber which can always be targeted, except with the unique artifact. When aiming at a resource field only random resource fields can be hit, when aiming at a building only random buildings can be hit.'; + $desc = CONFUSION_DESC; unset($i); unset($vname); unset($effect); - $vname = 'Map of the Hidden Caverns'; + $vname = CONFUSION_SMALLVILLAGE; $effect = '(200)'; for($i > 1; $i < 6; $i++) { - Artefact($uid, 7, 1, 'Rivals slight confusion', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type7.gif'); + Artefact($uid, 7, 1, CONFUSION_SMALL, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type7.gif'); } unset($i); unset($vname); unset($effect); - $vname = 'Bottomless Satchel'; + $vname = CONFUSION_LARGEVILLAGE; $effect = '(100)'; for($i > 1; $i < 4; $i++) { - Artefact($uid, 7, 2, 'Rivals great confusion', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type7.gif'); + Artefact($uid, 7, 2, CONFUSION_LARGE, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type7.gif'); } unset($i); unset($vname); unset($effect); - $vname = 'Trojan Horse'; + $vname = CONFUSION_UNIQUEVILLAGE; $effect = '(500)'; for($i > 1; $i < 1; $i++) { - Artefact($uid, 7, 3, 'Rivals unique confusion', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type7.gif'); + Artefact($uid, 7, 3, CONFUSION_UNIQUE, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type7.gif'); } @@ -454,64 +454,35 @@ if($_POST['password'] != ""){ */ - $desc = 'Every 24 hours it gets a random effect, bonus, or penalty (all are possible with the exception of great warehouse, great granary and WW building plans). They change effect AND scope every 24 hours. The unique artifact will always take positive bonuses.'; + $desc = FOOL_DESC; unset($i); unset($vname); unset($effect); - $vname = 'Pendant of Mischief'; + $vname = FOOL_SMALLVILLAGE; for($i > 1; $i < 5; $i++) { - Artefact($uid, 8, 1, 'Artefact of the slight fool', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type8.gif'); + Artefact($uid, 8, 1, FOOL_SMALL, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type8.gif'); } unset($i); unset($vname); unset($effect); - $vname = 'Pendant of Mischief'; + $vname = FOOL_SMALLVILLAGE; for($i > 1; $i < 5; $i++) { - Artefact($uid, 8, 2, 'Artefact of the slight fool', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type8.gif'); + Artefact($uid, 8, 2, FOOL_SMALL, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type8.gif'); } unset($i); unset($vname); unset($effect); - $vname = 'Forbidden Manuscript'; + $vname = FOOL_UNIQUEVILLAGE; for($i > 1; $i < 1; $i++) { - Artefact($uid, 8, 3, 'Artefact of the unique fool', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type8.gif'); + Artefact($uid, 8, 3, FOOL_UNIQUE, '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type8.gif'); } $myFile = "Templates/text.tpl"; $fh = fopen($myFile, 'w') or die("


Can't open file: templates/text.tpl"); $text = file_get_contents("Templates/text_format.tpl"); - $text = preg_replace("'%TEKST%'","Construction plans - - - -Countless days have passed since the first battles upon the walls of the cursed villages of the Dread Natars, many armies of both the free ones and the Natarian empire struggled and died before the walls of the many strongholds from which the Natars had once ruled all creation. Now with the dust settled and a relative calm having settled in, armies began to count their losses and collect their dead, the stench of combat still lingering in the night air, a smell of a slaughter unforgettable in its extent and brutality yet soon to be dwarfed by yet others. The largest armies of the free ones and the Dread Natars were marshalling for yet another renewed assault upon the coveted former strongholds of the Natarian Empire. - -Soon scouts arrived telling of a most awesome sight and a chilling reminder, a dread army of an unfathomable size had been spotted marshalling at the end of the world, the Natarian capital, a force so great and unstoppable that the dust from their march would choke off all light, a force so brutal and ruthless that it would crush all hope. The free people knew that they had to race now, race against time and the endless hordes of the Natarian Empire to raise a Wonder of the World to restore the world to peace and vanquish the Natarian threat. - -But to raise such a great Wonder would be no easy task, one would need construction plans created in the distant past, plans of such an arcane nature that even the very wisest of sages knew not their contents or locations. - -Tens of thousands of scouts roamed across all existence searching in vain for these mystical plans, looking in all places but the dreaded Natarian Capital, yet could not find them. Today however, they return bearing good news, they return baring the locations of the plans, hidden by the armies of the Natars inside secret strongholds constructed to be hidden from the eyes of man. - -Now begins the final stretch, when the greatest armies of the Free people and the Natars will clash across the world for the fate of all that lies under heaven. This is the war that will echo across the eons, this is your war, and here you shall etch your name across history, here you shall become legend. - - -Facts: -To steal one, the following things must happen: -You must attack the village (NO Raid!) -WIN the Attack -Destroy the treasury -An empty treasury lvl 10 MUST be in the village where that attack came from -Have a hero in an attack - -If not, the next attack on that village, winning with a hero and empty treasury will take the building plan. - -To build a WW, you must own a plan yourself (you = the WW village owner) from lvl 0 to 49, from 50 to 100 you need an additional plan in your alliance! Two plans in the WW village account would not work! - -The construction plans are conquerable immediately when they appear to the server. - -There will be a countdown in game, showing the exact time of the release, 5 days prior to the launch." ,$text); + $text = preg_replace("'%TEKST%'",ARTEFACT ,$text); fwrite($fh, $text); $query="SELECT * FROM ".TB_PREFIX."users ORDER BY id + 0 DESC"; From e95fb89862b229902db7816d4e7583969554b0da Mon Sep 17 00:00:00 2001 From: armando1980 Date: Thu, 23 Jan 2014 23:06:05 -0500 Subject: [PATCH 08/50] fix lang ok by: Armando --- Templates/menu.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Templates/menu.tpl b/Templates/menu.tpl index 529130b4..1d63f729 100644 --- a/Templates/menu.tpl +++ b/Templates/menu.tpl @@ -69,13 +69,13 @@ div.c1 {text-align: center} ?>
-

Announcement

+


Hi username; ?>,

From 69eb26520b682cce13bb76c0dc02e3777354c9c5 Mon Sep 17 00:00:00 2001 From: armando1980 Date: Thu, 23 Jan 2014 23:22:39 -0500 Subject: [PATCH 09/50] fix alliance rank Attacker and defender Armando --- GameEngine/Ranking.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GameEngine/Ranking.php b/GameEngine/Ranking.php index d2a98c47..b5cd3ad2 100644 --- a/GameEngine/Ranking.php +++ b/GameEngine/Ranking.php @@ -531,7 +531,7 @@ array_push($holder, $value); } - $holder = $multisort->sorte($holder, "'totalap'", false, 2); + $holder = $multisort->sorte($holder, "'Aap'", false, 2); $newholder = array("pad"); foreach($holder as $key) { array_push($newholder, $key); @@ -559,7 +559,7 @@ array_push($holder, $value); } - $holder = $multisort->sorte($holder, "'totaldp'", false, 2); + $holder = $multisort->sorte($holder, "'Adp'", false, 2); $newholder = array("pad"); foreach($holder as $key) { array_push($newholder, $key); From ffefd6d798a2a9d43a60dbe623a4d5f5fb0fb60b Mon Sep 17 00:00:00 2001 From: armando1980 Date: Thu, 23 Jan 2014 23:24:27 -0500 Subject: [PATCH 10/50] fix alliance rank Attacker Armando --- Templates/Ranking/alliance_attack.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Templates/Ranking/alliance_attack.tpl b/Templates/Ranking/alliance_attack.tpl index 9af9ee68..f029cadf 100644 --- a/Templates/Ranking/alliance_attack.tpl +++ b/Templates/Ranking/alliance_attack.tpl @@ -42,7 +42,7 @@ $search = $_SESSION['search']; echo ""; } echo $i.".".$ranking[$i]['tag'].""; - echo $ranking[$i]['players']."".$ranking[$i]['totalap'].""; + echo $ranking[$i]['players']."".$ranking[$i]['Aap'].""; } } } @@ -54,4 +54,4 @@ $search = $_SESSION['search']; \ No newline at end of file +?> From 988f3c8b7d326642b2f4dd451ca80a88ee55f797 Mon Sep 17 00:00:00 2001 From: armando1980 Date: Thu, 23 Jan 2014 23:25:45 -0500 Subject: [PATCH 11/50] fix alliance rank defender Armando --- Templates/Ranking/alliance_defend.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Templates/Ranking/alliance_defend.tpl b/Templates/Ranking/alliance_defend.tpl index 8551bc94..4972b113 100644 --- a/Templates/Ranking/alliance_defend.tpl +++ b/Templates/Ranking/alliance_defend.tpl @@ -42,7 +42,7 @@ $search = $_SESSION['search']; echo ""; } echo $i.".".$ranking[$i]['tag'].""; - echo $ranking[$i]['players']."".$ranking[$i]['totaldp'].""; + echo $ranking[$i]['players']."".$ranking[$i]['Adp'].""; } } } @@ -54,4 +54,4 @@ $search = $_SESSION['search']; \ No newline at end of file +?> From 9b222a61142af6b322f04121f04c78680b7fc559 Mon Sep 17 00:00:00 2001 From: Shadow Date: Fri, 24 Jan 2014 14:46:05 +0200 Subject: [PATCH 12/50] Update vilview.tpl --- Templates/Map/vilview.tpl | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/Templates/Map/vilview.tpl b/Templates/Map/vilview.tpl index 487cf641..37a39ca1 100644 --- a/Templates/Map/vilview.tpl +++ b/Templates/Map/vilview.tpl @@ -1,5 +1,21 @@
getMInfo($_GET['d']); $uinfo = $database->getVillage($basearray['id']); $oasis1 = mysql_query('SELECT * FROM `' . TB_PREFIX . 'odata` WHERE `wref` = ' . mysql_real_escape_string($_GET['d'])); @@ -163,7 +179,6 @@ if($query != 0){ while($row = mysql_fetch_array($result)){ $dataarray = explode(",",$row['data']); $type = $row['ntype']; - $topic=$row['topic']; echo ""; if($type==18 or $type==19 or $type==20 or $type==21){ echo "\"".$topic."\""; @@ -470,16 +485,16 @@ if($type==18 or $type==19 or $type==20 or $type==21){ $enough_cp = false; } - $otext = ($oasis['name']); - if($village->unitarray['u'.$session->tribe.'0'] >= 3 AND $enough_cp AND $village->resarray['f39']) { + $otext = ($oasis['name']); + if($village->unitarray['u'.$session->tribe.'0'] >= 3 AND $enough_cp) { $test = "» Found new village."; - } elseif($village->unitarray['u'.$session->tribe.'0'] >= 3 AND !$enough_cp) { + } elseif($village->unitarray['u'.$session->tribe.'0'] >= 3 AND !$enough_cp) { $test = "» Found new village. ($cps/$need_cps culture points)"; - } elseif(!$village->resarray['f39']) { + } elseif(!$village->resarray['f39']) { $test = "» Found new village. (build a rally point)"; - } else { + } else { $test = "» Found new village. (".$village->unitarray['u'.$session->tribe.'0']."/3 settlers available)"; - } + } echo ($basearray['fieldtype']==0)? ($village->resarray['f39']==0)? @@ -507,9 +522,12 @@ if($type==18 or $type==19 or $type==20 or $type==21){ $data1 = mysql_fetch_assoc($query1); $query2 = mysql_query('SELECT * FROM `' . TB_PREFIX . 'users` WHERE `id` = ' . $data1['owner']); $data2 = mysql_fetch_assoc($query2); + // Vacation mode added by Shadow - cata7007@gmail.com / Skype : cata7007 if($data2['access']=='0' or $data2['access']=='8' or $data2['access']=='9') { echo "» Send troops. (Player is banned)"; - } else if($data2['protect'] < time()) { + } else if($data2['vac_mode']=='1') { + echo "» Send troops. (Vacation mode on)"; + } else if($data2['protect'] < time()) { echo $village->resarray['f39']? "» Send troops." : "» Send troops. (build a rally point)"; } else { echo "» Send troops. (beginners protection)"; @@ -522,6 +540,8 @@ if($type==18 or $type==19 or $type==20 or $type==21){ getTypeLevel(17)? "getTypeField(17) . "\">» Send merchant(s)." : "» Send merchant(s). (build marketplace)"; } From 9336155f288c2b97606d8b4bb865a58c0368a1c1 Mon Sep 17 00:00:00 2001 From: Shadow Date: Fri, 24 Jan 2014 14:47:40 +0200 Subject: [PATCH 13/50] Update vilview.tpl --- Templates/Map/vilview.tpl | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/Templates/Map/vilview.tpl b/Templates/Map/vilview.tpl index 37a39ca1..71873457 100644 --- a/Templates/Map/vilview.tpl +++ b/Templates/Map/vilview.tpl @@ -179,6 +179,7 @@ if($query != 0){ while($row = mysql_fetch_array($result)){ $dataarray = explode(",",$row['data']); $type = $row['ntype']; + $topic=$row['topic']; echo ""; if($type==18 or $type==19 or $type==20 or $type==21){ echo "\"".$topic."\""; @@ -485,16 +486,16 @@ if($type==18 or $type==19 or $type==20 or $type==21){ $enough_cp = false; } - $otext = ($oasis['name']); - if($village->unitarray['u'.$session->tribe.'0'] >= 3 AND $enough_cp) { + $otext = ($oasis['name']); + if($village->unitarray['u'.$session->tribe.'0'] >= 3 AND $enough_cp AND $village->resarray['f39']) { $test = "» Found new village."; - } elseif($village->unitarray['u'.$session->tribe.'0'] >= 3 AND !$enough_cp) { + } elseif($village->unitarray['u'.$session->tribe.'0'] >= 3 AND !$enough_cp) { $test = "» Found new village. ($cps/$need_cps culture points)"; - } elseif(!$village->resarray['f39']) { + } elseif(!$village->resarray['f39']) { $test = "» Found new village. (build a rally point)"; - } else { + } else { $test = "» Found new village. (".$village->unitarray['u'.$session->tribe.'0']."/3 settlers available)"; - } + } echo ($basearray['fieldtype']==0)? ($village->resarray['f39']==0)? @@ -522,12 +523,9 @@ if($type==18 or $type==19 or $type==20 or $type==21){ $data1 = mysql_fetch_assoc($query1); $query2 = mysql_query('SELECT * FROM `' . TB_PREFIX . 'users` WHERE `id` = ' . $data1['owner']); $data2 = mysql_fetch_assoc($query2); - // Vacation mode added by Shadow - cata7007@gmail.com / Skype : cata7007 if($data2['access']=='0' or $data2['access']=='8' or $data2['access']=='9') { echo "» Send troops. (Player is banned)"; - } else if($data2['vac_mode']=='1') { - echo "» Send troops. (Vacation mode on)"; - } else if($data2['protect'] < time()) { + } else if($data2['protect'] < time()) { echo $village->resarray['f39']? "» Send troops." : "» Send troops. (build a rally point)"; } else { echo "» Send troops. (beginners protection)"; @@ -540,8 +538,6 @@ if($type==18 or $type==19 or $type==20 or $type==21){ getTypeLevel(17)? "getTypeField(17) . "\">» Send merchant(s)." : "» Send merchant(s). (build marketplace)"; } From 03bf6f1a189cf17b94de48cf9a28b8ea02bd916a Mon Sep 17 00:00:00 2001 From: armando1980 Date: Fri, 24 Jan 2014 18:18:09 -0500 Subject: [PATCH 14/50] fix correct population in oasis you need install for work correctly --- GameEngine/Database/db_MYSQL.php | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/GameEngine/Database/db_MYSQL.php b/GameEngine/Database/db_MYSQL.php index bd1cda64..ff07e1b1 100644 --- a/GameEngine/Database/db_MYSQL.php +++ b/GameEngine/Database/db_MYSQL.php @@ -593,7 +593,7 @@ class MYSQL_DB { case 1: case 2: //+25% lumber per hour - $q = "UPDATE " . TB_PREFIX . "units SET u35 = u35 + '".rand(0,5)."', u36 = u36 + '".rand(0,5)."', u37 = u37 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u36 <= ".$max." OR u37 <= ".$max.")"; + $q = "UPDATE " . TB_PREFIX . "units SET u35 = u35 + '".rand(0,5)."', u36 = u36 + '".rand(0,5)."', u37 = u37 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u35 <= ".$max." OR u36 <= ".$max." OR u37 <= ".$max.")"; $result = mysql_query($q, $this->connection); break; case 3: @@ -604,29 +604,29 @@ class MYSQL_DB { case 4: case 5: //+25% clay per hour - $q = "UPDATE " . TB_PREFIX . "units SET u36 = u36 + '".rand(0,5)."', u37 = u37 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u36 <= ".$max." OR u37 <= ".$max.")"; + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(0,5)."', u32 = u32 + '".rand(0,5)."', u35 = u35 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u31 <= ".$max." OR u32 <= ".$max." OR u35 <= ".$max.")"; $result = mysql_query($q, $this->connection); break; case 6: //+25% clay and +25% crop per hour - $q = "UPDATE " . TB_PREFIX . "units SET u36 = u36 + '".rand(0,5)."', u37 = u37 + '".rand(0,5)."', u38 = u38 + '".rand(0,5)."', u40 = u40 + '".rand(0,$max2)."' WHERE vref = '" . $wid . "' AND (u36 <= ".$max." OR u37 <= ".$max." OR u38 <= ".$max.")"; + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(0,5)."', u32 = u32 + '".rand(0,5)."', u35 = u35 + '".rand(0,5)."', u40 = u40 + '".rand(0,$max2)."' WHERE vref = '" . $wid . "' AND (u31 <= ".$max." OR u32 <= ".$max." OR u35 <= ".$max.")"; $result = mysql_query($q, $this->connection); break; case 7: case 8: //+25% iron per hour - $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(0,5)."', u32 = u32 + '".rand(0,5)."', u34 = u34 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u31 <= ".$max." OR u32 <= ".$max.")"; + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(0,5)."', u32 = u32 + '".rand(0,5)."', u34 = u34 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u31 <= ".$max." OR u32 <= ".$max." OR u34 <= ".$max.")"; $result = mysql_query($q, $this->connection); break; case 9: //+25% iron and +25% crop - $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(0,5)."', u32 = u32 + '".rand(0,5)."', u34 = u34 + '".rand(0,5)."', u40 = u40 + '".rand(0,$max2)."' WHERE vref = '" . $wid . "' AND (u31 <= ".$max." OR u32 <= ".$max." OR u34 <= ".$max.")"; + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(0,5)."', u32 = u32 + '".rand(0,5)."', u34 = u34 + '".rand(0,5)."', u39 = u39 + '".rand(0,$max2)."' WHERE vref = '" . $wid . "' AND (u31 <= ".$max." OR u32 <= ".$max." OR u34 <= ".$max.")"; $result = mysql_query($q, $this->connection); break; case 10: case 11: //+25% crop per hour - $q = "UPDATE " . TB_PREFIX . "units SET u33 = u33 + '".rand(0,5)."', u37 = u37 + '".rand(0,5)."', u38 = u38 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u33 <= ".$max." OR u37 <= ".$max." OR u38 <= ".$max.")"; + $q = "UPDATE " . TB_PREFIX . "units SET u33 = u33 + '".rand(0,5)."', u37 = u37 + '".rand(0,5)."', u38 = u38 + '".rand(0,5)."', u39 = u39 + '".rand(0,$max2)."' WHERE vref = '" . $wid . "' AND (u33 <= ".$max." OR u37 <= ".$max." OR u38 <= ".$max.")"; $result = mysql_query($q, $this->connection); break; case 12: @@ -3089,8 +3089,15 @@ class MYSQL_DB { while($row = mysql_fetch_array($result2)) { $wid = $row['id']; $basearray = $this->getOMInfo($wid); + if($basearray['oasistype'] < 4) { + $high = 1; + } else if ($basearray['oasistype'] < 10){ + $high = 2; + }else { + $high = 0; + } //We switch type of oasis and instert record with apropriate infomation. - $q = "INSERT into " . TB_PREFIX . "odata VALUES ('" . $basearray['id'] . "'," . $basearray['oasistype'] . ",0,800,800,800,800,800,800," . time() . "," . time() . ",100,2,'Unoccupied Oasis',".rand(0,2).")"; + $q = "INSERT into " . TB_PREFIX . "odata VALUES ('" . $basearray['id'] . "'," . $basearray['oasistype'] . ",0,800,800,800,800,800,800," . time() . "," . time() . ",100,2,'Unoccupied Oasis',".$high.")"; $result = mysql_query($q, $this->connection); } } From 3da80bc9944d9d08ab2ae48a6508bc2234692449 Mon Sep 17 00:00:00 2001 From: armando1980 Date: Fri, 24 Jan 2014 20:47:37 -0500 Subject: [PATCH 15/50] add option Spanish by Armando --- install/templates/config.tpl | 1 + 1 file changed, 1 insertion(+) diff --git a/install/templates/config.tpl b/install/templates/config.tpl index cc7d1342..45271d3c 100644 --- a/install/templates/config.tpl +++ b/install/templates/config.tpl @@ -59,6 +59,7 @@ echo "
Error creating constant.php Language: Beginners protection length: From 2482a2874bf9859d82a6888a51d85bd27f38b3fb Mon Sep 17 00:00:00 2001 From: KFCSpike Date: Sat, 25 Jan 2014 12:54:14 +0000 Subject: [PATCH 16/50] Task 4 - Billions is a bit optimistic --- GameEngine/Lang/en.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php index 1efca599..fea31a98 100644 --- a/GameEngine/Lang/en.php +++ b/GameEngine/Lang/en.php @@ -146,7 +146,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 ". 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_DESC","In ". SERVER_NAME ." 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_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."); From 178e58aef1f6894772f6c757407d006895229c24 Mon Sep 17 00:00:00 2001 From: KFCSpike Date: Sat, 25 Jan 2014 13:10:57 +0000 Subject: [PATCH 17/50] Task6 - Tweak completion message --- GameEngine/Lang/en.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php index fea31a98..62aa49b3 100644 --- a/GameEngine/Lang/en.php +++ b/GameEngine/Lang/en.php @@ -159,8 +159,8 @@ define("Q5_RESP","As you noticed, building orders take rather long. The world of 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.

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.

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_RESP","You received it? Very good.

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_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.

Hint: The message has been generated automatically. An answer is not necessary."); From 4f9436e5c50ff801cadcf4f745a271c37d65d7d2 Mon Sep 17 00:00:00 2001 From: KFCSpike Date: Sat, 25 Jan 2014 13:30:14 +0000 Subject: [PATCH 18/50] Task 6 uses SERVER_NAME when referencing the menu choice when completed - changing left menu to also use SERVER_NAME and moving the plus link above the Game Rules link --- Templates/menu.tpl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Templates/menu.tpl b/Templates/menu.tpl index 1d63f729..a1120800 100644 --- a/Templates/menu.tpl +++ b/Templates/menu.tpl @@ -45,10 +45,12 @@ div.c1 {text-align: center} echo "
".SYSTEM_MESSAGE.""; echo "Create Natars"; } ?>

- - -

Travian Plus - +

+ Plus +

+

+ +

isDeleting($session->uid); From 1681f079a8058fbf4a1b8ab2915a51f9561acbca Mon Sep 17 00:00:00 2001 From: KFCSpike Date: Sat, 25 Jan 2014 13:49:17 +0000 Subject: [PATCH 19/50] Task 7 - Tweak response when completed --- GameEngine/Lang/en.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php index 62aa49b3..767d24f8 100644 --- a/GameEngine/Lang/en.php +++ b/GameEngine/Lang/en.php @@ -165,10 +165,11 @@ 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.

Hint: The message has been generated automatically. An answer is not necessary."); +//TODO: Should this be 4 More instead of One Each? 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 develop of resources production."); +define("Q7_RESP","Very good, great development of resource 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!

In return I will try to organize a huge army to protect your village."); From e8d84898362186d5743d3c3bc84f8e6c590a6428 Mon Sep 17 00:00:00 2001 From: KFCSpike Date: Sat, 25 Jan 2014 13:55:11 +0000 Subject: [PATCH 20/50] Task9 - Use SERVER_NAME instead of Travian --- GameEngine/Lang/en.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php index 767d24f8..1b525633 100644 --- a/GameEngine/Lang/en.php +++ b/GameEngine/Lang/en.php @@ -178,7 +178,7 @@ define("Q8_BUTN","Send crop"); define("Q8_NOCROP","No Enough Crop!"); define("Q9","Task 9: Everything to 1."); -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_DESC","In " . SERVER_NAME . " 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.

Soon we can start with constructing buildings in the village."); From f792db7a3232bc939ea24cdcd289af98d6df51d7 Mon Sep 17 00:00:00 2001 From: KFCSpike Date: Sat, 25 Jan 2014 14:07:12 +0000 Subject: [PATCH 21/50] Task9 - Use SERVER_NAME instead of Travian, tweak message, and don't say extend all resource tiles to 1 as this is said in order --- GameEngine/Lang/en.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php index 1b525633..73911004 100644 --- a/GameEngine/Lang/en.php +++ b/GameEngine/Lang/en.php @@ -178,7 +178,7 @@ define("Q8_BUTN","Send crop"); define("Q8_NOCROP","No Enough Crop!"); define("Q9","Task 9: Everything to 1."); -define("Q9_DESC","In " . SERVER_NAME . " 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_DESC","In " . SERVER_NAME . " 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_ORDER","Order:<\/p>Extend all resource tiles to level 1."); define("Q9_RESP","Very good, your resource production just thrives.

Soon we can start with constructing buildings in the village."); From ee959662c94aa26148eb347d2c33dfed6490a092 Mon Sep 17 00:00:00 2001 From: KFCSpike Date: Sat, 25 Jan 2014 14:28:48 +0000 Subject: [PATCH 22/50] Task10 - Beginners Protection might not be days so tweak the message --- GameEngine/Lang/en.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php index 73911004..69aa4528 100644 --- a/GameEngine/Lang/en.php +++ b/GameEngine/Lang/en.php @@ -183,7 +183,7 @@ define("Q9_ORDER","Order:<\/p>Extend all resource tiles to level 1."); define("Q9_RESP","Very good, your resource production just thrives.

Soon we can start with constructing buildings in the village."); define("Q10","Task 10: Dove of Peace"); -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 [#0]<\/b> to your profile."); +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 [#0]<\/b> to your profile."); define("Q10_ORDER","Order:<\/p>Write the code [#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"); From fff0c8e11519f2736c98c4a379a8c450bffafbec Mon Sep 17 00:00:00 2001 From: KFCSpike Date: Sat, 25 Jan 2014 14:38:50 +0000 Subject: [PATCH 23/50] Task11 - Tweak messages --- GameEngine/Lang/en.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php index 69aa4528..3f3ccb3f 100644 --- a/GameEngine/Lang/en.php +++ b/GameEngine/Lang/en.php @@ -193,9 +193,9 @@ 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:

Look for the coordinates of "); define("Q11_ORDER1","and enter them here."); -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("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("Q12","Task 12: Cranny"); define("Q12_DESC","It's getting time to erect a cranny. The world of is dangerous.

Many players live by stealing other players' resources. Build a cranny to hide some of your resources from enemies."); From 5fb25fd1376884828792241254a479e83f37987d Mon Sep 17 00:00:00 2001 From: KFCSpike Date: Sat, 25 Jan 2014 14:44:21 +0000 Subject: [PATCH 24/50] Task12 - Tweak message to correctly show server name --- GameEngine/Lang/en.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php index 3f3ccb3f..0dc4cf93 100644 --- a/GameEngine/Lang/en.php +++ b/GameEngine/Lang/en.php @@ -198,7 +198,7 @@ define("Q11_RESP1"," is! Your reward is how many resources this village has. Wel define("Q11_BUTN","complete task"); define("Q12","Task 12: Cranny"); -define("Q12_DESC","It's getting time to erect a cranny. The world of is dangerous.

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 " . SERVER_NAME. " is dangerous.

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.

If under attack, your villagers will hide the resources in the Cranny all on their own."); From 091cf894a74d1a1d1cde1fd84b024252fcb1cce2 Mon Sep 17 00:00:00 2001 From: KFCSpike Date: Sat, 25 Jan 2014 14:54:39 +0000 Subject: [PATCH 25/50] Task13 - Tweak message to correctly show server name --- GameEngine/Lang/en.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php index 0dc4cf93..029e4984 100644 --- a/GameEngine/Lang/en.php +++ b/GameEngine/Lang/en.php @@ -203,7 +203,7 @@ 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.

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 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 " . 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!"); From 8407c75f6bbfdd603955d17657bdd226e29fa563 Mon Sep 17 00:00:00 2001 From: KFCSpike Date: Sat, 25 Jan 2014 14:56:49 +0000 Subject: [PATCH 26/50] Task14 - Tweak --- GameEngine/Lang/en.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php index 029e4984..a5f7b982 100644 --- a/GameEngine/Lang/en.php +++ b/GameEngine/Lang/en.php @@ -209,8 +209,8 @@ 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.

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 barracks cost"); -define("Q14_BUTN","Send"); +define("Q14_ORDER","Order:<\/p>Enter how much lumber the barracks cost"); +define("Q14_BUTN","complete task"); define("Q14_RESP","Exactly! Barracks cost 210 lumber."); define("Q15","Task 15: Main Building"); From e235c2eca71eaf87905cfcecb13bc0992d9f4339 Mon Sep 17 00:00:00 2001 From: KFCSpike Date: Sat, 25 Jan 2014 15:00:44 +0000 Subject: [PATCH 27/50] Task15 - Tweak --- GameEngine/Lang/en.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php index a5f7b982..96c88be8 100644 --- a/GameEngine/Lang/en.php +++ b/GameEngine/Lang/en.php @@ -216,7 +216,7 @@ 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.

With this upgrade your master builders cannot only construct more types of buildings but also do so faster."); +define("Q15_RESP","Well done. The main building level 3 has been completed.

With this upgrade your master builders can construct more types of buildings and 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."); From 2ee434ef583e76a17494ceea9bad547c4d9162d5 Mon Sep 17 00:00:00 2001 From: KFCSpike Date: Sat, 25 Jan 2014 15:19:57 +0000 Subject: [PATCH 28/50] Task18 - Military, fix errors in messages --- Templates/Ajax/quest_core.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Templates/Ajax/quest_core.tpl b/Templates/Ajax/quest_core.tpl index a8f13091..75227f8a 100644 --- a/Templates/Ajax/quest_core.tpl +++ b/Templates/Ajax/quest_core.tpl @@ -619,7 +619,7 @@ if ($rRes!=$rSubmited){ ?> // Checking rollypoint builded or no $rallypoint = $building->getTypeLevel(16); if ($rallypoint==0){ ?> -{"markup":"\n\t\t

\"\" <\/h1>
<\/a> ”<\/i>

<\/div>
<\/span><\/div>\n\t\t

<\/div>\n\t\t","number":"-18","reward":false,"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} +{"markup":"\n\t\t

\"\" <\/h1>
”<\/i>

<\/div>
<\/span><\/div>\n\t\t

<\/div>\n\t\t","number":"-18","reward":false,"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} {"markup":"\n\t\t

\"\" <\/h1>
”<\/i>

<\/p>\"Lumber\"80  \"Clay\"90  \"Iron\"60  \"Crop\"40  <\/div>
<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":18,"reward":{"wood":80,"clay":90,"iron":60,"crop":40},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} From 859cee7991a43d74785375d229221572e4b17ced Mon Sep 17 00:00:00 2001 From: KFCSpike Date: Sat, 25 Jan 2014 15:54:25 +0000 Subject: [PATCH 29/50] Task20 - fix response --- GameEngine/Lang/en.php | 2 +- Templates/Ajax/quest_core.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php index 96c88be8..0465468b 100644 --- a/GameEngine/Lang/en.php +++ b/GameEngine/Lang/en.php @@ -242,7 +242,7 @@ 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.

Before sending your army off to plunder you should check with the."); +define("Q20_RESP","The foundation for your glorious army has been laid.

Before sending your army off to plunder you should check with the"); define("Q20_RESP1","to see how many troops you need to successfully fight one rat without losses."); define("Q21","Task 18: Economy"); diff --git a/Templates/Ajax/quest_core.tpl b/Templates/Ajax/quest_core.tpl index 75227f8a..8d2fe689 100644 --- a/Templates/Ajax/quest_core.tpl +++ b/Templates/Ajax/quest_core.tpl @@ -643,7 +643,7 @@ $unarray2=array("","u1", "u11","u21"); if ($units[$unarray2[$session->userinfo['tribe']]]<2){ ?> {"markup":"\n\t\t

\"\" <\/h1>
userinfo['tribe']];?>.”<\/i>

userinfo['tribe']];?>.<\/div>
<\/span><\/div>\n\t\t

<\/div>\n\t\t","number":"-20","reward":false,"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} -{"markup":"\n\t\t

\"\" <\/h1>
<\/a> ”<\/i>

<\/p>\"Lumber\"300  \"Clay\"320  \"Iron\"360  \"Crop\"570  <\/div>
<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":20,"reward":{"wood":300,"clay":320,"iron":360,"crop":570},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} +{"markup":"\n\t\t

\"\" <\/h1>
Simulator ”<\/i>

<\/p>\"Lumber\"300  \"Clay\"320  \"Iron\"360  \"Crop\"570  <\/div>
<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":20,"reward":{"wood":300,"clay":320,"iron":360,"crop":570},"qgsrc":"q_luserinfo['tribe'];?>g","msrc":"","altstep":99} Date: Sat, 25 Jan 2014 17:16:03 +0000 Subject: [PATCH 30/50] Task21 - Tweak wording --- GameEngine/Lang/en.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php index 0465468b..8fe36dc3 100644 --- a/GameEngine/Lang/en.php +++ b/GameEngine/Lang/en.php @@ -261,7 +261,7 @@ 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 your resource production a bit. Build an additional woodcutter, clay pit, iron mine and cropland to level 1."); +define("Q24_DESC","Now we should increase our resource production a bit more."); define("Q24_ORDER","Order:<\/p>Extend all resource tiles to level 2."); define("Q24_RESP","Congratulations! Your village grows and thrives..."); From e3e1273d12b73f232debda945c94bbe3eafa87cd Mon Sep 17 00:00:00 2001 From: KFCSpike Date: Sat, 25 Jan 2014 17:29:12 +0000 Subject: [PATCH 31/50] Task22 - Tweak wording --- GameEngine/Lang/en.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php index 8fe36dc3..f2a5d3f8 100644 --- a/GameEngine/Lang/en.php +++ b/GameEngine/Lang/en.php @@ -268,8 +268,8 @@ 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","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("Q28_RESP","Well done! Now you're in a union called"); +define("Q28_RESP1",", and you're a member of their alliance.
Working together you will all progress faster..."); 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."); From dea90bf8ef8a471c2b3170987ece556e6f35ce6e Mon Sep 17 00:00:00 2001 From: KFCSpike Date: Sat, 25 Jan 2014 17:32:25 +0000 Subject: [PATCH 32/50] Task24 - Tweak wording --- GameEngine/Lang/en.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php index f2a5d3f8..eec84401 100644 --- a/GameEngine/Lang/en.php +++ b/GameEngine/Lang/en.php @@ -277,7 +277,7 @@ 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","That you do not lose crop, you should upgrade your granary."); +define("Q30_DESC","To avoid losing 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..."); From c1a218de8d809c73e742c0be87f67d664c319ac6 Mon Sep 17 00:00:00 2001 From: KFCSpike Date: Sat, 25 Jan 2014 17:36:28 +0000 Subject: [PATCH 33/50] Task25 - Tweak wording --- GameEngine/Lang/en.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php index eec84401..497e69c8 100644 --- a/GameEngine/Lang/en.php +++ b/GameEngine/Lang/en.php @@ -284,7 +284,7 @@ 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 upgraded to level 7..."); +define("Q31_RESP","Warehouse has been 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."); From 5a2237611f538a1133434e3eb19598380cab0de3 Mon Sep 17 00:00:00 2001 From: armando1980 Date: Sat, 25 Jan 2014 13:15:18 -0500 Subject: [PATCH 34/50] FIXED spies BY Armando if the defender does not have spies, the attacker will not die spies. FIXED BY Armando --- GameEngine/Automation.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index 0d39f1dc..5194eb84 100644 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -1454,7 +1454,25 @@ class Automation { ${dead.$i}=$data['t'.$i]; }else { ${dead.$i} = $battlepart['casualties_attacker'][$i]; } } - + //if the defender does not have spies, the attacker will not die spies. FIXED BY Armando + if($scout){ + $spy_def_Detect=0; + for($i=1;$i<=(50);$i++) { + if($i == 4 || $i == 14 || $i == 23 || $i == 34 || $i == 44){ + if($Defender['u'.$i]>0) { + $spy_def_Detect=$i; + break; + } + } + } + + } + if($spy_def_Detect==0) { + $dead3=0; + $dead4=0; + $battlepart['casualties_attacker'][3]=0; + $battlepart['casualties_attacker'][4]=0; + } ################################################# $dead=array(); From 1e56769a38a01015f4f3a9159530d6fd73a18cb1 Mon Sep 17 00:00:00 2001 From: armando1980 Date: Sat, 25 Jan 2014 13:40:06 -0500 Subject: [PATCH 35/50] fix report when spies not return --- Templates/Notice/19.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Templates/Notice/19.tpl b/Templates/Notice/19.tpl index 456531ab..22408de5 100644 --- a/Templates/Notice/19.tpl +++ b/Templates/Notice/19.tpl @@ -5,6 +5,7 @@ ## TRAVIANZ ## ############################################################ $dataarray = explode(",",$message->readingNotice['data']); +$colspan="10"; $colspan2="10"; //attacker if ($database->getUserField($dataarray[0],'username',0)!="??") { @@ -298,4 +299,4 @@ for($i=129;$i<=138;$i++) { - \ No newline at end of file + From a74fdede6cb4a12bb2e4baf92a624d4dab9e4a0d Mon Sep 17 00:00:00 2001 From: armando1980 Date: Sat, 25 Jan 2014 14:25:24 -0500 Subject: [PATCH 36/50] FIXED spies in Combat Simulator BY Armando --- GameEngine/Battle.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/GameEngine/Battle.php b/GameEngine/Battle.php index 48a9fab3..ae64f079 100644 --- a/GameEngine/Battle.php +++ b/GameEngine/Battle.php @@ -151,13 +151,19 @@ class Battle { } $walllevel=$post['walllevel']; $wall = $walllevel; + $Pala = $post['palast']; + if($scout ==1 && $defscout==0) { + $walllevel=0; + $wall = 0; + $Pala = 0; + } if(!$scout) - return $this->calculateBattle($attacker,$defender,$wall,$post['a1_v'],$deftribe,$post['palast'],$post['ew1'],$post['ew2'],$post['ktyp']+3,$def_ab,$att_ab1,$att_ab2,$att_ab3,$att_ab4,$att_ab5,$att_ab6,$att_ab7,$att_ab8,$post['kata'],$post['stonemason'],$walllevel,$offhero,$post['h_off'],0,0,0,0,0); + return $this->calculateBattle($attacker,$defender,$wall,$post['a1_v'],$deftribe,$Pala,$post['ew1'],$post['ew2'],$post['ktyp']+3,$def_ab,$att_ab1,$att_ab2,$att_ab3,$att_ab4,$att_ab5,$att_ab6,$att_ab7,$att_ab8,$post['kata'],$post['stonemason'],$walllevel,$offhero,$post['h_off'],0,0,0,0,0); else - return $this->calculateBattle($attacker,$defender,$wall,$post['a1_v'],$deftribe,$post['palast'],$post['ew1'],$post['ew2'],1,$def_ab,$att_ab1,$att_ab2,$att_ab3,$att_ab4,$att_ab5,$att_ab6,$att_ab7,$att_ab8,$post['kata'],$post['stonemason'],$walllevel,0,0,0,0,0,0,0); + return $this->calculateBattle($attacker,$defender,$wall,$post['a1_v'],$deftribe,$Pala,$post['ew1'],$post['ew2'],1,$def_ab,$att_ab1,$att_ab2,$att_ab3,$att_ab4,$att_ab5,$att_ab6,$att_ab7,$att_ab8,$post['kata'],$post['stonemason'],$walllevel,0,0,0,0,0,0,0); } public function getTypeLevel($tid,$vid) { From c0d24d45b77ece819af61353e3265fd65da67c2b Mon Sep 17 00:00:00 2001 From: KFCSpike Date: Sat, 25 Jan 2014 21:00:14 +0000 Subject: [PATCH 37/50] Tasks 4 and 5 - bold SERVER_NAME --- GameEngine/Lang/en.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php index 497e69c8..4fc9e95f 100644 --- a/GameEngine/Lang/en.php +++ b/GameEngine/Lang/en.php @@ -146,7 +146,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 ". SERVER_NAME ." 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 thousands 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,7 +154,7 @@ 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>