Marriage dialog ????

09/24/2008 01:11 stephanyd#1
Hi.. i already have marriage Packet installed but i'm stucked in NPC Dialog... Here is the starting of my dialog
Quote:
if (CurrentNPC == 390)
{
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());
}
And then
Quote:
if (CurrentNPC == 390)
{
if (Control == 1)
{
SendPacket(General.MyPackets.NPCSay("Click on your sweetheart to propose to them"));
SendPacket(General.MyPackets.NPCLink("OK", 225));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}

Anyone can tell me how to finish that Dialog plz?:confused:
09/24/2008 01:15 InfamousNoone#2
Send the packet for the mouse, duh
09/24/2008 01:46 stephanyd#3
Quote:
Originally Posted by InfamousNoone View Post
Send the packet for the mouse, duh
You means it should be like that ?.. Sorry to ask too much;)

Quote:
if (CurrentNPC == 390)//Marriage
{
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)
SendPacket(General.MyPackets.MarriageMouse());
}
Or just give me a little help if u want:)
09/24/2008 03:43 nTL3fTy#4
Quote:
Originally Posted by stephanyd View Post
You means it should be like that ?.. Sorry to ask too much;)



Or just give me a little help if u want:)
Haydz mentioned this and posted exactly what you use.
[Only registered and activated users can see links. Click Here To Register...]

Hint: A character UID is the parameter for the packet.
09/24/2008 04:07 stephanyd#5
Quote:
Originally Posted by nTL3fTy View Post
Haydz mentioned this and posted exactly what you use.
[Only registered and activated users can see links. Click Here To Register...]

Hint: A character UID is the parameter for the packet.
Ok i found it but still have 3 errors in ... lol.. so i put screeny from it
09/24/2008 04:39 vietkidd510#6
it means that the name does not exist in the database u have to add it in
09/24/2008 06:12 stephanyd#7
Quote:
Originally Posted by vietkidd510 View Post
it means that the name does not exist in the database u have to add it in
in Client.cs or Database.cs?... last thing and marriage will work.... here is a new screenshoté;)
09/24/2008 06:26 Brun0_#8
Quote:
Originally Posted by stephanyd View Post
in Client.cs or Database.cs?... last thing and marriage will work.... here is a new screenshoté;)



u fix spouse problem? xD


add me in msn
[Only registered and activated users can see links. Click Here To Register...]
09/24/2008 06:36 stephanyd#9
Quote:
Originally Posted by Brun0_ View Post
u fix spouse problem? xD


add me in msn
[Only registered and activated users can see links. Click Here To Register...]
In Character.cs find "public byte Level = 0;" ... Under that add
Quote:
public string Spouse = "";
and click Build...i did that and it fixed spouse problem.

Now i'm on
Quote:
Client.Send(Packets.MarriageMouse(Client.Char.UID) );
..i'm looking where i'll add Char thing to make it build successfully.
09/24/2008 09:02 © Haydz#10
Quote:
Originally Posted by stephanyd View Post
In Character.cs find "public byte Level = 0;" ... Under that add and click Build...i did that and it fixed spouse problem.

Now i'm on
..i'm looking where i'll add Char thing to make it build successfully.
it wont just work because.. LOTF's character info packet doesnt use Client.Spouse.. it uses a locally declared spouse string which is always None... you'll have to change the char info packet :) - same goes for view equips
09/24/2008 22:08 nTL3fTy#11
Quote:
Originally Posted by © Haydz View Post
it wont just work because.. LOTF's character info packet doesnt use Client.Spouse.. it uses a locally declared spouse string which is always None... you'll have to change the char info packet :) - same goes for view equips
Same goes for saving and loading character info from the database. ;)