Hello guys,
does someone have a copy of the Azure Do Server (Version 0.6.2) ?
does someone have a copy of the Azure Do Server (Version 0.6.2) ?
Quote:
Hi all, I wrote the code for the full clan diplomacy in OrbitReborn Emulator, but there is some problem, someone can help me?
Of course I've already adapted the cms.
Thanks!
My file:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
Extract from database the type diplomacyQuote:
[Only registered and activated users can see links. Click Here To Register...]wtf is dis :o
Wtf? Just use: Message.Append((int)Rows["type"]);Quote:
Hi all, I wrote the code for the full clan diplomacy in OrbitReborn Emulator, but there is some problem, someone can help me?
Of course I've already adapted the cms.
Thanks!
My file:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
Quote:
Wtf? Just use: Message.Append((int)Rows["type"]);
instead of checking the value and then setting the exact you just verified.
if (Session.CharacterInfo.ClanWar.Contains(Info.ClanId))
{
using (SqlDatabaseClient MySqlClient = SqlDatabaseManager.GetClient())
{
MySqlClient.SetParameter("clanid", Info.ClanId);
DataRow Row = MySqlClient.ExecuteQueryRow("SELECT type FROM clan_diplomacy WHERE second_clan_id = @clanid");
if (Row != null)
{
Message.Append((int)Row["type"]); // clan diplomacy 1 = alliance, 2 = non aggression pact, 3 = war
}
else { Message.Append(0); }
}
}
else
{
Message.Append(0);
}