@Kratos59
thats in the Packet.cs and the one is in the Client.cs
im still looking how can a player see his/her spouse in the Status option
Search the Source for string Spuse = "None"; and thats your problem... i explained all the char info packets will need changing cause they are locally defined as "None"; instead of Client.Char.Spouse
so change it to that :P
hmmm i may be wrong but if you decrypt the monster.dat file in the Ini folder im sure theres a Size= variable in there... try changing that and then encrypting again... however i may be wrong cause ive never tested it
I meant server side you can't change the size, you can change it client sided(and distribute a patch), but you can't make it bigger in the server.
if (AttackType == 8)//Marriage Proposal
{
fixed (byte* Ptr = Data)
{
uint TargetUID = *(uint*)(Ptr + 12);
Character Target = (Character)World.AllChars[TargetUID];
*(uint*)(Ptr + 8) = MyChar.UID;
{
if (MyChar.Model == 2001 || MyChar.Model == 2002)
{
if (Target.Model == 1003 || Target.Model == 1004)
{
if (Target.Spouse == "")
{
Target.MyClient.SendPacket(Data);
}
else
{
SendPacket(General.MyPackets.NPCSay(Target.Name + " has already an Spouse."));
SendPacket(General.MyPackets.NPCLink("Ok.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
else
{
SendPacket(General.MyPackets.NPCSay("Only girl and boy can be marriage."));
SendPacket(General.MyPackets.NPCLink("I see.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (MyChar.Model == 1003 || MyChar.Model == 1004)
{
if (Target.Model == 2001 || Target.Model == 2002)
{
if (Target.Spouse == "")
{
Target.MyClient.SendPacket(Data);
}
else
{
SendPacket(General.MyPackets.NPCSay(Target.Name + " has already an Spouse."));
SendPacket(General.MyPackets.NPCLink("Ok.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
else
{
SendPacket(General.MyPackets.NPCSay("Only girl and boy can be marriage."));
SendPacket(General.MyPackets.NPCLink("I see.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
}
}
}
if (AttackType == 9)//Marriage Accept
{
fixed (byte* Ptr = Data)
{
uint UID = *(uint*)(Ptr + 12);
Character Char = (Character)World.AllChars[UID];
{
if (Char.Model == 2001 || Char.Model == 2002)
{
if (MyChar.Model == 1003 || MyChar.Model == 1004)
{
Char.Spouse = MyChar.Name;
MyChar.Spouse = Char.Name;
MyChar.SaveSpouse();
Char.SaveSpouse();
World.SendMsgToAll(Char.Name + " and " + MyChar.Name + " has been promoted as husband and wife!", "LoveStone", 2011);
}
else
{
SendPacket(General.MyPackets.NPCSay("Only girl and boy can be marriage."));
SendPacket(General.MyPackets.NPCLink("I see.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (Char.Model == 1003 || Char.Model == 1004)
{
if (MyChar.Model == 2001 || MyChar.Model == 2002)
{
Char.Spouse = MyChar.Name;
MyChar.Spouse = Char.Name;
MyChar.SaveSpouse();
Char.SaveSpouse();
World.SendMsgToAll(Char.Name + " and " + MyChar.Name + " has been promoted as husband and wife!", "LoveStone", 2011);
}
else
{
SendPacket(General.MyPackets.NPCSay("Only girl and boy can be marriage."));
SendPacket(General.MyPackets.NPCLink("I see.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
}
}
}
Code:
if (CurrentNPC == 390)
{
if (MyChar.Spouse == "")
{
SendPacket(General.MyPackets.NPCSay("Do you wish to propose to your sweetheart?"));
SendPacket(General.MyPackets.NPCSay("Remember that marriage is a serious commitment, do not enter into it lightly."));
SendPacket(General.MyPackets.NPCLink("Yes I want to propose", 1));
SendPacket(General.MyPackets.NPCLink("Nooo I'm not ready", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else
{
SendPacket(General.MyPackets.NPCSay("You have already spouse."));
SendPacket(General.MyPackets.NPCLink("Sorry", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
Code:
if (CurrentNPC == 390)
{
if (Control == 1)
{
SendPacket(General.MyPackets.NPCSay("Click on your sweetheart to propose to them"));
SendPacket(General.MyPackets.NPCLink("OK", 2));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 2)
{
MyChar.MyClient.SendPacket(Packets.MarriageMouse(MyChar.UID));
}
}
Code:
public void SaveSpouse()
{
if (MyClient.There)
if (MyClient.Online)
DataBase.SaveSpouse(this);
}
Code:
public string Spouse = "";
Code:
Charr.Spouse = (string)DR["Spouse"];
Code:
public static void SaveSpouse(Character Charr)
{
try
{
MySqlCommand Command = new MySqlCommand("UPDATE `Characters` SET `Spouse` = '" + Charr.Spouse + "' WHERE `Account` = '" + Charr.MyClient.Account + "'", Connection);
Command.ExecuteNonQuery();
}
catch (Exception Exc)
{
General.WriteLine(Convert.ToString(Exc));
Connection.Close();
Connect("username(mysql)", "password(mysql)");
if (World.SaveAllChars())
{
General.WriteLine("Connection to mysql server reinitiated");
}
else
{
General.WriteLine("Connection Error, server restarting! " + DateTime.Now);
General.ServerRestart();
}
}
}
i don't need someone tell me where to put all these codes, figure it out yourself
i already add a row in database.
almost finish, i just need the one that you can show your spouse in the status
if (AttackType == 8)//Marriage Proposal
{
fixed (byte* Ptr = Data)
{
uint TargetUID = *(uint*)(Ptr + 12);
Character Target = (Character)World.AllChars[TargetUID];
*(uint*)(Ptr + 8) = MyChar.UID;
{
if (MyChar.Model == 2001 || MyChar.Model == 2002)
{
if (Target.Model == 1003 || Target.Model == 1004)
{
if (Target.Spouse == "")
{
Target.MyClient.SendPacket(Data);
}
else
{
SendPacket(General.MyPackets.NPCSay(Target.Name + " has already an Spouse."));
SendPacket(General.MyPackets.NPCLink("Ok.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
else
{
SendPacket(General.MyPackets.NPCSay("Only girl and boy can be marriage."));
SendPacket(General.MyPackets.NPCLink("I see.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (MyChar.Model == 1003 || MyChar.Model == 1004)
{
if (Target.Model == 2001 || Target.Model == 2002)
{
if (Target.Spouse == "")
{
Target.MyClient.SendPacket(Data);
}
else
{
SendPacket(General.MyPackets.NPCSay(Target.Name + " has already an Spouse."));
SendPacket(General.MyPackets.NPCLink("Ok.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
else
{
SendPacket(General.MyPackets.NPCSay("Only girl and boy can be marriage."));
SendPacket(General.MyPackets.NPCLink("I see.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
}
}
}
if (AttackType == 9)//Marriage Accept
{
fixed (byte* Ptr = Data)
{
uint UID = *(uint*)(Ptr + 12);
Character Char = (Character)World.AllChars[UID];
{
if (Char.Model == 2001 || Char.Model == 2002)
{
if (MyChar.Model == 1003 || MyChar.Model == 1004)
{
Char.Spouse = MyChar.Name;
MyChar.Spouse = Char.Name;
MyChar.SaveSpouse();
Char.SaveSpouse();
World.SendMsgToAll(Char.Name + " and " + MyChar.Name + " has been promoted as husband and wife!", "LoveStone", 2011);
}
else
{
SendPacket(General.MyPackets.NPCSay("Only girl and boy can be marriage."));
SendPacket(General.MyPackets.NPCLink("I see.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (Char.Model == 1003 || Char.Model == 1004)
{
if (MyChar.Model == 2001 || MyChar.Model == 2002)
{
Char.Spouse = MyChar.Name;
MyChar.Spouse = Char.Name;
MyChar.SaveSpouse();
Char.SaveSpouse();
World.SendMsgToAll(Char.Name + " and " + MyChar.Name + " has been promoted as husband and wife!", "LoveStone", 2011);
}
else
{
SendPacket(General.MyPackets.NPCSay("Only girl and boy can be marriage."));
SendPacket(General.MyPackets.NPCLink("I see.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
}
}
}
Code:
if (CurrentNPC == 390)
{
if (MyChar.Spouse == "")
{
SendPacket(General.MyPackets.NPCSay("Do you wish to propose to your sweetheart?"));
SendPacket(General.MyPackets.NPCSay("Remember that marriage is a serious commitment, do not enter into it lightly."));
SendPacket(General.MyPackets.NPCLink("Yes I want to propose", 1));
SendPacket(General.MyPackets.NPCLink("Nooo I'm not ready", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else
{
SendPacket(General.MyPackets.NPCSay("You have already spouse."));
SendPacket(General.MyPackets.NPCLink("Sorry", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
Code:
if (CurrentNPC == 390)
{
if (Control == 1)
{
SendPacket(General.MyPackets.NPCSay("Click on your sweetheart to propose to them"));
SendPacket(General.MyPackets.NPCLink("OK", 2));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 2)
{
MyChar.MyClient.SendPacket(Packets.MarriageMouse(MyChar.UID));
}
}
Code:
public void SaveSpouse()
{
if (MyClient.There)
if (MyClient.Online)
DataBase.SaveSpouse(this);
}
Code:
public string Spouse = "";
Code:
Charr.Spouse = (string)DR["Spouse"];
Code:
public static void SaveSpouse(Character Charr)
{
try
{
MySqlCommand Command = new MySqlCommand("UPDATE `Characters` SET `Spouse` = '" + Charr.Spouse + "' WHERE `Account` = '" + Charr.MyClient.Account + "'", Connection);
Command.ExecuteNonQuery();
}
catch (Exception Exc)
{
General.WriteLine(Convert.ToString(Exc));
Connection.Close();
Connect("username(mysql)", "password(mysql)");
if (World.SaveAllChars())
{
General.WriteLine("Connection to mysql server reinitiated");
}
else
{
General.WriteLine("Connection Error, server restarting! " + DateTime.Now);
General.ServerRestart();
}
}
}
i don't need someone tell me where to put all these codes, figure it out yourself
i already add a row in database.
almost finish, i just need the one that you can show your spouse in the status
[Request]Richtige Guides ?? 09/10/2010 - Starcraft 2 - 5 Replies Hey Stracraft Suchtis :P ,
Wollte mal fragen wo es denn richtige Guides gibt. Sprich Baureihenfolge usw. Habe bis jetzt nur einen gefunden der nicht wirklich hilfreich war xD Bedanke mich schon mal im Voraus.
Request Guides! :D 08/16/2010 - Runescape - 11 Replies Guides!
Hey. I've been trying as hard as I can to help you with all of your needs, now it is time for you to help me you. You can do this simply by posting here any guides you want me to make, I will either make a video, or picture, or both.
I need this to be organized, so I will be monitoring this thread daily, and i will be posting new polls, and deleting poll to see what i should make my number one priority.
How to Post!:
Posting should be like this:
[REQUEST] Killer guides 09/15/2009 - Aion - 15 Replies moin,
hat jmd die Killer guides für aion parat?
(Aion Complete Guide Package)
komplett oder einzeln ich, alle gern gesehn :)
ooooder:
[Request]More Coding Guides. C# 08/29/2009 - CO2 Private Server - 13 Replies Yo guys, if you want less people asking questions/leaching then just make "how to code guides". Not only are you keeping people from taking other people's work, but your also giving other people the chance to create more stuff and ideas so we can all be pros at coding to make our own servers. Honestly, if you people released useful guides, I will read everyone of them until I know how to code then I'll take my time to complete servers 100%. Well thats it, I hope this encouraged people to take...