From 331d4d8865b65873ca73f444d53a8a8922634187 Mon Sep 17 00:00:00 2001 From: Shadowss Date: Fri, 20 Sep 2013 14:03:19 +0300 Subject: [PATCH] fix movements for found now village and oasis attack --- Templates/movement.tpl | 45 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/Templates/movement.tpl b/Templates/movement.tpl index c25ab17a..4dfcdd29 100644 --- a/Templates/movement.tpl +++ b/Templates/movement.tpl @@ -4,12 +4,13 @@ ## --------------------------------------------------------------------------- ## ## Filename movement.tpl ## ## Developed by: Dzoki ## +## Updated by: Shadow ## ## License: TravianX Project ## ## Copyright: TravianX (c) 2010-2011. All rights reserved. ## ## ## ################################################################################# -$aantal = (count($database->getMovement(4,$village->wid,1))+count($database->getMovement(3,$village->wid,1))+count($database->getMovement(3,$village->wid,0))+count($database->getMovement(7,$village->wid,1))-count($database->getMovement(8,$village->wid,1))-count($database->getMovement(9,$village->wid,0))); +$aantal = (count($database->getMovement(4,$village->wid,1))+count($database->getMovement(3,$village->wid,1))+count($database->getMovement(3,$village->wid,0))+count($database->getMovement(7,$village->wid,1))+count($database->getMovement(5,$village->wid,0))+count($database->getMovement(6,$village->wid,0))-count($database->getMovement(8,$village->wid,1))-count($database->getMovement(9,$village->wid,0))); if($aantal > 0){ echo ''; @@ -129,4 +130,44 @@ if($lala > 0){ echo ''; $timer += 1; -} \ No newline at end of file +} + +/* Found NEW VILLAGE by Shadow */ + +$aantal = count($database->getMovement(5,$village->wid,0)); +$aantal2 = $database->getMovement(5,$village->wid,0); +if($aantal > 0){ + if(!empty($NextArrival5)) { reset($NextArrival5); } + foreach($aantal2 as $receive) { + $action = 'att3'; + $aclass = 'a3'; + $title = ''.FOUNDNEWVILLAGE.''; + $short = ''.NEWVILLAGE.''; + $NextArrival5[] = $receive['endtime']; + } + + echo ' + '; + $timer += 1; + +} + +/* Attacks on Oasis (to my oasis) by Shadow */ + +$aantal = count($database->getMovement(6,$village->wid,0)); +$aantal2 = $database->getMovement(6,$village->wid,0); +if($aantal > 0){ + if(!empty($NextArrival6)) { reset($NextArrival6); } + foreach($aantal2 as $receive) { + $action = 'att3'; + $aclass = 'a1'; + $title = ''.OASISATTACK.''; + $short = ''.OASISATTACKS.''; + $NextArrival6[] = $receive['endtime']; + } + + echo ' + '; + $timer += 1; + +}
'.TROOP_MOVEMENTS.'
'.$title.'»
'.$lala.' '.$short.'
in '.$generator->getTimeFormat(min($NextArrival3)-time()).' '.HOURS.'
'.$title.'»
'.$aantal.' '.$short.'
 '.$generator->getTimeFormat($receive['endtime']-time()).' '.HOURS.'
'.$title.'»
'.$aantal.' '.$short.'
 '.$generator->getTimeFormat($receive['endtime']-time()).' '.HOURS.'