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