[Request]Guides

09/22/2008 22:03 © Haydz#31
Quote:
Originally Posted by lolmaster123 View Post
Whats about summoning ? :P
Or Transforming skillz
i'll explain summoning when i get to that stage myself and im even considering adding it... transforming skills is just a char mech edit on a timer ( i think 0.0 )
09/22/2008 22:05 Zanzibar#32
Quote:
Originally Posted by © Haydz View Post
i'll explain summoning when i get to that stage myself and im even considering adding it... transforming skills is just a char mech edit on a timer ( i think 0.0 )
Yea but the mech thing doesn't appear if you have armor on lulcakes
09/22/2008 22:09 tao4229#33
Quote:
Originally Posted by Zanzibar View Post
Yea but the mech thing doesn't appear if you have armor on lulcakes
Thats where you fuck with the spawnentity/charinfo packets.
09/22/2008 22:15 ~Yuki~#34
then i need a guide how to unequip stuff automaticly + send to inv.
At a command

Really needed Guide:

How to move LOTF to INI´s away from MySQL?
09/22/2008 22:20 tao4229#35
Quote:
Originally Posted by lolmaster123 View Post
then i need a guide how to unequip stuff automaticly + send to inv.
At a command

Really needed Guide:

How to move LOTF to INI´s away from MySQL?
I recommend that IF YOU DO, (well in the first place don't do it.. MySQL is faster if you can manage it) that you DO NOT USE Hadeset's ini class. It sucks...

Edit:: I can do that Haydz, I just need to know how the model goes.. its like xxx(mesh)

I need to know the leading numbers :x
09/22/2008 22:27 ~Yuki~#36
Hmmm player mech is lemme see...brb^^
09/22/2008 22:29 tao4229#37
Quote:
Originally Posted by © Haydz View Post
hmmm... its just the same as mob mechs... and a player mech is like 671003 or something :/
Thats what i meant, i needed that 671 :p
09/22/2008 22:31 © Haydz#38
Quote:
Originally Posted by tao4229 View Post
Thats what i meant, i needed that 671 :p
happy to help :o
09/22/2008 22:35 ~Yuki~#39
101003 = Another mesh Male Big male^^
09/22/2008 22:36 © Haydz#40
Anyone tested the marriage code?.. cause i didnt lol
09/22/2008 22:37 ~Yuki~#41
didnt too just added it 0 errors FTW!
09/22/2008 22:38 lostsolder05#42
Quote:
Originally Posted by © Haydz View Post
Okay so here goes with the guide on how to add marriage...

Okay so first your going to need the packet for the MarriageMouse...:

Code:
public static byte[] MarriageMouse(uint CharUID)
        {
            byte[] Mouse = new byte[24];
            fixed (byte* Ptr = Mouse)
            {
                *(ushort*)(Ptr + 0) = 24;
                *(ushort*)(Ptr + 2) = 1010;
                *(uint*)(Ptr + 8) = CharUID;
                *(uint*)(Ptr + 12) = 1067;
                *(uint*)(Ptr + 22) = 116;
                return Mouse;
            }
        }
Okay so assuming your using an NPC your gonna want to use Client.Send(Packets.MarriageMouse(Client.Char.UID) );
to make the mouse appear from the npc...

okay next step..
Make sure that the GetPacket function is unsafe otherwise you can use 1337 Pointers lul... e.g. public unsafe void GetPacket(byte[] Data)
sending the marriage request and accepting the marriage request is an attack type so your going to wan to search for case 1022: in the packets file and add the following code:.. (baring in mind that ive just tried and tested this in lotf cause i assume your all using it):

Code:
 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;
                                    Target.MyClient.SendPacket(Data);
                                }
                            }
Then for accepting the proposal you need below the other code :
Code:
 if (AttackType == 9)//Marriage Accept
                            {
                                fixed (byte* Ptr = Data)
                                {
                                    uint UID = *(uint*)(Ptr + 12);
                                    Character Char = (Character)World.AllChars[UID];
                                    Char.Spouse = MyChar.Name;
                                    MyChar.Spouse = Char.Name;
                                    
                                }
                            }
And if you don't have variables for spouse in lotf well im not gonna explain i made this in 5 minutes : added all the variables changed the char info and made the spouse save and load... so if you can't do that... don't even bother with a server :)
it's bad enough that your using lotf anyway. And even if your not using lotf you can adapt this code to work with any server
heyhey u bish u didnt even gives me, infamous credits for helping :rolleyes:

mostly infamous :O
09/22/2008 22:40 lostsolder05#43
Quote:
Originally Posted by © Haydz View Post
Anyone tested the marriage code?.. cause i didnt lol
lies n00b yes u did on my serv :rolleyes:

Quote:
Originally Posted by © Haydz View Post
erm you didnt help... i had two of the request offsets the wrong way around (12 and 4)... isnt exactly help
thats y i said mostly inf =x

basically he did the whole thing... u just transfered it 2 loftco(besides mouse crap) u did that =x
09/22/2008 22:42 © Haydz#44
Quote:
Originally Posted by lostsolder05 View Post
lies n00b yes u did on my serv :rolleyes:



thats y i said mostly inf =x
Oh yeah.. forgot about that... i just wrote that from memory refrence :P... and erm how did inf help :confused: the only thing i did wrong was the offsets

edit: wtf... i did it all except the offsets :| you even said so your self.. i hope i has chat logs zomg no i dont :( im gonna start logging my chats :(
09/22/2008 22:43 lostsolder05#45
Quote:
Originally Posted by © Haydz View Post
Oh yeah.. forgot about that... i just wrote that from memory refrence :P... and erm how did inf help :confused: the only thing i did wrong was the offsets
becuz he told me how he did it then i told u and u went off that lol