Project Brasil Scorpions Produções

se Registre , para ver o mundo dos games , aprenda a criá-los e muito mais .. so batas se cadastra ate com Facebook ...

Forum para Desenvolvedores de Servidores para Conquer e Demais Games Onlines


Top Guild War Npc 5375

Compartilhe
avatar
Scorpions-games
Admin
Admin

Mensagens : 152
Data de inscrição : 02/07/2013
Idade : 21
Localização : salvador

default Top Guild War Npc 5375

Mensagem por Scorpions-games em Seg Jul 15, 2013 5:56 pm

Galera aquii está o npc de pegar o Top Deputy e o Top Guild Leader da GW , Abra a source na pasta "NpcDialogs" abrão o arquivo : "Dialogs.cs" e colem o seguinte código:
Código:
#region TOP GUILD WAR
case 217256:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text(" our guild has won the guild war and i need the top ?can i els take my reward ?");
dialog.Option("Yes.i need TopGuildLeader", 1);
dialog.Option("Yes.i need TopDeputyLeader", 2);
dialog.Option("No.", 255);
dialog.Send();
break;


}
case 1:
{

if (!GuildWar.IsWar)
{

if (client.Guild != null && client.AsMember.Rank == Conquer_Online_Server.Game.Enums.GuildMemberRank.GuildLeader)
{
for (int c = 0; c <= 10; c++)
{
if (client.Inventory.Contains((uint)(729969 + c), 1))
if (!client.AddSpell(LearnableSpell(0x400)))

DateTime.Now.AddDays(7);

client.Entity.AddFlag(Update.Flags.TopGuildLeader);
Conquer_Online_Server.Network.PacketHandler.WorldMessage("Congratulations! " + client.Entity.Name + " has won the Guildwar and the GL recive the top and 100k cps!");
client.Entity.AddFlag(Update.Flags.TopGuildLeader);
dialog.Send();


return;

}
dialog.Text("You cannot claim experience if you don't have a rune.");
dialog.Option("Ahh.", 255);
dialog.Send();


break;
}
}
else
{
dialog.Text("You don't meet the requierments.");
dialog.Option("Ahh.", 255);
dialog.Send();
}
break;






}
case 2:
{

if (!GuildWar.IsWar)
{
{

if (client.Guild != null && client.AsMember.Rank == Conquer_Online_Server.Game.Enums.GuildMemberRank.DeputyLeader)
{
for (int c = 0; c <= 10; c++)
{
if (client.Inventory.Contains((uint)(729969 + c), 1))
if (!client.AddSpell(LearnableSpell(0x800)))

DateTime.Now.AddDays(7);

client.Entity.AddFlag(Update.Flags.TopDeputyLeader);
Conquer_Online_Server.Network.PacketHandler.WorldMessage("Congratulations! " + client.Entity.Name + " guild has won the guild war and the DL has recive the top!");
client.Entity.AddFlag(Update.Flags.TopDeputyLeader);

}





return;

}
dialog.Text("You cannot claim experience if you don't have a rune.");
dialog.Option("Ahh.", 255);
dialog.Send();


break;
}

}
break;
}
#endregion

    Data/hora atual: Seg Set 25, 2017 3:06 am