Register for your free account! | Forgot your password?

You last visited: Today at 04:33

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

Advertisement



help with guild part

Discussion on help with guild part within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
renetjuuh's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 97
Received Thanks: 9
help with guild part

hello guys ,

i find out that in patch 5165 the guild part that you cant make an guild enemies or allies. can some one tell me how i can fix that.
renetjuuh is offline  
Old 02/01/2010, 22:43   #2
 
coreymills's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 555
Received Thanks: 99
its nothing to be fixed u have to add the enemies and allies into the npc
coreymills is offline  
Old 02/02/2010, 19:37   #3
 
renetjuuh's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 97
Received Thanks: 9
i know that why im asking same qwuestion that you got
renetjuuh is offline  
Thanks
1 User
Old 02/03/2010, 02:57   #4
 
WHITELIONX's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 532
Received Thanks: 66
Sadly nobody has a starting point on which to try to figure this out or they do but they are keeping it to themselves. I don`t have allies/enemies either because simply put I would have no idea on how to start coding that NPC.
WHITELIONX is offline  
Old 02/03/2010, 18:33   #5
 
renetjuuh's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 97
Received Thanks: 9
yep i got that to, that why i asking for it but if the wont tell us its oke then
renetjuuh is offline  
Old 02/03/2010, 20:53   #6
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Quote:
Originally Posted by WHITELIONX View Post
Sadly nobody has a starting point on which to try to figure this out or they do but they are keeping it to themselves. I don`t have allies/enemies either because simply put I would have no idea on how to start coding that NPC.
Why not just use 5095 CoEmu as a reference? I can check real quick but I'm fairly sure allies/enemies are fully working in some of the released versions.
pro4never is offline  
Old 02/03/2010, 23:38   #7
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
I think this is enough to help you out;
Code:
          public static COPacket GuildData(int Type, int Data)
          {
            byte[] Packet = new byte[8 + 12]
            P.WriteInt16((ushort)(Packet.Length - 8));
            P.WriteInt16((ushort)1107); 
            P.WriteInt32(Type);
            P.WriteInt32(Data);
            return P;
          }
//uint16() 12 (Length) Index : 0
//uint16() 1107 (Type) Index : 2
//uint32() Type Index : 4
//uint32() Data Index : 8
Example of using the packet;

Code:
GuildData(7, GuildID); // Allied
GuildData(9, GuildID); // Enemied.
List;
Quote:
Join = 1,
Invite = 2,
Quit = 3,
Info = 6,
Allied = 7,
Neutral = 8,
Enemied = 9,
Donate = 11,
Status = 12,
Leave = 19
ImmuneOne is offline  
Thanks
1 User
Old 02/04/2010, 01:19   #8
 
elite*gold: 0
Join Date: Dec 2009
Posts: 36
Received Thanks: 1
Quote:
public static COPacket GuildData(int Type, int Data)
{
byte[] Packet = new byte[8 + 12]
COPacket P = new COPacket(Packet);
P.WriteInt16((ushort)(Packet.Length - 8));
P.WriteInt16((ushort)1107);
P.WriteInt32(Type);
P.WriteInt32(Data);
return P;
}
//uint16() 12 (Length) Index : 0
//uint16() 1107 (Type) Index : 2
//uint32() Type Index : 4
//uint32() Data Index : 8
Lack red.

But I have problems to add, if anyone can help clarify how to do it, it is helpful
: D

Thanks
|_Beetle_| is offline  
Old 02/04/2010, 07:10   #9
 
renetjuuh's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 97
Received Thanks: 9
@Pro Never:its true i saw yesterday coemu and its way more better
you can see everything realy qwickly,
renetjuuh is offline  
Old 02/04/2010, 10:10   #10
 
WHITELIONX's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 532
Received Thanks: 66
Yes I have CoEmu source file also but to be honest there are still more important things to concentrate on than just the few NPCs with missing parts lol. I will eventually get around to having a good look at it but for now other things come first lol

Besides after today I will find out if there are any courses at college or at least I am hoping so. Then I will have a better understanding of C# or at least start to have a better understanding

Ok this is what people are having difficulty with I have allied and enemied already in the source somewhat because of taking it from something else with no errors, just that to add it to the NPC itself well I am trying but error after error. It`s like going to France and not speaking a word of French to a Frenchman and he does not speak a word of English lmfao. Anyway here is what I was attempting and this is from the deputize part and I TRIED to convert it or at least start to try to convert it but failed
Code:
else if (Control == 7)
                                    {
                                        if (GC.MyChar.MyGuild != null && GC.MyChar.GuildRank == NewestCOServer.Features.GuildRank.GuildLeader)
                                        {
                                            GC.AddSend(Packets.NPCSay("Insert the name of the enemy guild."));
                                            GC.AddSend(Packets.NPCLink2("Here", 8));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You are not a guild leader."));
                                            GC.AddSend(Packets.NPCLink("Silly me.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    else if (Control == 8)
                                    {
                                        string GuildName = ReadString(Data);
                                        Features.Guild M = GC.MyChar.Guilds.Guild(GuildName);
                                        if (M != null && M.Enemies == Guilds && ((Hashtable)GC.MyChar.MyGuild.Members[(byte)90]).Count < 5)
                                        {
                                            M.Enemies = NewestCOServer.Features.Guilds.ValidName;
                                            ((Hashtable)GC.MyChar.MyGuild.Guilds[(byte)50]).Remove(M.GuildID);
                                            ((Hashtable)GC.MyChar.MyGuild.Guilds[(byte)90]).Add(M.GuildID, M);
                                            Game.Character C = M.Info;
                                            if (C != null)
                                            {
                                                C.GuildRank = NewestCOServer.Features.GuildRank.DeputyManager;
                                                Game.World.Spawn(C, false);
                                                C.MyClient.AddSend(Packets.GuildInfo(GC.MyChar.MyGuild, GC.MyChar));
                                            }
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("The player is not in your guild or is not a normal member. By the way, the max number deputy leaders there can be is 5."));
                                            GC.AddSend(Packets.NPCLink("Oh, sorry.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
Yes I have CoEmu V2 5095 and no there isn`t an NPC included for this code in fact I didn`t even see a guild NPC period? The reason I put this up is because I wanted to have a quick look at a previous attempt I had of making this NPC but meh I must have deleted it albeit parts were still in // because of the failed attempts lmao
WHITELIONX is offline  
Old 02/08/2010, 16:52   #11
 
Huseby's Avatar
 
elite*gold: 106
Join Date: Oct 2006
Posts: 6,047
Received Thanks: 1,164
Closed by OPs wish.
Huseby is offline  
Closed Thread


Similar Threads Similar Threads
Guild master banned, guild storage access?
09/05/2009 - Archlord - 11 Replies
Guild leader was banned off the game and there are some stuff in the guild storage. Is there anyway to take them?



All times are GMT +1. The time now is 04:33.


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.