|
You last visited: Today at 00:45
Advertisement
[Help]ShopFlag
Discussion on [Help]ShopFlag within the CO2 Private Server forum part of the Conquer Online 2 category.
04/29/2009, 12:18
|
#16
|
elite*gold: 0
Join Date: Apr 2009
Posts: 354
Received Thanks: 105
|
Quote:
Originally Posted by $HaDoW
nah didint got ;D
Btw my LOTF is diff  I have fixed all the known bugs only left to add Vending
|
can i go on your server and see i can do the bugs that i know of.
|
|
|
04/29/2009, 14:16
|
#17
|
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
|
ofc PM me on msn or skype
MSN: 
Skype: HaKaShis
|
|
|
04/29/2009, 14:18
|
#18
|
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
|
Quote:
Originally Posted by $HaDoW
ofc PM me on msn or skype
MSN: 
Skype: HaKaShis

|
Let`s bet that I can have infinite pots
|
|
|
04/29/2009, 21:07
|
#19
|
elite*gold: 0
Join Date: Apr 2009
Posts: 354
Received Thanks: 105
|
Quote:
Originally Posted by ElDeRnEcRo
Let`s bet that I can have infinite pots
|
xD.
|
|
|
04/30/2009, 05:22
|
#20
|
elite*gold: 20
Join Date: May 2008
Posts: 1,103
Received Thanks: 254
|
Quote:
Originally Posted by $HaDoW
post anything you have ! I'm searching for a better scource then LOTF !
because I havent seen any better one yet !
|
You wont find one all other ones suck learn to Code its pretty easy BTW Copy Past isnt coding lmao
|
|
|
04/30/2009, 05:39
|
#21
|
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
|
like I dont ******* know !
I work with WoW Servers 4 years !
|
|
|
04/30/2009, 05:55
|
#22
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
|
@$HaDoW
Please watch your language.
Its really not necessary.
As for the shop flags, where are you stuck?
|
|
|
04/30/2009, 06:25
|
#23
|
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
|
Sorry... just hate ppl who Flame !
the last thing I had was you press on FlagShop its spawns a carpet and siting on it and nothing else but after no luck I deleted the code and now I'm left only with the Packtes
|
|
|
05/01/2009, 05:58
|
#24
|
elite*gold: 0
Join Date: Apr 2008
Posts: 56
Received Thanks: 8
|
Will not be easy to get the code of shopflags. But good luck
|
|
|
05/23/2009, 22:51
|
#25
|
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
|
so can anyone help ? anyone got anything ?
this is all I have  some one plz help me !
Code:
using System;
using System.Collections;
using System.Text;
namespace COServer_Project
{
class OpenShop
{
private Client TClient;
private byte[] data;
public OpenShop(byte[] packet, Client client)
{
data = packet;
TClient = client;
// shopid = _shopid;
runshop();
}
void runshop()
{
try
{
int CharID = (data[11] << 24) + (data[10] << 16) + (data[9] << 8) + data[8];
int X = (data[13] << 8) + data[12];
int Y = (data[15] << 8) + data[14];
if (TClient.MyChar.ShopID == 0)
{
uint map_in = Convert.ToUInt32(TClient.MyChar.LocMap);
// lock (NPCs.AllNPCs.SyncRoot)
{
foreach (DictionaryEntry DE in NPCs.AllNPCs)
{
SingleNPC Npc = (SingleNPC)DE.Value;
int N0 = Convert.ToInt32(Npc.UID);
int N1 = Convert.ToInt32(Npc.X);
int N2 = Convert.ToInt32(Npc.Y);
int N6 = Convert.ToInt32(Npc.Map);
if (map_in == N6)
{
if (N1 + 2 == TClient.MyChar.LocX && N2 == TClient.MyChar.LocY)
{
int ShopID = N0 + 500;
if (!World.ShopHash.Contains(ShopID))
{
TClient.MyChar.ShopID = ShopID;
World.ShopHash.Add(ShopID, TClient);
TClient.SendPacket(General.MyPackets.GeneralData3((long)CharID,TClient.MyChar.LocX, TClient.MyChar.LocY, 111));
foreach (DictionaryEntry sr in World.AllChars)
{
Character Char = (Character)sr.Value;
if (MyMath.CanSee(TClient.MyChar.LocX, TClient.MyChar.LocY, Char.LocX, Char.LocY) && TClient.MyChar.LocMap == Char.LocMap)
{
Char.MyClient.SendPacket(Packets.SpawnRug.Packet(TClient.MyChar, ShopID));
}
}
TClient.SendPacket(General.MyPackets.GeneralData((long)CharID, (long)ShopID, TClient.MyChar.LocX, TClient.MyChar.LocY, 111));
TClient.MyChar.Direction = 6;
}
else
{
TClient.SendPacket(General.MyPackets.SendMsg(15445, "SYSTEM", TClient.MyChar.Name, "This shop is in use, try another.", 2005));
}
}
}
}
}
}
else
{
TClient.SendPacket(General.MyPackets.SendMsg(15445, "SYSTEM", TClient.MyChar.Name, "You start vending.", 2005));
}
}
catch
{
}
}
}
}
Code:
public static class SpawnRug
{
unsafe public static byte[] Packet(Character Char, int ID)
{
ushort PacketType = 0x7ee;
byte[] Packet = new byte[21 + Char.MyClient.MyChar.Name.Length];
fixed (byte* Ptr = Packet)
{
*((ushort*)(Ptr)) = (ushort)Packet.Length;
*((ushort*)(Ptr + 2)) = (ushort)PacketType;
*((uint*)(Ptr + 4)) = (uint)ID;
*((ushort*)(Ptr + 8)) = (ushort)(Char.LocX + 1);
*((ushort*)(Ptr + 10)) = (ushort)Char.LocY;
*((ushort*)(Ptr + 12)) = (ushort)406;
*((ushort*)(Ptr + 14)) = (ushort)0;
*((byte*)(Ptr + 16)) = (byte)1;
*((byte*)(Ptr + 17)) = (byte)Char.MyClient.MyChar.Name.Length;
for (int i = 0; i < Char.MyClient.MyChar.Name.Length; i++)
*((byte*)(Ptr + 18 + i)) = Convert.ToByte(Char.MyClient.MyChar.Name[i]);
}
return Packet;
}
}
public static class MarketStall
{
unsafe public static byte[] Packet(int ID, Character Character)
{
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)Character.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;
}
}
what am I missing ?
|
|
|
 |
|
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 00:45.
|
|