Giter VIP home page Giter VIP logo

travianz-by-shadow's Introduction

TravianZ Version v.8.0.0 FINAL TEST

Download and updates : https://github.com/Shadowss/TravianZ

Thank you to : advocaite , brainiacX , MisterX , yi12345 , ronix , Elio , and many others that make that version posible.

This version is same as yi12345.

First i want to say THANKS for all who worked on that version , will find a list on Version file.

TravianZ is based on TravianX v6.0.0 or TravianZ or TravianX with some grapich changes from ZravianX.


1. Modified Plus System with packages.</br>
2. Modified in Plus System and added Account Statement.</br>
3. Enabled Report Player in Profile. Send message to Multihunter. </br>
4. Enabled Graphic Pack in Profile (NOT CODED YET).</br>
5. Enabled in Profile : Auto Completation , Large Map , Report Filter and Time Preferences (NOT CODED YET).</br>
6. Integrate Support Section in game.</br>
7. Modified footer and menu and added version and bugs (I mean detailed version.php and bugs.php).</br>
8. Modified all admin page , now all pictures appers correctly.</br>
9. Added night / day pictures. (thanks to advocaite).</br>
10. Activate inactive player in Admin Panel.</br>
11. Added Server Maintenence in Admin Panel (Not working 100% , i mean mode ban all players).</br>
12. Activate Player Report in Admin Panel (NOT CODED YET).</br>
13. Many bug fixed in Admin Panel.</br>
14. Negative crop fixed , now units die (starvation). WORKS LIKE REAL TRAVIAN !!!</br>
15. Medal fixed.</br>
16. Added new quests (alliance , main building 5 , granary level 3 , warehouse level 5 , palace or residence , 3 settlers , new village , wall).</br>
17. Winner decoded end time fixed , 403 , 404 , 500 errors are now decoded.</br>
18. Populate and regenerate oasis automation function added and fixed.</br>
19. Fixed palace , now cannot be build more than one palace / accout.</br>
20. Now you need a warehouse and granary level 20 to build great granary and great warehouse.</br>
21. Cannot send attacks and send resource to banned players.</br>
22. Now banned palyer cannot recive resource from marketplace.</br>
23. Fix message replay , now can be viwed from who came message.</br>
24. Added in instalation Nature Regeneration Time.</br>
25. Fix oasis.tpl in instalation files.</br>
26. Fix ranking search from everyware.</br>
27. Fix "Finish all constructions for 2 gold." now you dont lose gold when you simply click.</br>
28. Fix bonus on artefacts , now show what bonus gives you.(thanks to brainiacX)</br>
29. Fix settler bug , now you cannot train settlers if you dont have resource. And also modifyResource function updated. (thanks to brainiacX)</br>
30. Fix brewerey now can be build only on capital.</br>
31. Fix treasurey and palace , now cannot be build on WW village.</br>
32. Fix greatbarraks.</br>
33. Fix eraseble hero , now you can delete your hero.</br>
34. Fix desapear hero when you send as reinforcement.</br>
35. Fix message problem with '</br>
36. Fix train hero for unit pretorian</br>
37. Fix merchant quantity</br>
38. Fix battle system for catapults</br>
39. Fix delete player in admin panel</br>
40. Added automated system for give medals and also added in instalation file</br>
41. Fix special characters when send troops</br>
45. 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..)</br>
43. Fix forum surveys - NOT DONE</br>
44. Fix wall image when spy someone for every tribe</br>
45. Fix the top romans/teutons/gauls icon must show you the first rank of each race,not the whole page</br>
46. Fix destroy village bug</br>
47. Fix conquer oasis.</br>
48. Fix movements.tpl (now show purple sword if your oasis is attacked or if you found new village)</br>
49. Fixed movements on rally point if your oasis is under attack</br>
50. Fixed vulnerability attack on message.</br>
51. Fixed scouting all player when create natars.</br>
52. Fixed catapult if have artefact for random target. Now can target WW even have that artefact like says.</br>
53. Fix special characters on message (script alert not work now).</br>
54. 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.</br>
55. Fix catapult target on brewerey , now you can target brewerey.</br>
56. Added loss protection if you have beginner protection and want to attack a player you loss protection.</br>
57. Fix artefacts, will not win more artifacts from the same village.</br>
58. Fix UTF8 in database and sql.sql file.</br>
59. Fixed Username HACK on register.</br>
60. Fixed Village hack in profile . </br>
61. Fixed a Bug where Founder or a user in alliance can kick himself.</br>
62. Fixed new village must build a rally point. </br>
63. Fix sorting distance artefact village . </br>
64. Fix to conquer oasis: can conquer 1 attack if nature troop die. </br>
65. Fix report scout by Natars. Now report player can see.. </br>
66. Fix area and location like real travian. </br>
67. Fix field natar village set to type=3. </br>
68. Fix natar village area 400/400 or WORLD_MAX not the random area. </br>
69. Fix create_account : cannot create natar if already exist. </br>
70. Fix counter timer if timer < 0 = display 0:00:00 and not display like your time pc. </br>
71. Fix quest_core , now is like real travian. </br>
72. Fix update oasis unit. </br>
73. Fixed Registration hack. </br>
74. Fixed Village hack hidden village and <name> ! </br>
75. Fixed hidden Alliance name and fixed the bug of kicking your self if you are founder or anything else. </br>
76. Fix conquer artefact. </br>
77. Fix ranking and Quest 4. </br>
78. Fix finishAll building/demolition/tecknology. </br>
79. Fix conquer Occupied Oasis. </br>
80. Fix NPC trade on settler in village or palace. </br>
81. Fix bug when paste address to update building or resource , now not possible to upgrade. </br>
82. Fix spy : When defender has no spy's in his village, an incomming spy attack should be unnoticed, and the defender shouldn't get a report and also there shouldn't appear red swords in dorf.1 when there are no own spy's in village.</br>
83. Fix village to destroy and less query. </br>
84. Fix settler to raid (1 unit of settler can carry 3000 resource...wow!!)</br>
85. Fix dorf3 , now timer works corectly. </br>
86. Added timezone in instalation file , and can be edited after installation on config. </br>
87. The damage must be calculate for all troops as a defender. </br>
88. Battle system is fixed and it`s work like real travian. </br>
89. War Simulator system is fixed and it`s work like real travian. </br>
90. Fix calculation culturepoint according to the speed server.</br>
91. Fix to delete hero table when delete user from admin.</br>
92. Fix link to coor village from admin.</br>
93. Fix return troops if village destroy.</br>
94. Fix link list multivillage.</br>
95. Fix rally point to list troops own/other village/oasis.</br>
96. Fix recive report when other player send me reinforcement to my oasis</br>
97. Fix calculate defender hero</br>
98. Fix enforcement oasis</br>
99. Fix hero XP calculation by crop consumed and share point hero xp</br>
100. Fix chiefting village only normal attack can reduce loyalty</br>
101. Fix conquered oasis. Hero must use normal attack if oasis is conquered by other player</br>
102. Fix destroy village.</br>
103. Fix returntroop in oasis when destroy village</br>
104. Fix total point hero and statistics calculation by crop consumption</br>
105. Fix hero reinfocement sometimes mising in action</br>
106. Fix total of trapper bug is full trapp if 1 troop only you send.</br>
107. Fix invalid argument supplied if using masterbuilder</br>
108. Change entire database to InnoDB.

travianz-by-shadow's People

Contributors

bp220269 avatar shadowss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

travianz-by-shadow's Issues

Hero Bug

Hero's can't take Oasis On LeveL 1

Install check!

Please check the install because it gives me error :

Can't open file: install\include\constant.php

Battle bug problem

This is the travian reports : http://travian-reports.net/us/report/23627461c46

And this is the troops remain after attack :

Troops:
Spearman 25666 Spearman
Axeman 247 Axeman
Paladin 3873 Paladin
Teutonic Knight 247 Teutonic Knight

Attack was RAID! , because catapult doesnt fire

LOOK AT THE DEFENDER NOT AT ATTACKER !!!

Master build and Gold money

I found another little bug in my opinion.
It is manifested in the fact that if we want to use the "master build" is indeed added to the list of tasks to be executed, but selecting the swift completion of construction makes it a pending task is also performed, but the raw materials are not deducted for this level (which is in queue "" master build ") :)

This way you can "free" to build high levels;)

greetings
q.

Fix Hero bug start points!

Fix this (When you start the hero must have 5 points.
Now it has 50 points)

Templates/Build/37_train.tpl

find line 601 and change this:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '11', '".addslashes($session->username)."', '0', '50', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u11['time'] / SPEED)*3))."', '50', '1')");

for this:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '11', '".addslashes($session->username)."', '0', '5', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u11['time'] / SPEED)*3))."', '50', '1')");

find line 633 and change this:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '13', '".addslashes($session->username)."', '0', '50', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u13['time'] / SPEED)*3))."', '50', '1')");

for this:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '13', '".addslashes($session->username)."', '0', '5', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u13['time'] / SPEED)*3))."', '50', '1')");

small update Automation.php

find GameEngine/Automation.php line 4491 change this:

//Undetected and detected in here.
if($scout){
{
for($i=1;$i<=10;$i++){
if($battlepart['casualties_attacker'][$i]){
if($from['owner'] == 3){
$database->addNotice($to['owner'],$to['wref'],$targetally,0,''.addslashes($from['name']).' scouts '.addslashes($to['name']).'',$data2,$AttackArrivalTime);
break;
}else if($unitsdead_att == $unitssend_att && $defspy){ //fix by ronix
$database->addNotice($to['owner'],$to['wref'],$targetally,20,''.addslashes($from['name']).' scouts '.addslashes($to['name']).'',$data2,$AttackArrivalTime);
break;
}else if($defspy){ //fix by ronix
$database->addNotice($to['owner'],$to['wref'],$targetally,21,''.addslashes($from['name']).' scouts '.addslashes($to['name']).'',$data2,$AttackArrivalTime);
break;
}
}
}
else {

for this:

//Undetected and detected in here.
if($scout)
{
for($i=1;$i<=10;$i++){
if($battlepart['casualties_attacker'][$i]){
if($from['owner'] == 3){
$database->addNotice($to['owner'],$to['wref'],$targetally,0,''.addslashes($from['name']).' scouts '.addslashes($to['name']).'',$data2,$AttackArrivalTime);
break;
}else if($unitsdead_att == $unitssend_att && $defspy){ //fix by ronix
$database->addNotice($to['owner'],$to['wref'],$targetally,20,''.addslashes($from['name']).' scouts '.addslashes($to['name']).'',$data2,$AttackArrivalTime);
break;
}else if($defspy){ //fix by ronix
$database->addNotice($to['owner'],$to['wref'],$targetally,21,''.addslashes($from['name']).' scouts '.addslashes($to['name']).'',$data2,$AttackArrivalTime);
break;
}
}
}
}
else {

Hero!

A hero must start with 5 points not 10.

Hero Bug Hero's mansion

Hero is Dying even on empty Oasis and u cant revive him showing inside the Hero's mansion he's still alive!

winer.php

please delete one point in winer.php, line 194 ../gpack to ./gpack

so that you can see the image of the wonder of the world

![win](https://f.cloud.github.com/assets/1728381/2214382/f37164dc-99d0-11e3-993b-1e75b2697181.png)

Hero revive!

I chose the hero's mansion and then (hero revive).
When i get hero's mansion doing refresh the page "all time".

spy's

if i send 15000 spy's to a village and on that village stay's 1100 spy's then 14999 spy's will be death. how is that posible

Fix bug hero reset!

Fix this (When you press reset, you get back 10 points.)

Templates/Build/37_hero.tpl

find line 228 and change this:

mysql_query("UPDATE " . TB_PREFIX . "hero SET points = '".(($hero_info['level']*5)+10)."' WHERE uid = '" . $session->uid . "'");

for this:

mysql_query("UPDATE " . TB_PREFIX . "hero SET points = '".(($hero_info['level']*5)+5)."' WHERE uid = '" . $session->uid . "'");

now its ok reset point hero 5

Bug Calculated in!

There is a problem with Calculated in not showing correctly.
eg. (Calculated in -30665 ms)
Please check thanks.

Demolition - gold money

I submit as a tiny bug that during the demolition and wish to take advantage of the accelerated demolition of a gold coin - you can not do that.
The official version can be demolished with the help of gold coins.

By the way - respect for a good job - @Shadowss!

regards
q.

Oasis Loyality Bug

Oasis Locality going up back to 100 after Hero attacks on high speed servers

Bug not show village!

Fix go Templates/dorf2.tpl

find this:

if ($_SESSION['qst']==38) {
if ($i<8) {
$dte=array("tur","purp","yell","oran","green","red","blue");
$im=$dte[$i];
echo "<img src="img/x.gif" class="building e$i rocket $im" alt="$text" />";
}
}
}
}
if ($_SESSION['qst']==38) {

and change this:

if ($_SESSION['qst']==38) {
if ($i<8) {
$dte=array("tur","purp","yell","oran","green","red","blue");
$im=$dte[$i];
echo "<img src="img/x.gif" class="building e$i rocket $im" alt="$text" />";
}
}
if ($_SESSION['qst']==38) {

Protection name village!

You need to put protection in one village name something like this (Name village is already in use) otherwise all can have the same name village.

Bug for the change name village!

Fix for the change name village

GameEngine/Profile.php

change this:
$database->setVillageName($database->RemoveXSS($varray[$i]['wref']),$post[$name]);

with this:
$database->setVillageName($database->RemoveXSS($varray[$i]['wref']),$post['dname'.$i]);

capture village

if you capture village Loyality is not going back to 100 % even with residence or palace on 20 it stays on 0 %.

and you will get the oasis to, if you capture village if there are oasis to the village

installation

hi can you help me in installation. in installation process when oasis option came it shows errors and stopped installation ,actually i did not understand the procedure of following

CHMOD:

install to 777
GameEngine to 777
After CHMOD:

Delete install folder
Change CHMOD GameEngine back to 644 and CHMOD 777

Questions about repos

@Shadowss Will you still be working on this repo of TZ (which works fairly well for me).
I see your new fork of yi12345's TravianZ, I also see a lot of commits in there from you.

My main question is what repo should I fork and work on if I want to help out - This one, or yi's one?

Destroyed village

If you have village under 10 waves of catapults.
After one final strike, village should be destroyed and deleted from map, and rest of attack waves should turn back to the attacker village.

But after last attack there is nothing more to destroy, Travian stop responding.
Everything is blocked.

User on Vaction Bug

When a User goes in a vaction and he's attacked the troops didn't attack first of all 2nd of all the Incoming troops goes to a infinite loop example like this

1 Reinf.
in 384540:15:29 hours

Hero fix points start official!

Points are heroes in its beginnings as official "5 points".

Find the Templates/Build/37_train.tpl

Find the line 526:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '1', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u1['time'] / SPEED)*3))."', '50', '1')");

And change:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '1', '".addslashes($session->username)."', '0', '5', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u1['time'] / SPEED)*3))."', '50', '1')");

Find the line 542:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '1', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u1['time'] / SPEED)*3))."', '50', '1')");

And change:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '1', '".addslashes($session->username)."', '0', '5', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u1['time'] / SPEED)*3))."', '50', '1')");

Find the line 557:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '3', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u3['time'] / SPEED)*3))."', '50', '1')");

And change:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '3', '".addslashes($session->username)."', '0', '5', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u3['time'] / SPEED)*3))."', '50', '1')");

Find the line 572:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '5', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u5['time'] / SPEED)*3))."', '50', '1')");

And change:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '5', '".addslashes($session->username)."', '0', '5', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u5['time'] / SPEED)*3))."', '50', '1')");

Find the line 588:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '6', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u6['time'] / SPEED)*3))."', '50', '1')");

And change:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '6', '".addslashes($session->username)."', '0', '5', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u6['time'] / SPEED)*3))."', '50', '1')");

Find the line 606:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '11', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u11['time'] / SPEED)*3))."', '50', '1')");

And change:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '11', '".addslashes($session->username)."', '0', '5', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u11['time'] / SPEED)*3))."', '50', '1')");

Find the line 622:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '12', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u12['time'] / SPEED)*3))."', '50', '1')");

And change:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '12', '".addslashes($session->username)."', '0', '5', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u12['time'] / SPEED)*3))."', '50', '1')");

Find the line 638:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '13', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u13['time'] / SPEED)*3))."', '50', '1')");

And change:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '13', '".addslashes($session->username)."', '0', '5', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u13['time'] / SPEED)*3))."', '50', '1')");

Find the line 654:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '15', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u15['time'] / SPEED)*3))."', '50', '1')");

And change:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '15', '".addslashes($session->username)."', '0', '5', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u15['time'] / SPEED)*3))."', '50', '1')");

Find the line 670:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '16', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u16['time'] / SPEED)*3))."', '50', '1')");

And change:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '16', '".addslashes($session->username)."', '0', '5', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u16['time'] / SPEED)*3))."', '50', '1')");

Find the line 688:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '21', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u21['time'] / SPEED)*3))."', '50', '1')");

And change:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '21', '".addslashes($session->username)."', '0', '5', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u21['time'] / SPEED)*3))."', '50', '1')");

Find the line 704:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '22', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u22['time'] / SPEED)*3))."', '50', '1')");

And change:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '22', '".addslashes($session->username)."', '0', '5', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u22['time'] / SPEED)*3))."', '50', '1')");

Find the line 720:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '24', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u24['time'] / SPEED)*3))."', '50', '1')");

And change:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '24', '".addslashes($session->username)."', '0', '5', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u24['time'] / SPEED)*3))."', '50', '1')");

Find the line 736:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '25', '".addslashes($session->username)."', '0', '10, '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u25['time'] / SPEED)*3))."', '50', '1')");

And change:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '25', '".addslashes($session->username)."', '0', '5', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u25['time'] / SPEED)*3))."', '50', '1')");

Find the line 752:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '26', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u26['time'] / SPEED)*3))."', '50', '1')");

And change:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '26', '".addslashes($session->username)."', '0', '5', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u26['time'] / SPEED)*3))."', '50', '1')");

Error installing TravianZ on fresh WAMP 2.4 server

I created database and started installing TravianZ.
On Step 5 of installation, after I put a password for the Multihunter and click 'Submit' script directs to http://localhost/TravianZ/install/include/multihunter.php and get this error and installation stops:
Field 'lastupdate2' doesn't have a default value

My configuration:

Windows XP SP3
Freshly installed Wampserver (32 bits & PHP 5.4) 2.4
(Apache : 2.4.4 MySQL : 5.6.12 PHP : 5.4.16 PHPMyAdmin : 4.0.4 SqlBuddy : 1.3.3 XDebug : 2.2.3)
TravianZ master brach, downloaded 2014-01-06

Bug - Not Show Village

There's a bug i found when i'm viewing my village. It's white no images... Is there a fix?

White Screen

White Screen After logging in any page! something seems wrong guys

utf8 phpmyadmin not work!

When i change the name of the village in profile in Greek works fine.
When i go into phpmyadmin to s1_vdata name of the village shows up as Chinese.
I think that's because we send in the database without support utf8 but spend utf8 to the browser.

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource

Have you met someone with such an error:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /users/***_/www/_****.website.pl/GameEngine/Database/db_MYSQL.php on line 860

I must add that web hosting is a professional, paid.

The suggestion, tips for removing display these messages - I thank you in advance

greetings
q.

Login and Registration

Login and Registration not work.
I installed this version and after i finished up login and register link not work, tha page remain blank; any ideas?

Bug create alliance tag ,name

Fix go to the GameEngine/Alliance.php

find:
public function procAlliForm($post) {
if(isset($post['ft'])) {
switch($post['ft']) {
case "ali1":
$postz = preg_replace("/[^a-zA-Z0-9_-\s]/", "", $post);
$this->createAlliance($postz);
break;
}
}
if(isset($_POST['dipl']) and isset($_POST['a_name'])) {
$postz = preg_replace("/[^a-zA-Z0-9_-\s]/", "", $post);
$this->changediplomacy($postz);
}

And change:

public function procAlliForm($post) {
if(isset($post['ft'])) {
switch($post['ft']) {
case "ali1":
$postz = preg_replace("/[^a-zA-Z0-9_-\s]/", "", $post);
$this->createAlliance($post);
break;
}
}
if(isset($_POST['dipl']) and isset($_POST['a_name'])) {
$postz = preg_replace("/[^a-zA-Z0-9_-\s]/", "", $post);
$this->changediplomacy($post);
}

I'm not sure me it worked 👍

i got this in my top

Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /home/u370930363/public_html/TravianZ-by-Shadow-master/GameEngine/Database/db_MYSQL.php on line 865
and my dorf1 or resource screen is blank just white -_- if i click the claypit or evrything(natural resource) i got just blank with "warning" you can check at travianmyy.hostingsitedordree.com and give me instruction to make them true please :D thanks

finishTech function not working

That function not working , tested on Academy , Blacksmith and Armoury , none of that not working research not instant finish after press : Complete construction orders and researches in this village now (does not work for Palace and Residence).

Detailed explication : when i BUILD something and also research something in Academy , Blacksmith and Armoury works good , finish all instant. BUT if i just simply research something in Academy , Blacksmith and Armoury without build something doesnt work

Must be fixed. (Templates/Plus/7.tpl) and (GameEngine/Tehnology.php at finisTech)

Task 19: Everything to 2

You have done a very good job congratulations!

There is a problem in the quest Task 19: Everything to 2 does not give 15 gold reward.
Check pls :)

Ideas for the pack!

I would like to mention some ideas running in my mind and it would be nicer in the pack.

  1. (Quest) When you get the reward be automatically renewed resources.
  2. (Village) The village would have been nicer if it had animations eg people to walk, when you build a building there are workers etc.

(I say this because this will be the most interesting game).

That's all for now. :)

Fixed utf8 phpmyadmin now working!

go to GameEngine / Database / db_MYSQL.php opened it and added it to the line 25

mysql_query("SET NAMES 'UTF8'"); //Fix utf8 phpmyadmin by gm4st3r

will look like this:

var $connection;
function MYSQL_DB() {
    $this->connection = mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS) or die(mysql_error());
    mysql_select_db(SQL_DB, $this->connection) or die(mysql_error());
    mysql_query("SET NAMES 'UTF8'");  //Fix utf8 phpmyadmin by gm4st3r
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.