Shadowss / TravianZ-by-Shadow

TRY TO USE https://github.com/Shadowss/TravianZ
http://travian.shadowss.ro
18 stars 31 forks source link

small update Automation.php #37

Closed gm4st3r closed 10 years ago

gm4st3r commented 10 years ago

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 {

Shadowss commented 10 years ago

What you change exactly? I dont see any diference

gm4st3r commented 10 years ago

fix this:

https://github.com/Shadowss/TravianZ-by-Shadow/issues/38

kisserlb commented 10 years ago

seems worked after i added what gm4st3r did thanks

Shadowss commented 10 years ago

fixed , thank you