Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Decoding Dboor 100%

Status
Not open for further replies.
Newbie Spellweaver
Joined
Apr 1, 2012
Messages
46
Reaction score
1
How to have many options (alliance) ? (dboor)
Thanx
 
Junior Spellweaver
Joined
Jan 11, 2012
Messages
190
Reaction score
19
Are you asking how to change player options in an alliance for Dboor?

If so, if you are the alliance leader at the right of your players' names there is a logo that looks like a horseshoe click on that and you can change their abilities.
 
Newbie Spellweaver
Joined
Apr 1, 2012
Messages
46
Reaction score
1
TESTi - TestI
Overview | About Us | Attacks | Options
Options
Invite player to the coalition
Coalition diplomacy
Leave the coalition


Only ,3 options for alliance creator,and you cannot leave your ally!!!

I see the logo horseshoe thank you

So if you create an ally ,you can't leave this

How to abilitate artifacts on dboor?
If you call tatar ,you have Only 13 villages ,i think that they are ww villages

Even if you create ally ,you loop in this quest

Quest 24: Alliance

cooperation is important in the war of the Tatars. The players are working together to organize themselves into coalitions.
try to get yourself to the invitation by a coalition of your surroundings and join this alliance.
Instead, you can also create private alliance. but for this you first need to embassy level 3

Order
joined the Alliance or the Alliance has been created


How to have this option villages on dboor?


Overview | Resources | Warehouse | CP | Troops
Culture points
Village CP/day Celebrations Troops Slots
jax 12611   1/3
jaxx 269   0/0
Sum 12880   0 0 1/3



Overview | Resources | Warehouse | CP | Troops
Own troops
Village
jax 187669 409126 79467 378526 15111 29510 3158 6898 2 0 1
jaxx 0 0 0 0 0 0 0 0 0 0 0
Sum 187669 409126 79467 378526 15111 29510 3158 6898 2 0 1


Resources
Village Merchants
jax 2,400,000 2,400,000 2,400,000 1,600,000 20/20
jaxx 168,000 168,000 168,000 90,055 1/1
Sum 2,568,000 2,568,000 2,568,000 1,690,055  
Villages:
● jax (-6|2)
● jaxx (-9|-3)

Thank you ubibyte
 
Last edited:
Junior Spellweaver
Joined
Jan 11, 2012
Messages
190
Reaction score
19
TESTi - TestI
Overview | About Us | Attacks | Options
Options
Invite player to the coalition
Coalition diplomacy
Leave the coalition


Only ,3 options for alliance creator,and you cannot leave your ally!!!

I see the logo horseshoe thank you

So if you create an ally ,you can't leave this

How to abilitate artifacts on dboor?
If you call tatar ,you have Only 13 villages ,i think that they are ww villages

Even if you create ally ,you loop in this quest

Quest 24: Alliance

cooperation is important in the war of the Tatars. The players are working together to organize themselves into coalitions.
try to get yourself to the invitation by a coalition of your surroundings and join this alliance.
Instead, you can also create private alliance. but for this you first need to embassy level 3

Order
joined the Alliance or the Alliance has been created


How to have this option villages on dboor?


Overview | Resources | Warehouse | CP | Troops
Culture points
Village CP/day Celebrations Troops Slots
jax 12611   1/3
jaxx 269   0/0
Sum 12880   0 0 1/3



Overview | Resources | Warehouse | CP | Troops
Own troops
Village
jax 187669 409126 79467 378526 15111 29510 3158 6898 2 0 1
jaxx 0 0 0 0 0 0 0 0 0 0 0
Sum 187669 409126 79467 378526 15111 29510 3158 6898 2 0 1


Resources
Village Merchants
jax 2,400,000 2,400,000 2,400,000 1,600,000 20/20
jaxx 168,000 168,000 168,000 90,055 1/1
Sum 2,568,000 2,568,000 2,568,000 1,690,055  
Villages:
● jax (-6|2)
● jaxx (-9|-3)

Thank you ubibyte

You have problems with your files katak, I'm running my server flawlessly without having a bug in the quest manager and you can create and leave an alliance as you wish. There are no artifacts in dboor, you just need to capture a natar village and it will allow you to create the world wonder.
 
Newbie Spellweaver
Joined
Apr 1, 2012
Messages
46
Reaction score
1
grrrrrrrrrrrr
i see your server, and i like it because you are only 3 tribes ,how to make this????
to build ww need greatwarehouse and greatgranary so how to make ww?,only with warehouse normal and granary normal?
you can send you my files and you can see what are the files damaged or corrupted

thanx a lot
i hope to messaging you privately

i can't writeyou a private mess
 
Skilled Illusionist
Joined
Sep 5, 2011
Messages
360
Reaction score
14
Good afternoon ubiByte


Hey did you install 1.5 beta dboor and went well but when I installed the registration of a player does not put the activation code on BD and when I activate manually and I try to get back to the login page


Can you help please

hugs
 
Newbie Spellweaver
Joined
Apr 1, 2012
Messages
46
Reaction score
1
when you have conquisted ww village ,i see the image of ww duplicated,and it remain a special village !!!!! then it's impossible to build something
 
Junior Spellweaver
Joined
Jan 11, 2012
Messages
190
Reaction score
19
when you have conquisted ww village ,i see the image of ww duplicated,and it remain a special village !!!!! then it's impossible to build something

Once again that is because you didn't decode the files correctly, you need to fix the coding issues and it will not be duplicated.

Hint: It's the for loop

Good afternoon ubiByte


Hey did you install 1.5 beta dboor and went well but when I installed the registration of a player does not put the activation code on BD and when I activate manually and I try to get back to the login page


Can you help please

hugs

That sounds odd it shouldn't be doing anything like that. Your files are in bad condition also like katak.
 
Skilled Illusionist
Joined
Sep 5, 2011
Messages
360
Reaction score
14
Once again that is because you didn't decode the files correctly, you need to fix the coding issues and it will not be duplicated.

Hint: It's the for loop



That sounds odd it shouldn't be doing anything like that. Your files are in bad condition also like katak.

ok friend

And you can tell me what the best solution is a good version

thank you
 
Junior Spellweaver
Joined
Jan 11, 2012
Messages
190
Reaction score
19
sonikboy which dboor files are you using? you need to get a better version
 
Newbie Spellweaver
Joined
Apr 1, 2012
Messages
46
Reaction score
1
So ,where we can find the good right files? Il y a pas mal de francais dans ton server ubibyte ;)
 
Junior Spellweaver
Joined
Jan 11, 2012
Messages
190
Reaction score
19
So ,where we can find the good right files? Il y a pas mal de francais dans ton server ubibyte ;)

Oui, je sais qu'ils dominent le jeu haha

I can't give out my files because they are customized, I'm sorry guys.
 
Newbie Spellweaver
Joined
Apr 1, 2012
Messages
46
Reaction score
1
alors tu es francais ;)
tu peux me corriger stp
alliance.php (root)
<?php
/*********************/
/* */
/* Version : 5.1.0 */
/* Author : RM */
/* Comment : 071223 */
/* */
/*********************/

require( ".".DIRECTORY_SEPARATOR."app".DIRECTORY_SEPARATOR."boot.php" );
require_once( MODEL_PATH."alliance.php" );
class GPage extends securegamepage
{

public $selectedTabIndex = NULL;
public $fullView = NULL;
public $hasAlliance = FALSE;
public $allianceData = NULL;
public $lastReports = NULL;
public $hasErrors = FALSE;
public $invitesResult = -1;
public $contracts = NULL;
public $bbCodeReplacedArray = array( );

public function GPage( )
{
parent::securegamepage( );
$this->viewFile = "alliance.phtml";
$this->contentCssClass = "alliance";
}

public function load( )
{
parent::load( );
$m = new AllianceModel( );
$allianceId = 0;
$this->allianceData = NULL;
if ( isset( $_GET['id'] ) && 0 < intval( $_GET['id'] ) )
{
$allianceId = intval( $_GET['id'] );
$this->allianceData = $m->getAllianceData( $allianceId );
}
if ( $this->allianceData == NULL )
{
$allianceId = intval( $this->data['alliance_id'] );
if ( $allianceId <= 0 )
{
$this->hasAlliance = FALSE;
}
else
{
$this->allianceData = $m->getAllianceData( $allianceId );
}
}
$this->hasAlliance = TRUE;
$this->fullView = $allianceId == intval( $this->data['alliance_id'] );
$this->selectedTabIndex = 0;
if ( $this->fullView )
{
$this->selectedTabIndex = isset( $_GET['t'] ) && is_numeric( $_GET['t'] ) && 0 <= intval( $_GET['t'] ) && intval( $_GET['t'] ) <= 3 ? intval( $_GET['t'] ) : 0;
if ( $this->selectedTabIndex == 1 && !$this->hasAllianceEditRole( ) )
{
$this->selectedTabIndex = 0;
}
}
if ( $this->isPost( ) && $this->fullView && $this->selectedTabIndex == 1 && $this->hasAllianceEditRole( ) )
{
$newData = array(
"name" => isset( $_POST['aname1'] ) && trim( $_POST['aname1'] ) != "" ? $_POST['aname1'] : $this->allianceData['name'],
"name2" => isset( $_POST['aname2'] ) && trim( $_POST['aname2'] ) != "" ? $_POST['aname2'] : $this->allianceData['name2'],
"description1" => htmlspecialchars( $_POST['be1'] ),
"description2" => htmlspecialchars( $_POST['be2'] )
);
$m->editAllianceData( intval( $this->data['alliance_id'] ), $newData, $this->allianceData['players_ids'] );
$m->dispose( );
$this->redirect( "alliance.php" );
}
else
{
if ( $this->selectedTabIndex == 0 && isset( $_GET['d'] ) && 0 < intval( $_GET['d'] ) && $this->hasAllianceRemovePlayerRole( ) && $this->player->playerId != intval( $_GET['d'] ) && $this->isMemberOfAlliance( intval( $_GET['d'] ) ) )
{
$this->allianceData['players_ids'] = $m->removeFromAlliance( intval( $_GET['d'] ), $allianceId, $this->allianceData['players_ids'], $this->allianceData['player_count'] );
--$this->allianceData['player_count'];
}
else if ( $this->selectedTabIndex == 2 )
{
$lastReportsType = 0;
if ( isset( $_GET['ac'] ) )
{
if ( $_GET['ac'] == 1 )
{
$lastReportsType = 1;
}
else if ( $_GET['ac'] == 2 )
{
$lastReportsType = 2;
}
}
$this->lastReports = $m->getLatestReports( $this->allianceData['players_ids'], $lastReportsType );
}
else if ( $this->selectedTabIndex == 3 && isset( $_GET['a'] ) )
{
switch ( $_GET['a'] )
{
case 1 :
do
{
do
{
if ( !$this->hasAllianceInviteRoles( ) )
{
unset( $_GET['a'] );
break;
}
$this->allianceData['players_invites'] = array( );
if ( trim( $this->allianceData['invites_player_ids'] ) != "" )
{
$invites = explode( "\n", trim( $this->allianceData['invites_player_ids'] ) );
foreach ( $invites as $invite )
{

list( $pid, $pname ) = explode( " ", $invite);
$this->allianceData['players_invites'][$pid] = $pname;
}
}
if ( !( $this->isPost( ) && isset( $_POST['a_name'] ) ) )
{
break;
}
else
{
$pid = intval( $m->getPlayerId( $_POST['a_name'] ) );
if ( !( 0 < $pid ) )
{
break;
}
else
{
if ( isset( $this->allianceData['players_invites'][$pid] ) )
{
break;
}
$this->invitesResult = 2;
$this->allianceData['players_invites'][$pid] = $_POST['a_name'];
$m->addAllianceInvites( $pid, $allianceId );
}
}
break;
} while ( 0 );
$this->invitesResult = 1;
} while ( 0 );
if ( isset( $_GET['d'] ) && 0 < intval( $_GET['d'] ) && isset( $this->allianceData['players_invites'][intval( $_GET['d'] )] ) )
{
unset( $this->players_invites[intval( $_GET['d'] )] );
$m->removeAllianceInvites( intval( $_GET['d'] ), $allianceId );
}
break;
case 2 :
do
{
do
{
if ( !$this->hasAllianceEditContractRole( ) )
{
unset( $_GET['a'] );
break;
}
$contracts_alliance_id = trim( $this->allianceData['contracts_alliance_id'] );
$contracts = array( );
if ( $contracts_alliance_id != "" )
{
$contracts_alliance_idArr = explode( ",", $contracts_alliance_id );
foreach ( $contracts_alliance_idArr as $item )
{

list( $aid, $pendingStatus ) = explode( " ", $item );
$contracts[$aid] = $pendingStatus;
}
}
$this->hasErrors = TRUE;
if ( $this->isPost( ) )
{
break;
}
else
{
if ( isset( $_GET['d'] ) && 0 < intval( $_GET['d'] ) && isset( $contracts[$_GET['d']] ) )
{
unset( $contracts[$_GET['d']] );
$m->removeAllianceContracts( $allianceId, intval( $_GET['d'] ) );
}
if ( !( isset( $_GET['c'] ) && 0 < intval( $_GET['c'] ) && isset( $contracts[$_GET['c']] ) ) )
{
break;
}
else
{
$contracts[$_GET['c']] = 0;
$m->acceptAllianceContracts( $allianceId, intval( $_GET['c'] ) );
}
}
break;
} while ( 0 );
if ( !( isset( $_POST['a_name'] ) && trim( $_POST['a_name'] ) != "" ) )
{
break;
}
$caid = intval( $m->getAllianceId( trim( $_POST['a_name'] ) ) );
if ( !( 0 < $caid && !isset( $contracts[$caid] ) ) )
{
break;
}
$m->addAllianceContracts( $allianceId, $caid );
$contracts[$caid] = 1;
$this->hasErrors = FALSE;
} while ( 0 );
$this->contracts = $contracts;
break;
case 3 :
if ( $this->isPost( ) )
{
break;
}
if ( isset( $_POST['pw'] ) && strtolower( $this->data['pwd'] ) == strtolower( md5( $_POST['pw'] ) ) )
{
$this->allianceData['players_ids'] = $m->removeFromAlliance( $this->player->playerId, $allianceId, $this->allianceData['players_ids'], $this->allianceData['player_count'] );
--$this->allianceData['player_count'];
$m->dispose( );
$this->redirect( "alliance.php" );
}
else
{
$this->hasErrors = TRUE;
}
}
}
if ( $this->selectedTabIndex == 0 )
{
$contracts_alliance_id = trim( $this->allianceData['contracts_alliance_id'] );
$this->contracts = array( );
if ( $contracts_alliance_id != "" )
{
$contracts_alliance_idArr = explode( ",", $contracts_alliance_id );
foreach ( $contracts_alliance_idArr as $item )
{

list( $aid, $pendingStatus ) = explode( " ", $item );
if ( $pendingStatus == 0 )
{
$this->contracts[$aid] = $m->getAllianceName( $aid );
}
}
}
$this->allianceData['rank'] = $m->getAllianceRank( $allianceId, $this->allianceData['score'] );
$result = $m->getAlliancePlayers( $this->allianceData['players_ids'] );
$this->allianceData['players'] = array( );
while ( $result != NULL && $result->next( ) )
{
$this->allianceData['players'][] = array(
"id" => $result->row['id'],
"name" => $result->row['name'],
"total_people_count" => $result->row['total_people_count'],
"alliance_roles" => $result->row['alliance_roles'],
"villages_count" => $result->row['villages_count'],
"lastLoginFromHours" => $result->row['lastLoginFromHours']
);
}
}
$m->dispose( );
}
}

public function _hasAllianceRole( $role )
{
$alliance_roles = trim( $this->data['alliance_roles'] );
if ( $alliance_roles == "" )
{
return FALSE;
}
list( $roleNumber, $roleName ) = explode( " ", $alliance_roles, 2 );
return $roleNumber & $role;
}

public function hasAllianceEditRole( )
{
return $this->_hasAllianceRole( ALLIANCE_ROLE_EDITNAMES );
}

public function hasAllianceRemovePlayerRole( )
{
return $this->_hasAllianceRole( ALLIANCE_ROLE_REMOVEPLAYER );
}

public function hasAllianceSetRoles( )
{
return $this->_hasAllianceRole( ALLIANCE_ROLE_SETROLES );
}

public function hasAllianceInviteRoles( )
{
return $this->_hasAllianceRole( ALLIANCE_ROLE_INVITEPLAYERS );
}

public function hasAllianceEditContractRole( )
{
return $this->_hasAllianceRole( ALLIANCE_ROLE_EDITCONTRACTS );
}

public function preRender( )
{
parent::prerender( );
if ( isset( $_GET['id'] ) )
{
$this->villagesLinkPostfix .= "&id=".intval( $_GET['id'] );
}
if ( 0 < $this->selectedTabIndex )
{
$this->villagesLinkPostfix .= "&t=".$this->selectedTabIndex;
}
}

public function getAllianceName( $aid )
{
$m = new AllianceModel( );
$n = $m->getAllianceName( $aid );
return trim( $n ) != "" ? $n : "[?]";
}

public function getAllianceDataFor( $playerId )
{
$m = new AllianceModel( );
return $m->getAllianceDataFor( $playerId );
}

public function isMemberOfAlliance( $playerId )
{
$players_ids = trim( $this->allianceData['players_ids'] );
if ( $players_ids == "" )
{
return FALSE;
}
$arr = explode( ",", $players_ids );
foreach ( $arr as $pid )
{
if ( $pid == $playerId )
{
return TRUE;
break;
}
}
return FALSE;
}

public function getOnlineStatus( $lastLoginFromHours )
{
if ( $lastLoginFromHours <= 1 )
{
return "<img class=\"online1\" src=\"assets/x.gif\" title=\"".alliance_p_status1."\" alt=\"".alliance_p_status1."\">";
}
if ( $lastLoginFromHours <= 24 )
{
return "<img class=\"online2\" src=\"assets/x.gif\" title=\"".alliance_p_status2."\" alt=\"".alliance_p_status2."\">";
}
if ( $lastLoginFromHours <= 24 * 3 )
{
return "<img class=\"online3\" src=\"assets/x.gif\" title=\"".alliance_p_status3."\" alt=\"".alliance_p_status3."\">";
}
if ( $lastLoginFromHours <= 24 * 7 )
{
return "<img class=\"online4\" src=\"assets/x.gif\" title=\"".alliance_p_status4."\" alt=\"".alliance_p_status4."\">";
}
return "<img class=\"online5\" src=\"assets/x.gif\" title=\"".alliance_p_status5."\" alt=\"".alliance_p_status5."\">";
}

public function getAllianceDescription( $text )
{
$img = "<img class=\"%s\" src=\"assets/x.gif\" onmouseout=\"med_closeDescription()\" onmousemove=\"med_mouseMoveHandler(arguments[0],'<p>%s</p>')\">";
$medals = explode( ",", $this->allianceData['medals'] );
foreach ( $medals as $medal )
{
if ( trim( $medal ) == "" )
{
continue;
}

list ( $index, $rank, $week ) = explode( ":", $medal );
if ( !isset( $this->gameMetadata['medals'][$index] ) )
{
continue;
}
$medalData = $this->gameMetadata['medals'][$index];
$bbCode = intval( $medalData['BBCode'] ) + intval( $week ) * 10 + ( intval( $rank ) - 1 );
$cssClass = "medal ".$medalData['cssClass']."_".$rank;
$altText = htmlspecialchars( sprintf( "<table><tr><th>".profile_medal_txt_cat.":</th><td>%s</td></tr><tr><th>".profile_medal_txt_week.":</th><td>%s</td></tr><tr><th>".profile_medal_txt_rank.":</th><td>%s</td></tr></table>", constant( "medal_".$medalData['textIndex'] ), $week, $rank ) );
if ( !isset( $this->bbCodeReplacedArray[$bbCode] ) )
{
$count = 0;
$text = preg_replace( "/\\[#".$bbCode."\\]/", sprintf( $img, $cssClass, $altText ), $text, 1, $count );
if ( 0 < $count )
{
$this->bbCodeReplacedArray[$bbCode] = $count;
}
}
}
$contractsStr = "";
foreach ( $this->contracts as $aid => $aname )
{
$contractsStr .= "<a href=\"alliance.php?id=".$aid."\">".$aname."</a><br/>";
}
if ( !isset( $this->bbCodeReplacedArray['contracts'] ) )
{
$count = 0;
$text = preg_replace( "/\\[contracts\\]/", $contractsStr, $text, 1, $count );
if ( 0 < $count )
{
$this->bbCodeReplacedArray['contracts'] = $count;
}
}
return nl2br( $text );
}

}

$p = new GPage( );
$p->run( );
?>
 
Junior Spellweaver
Joined
Jan 11, 2012
Messages
190
Reaction score
19
Je ne suis pas français, je sais juste un peu

for alliance.php why not use the encoded file?
 
Status
Not open for further replies.
Back
Top