[Help]ShopFlag

04/27/2009 14:50 $HaDoW#1
Hello Elitepvpers :)

After half year of rest I started my server again :)

and I need a lil help :( with shopflags ! that is the last thing I need for my Lotf server (its totaly redon !)
I have the packets ! but I jsut cant think of a way how to make it work :(

My MSN: [Only registered and activated users can see links. Click Here To Register...]

here are the packs...
Code:
public byte[] StallWindow(uint ID, Character C)
        {
            ushort PacketType = 0x3f2;
            byte[] Packet = new byte[24];
            fixed (byte* Ptr = Packet)
            {
                *((ushort*)(Ptr)) = (ushort)Packet.Length;
                *((ushort*)(Ptr + 2)) = (ushort)PacketType;
                *((uint*)(Ptr + 4)) = (uint)758292;
                *((uint*)(Ptr + 8)) = (uint)C.UID;
                *((uint*)(Ptr + 12)) = (uint)ID;
                *((ushort*)(Ptr + 16)) = (ushort)272;
                *((ushort*)(Ptr + 18)) = (ushort)198;
                *((ushort*)(Ptr + 20)) = (ushort)6;
                *((ushort*)(Ptr + 22)) = (ushort)110;
            }
            return Packet;
        }
		
public byte[] PlacePacket1(Character Charr)
        {
            ushort PacketType = 0x3f2;
            byte[] Packet = new byte[24];
            uint Timer = (uint)Environment.TickCount;

            fixed (byte* p = Packet)
            {
                *((ushort*)p) = (ushort)Packet.Length;
                *((ushort*)(p + 2)) = (ushort)PacketType;
                *((uint*)(p + 4)) = (uint)Timer;
                *((ushort*)(p + 8)) = (ushort)Charr.LocMap;
                *((ushort*)(p + 12)) = (ushort)Charr.LocMap;
                *((ushort*)(p + 16)) = (ushort)Charr.LocX;
                *((ushort*)(p + 18)) = (ushort)Charr.LocY;
                *(p + 22) = (byte)(0x4a & 0xff);
            }

            return Packet;
        }
		
public byte[] SpawnCarpet(Character Character, int ID)
        {
            ushort PacketType = 1109;
            byte[] Packet = new byte[28 + Character.Name.Length];

            fixed (byte* p = Packet)
            {
                *((ushort*)p) = (ushort)Packet.Length;
                *((ushort*)(p + 2)) = (ushort)PacketType;
                *((uint*)(p + 4)) = (uint)ID;
                *((ushort*)(p + 16)) = (ushort)(Character.LocX + 1);
                *((ushort*)(p + 18)) = (ushort)Character.LocY;
                *((ushort*)(p + 20)) = (ushort)(406);
                *((ushort*)(p + 22)) = (ushort)14;
                *(p + 24) = 11;
                *(p + 26) = 1;
                *(p + 27) = (byte)Character.Name.Length;
                for (int i = 0; i < Character.Name.Length; i++)
                {
                    *(p + 28 + i) = Convert.ToByte(Character.Name[i]);
                }
            }
            return Packet;
        }
04/27/2009 21:01 Zatoichi#2
I'm just responding to add my voice to your request for help on this.
04/27/2009 21:11 InfamousNoone#3
I just thought I'd point out, in the "in" community, so to say, there's never been something known of, or called 'shop flags'. And you shouldn't have 2 methods to construct the *same* packet-type, really (let alone any method, use a class, or structure).
04/27/2009 21:18 $HaDoW#4
thats a problem I'm not good at C# creating I only good on editing !
My prof is C++ :)
I would like to get some help cus I dont want to spend time on learning C#
04/28/2009 14:30 flaMe~#5
Quote:
Originally Posted by $HaDoW View Post
thats a problem I'm not good at C# creating I only good on editing !
My prof is C++ :)
I would like to get some help cus I dont want to spend time on learning C#
You just said the wrong thing mate, nobody is going to help those who don't want to learn.
04/28/2009 18:48 $HaDoW#6
I dont have time to learn it I have exams in 3 weeks !
is it so hard to help someone who is almost done !
04/28/2009 20:37 KraHen#7
Quote:
Originally Posted by $HaDoW View Post
thats a problem I'm not good at C# creating I only good on editing !
My prof is C++ :)
I would like to get some help cus I dont want to spend time on learning C#
Do it in C++ then.
04/28/2009 21:34 $HaDoW#8
-_- looks like ppl dont read at all !
04/28/2009 21:36 CoAttack#9
Quote:
Originally Posted by $HaDoW View Post
-_- looks like ppl dont read at all !

more like they dont want to give to you or they dont use LOTF , i spoke to hybrid before about the same thing he gave me some help but it wasn't in LOTF i had to convert it but i lost the files .. < LOL

so most might have but not in your source format..
04/28/2009 21:44 $HaDoW#10
post anything you have ! I'm searching for a better scource then LOTF !
because I havent seen any better one yet !
04/28/2009 21:48 CoAttack#11
its in a sticky for god sakes
04/28/2009 22:09 $HaDoW#12
that [Only registered and activated users can see links. Click Here To Register...]
??? cus I dont think its that great !
if it has Vending working then I take it :D
04/28/2009 22:25 CoAttack#13
Quote:
Originally Posted by $HaDoW View Post
that [Only registered and activated users can see links. Click Here To Register...]
??? cus I dont think its that great !
if it has Vending working then I take it :D
your dumb then....if you say you can code or want to code..since i saw you said that even if you dont have time you can do little by little...if your saying LOTF sucks or its stupid then back it up by using a better one..HYBRIDS
04/28/2009 22:46 taylor2846#14
um hters a sources on here somehwer with it i had it but i del it i no the file nam of is is CoServer dont rember the name of the server it use to be fore it was here like 3mounts a go if i fell like it later i may halp mabe not unless u alredy got help lol i have not read the post lol
04/29/2009 06:10 $HaDoW#15
nah didint got ;D
Btw my LOTF is diff :D I have fixed all the known bugs only left to add Vending