How to work the LOFT source as a pro!

08/27/2008 21:48 Exia13#76
From what i've been told, there's a problem with the coding for creating a new char. I've looked it over many times and still cant figure out what's wrong. I'm not ahsamed to say that im still a rookie at this coding thing (i didnt do to well in my computer science clas last year) lol.

Also, im using Qonquer with out patches, etc. is that a problem?

I posted the the coding for a new char from my source below. I hope some1 can read it and see what exactly the problem is. If this isnt where the problem is, some1 plz point it out. TY!!!!



public byte[] NewCharPacket(int MessageId)
{
ushort PacketType = 0x3ec;
byte[] Packet = new byte[54];
fixed (byte* p = Packet)
{
*((ushort*)p) = (ushort)Packet.Length;
*((ushort*)(p + 2)) = (ushort)PacketType;
*(p + 4) = 0xff;
*(p + 5) = (0xff);
*(p + 6) = (0xff);
*(p + 8) = (0x35);
*(p + 9) = (0x08);
*(p + 13) = (0x28);
*(p + 14) = (0x03);
*(p + 24) = (0x04);
*(p + 25) = (0x06);
*((uint*)(p + 26)) = (uint)MessageId;
*(p + 30) = (0x45);
*(p + 31) = (0x4d);
*(p + 32) = (0x08);
*(p + 33) = (0x41);
*(p + 34) = (0x4c);
*(p + 35) = (0x4c);
*(p + 36) = (0x55);
*(p + 37) = (0x53);
*(p + 38) = (0x45);
*(p + 39) = (0x52);
*(p + 40) = (0x53);
*(p + 42) = (0x08);
*(p + 43) = (0x4e);
*(p + 44) = (0x45);
*(p + 45) = (0x57);
*(p + 46) = (0x5f);
*(p + 47) = (0x52);
*(p + 48) = (0x4f);
*(p + 49) = (0x4c);
*(p + 50) = (0x45);
}

return Packet;
}
08/28/2008 07:21 _Emme_#77
Use the original LOFT Source,not the edited one's you can download now.
08/28/2008 15:47 Exia13#78
Didn't need to. i used another client since i was using qonquer in the first place and everything works fine. Thanks to all those who helped, ESPECIALLY EMME.!!!!!!!
TY TY TY TY
08/28/2008 16:39 elragal_30#79
Quote:
Originally Posted by emildayan1 View Post
Your IP is not 192.168.1 blablabla. First,go and open your ports,when that is done,do this:

Go into [Only registered and activated users can see links. Click Here To Register...] , there you get your real IP. Use that instead of all the others,done.
ty
but we are sharing network
so i don't have the router
and i don't need to puplich the server now from my pc
i will publish it on another Server with 8-24 MB Line
but now i'm only testing servers to get the best and edit it as i like
so i just need it to work on my computer only is there some way with out using router
because also if i open ports on router , i can't use IP becuse it is Shared IP
so is ther any way to run it on my pc only ??
sorry if i annoy u
ty again
08/28/2008 17:55 _Emme_#80
[Only registered and activated users can see links. Click Here To Register...]

Thats your IP,use that.. Cant be that hard.
08/29/2008 15:32 Exia13#81
@emildayan1
Would u mind making a teleport code for the LOTF source for me plz?.
And for some reason, i cant get your RB code to work with mine.
Thanks
08/29/2008 16:41 _Emme_#82
Teleport code? If you want a code in ur source,like a npc send u somewhere,it should be like this i think ( dont got the source anymore)

MyChar.Teleport(Mapid, CoordX, CoordY);

If you mean a teleport command that admin can use,its already added,can be used like this:

/tele mapid coordx coordy
08/29/2008 18:50 stephanyd#83
Quote:
Originally Posted by emildayan1 View Post
Teleport code? If you want a code in ur source,like a npc send u somewhere,it should be like this i think ( dont got the source anymore)

MyChar.Teleport(Mapid, CoordX, CoordY);

If you mean a teleport command that admin can use,its already added,can be used like this:

/tele mapid coordx coordy
Hi.. i added u on my msn.. need ur source if it is reallllly good... come back to me.
08/29/2008 21:38 elragal_30#84
i think the solution in Client Can modify soruce to work with original Qonquer client w/no patches??
or can u give me original link for LOTF original Soruce, may be mine is corrupted ???

i git this problem
[Only registered and activated users can see links. Click Here To Register...]

Quote:
Originally Posted by emildayan1 View Post
[Only registered and activated users can see links. Click Here To Register...]

Thats your IP,use that.. Cant be that hard.
yea , i can know what is my ip
i know it is not 192.168.1.xx
i can check it with any tool
but problem it is shared ip (it mean that i'm not alone that have this ip )
and i open Ports on router that u tell at first post
but sadly client not connect to it
and if i enter my ip (not 192.168.xx)on Internet explorer ,don't go to my Localhost page
but go to Router page and

and pervious servers (Futuer-Core-Co-Final-XYnet...etc) was work with Qonquer Original Client with out patches on Local IP (192.168.1.x)
so is there any solution for this
remember that i just need to run from my pc, idon't need to share it with any one yet
ty
09/02/2008 15:33 Rechocto#85
Quote:
Originally Posted by elragal_30 View Post
i think the solution in Client Can modify soruce to work with original Qonquer client w/no patches??
or can u give me original link for LOTF original Soruce, may be mine is corrupted ???

i git this problem
[Only registered and activated users can see links. Click Here To Register...]



yea , i can know what is my ip
i know it is not 192.168.1.xx
i can check it with any tool
but problem it is shared ip (it mean that i'm not alone that have this ip )
and i open Ports on router that u tell at first post
but sadly client not connect to it
and if i enter my ip (not 192.168.xx)on Internet explorer ,don't go to my Localhost page
but go to Router page and

and pervious servers (Futuer-Core-Co-Final-XYnet...etc) was work with Qonquer Original Client with out patches on Local IP (192.168.1.x)
so is there any solution for this
remember that i just need to run from my pc, idon't need to share it with any one yet
ty




I had the same problem as in your picture there.. to fix it use CIDLoader.
09/02/2008 15:59 ~*NewDuuDe*~#86
@Exia13
Here's an easyer one:
Code:
if (Splitter[0] == "/scroll")
                                            {
                                                if (Splitter[1] == "tc")
                                                {
                                                    MyChar.Teleport(1002, 431, 379);
                                                }
                                                if (Splitter[1] == "faction")
                                                {
                                                    MyChar.Teleport(1037, 150, 150);
                                                }
                                                if (Splitter[1] == "tg")
                                                {
                                                    MyChar.Teleport(1039, 200, 200);
                                                }
                                                if (Splitter[1] == "jail")
                                                {
                                                    MyChar.Teleport(6000, 30, 75);
                                                }
                                                if (Splitter[1] == "am")
                                                {
                                                    MyChar.Teleport(1020, 567, 576);
                                                }
                                                if (Splitter[1] == "dc")
                                                {
                                                    MyChar.Teleport(1000, 500, 650);
                                                }
                                                if (Splitter[1] == "mc")
                                                {
                                                    MyChar.Teleport(1001, 316, 642);
                                                }
                                                if (Splitter[1] == "bi")
                                                {
                                                    MyChar.Teleport(1015, 723, 573);
                                                }
                                                if (Splitter[1] == "pc")
                                                {
                                                    MyChar.Teleport(1011, 190, 271);
                                                }
                                                if (Splitter[1] == "ma")
                                                {
                                                    MyChar.Teleport(1036, 200, 200);
                                                }
                                                if (Splitter[1] == "arena")
                                                {
                                                    MyChar.Teleport(1005, 52, 69);
                                                }
                                                if (Splitter[1] == "birth")
                                                {
                                                    MyChar.Teleport(1010, 60, 110);
                                                }
                                            }
09/03/2008 00:47 Exia13#87
@BERGHUIS1
Hey thanks alot.

I know it seems like im kinda nagging, but is there a way for a GM to make his/her own attribute points. I RBed to a tao and now my blade is stuck in my left hand, with a backsword in my right. If i can get the code, i'll be a real melee water ^^.
09/03/2008 15:47 _Emme_#88
Do that in ur database lmao. Or you can set an command to edit those in-game,like this : ( dont have the source,im typing what i got at my brain,might not be working )

if (Splitter[0] == "/stam")
{
uint NewStam = uint.Parse(Splitter[1]);

MyChar.Stamina = NewStam;

}

And I think it should be like a code to update stamina or something, maybe this would help with that as an refference:


SendPacket(General.MyPackets.Vital((long)MyChar.UI D, 30, MyChar.Stamina));
09/03/2008 22:12 Exia13#89
I think i understand. Thanks alot.
09/05/2008 17:01 Exia13#90
If i'm using a LOTF source, how do i change the drop rate of items. I'll keep searching but can some1 plz tell me how?. Thank you.