diff --git a/.htaccess b/.htaccess
new file mode 100644
index 00000000..8869ae3a
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,4 @@
+
+ Order Deny,Allow
+ Deny from all
+
\ No newline at end of file
diff --git a/GameEngine/Admin/Mods/natarbuildingplan.php b/GameEngine/Admin/Mods/natarbuildingplan.php
new file mode 100644
index 00000000..bae93a9b
--- /dev/null
+++ b/GameEngine/Admin/Mods/natarbuildingplan.php
@@ -0,0 +1,43 @@
+access < ADMIN) die("Access Denied: You are not Admin!");
+
+$id = $_POST['id'];
+$amt = $_POST['vill_amount'];
+
+for($i=1;$i<=$amt;$i++) {
+
+ $kid = rand(1,4);
+
+ $wid = $database->generateBase($kid);
+ $database->setFieldTaken($wid);
+ $time = time();
+ $q = "insert into `s1_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,233,232,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,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,0,'World Wonder')";
+ mysql_query($q);
+ $database->addUnits($wid);
+ $database->addTech($wid);
+ $database->addABTech($wid);
+ $q = "UPDATE ".TB_PREFIX."units SET u41 = u41 + '150000', u42 = u42 + '150000', u43 = u43 + '150000', u44 = u44 + '150000', u45 = u45 + '150000', u46 = u46 + '150000', u47 = u47 + '150000', u48 = u48 + '150000' , u49 = u49 + '150000', u50 = u50 + '150000' WHERE vref = '".$wid."'";
+ mysql_query($q);
+}
+
+
+ mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$id,'Added $amt WW Buildingplan Villages',".time().")");
+
+
+header("Location: ../../../admin.php?p=natarbuildingplan&g");
+?>
\ No newline at end of file
diff --git a/GameEngine/Admin/Mods/natarend.php b/GameEngine/Admin/Mods/natarend.php
index 0bc0327d..6b00e942 100644
--- a/GameEngine/Admin/Mods/natarend.php
+++ b/GameEngine/Admin/Mods/natarend.php
@@ -3,7 +3,7 @@
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
-## Filename gold.php ##
+## Filename natarend.php ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
@@ -24,7 +24,7 @@ for($i=1;$i<=$amt;$i++) {
$wid = $database->generateBase($kid);
$database->setFieldTaken($wid);
$time = time();
- $q = "insert into `s1_vdata`(`wref`,`owner`,`name`,`capital`,`pop`,`cp`,`celebration`,`type`,`wood`,`clay`,`iron`,`maxstore`,`crop`,`maxcrop`,`lastupdate`,`loyalty`,`exp1`,`exp2`,`exp3`,`created`) values ('$wid','3','World Wonder',0,233,232,0,0,80000.00,80000.00,80000.00,80000,80000.00,80000,1314974534,100,0,0,0,1314968914)";
+ $q = "insert into `s1_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 village',0,233,232,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,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,1,40,'World Wonder')";
mysql_query($q);
@@ -39,5 +39,5 @@ for($i=1;$i<=$amt;$i++) {
mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$id,'Added $amt WW Villages',".time().")");
-header("Location: ../../../Admin/admin.php?p=natarend&g");
+header("Location: ../../../admin.php?p=natarend&g");
?>
\ No newline at end of file
diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php
index 65fb1222..bcd66568 100644
--- a/GameEngine/Automation.php
+++ b/GameEngine/Automation.php
@@ -1705,6 +1705,7 @@ private function loyaltyRegeneration() {
$varray = $database->getProfileVillages($to['owner']);
//kijken of laatste dorp is, of hoofddorp
if(count($varray)!='1' AND $to['capital']!='1'){
+ if($to['owenr']!=3 AND $to['name']!='WW Buildingplan'){
//if there is no Palace/Residence
for ($i=18; $i<39; $i++){
if ($database->getFieldLevel($data['to'],"".$i."t")==25 or $database->getFieldLevel($data['to'],"".$i."t")==26){
@@ -1762,6 +1763,9 @@ private function loyaltyRegeneration() {
} else {
$info_chief = "".$chief_pic.",You cant take over this village.";
}
+ } else {
+ $info_chief = "".$chief_pic.",You cant take over this village.";
+ }
}
if($data['t11'] > 0){
diff --git a/GameEngine/Database/db_MYSQL.php b/GameEngine/Database/db_MYSQL.php
index b1c6a4f8..d425c2ce 100644
--- a/GameEngine/Database/db_MYSQL.php
+++ b/GameEngine/Database/db_MYSQL.php
@@ -593,6 +593,8 @@
$dbarray = mysql_fetch_array($result);
return $dbarray['fieldtype'];
}
+
+
/*****************************************
Function to retrieve if is ocuped via ID
@@ -1543,7 +1545,6 @@
}
function getVillageByName($name) {
- $name = mysql_real_escape_string($name, $this->connection);
$q = "SELECT wref FROM " . TB_PREFIX . "vdata where name = '$name' limit 1";
$result = mysql_query($q, $this->connection);
$dbarray = mysql_fetch_array($result);
diff --git a/GameEngine/Market.php b/GameEngine/Market.php
index da793072..8bbb2549 100644
--- a/GameEngine/Market.php
+++ b/GameEngine/Market.php
@@ -105,10 +105,13 @@ class Market {
}
if($database->getVillageState($id)) {
$timetaken = $generator->procDistanceTime($coor,$village->coor,$session->tribe,0);
+ $res = $resource[0]+$resource[1]+$resource[2]+$resource[3];
+ if($res!=0){
$reference = $database->sendResource($resource[0],$resource[1],$resource[2],$resource[3],$reqMerc,0);
$database->modifyResource($village->wid,$resource[0],$resource[1],$resource[2],$resource[3],0);
$database->addMovement(0,$village->wid,$id,$reference,time(),time()+$timetaken);
$logging->addMarketLog($village->wid,1,array($resource[0],$resource[1],$resource[2],$resource[3],$id));
+ }
}
}
header("Location: build.php?id=".$post['id']);
diff --git a/README b/README
index 953435d6..f2c4f8f2 100644
--- a/README
+++ b/README
@@ -1,11 +1,5 @@
-Title : README
-Author : Advocaite
+TravianZ is based on TravianX v6.0.0 with some grapich changes from ZravianX.
+I will try to make the best from this version and I will add every fix that I will found to it.
+If you found fix to somthing please give it to me.
-TravianX Brought to you by Advocaite & donn
-This clone has seen many authors allkori,dzoki,dixxie PLus many more
-the install process is fairly easy to do just make sure
-GameEngine/Config.php Dose not exsist if it dose exsist delete it
-Then run server in localhost you should be directed to a install page
-folow instructions then play and enjoy.
-
-thankyou for you time
+* find 'magic_quotes_gpc = Off' and replace with 'magic_quotes_gpc = On' for better options with special characters (you need to restart your appache and mysql for make this change affective)
\ No newline at end of file
diff --git a/Templates/Admin/menu.tpl b/Templates/Admin/menu.tpl
index 99703379..bd1d43d7 100644
--- a/Templates/Admin/menu.tpl
+++ b/Templates/Admin/menu.tpl
@@ -42,7 +42,7 @@ include_once ("GameEngine/Ranking.php");
Mass messageSystem messageUpdate top 10
- Add WW Villages
+ Add WW Buildingplan Villages