[Guide]Marriage

Nice tutorial, but I got a few errors.



Error 1 The name 'Connection' does not exist in the current context C:\Steals Server Pack\Source\PowerSource CO\COServerProject1\COServerProject\DataBase.cs 154 169 COServerProject
Error 2 Pointers and fixed size buffers may only be used in an unsafe context C:\Steals Server Pack\Source\PowerSource CO\COServerProject1\COServerProject\Client.cs 773 42 COServerProject
Error 3 Pointers and fixed size buffers may only be used in an unsafe context C:\Steals Server Pack\Source\PowerSource CO\COServerProject1\COServerProject\Client.cs 775 59 COServerProject
Error 4 Pointers and fixed size buffers may only be used in an unsafe context C:\Steals Server Pack\Source\PowerSource CO\COServerProject1\COServerProject\Client.cs 777 42 COServerProject
Error 5 Pointers and fixed size buffers may only be used in an unsafe context C:\Steals Server Pack\Source\PowerSource CO\COServerProject1\COServerProject\Client.cs 832 42 COServerProject
Error 6 Pointers and fixed size buffers may only be used in an unsafe context C:\Steals Server Pack\Source\PowerSource CO\COServerProject1\COServerProject\Client.cs 834 53 COServerProject
Error 7 'COServer_Project.Packets' does not contain a definition for 'MarriageMouse' C:\Steals Server Pack\Source\PowerSource CO\COServerProject1\COServerProject\Client.cs 2029 72 COServerProject
Error 8 The name 'DataBase' does not exist in the current context C:\Steals Server Pack\Source\PowerSource CO\COServerProject1\COServerProject\Character.cs 1646 21 COServerProject
 
thx man it worked perfectly, except that when i check my own status it doesnt show the Spouse in the "Spouse" thigy >.< aww btw i'ma try to work on an NPC that lets you divorce ppl XD if it works i'll post it here :P
 
I'm trying to backport this into my source and not getting too far. but this looks like a start.
Code:
In PacketBuilder.cs find:
    public class PacketBuilder
    {
After it add:
        public static byte[] MarriageMouse(uint CharID)
        {
            byte[] PacketData = new byte[0x18];
            PacketData[0x0] = 0x18;
            PacketData[0x1] = 0x00;
            PacketData[0x2] = 0xf2;
            PacketData[0x3] = 0x03;
            PacketData[0x4] = 0x00;
            PacketData[0x5] = 0x00;
            PacketData[0x6] = 0x00;
            PacketData[0x7] = 0x00;
            PacketData[0x8] = (byte)(CharID & 0xff);
            PacketData[0x9] = (byte)((CharID >> 8) & 0xff);
            PacketData[0xa] = (byte)((CharID >> 16) & 0xff);
            PacketData[0xb] = (byte)((CharID >> 24) & 0xff);
            PacketData[0xc] = 0x2b;
            PacketData[0xd] = 0x04;
            PacketData[0xe] = 0x00;
            PacketData[0xf] = 0x00;
            PacketData[0x10] = 0x00;
            PacketData[0x11] = 0x00;
            PacketData[0x12] = 0x00;
            PacketData[0x13] = 0x00;
            PacketData[0x14] = 0x00;
            PacketData[0x15] = 0x00;
            PacketData[0x16] = 0x74;
            PacketData[0x17] = 0x00;
            return PacketData;
        }
Anyone else got ideas on fixing this for older sources?

Note that this is not unsafe.
 
Last edited:
uhh i dont get this i followed every set and it dont work can some1 help me out.what do we do in the part that says add thsi to characters table
 
whetre do u even puit the image??

im i the only person here that doesnt understand what the hell your saying? :p

EDIT:
I found the awnser! just put in database 'Spouse' nothing hard! just 'commen sence' :p
Btw thnx for this guide! only good guide ive seen so far!
 
Last edited:
@diegoalefru
How do you get credits?
You only copy & paste from my guide.

Here is the image:
diegoalefru - [Guide]Marriage - RaGEZONE Forums
 
Back