wow, to think i was gonna attempt this. great release :)
Quote:
#region GWArenaNPC
case 380:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Do you want enter the guild arena?"));
GC.AddSend(Packets.NPCLink("Yes.", 1));
GC.AddSend(Packets.NPCLink("I am the winning Guild Leader!", 2));
GC.AddSend(Packets.NPCLink("But I'm a Deputy Leader and I want the Deputy Leader Halo.", 3));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 1)
{
GC.MyChar.Teleport(1038, 350, 350);
}
else if (Control == 2)
{
if (GC.MyChar.MyGuild == Features.GuildWars.LastWinner && (GC.MyChar.GuildRank == NewestCOServer.Features.GuildRank.GuildLeader))
{
GC.MyChar.CPs += 4500;
World.SendMsgToAll("SYSTEM", GC.MyChar.Name + " has claimed 4500 CPs and the TopGuildLeader Halo for winning GuildWar!", 2011, 0);
try
{
StreamWriter sw = new StreamWriter("C:\\OldCODB/Tops/TopLeader.txt");
sw.WriteLine("" + GC.MyChar.EntityID + "#17179869184");
sw.Close();
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
else
{
GC.AddSend(Packets.NPCSay("You already claimed your 4500 cps! Get out of here!"));
GC.AddSend(Packets.NPCLink("Sorry", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else
{
GC.AddSend(Packets.NPCSay("You are not in the Top Guild!"));
GC.AddSend(Packets.NPCLink("Oh sorry", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 3)
{
if (GC.MyChar.MyGuild == Features.GuildWars.LastWinner && (GC.MyChar.GuildRank == NewestCOServer.Features.GuildRank.DeputyManager))
{
World.SendMsgToAll("SYSTEM", GC.MyChar.Name + " has claimed the TopDeputyLeader Halo!", 2011, 0);
GC.MyChar.StatEff.Add(StatusEffectEn.TopDeputyLead er);
try
{
// Now it should work 100%
StreamWriter sw = new StreamWriter("C:\\OldCODB/Tops/TopDeputy.txt");
sw.WriteLine("" + GC.MyChar.EntityID + "#34359738368");
sw.Close();
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
else
{
GC.AddSend(Packets.NPCSay("You are not in the Top Guild!"));
GC.AddSend(Packets.NPCLink("Oh sorry", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
#endregion
I couldn't get that to work.Quote:
Hey, me again. Can you give me a tip about how to make the npc give the Top DL just for a certain number of DL's (like... 2) ? Or its a thing to change elsewhere?
Thanks
Quote:
Thats overkill and really inefficient, 2 fields could be used to store everything you need, how do you determine which one is being used out of all of the possible halos available to the char?
Im going to go with no. The reason im going to go with no is for the same reason that emme was massively disliked throughout epvpers.Quote:
I couldn't get that to work.
Not with the system I used.
Its better than the other that was released isn't it?
sw.WriteLine("" + GC.MyChar.EntityID + "#17179869184");
C.Loaded = true;
if (C.MyGuild == Features.GuildWars.LastWinner && (C.GuildRank == NewestCOServer.Features.GuildRank.GuildLeader))
C.StatEff.Add(StatusEffectEn.TopGuildLeader);
if (C.MyGuild == Features.GuildWars.LastWinner && (C.GuildRank == NewestCOServer.Features.GuildRank.DeputyManager))
C.StatEff.Add(StatusEffectEn.TopDeputyLeader);