From c315b436bf45bde85c10022aabb18e41b41ec508 Mon Sep 17 00:00:00 2001 From: Novgorodschi Catalin Date: Wed, 20 Nov 2013 07:49:21 +0200 Subject: [PATCH] updates and fixes --- GameEngine/Automation.php | 28 +++--- GameEngine/Village.php | 1 + Templates/version.tpl | 5 ++ a2b.php | 1 - version.php | 180 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 200 insertions(+), 15 deletions(-) create mode 100644 Templates/version.tpl create mode 100644 version.php diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index 7a276b7a..4bb0e51f 100644 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -2867,30 +2867,30 @@ $wallimg = "clearExpansionSlot($wref); $q = "DELETE FROM ".TB_PREFIX."abdata where vref = $wref"; - mysql_query($q, $this->connection); + $database->query($q); $q = "DELETE FROM ".TB_PREFIX."bdata where wid = $wref"; - mysql_query($q, $this->connection); + $database->query($q); $q = "DELETE FROM ".TB_PREFIX."market where vref = $wref"; - mysql_query($q, $this->connection); + $database->query($q); $q = "DELETE FROM ".TB_PREFIX."odata where wref = $wref"; - mysql_query($q, $this->connection); + $database->query($q); $q = "DELETE FROM ".TB_PREFIX."research where vref = $wref"; - mysql_query($q, $this->connection); + $database->query($q); $q = "DELETE FROM ".TB_PREFIX."tdata where vref = $wref"; - mysql_query($q, $this->connection); + $database->query($q); $q = "DELETE FROM ".TB_PREFIX."fdata where vref = $wref"; - mysql_query($q, $this->connection); + $database->query($q); $q = "DELETE FROM ".TB_PREFIX."training where vref = $wref"; - mysql_query($q, $this->connection); + $database->query($q); $q = "DELETE FROM ".TB_PREFIX."units where vref = $wref"; - mysql_query($q, $this->connection); + $database->query($q); $q = "DELETE FROM ".TB_PREFIX."farmlist where wref = $wref"; - mysql_query($q, $this->connection); + $database->query($q); $q = "DELETE FROM ".TB_PREFIX."raidlist where towref = $wref"; - mysql_query($q, $this->connection); + $database->query($q); $q = "DELETE FROM ".TB_PREFIX."movement where `from` = $wref and proc=0"; - mysql_query($q, $this->connection); + $database->query($q); $getmovement = $database->getMovement(3,$wref,1); foreach($getmovement as $movedata) { @@ -2905,11 +2905,11 @@ $wallimg = "returnTroops($wref); $q = "DELETE FROM ".TB_PREFIX."vdata WHERE `wref` = $wref"; - mysql_query($q, $this->connection); + $database->query($q); if (mysql_affected_rows()>0) { $q = "UPDATE ".TB_PREFIX."wdata set occupied = 0 where id = $wref"; - mysql_query($q, $this->connection); + $database->query($q); $getprisoners = $database->getPrisoners($wref); foreach($getprisoners as $pris) { diff --git a/GameEngine/Village.php b/GameEngine/Village.php index 18207f22..1440bddb 100644 --- a/GameEngine/Village.php +++ b/GameEngine/Village.php @@ -12,6 +12,7 @@ include("Session.php"); include("Building.php"); include("Market.php"); +include_once("GameEngine/Units.php"); include("Technology.php"); include("Automation.php"); diff --git a/Templates/version.tpl b/Templates/version.tpl new file mode 100644 index 00000000..07785fe7 --- /dev/null +++ b/Templates/version.tpl @@ -0,0 +1,5 @@ +
+

Travian VERSION by Shadow

+
+ +
\ No newline at end of file diff --git a/a2b.php b/a2b.php index 41c41ee1..329679af 100644 --- a/a2b.php +++ b/a2b.php @@ -10,7 +10,6 @@ ################################################################################# include("GameEngine/Village.php"); -include("GameEngine/Units.php"); $start = $generator->pageLoadTimeStart(); if(isset($_GET['newdid'])) { diff --git a/version.php b/version.php new file mode 100644 index 00000000..df1670f6 --- /dev/null +++ b/version.php @@ -0,0 +1,180 @@ +pageLoadTimeStart(); +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; + header("Location: ".$_SERVER['PHP_SELF']); +} +else { + $building->procBuild($_GET); +} +$automation->isWinner(); +?> + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + +
+ +
+
+ +
+ + +

Version Changes

+
+ +1. Modified register page with pictures.
+2. Modified names of tribes with colours.
+3. Modified Plus System with packages.
+4. Modified in Plus System and added Account Statement.
+5. Enabled Report Player in Profile. Send message to Multihunter.
+6. Enabled Graphic Pack in Profile (NOT CODED YET).
+7. Enabled in Profile : Auto Completation , Large Map , Report Filter and Time Preferences (NOT CODED YET).
+8. Added Vacation Mod . Can be set from profile , cannot attack player on vacation mode , can view on profile (overview), cannot login on vacation mode. (thanks to advocaite).
+9. Integrate Support Section in game.
+10. Modified footer and menu and added version and bugs (I mean detailed version.php and bugs.php).
+11. Modified all admin page , now all pictures appers correctly.
+12. Added night / day pictures. (thanks to advocaite).
+13. Activate inactive player in Admin Panel.
+14. Added Server Maintenence in Admin Panel (Not working 100% , i mean mode ban all players).
+15. Activate Player Report in Admin Panel (NOT CODED YET).
+16. Many bug fixed in Admin Panel.
+17. Negative crop fixed , now units die (starvation). WORKS LIKE REAL TRAVIAN !!!
+18. Medal fixed.
+19. Added image in Profile (like beginner protection) for tribes [#roman] , [#gaul] , [#teuton]
+20. Added image in profile for Multihunter and Admin [#MH] automaticaly set on install.
+21. Added image in profile for Taskmaster and Nature [#TASKMASTER] , [#NATURE] , automaticaly set on install.
+22. Added numbers of village in overview Villages [ 35 ]
+23. Added oassis type in Profile / Overview
+24. Added in karte.php (vilview.tpl) if you are in vacation mode , you cannot send resource.
+25. Added in reports images for every report (reinforcement , attacks , resource , peace).
+26. Added new quests (alliance , main building 5 , granary level 3 , warehouse level 5 , palace or residence , 3 settlers , new village , wall).
+27. Winner decoded end time fixed , 403 , 404 , 500 errors are now decoded.
+28. Populate and regenerate oasis automation function added and fixed.
+29. Fixed palace , now cannot be build more than one palace / accout.
+30. Now you need a warehouse and granary level 20 to build great granary and great warehouse.
+31. Cannot send attacks and send resource to banned / vacation players.
+32. Now banned palyer and vacation mode player cannot recive resource from marketplace.
+33. Fix message replay , now can be viwed from who came message.
+34. Added in instalation Nature Regeneration Time.
+35. Fix oasis.tpl in instalation files.
+36. Fix ranking search from everyware.
+37. Fix "Finish all constructions for 2 gold." now you dont lose gold when you simply click.
+38. Fix bonus on artefacts , now show what bonus gives you.(thanks to brainiacX)
+39. Fix settler bug , now you cannot train settlers if you dont have resource. And also modifyResource function updated. (thanks to brainiacX)
+40. Fix brewerey now can be build only on capital.
+41. Fix treasurey and palace , now cannot be build on WW village.
+42. Fix greatbarraks.
+43. Fix eraseble hero , now you can delete your hero.
+44. Fix desapear hero when you send as reinforcement.
+45. Fix message problem with '
+46. Fix train hero for unit pretorian
+47. Fix merchant quantity
+48. Fix battle system for catapults
+49. Fix delete player in admin panel
+50. Added automated system for give medals and also added in instalation file
+51. Fix special characters when send troops
+52. Fix reference link
+53. Fix bug 10 from NarcisRO list : If you have plus account activated you cannot see the attck/deff/scout images when you attack a village (i mean img on villages : red swords etc..)
+54. Fix forum surveys - NOT DONE
+55. Fix wall image when spy someone for every tribe
+56. Fix the top romans/teutons/gauls icon must show you the first rank of each race,not the whole page
+57. Fix destroy village bug
+58. Fix conquer oasis.
+59. Fix movements.tpl (now show purple sword if your oasis is attacked or if you found new village)
+60. Fixed movements on rally point if your oasis is under attack
+61. Fixed vulnerability attack on message.
+62. Fixed scouting all player when create natars.
+63. Fixed catapult if have artefact for random target. Now can target WW even have that artefact like says.
+64. Added graphic pack T4 (buildings , village view , building in construction , etc.)
+65. Fix special characters on message (script alert not work now).
+66. Fix mightiest bug of travian , double troops , now you won`t have any problems with double troops. Works for own units and for enforcement units.
+67. Fix catapult target on brewerey , now you can target brewerey.
+68. Added loss protection if you have beginner protection and want to attack a player you loss protection.
+69. Fix artefacts, will not win more artifacts from the same village.
+70. Fix quest_core.tpl , now you cannot claim two rewards and also fix task 17.
+71. Fix new village must build a rally point.
+72. Fix sorting distance artefact village.
+73. Fix to conquer oasis: can conquer 1 attack if nature troop die.
+74. Fix report scout by Natars. Now report player can see..
+75. Fix area and location like real travian.
+76. Fix field Natar village set to type=3.
+77. Fix Natar village area 400/400 or WORLD_MAX not the random area.
+78. Fix create_account.php : cannot create Natar if already exist.
+
+
+



+ +
+
+
+ +
+ + +
+
+
+Calculated in pageLoadTimeEnd()-$start)*1000); +?> ms + +
Server time: +
+
+
+ +
+ +