Register for your free account! | Forgot your password?

You last visited: Today at 23:00

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help]ShopFlag

Discussion on [Help]ShopFlag within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
$HaDoW's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
Unhappy [Help]ShopFlag

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:

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;
        }
$HaDoW is offline  
Old 04/27/2009, 21:01   #2
 
Zatoichi's Avatar
 
elite*gold: 0
Join Date: Nov 2006
Posts: 434
Received Thanks: 431
I'm just responding to add my voice to your request for help on this.
Zatoichi is offline  
Old 04/27/2009, 21:11   #3
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
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).
InfamousNoone is offline  
Old 04/27/2009, 21:18   #4
 
$HaDoW's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
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#
$HaDoW is offline  
Old 04/28/2009, 14:30   #5
 
elite*gold: 0
Join Date: Apr 2009
Posts: 148
Received Thanks: 15
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.
flaMe~ is offline  
Old 04/28/2009, 18:48   #6
 
$HaDoW's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
I dont have time to learn it I have exams in 3 weeks !
is it so hard to help someone who is almost done !
$HaDoW is offline  
Old 04/28/2009, 20:37   #7


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
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.
KraHen is offline  
Old 04/28/2009, 21:34   #8
 
$HaDoW's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
-_- looks like ppl dont read at all !
$HaDoW is offline  
Old 04/28/2009, 21:36   #9
 
elite*gold: 0
Join Date: Apr 2009
Posts: 354
Received Thanks: 105
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..
CoAttack is offline  
Old 04/28/2009, 21:44   #10
 
$HaDoW's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
post anything you have ! I'm searching for a better scource then LOTF !
because I havent seen any better one yet !
$HaDoW is offline  
Old 04/28/2009, 21:48   #11
 
elite*gold: 0
Join Date: Apr 2009
Posts: 354
Received Thanks: 105
its in a sticky for *** sakes
CoAttack is offline  
Old 04/28/2009, 22:09   #12
 
$HaDoW's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
that
??? cus I dont think its that great !
if it has Vending working then I take it
$HaDoW is offline  
Old 04/28/2009, 22:25   #13
 
elite*gold: 0
Join Date: Apr 2009
Posts: 354
Received Thanks: 105
Quote:
Originally Posted by $HaDoW View Post
that
??? cus I dont think its that great !
if it has Vending working then I take it
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
CoAttack is offline  
Old 04/28/2009, 22:46   #14
 
taylor2846's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
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
taylor2846 is offline  
Old 04/29/2009, 06:10   #15
 
$HaDoW's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
nah didint got ;D
Btw my LOTF is diff I have fixed all the known bugs only left to add Vending
$HaDoW is offline  
Reply


Similar Threads Similar Threads
[HELP] ShopFlag
12/02/2009 - CO2 Private Server - 7 Replies
Okay, I have Complete Packet for ShopFlag... case 111: is to vend and spawn Carpet. case 21: is to put price in shop? case 22: is to buy items from shop... Then how can i put the "Quit" vending?
[Help]With this ShopFlag packet
07/08/2009 - CO2 Private Server - 9 Replies
This is Not the WHOLE code but a little of what i have so far *Credits to Kinshi* public byte Senditem_vend(uint Item_Vend, byte Type) { ushort PacketType = 0x454; byte Packet = new byte; fixed (byte* p = Packet) {
[Request] ShopFlag in the market
07/07/2009 - CO2 Private Server - 4 Replies
English Hello, everyone, well, my question is, if the 5017 version, you can add the ShopFlag and functioning of markets, there are more posts on this but none have solved sid Now, flags are placed, but when I try to put me said, "You can not open a store here. You need an open space." Please need a little help, someone who knows plis! Spanish
[PROBlem] Spawning a shopflag
07/02/2009 - CO2 Private Server - 0 Replies
Ok i wanna test shopflags out but they wont spawn in my database... here is what i have can someone tell me if something is wrong? 800 1080 ShopFlag 16 6 158 176 1036 4
[Request] Shopflag ID
01/21/2009 - CO2 Private Server - 3 Replies
hey can someone give me ShopFlag ID



All times are GMT +1. The time now is 23:00.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.