opennos get married

03/17/2018 11:11 emirking3131#1
guys ı need wedding codes . can you help me please ?? Item code 1981
03/17/2018 11:54 Zanouu#2
// Cupid's arrow
case 34:
if (packetsplit != null && packetsplit.Length > 3)
{
if (long.TryParse(packetsplit[3], out long characterId))
{
if (session.Character.CharacterRelations.Any(s => s.RelationType == CharacterRelationType.Spouse))
{
session.SendPacket($"info {Language.Instance.GetMessageFromKey("ALREADY_MARR IED")}");
return;
}
ClientSession otherSession = ServerManager.Instance.GetSessionByCharacterId(cha racterId);
if (otherSession != null)
{
otherSession.SendPacket(UserInterfaceHelper.Genera teDialog(
$"#fins^-34^{session.Character.CharacterId} #fins^-69^{session.Character.CharacterId} {string.Format(Language.Instance.GetMessageFromKey ("MARRY_REQUEST"), session.Character.Name)}"));
session.Character.FriendRequestCharacters.Add(char acterId);
session.Character.Inventory.RemoveItemAmountFromIn ventory(1, inv.Id);

}
}
}
break;
03/17/2018 18:57 emirking3131#3
thank you bro <3
03/21/2018 12:16 xFraan#4
not work
04/27/2018 20:53 aluffino#5
Quote:
Originally Posted by Zanouu View Post
// Cupid's arrow
case 34:
if (packetsplit != null && packetsplit.Length > 3)
{
if (long.TryParse(packetsplit[3], out long characterId))
{
if (session.Character.CharacterRelations.Any(s => s.RelationType == CharacterRelationType.Spouse))
{
session.SendPacket($"info {Language.Instance.GetMessageFromKey("ALREADY_MARR IED")}");
return;
}
ClientSession otherSession = ServerManager.Instance.GetSessionByCharacterId(cha racterId);
if (otherSession != null)
{
otherSession.SendPacket(UserInterfaceHelper.Genera teDialog(
$"#fins^-34^{session.Character.CharacterId} #fins^-69^{session.Character.CharacterId} {string.Format(Language.Instance.GetMessageFromKey ("MARRY_REQUEST"), session.Character.Name)}"));
session.Character.FriendRequestCharacters.Add(char acterId);
session.Character.Inventory.RemoveItemAmountFromIn ventory(1, inv.Id);

}
}
}
break;
This is in Nos# and dont work in opennos ciapa source... :(
05/12/2018 12:59 jockus#6
i have this error when i use MARRY REQUEST

The serialized packet has the wrong format. Packet: 31659 #fins -34 4
[WARN] 10:16:19 -- Packet with Header fins is corrupt or PacketDefinition is invalid. Content: 31659 #fins -34 4

Can u help me?