Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 20:58

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

Advertisement



-____- Composition Gui! prob,

Discussion on -____- Composition Gui! prob, within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
-____- Composition Gui! prob,

soo, when i click "Compose" it says iam to far away, Idk what could be the prob i sent my client X,Y Cords same for the NPC's and its fine, any1 have any idea ?
this is the general data iam sending, this is for Impulse's Source, Ftw
Code:
 case 1:
                                {
                                    INpc npc = null;
                                    if (client.Map.Npcs.TryGetValue(client.ActiveNpc, out npc))
                                    {
                                        GeneralData data = new GeneralData(true);
                                        data.ID = 0x7e;
                                        data.UID = client.Entity.UID;
                                        data.TimeStamp = Time32.Now;
                                        data.dwParam = 1;
                                        data.wParam3 = npc.X;
                                        data.wParam4 = npc.Y;
                                        client.Send(data);
                                    }
                                    break;
                                }
-Shunsui- is offline  
Old 10/14/2010, 23:10   #2
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Arcо is offline  
Old 10/15/2010, 00:23   #3
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
tried everything, and lol. did not know i had that thread
-Shunsui- is offline  
Old 10/15/2010, 00:58   #4
 
elite*gold: 0
Join Date: Mar 2010
Posts: 91
Received Thanks: 5
i have same problem but mine is 5165
biohazardous is offline  
Old 10/15/2010, 11:37   #5
 
elite*gold: 0
Join Date: Sep 2008
Posts: 178
Received Thanks: 62
Have you tried to add:

data.wParam1 = Client.X;
data.wParam2 = Client.Y;
.Kob is offline  
Old 10/15/2010, 16:04   #6
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Quote:
Originally Posted by .Kob View Post
Have you tried to add:

data.wParam1 = Client.X;
data.wParam2 = Client.Y;
yes.. i tried every single thing before i posted here..
-Shunsui- is offline  
Old 10/15/2010, 17:06   #7
 
elite*gold: 0
Join Date: Feb 2009
Posts: 259
Received Thanks: 159
Quote:
Originally Posted by -Shunsui- View Post
soo, when i click "Compose" it says iam to far away, Idk what could be the prob i sent my client X,Y Cords same for the NPC's and its fine, any1 have any idea ?
this is the general data iam sending, this is for Impulse's Source, Ftw
Code:
 case 1:
                                {
                                    INpc npc = null;
                                    if (client.Map.Npcs.TryGetValue(client.ActiveNpc, out npc))
                                    {
                                        GeneralData data = new GeneralData(true);
                                        data.ID = 0x7e;
                                        data.UID = client.Entity.UID;
                                        data.TimeStamp = Time32.Now;
                                        data.dwParam = 1;
                                        data.wParam3 = npc.X;
                                        data.wParam4 = npc.Y;
                                        client.Send(data);
                                    }
                                    break;
                                }

try this

Code:
                                        byte[]   PacketData = new byte[8 + 28];
                                        PacketData[0] = (byte)(PacketData.Length - 8 & 0xff);
                                        PacketData[1] = (byte)((PacketData.Length - 8 >> 8) & 0xff);
                                        
                                        PacketData[2] = (byte)(10010 & 0xff);
                                        PacketData[3] = (byte)((10010 >> 8) & 0xff);

                                        PacketData[4] = (byte)(client.Entity.UID & 0xff);
                                        PacketData[5] = (byte)((client.Entity.UID >> 8) & 0xff);
                                        PacketData[6] = (byte)((client.Entity.UID >> 16) & 0xff);
                                        PacketData[7] = (byte)((client.Entity.UID >> 24) & 0xff);

                                        PacketData[8] = (byte)(1 & 0xff);
                                        PacketData[9] = (byte)((1 >> 8) & 0xff);
                                        PacketData[10] = (byte)((1 >> 16) & 0xff);
                                        PacketData[11] = (byte)((1 >> 24) & 0xff);

                                        PacketData[12] = (byte)(System.Time32.Now.GetHashCode() & 0xff);
                                        PacketData[13] = (byte)((System.Time32.Now.GetHashCode() >> 8) & 0xff);
                                        PacketData[14] = (byte)((System.Time32.Now.GetHashCode() >> 16) & 0xff);
                                        PacketData[15] = (byte)((System.Time32.Now.GetHashCode() >> 24) & 0xff);

                                        PacketData[16] = (byte)(0x7e & 0xff);
                                        PacketData[17] = (byte)((0x7e >> 8) & 0xff);

                                        PacketData[20] = (byte)(client.Entity.X & 0xff);
                                        PacketData[21] = (byte)((client.Entity.X >> 8) & 0xff);

                                        PacketData[22] = (byte)(client.Entity.Y & 0xff);
                                        PacketData[23] = (byte)((client.Entity.Y >> 8) & 0xff);

                                        string s = "TQServer";
                                        ASCIIEncoding encoding = new ASCIIEncoding();
                                        encoding.GetBytes(s).CopyTo(PacketData, (int)(PacketData.Length - 8));
                                        
                                       client.Send(PacketData);
teroareboss1 is offline  
Thanks
1 User
Old 10/16/2010, 07:03   #8
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Nope nothing, i dont think is anything wrong with the Offsets.
-Shunsui- is offline  
Old 10/28/2010, 21:58   #9
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 773
Received Thanks: 441
isn't it a client problem....

cuz i tryied using it as general data and dialog show.... and the both got same error..

"Failed to compose. You are standing too far away."

this is defined at strRes at client...
12tails is offline  
Old 10/29/2010, 10:22   #10


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Quote:
Originally Posted by 12tails View Post
isn't it a client problem....

cuz i tryied using it as general data and dialog show.... and the both got same error..

"Failed to compose. You are standing too far away."

this is defined at strRes at client...
strRes is just a list of strings the client uses, they can be triggered by both the client and server.

Seems pretty obvious to me that its a packet issue, the client doesnt decide if your too far away (if it did you wouldnt be having this problem).
Korvacs is offline  
Old 10/29/2010, 12:49   #11
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
if Kernel.GetDistence(x, y, npc.x, npc.y < 25)
{
wParam = ?
}
dtc..
_DreadNought_ is offline  
Old 11/27/2010, 17:23   #12
 
elite*gold: 0
Join Date: Feb 2009
Posts: 259
Received Thanks: 159
i don't know problem, but

with npc id: 35016
is working
teroareboss1 is offline  
Old 11/27/2010, 22:16   #13
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,882
Try using a skill at the place you're standing in market before you try to composing (and let us know if your client says it's too far to cat the spell). I think something like spiritual heal would work in market, if not mounting to a steed works for sure.

Code:
'#include ...\define_data.vb
' By: Hybrid
' Npc: 35016
' Name: WuxingOven

Imports System
Imports ConquerScriptLinker

Partial Public Class NpcEngine
    Public Shared Sub WuxingOven()
        Dim dlg As String() = Nothing

        Select Case OptionID
            Case 0
                ReDim dlg(2)
                dlg(0) = "TEXT Your equipment can be very important in combat."
                dlg(1) = "OPTION1 Upgrade Enchant"
                dlg(2) = "OPTION2 Upgrade Purity"
            Case 1
                Player.SendData(DataID.Switch, DataSwitchArg.EnchantWindow, 0, 0)
            Case 2
                Player.SendData(DataID.GUIDialog, DataGUIDialog.Composition, 0, 0)
        End Select

        If Not dlg Is Nothing Then
            Dialog(dlg)
        End If
    End Sub
End Class
Code:
Public Const GUIDialog As UInt16 = 126
Code:
Public Const Composition As UInt32 = 1
InfamousNoone is offline  
Thanks
1 User
Old 11/28/2010, 14:46   #14
 
|NeoX's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 237
Received Thanks: 99
Thumbs up

Quote:
Originally Posted by InfamousNoone View Post
.
I love how you post solutions

You post them in VB even if you got it done in C# just so ppl have to put a bit more effort

|NeoX is offline  
Old 11/28/2010, 15:22   #15
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 773
Received Thanks: 441
i'm using this code but not working yet... and i tested the vip remote compose and it worked normal....

something is wrong while sending the packet : /

Code:
                                    UInt16 GUIDialog = 126;
                                    UInt32 Composition = 1;
                                    GeneralData g = new GeneralData(true);
                                    g.UID = client.Entity.UID;
                                    g.ID = GUIDialog;
                                    g.dwParam = Composition;
                                    client.Send(g);
thanks in advance
12tails is offline  
Reply


Similar Threads Similar Threads
____ [S]uche exotischen crossfire account ____
09/10/2010 - CrossFire Trading - 9 Replies
level & kd sind weniger relevant! ich hab eigentlich schon ein guten acc, hätte aber gerne noch ein paar waffen besonders gerne hätte ich m4 gold vip m4 christmas (vielleicht glock?) awm christmas oder red dragon de scope
[rel] composition fix for 5165
12/09/2009 - CO2 PServer Guides & Releases - 7 Replies
#request close/delete moved to my multi-rel thread.
hilfe ---____---
12/07/2009 - Off Topic - 2 Replies
mir gehn die kalender sprüche aus und wollt euch ma fragen was ihr so drauf habt vll isses sogar gut genug für mich :D
^____^
01/09/2009 - Flyff - 2 Replies
KLiCk Me 4 KeKsE!
Composition Calculator
06/03/2007 - CO2 Exploits, Hacks & Tools - 5 Replies
A small contribution to the community. I know there is at least one out there. This is my version. Thanks to hieitk for the AHK guide and TQ for the downtime today so I had time to almost finish it. 1.2 39 downloads 1.3 53 downloads. Fixed minor bug that crossed over tabs. Added Gem composition calculator. 1.4 Added 2rb quest item calculator. to follow is a "clear" button for each tab.



All times are GMT +2. The time now is 20:58.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.