Lol helps if I am able to work to get money in the first place :P Besides the fact moneys value to me is burning on the fire to keep warm rofl. Grow weed, grow food, filter water and free life ;)
/* Use item packet, WIKI! http://wiki.fusionorigins.com/index.php?title=CO_Packet_ItemUsage#Version_5100
* 0 ushort 28
2 ushort 1009
4 uint Item_ID
8 uint Item_Location
12 uint Item_UsageType
16 uint Timer
* */
public static void UseItem(Client C, uint ID)
{
try
{
byte[] Pack = new byte[28];
WriteUInt16(28, 0, Pack);
WriteUInt16(1009, 2, Pack);
WriteUInt32(ID, 4, Pack);
WriteUInt32(1, 8, Pack);
WriteUInt32(4, 12, Pack);
WriteUInt32(GetStamp(C), 16, Pack);
WriteString("TQClient", 80, Pack);
C.ToServerQueue.Enqueue(Pack);
}
catch { }
}
Happy birthday hope it was a good one :DQuote:
Today is my Bday
well...i dont want it done for me, cuz i like doin stuff myself (if i can), but really just tryin to figure out the basic hunt/movement stuff that's been goin on. With my ADD, it's hard to keep up...lul... My strong point is hands-on learning, but uh..yeah prices lolQuote:
Depends what you wanted added/explained.
Inventory location is 0, not 1.Quote:
Pro4Never, can you help me with something?
Am i doing this right?Code:/* Use item packet, WIKI! http://wiki.fusionorigins.com/index.php?title=CO_Packet_ItemUsage#Version_5100 * 0 ushort 28 2 ushort 1009 4 uint Item_ID 8 uint Item_Location 12 uint Item_UsageType 16 uint Timer * */ public static void UseItem(Client C, uint ID) { try { byte[] Pack = new byte[28]; WriteUInt16(28, 0, Pack); WriteUInt16(1009, 2, Pack); WriteUInt32(ID, 4, Pack); WriteUInt32(1, 8, Pack); WriteUInt32(4, 12, Pack); WriteUInt32(GetStamp(C), 16, Pack); WriteString("TQClient", 80, Pack); C.ToServerQueue.Enqueue(Pack); } catch { } }
Nope it changed now it'sQuote:
Pro4Never, can you help me with something?
Am i doing this right?Code:/* Use item packet, WIKI! http://wiki.fusionorigins.com/index.php?title=CO_Packet_ItemUsage#Version_5100 * 0 ushort 28 2 ushort 1009 4 uint Item_ID 8 uint Item_Location 12 uint Item_UsageType 16 uint Timer * */ public static void UseItem(Client C, uint ID) { try { byte[] Pack = new byte[28]; WriteUInt16(28, 0, Pack); WriteUInt16(1009, 2, Pack); WriteUInt32(ID, 4, Pack); WriteUInt32(1, 8, Pack); WriteUInt32(4, 12, Pack); WriteUInt32(GetStamp(C), 16, Pack); WriteString("TQClient", 80, Pack); C.ToServerQueue.Enqueue(Pack); } catch { } }
public static void UseItem(Client C, uint ID)
{
try
{
byte[] Pack = new byte[88];
WriteUInt16(80, 0, Pack);
WriteUInt16(1009, 2, Pack);
WriteUInt32(ID, 4, Pack);
WriteUInt32(0, 8, Pack);
WriteUInt32(4, 12, Pack);
WriteUInt32(GetStamp(C), 16, Pack);
for(int i = 0; i < 60; i++)
Pack[20 + i] = 0;
WriteString("TQClient", 80, Pack);
C.ToServerQueue.Enqueue(Pack);
}
catch { }
}
In my packet system there is no reason to skip or initialize bytes.Quote:
Nope it changed now it's
UInt16 80
UInt16 1009
UInt32 ID
UInt32 Location
UInt32 UsageType
UInt32 TimeStamp
byte[60] NullBytes
so it should be
Code:public static void UseItem(Client C, uint ID) { try { byte[] Pack = new byte[88]; WriteUInt16(80, 0, Pack); WriteUInt16(1009, 2, Pack); WriteUInt32(ID, 4, Pack); WriteUInt32(0, 8, Pack); WriteUInt32(4, 12, Pack); WriteUInt32(GetStamp(C), 16, Pack); for(int i = 0; i < 60; i++) Pack[20 + i] = 0; WriteString("TQClient", 80, Pack); C.ToServerQueue.Enqueue(Pack); } catch { } }
Oh, never looked at the source yet so I had no idea but at least he's got the basic idea ^^Quote:
In my packet system there is no reason to skip or initialize bytes.
You only need to write bytes where they are non 0 filled.
You also don't need to write the seal, it's done as the packet is removed from queue and sent.
Thanx .. it was nice .Quote:
Happy birthday hope it was a good one :D
Quote:
After the merge, the newly combined server will be awarded with 7 days of Double Exp!
That`s the problem. It needs to be English/American client.Quote:
(BR version of CO)
Hmm tried installing an english version of conquer? lol wonder if that would work:bandit:Quote:
Hi, my name is Leandro, im fairly new at C#. . . and im having some trouble. .
im tryin to set the proxy to Conquest Online (BR version of CO) . .
i did all the steps.. like changing the ips, the DB thing n stuff. .
but. . when i try to connect. . the CO client closes without a reason
and i get this message:
(Image link deleted by Quoter for size ;) )
the auth ip of my server is 187.17.71.196:9958 . .
i dont know if im having this problem cuz Conquest's version is different of CO's version. . so the encrypts or packets things r wrong . . .
maybe u guys give me some help. . cuz i already tried everything i could. . and keep getting this error
Thanks in advance!