i think my problem in red code when i try to log in while debugging my source
i see there is problem with this .
this problem make account freez in login
problem number 2
npc of guild war prize
Code:
#region GuildArena
case 380:
{
if (Game.World.Gw == false)
{
if (option == 0)
{
OptionText("Do you wish to enter the guild area?", GC);
OptionLink("Yes.", 1, GC);
OptionLink("Your guild won the guild war??", 2, GC);
OptionLink("Just passing by.", 255, GC);
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
}
else if (option == 2)
{
OptionText("Your guild Won the GuildWar?if so,you are rewarded with CPs and the special Aura.", GC);
OptionLink("Yes.", 3, GC);
OptionLink("Ah, sorry my guild lost.", 255, GC);
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
}
else if (option == 3)
{
if (Game.World.Gw == true)
{
if (GC.MyChar.MyGuild == Features.GuildWars.LastWinner)
{
if (GC.MyChar.GuildRank == NewestCOServer.Features.GuildRank.GuildLeader)
{
if (GC.MyChar.TopGuildLeader < 1)
{
GC.MyChar.CPs += 60000;
GC.MyChar.TopGuildLeader = 1;
GC.MyChar.StatEff.Add(NewestCOServer.Game.StatusEffectEn.TopGuildLeader);
OptionText("Cogration!You have Top GuilLider and 60.000Cps ,thx for you participation", GC);
OptionLink("Ah..Ok i see.", 255, GC);
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
GC.MyChar.AddItem(723467);
}
else
{
OptionText("Sorry, but i already gave you the reward!", GC);
OptionLink("OK thx.", 255, GC);
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
}
}
else if (GC.MyChar.GuildRank == NewestCOServer.Features.GuildRank.DeputyManager)
{
if (GC.MyChar.TopDeputyLeader < 1)
{
GC.MyChar.TopDeputyLeader = 1;
GC.MyChar.StatEff.Add(NewestCOServer.Game.StatusEffectEn.TopDeputyLeader);
OptionText("Cogration!You have Top DeuputiLider ,thx for you participation", GC);
OptionLink("Ah..Ok i see.", 255, GC);
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
}
else
{
OptionText("Sorry, but i already gave you the reward!", GC);
OptionLink("OK thx.", 255, GC);
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
}
}
else
{
OptionText("Sorry, but i already gave you the reward!", GC);
OptionLink("Ah..Ok i see.", 255, GC);
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
}
}
else
{
OptionText("Sorry,you are not a winner!", GC);
OptionLink("Ah..Ok i see.", 255, GC);
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
}
}
else
{
OptionText("The guildwar is already on", GC);
OptionLink("Ah..Ok i see.", 255, GC);
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
}
}
else if (option == 1)
GC.MyChar.Teleport(1038, 350, 350);
}
else
{
if (option == 0)
{
OptionText("Do you wish to enter the guild arena?", GC);
OptionLink("Yes.", 1, GC);
OptionLink("Your Guild Won Guild War?", 2, GC);
OptionLink("Just passing by.", 255, GC);
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
}
else if (option == 2)
{
OptionText("Your guild Won the GuildWar?here are your rewards then", GC);
OptionLink("Yes we won.", 3, GC);
OptionLink("Ah, sorry ,i lossed.", 255, GC);
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
}
else if (option == 3)
{
if (Game.World.Gw == false)
{
if (GC.MyChar.MyGuild == Features.GuildWars.LastWinner)
{
if (GC.MyChar.GuildRank == NewestCOServer.Features.GuildRank.GuildLeader)
{
if (GC.MyChar.TopGuildLeader < 1)
{
GC.MyChar.AddItem(723467);
GC.MyChar.CPs += 60000;
GC.MyChar.TopGuildLeader = 1;
GC.MyChar.StatEff.Add(NewestCOServer.Game.StatusEffectEn.TopGuildLeader);
OptionText("Cogration!You have Top GuilLider and 60.000Cps ,thx for you participation", GC);
OptionLink("Ah..Ok i see.", 255, GC);
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
}
else
{
OptionText("Sorry, you got them", GC);
OptionLink("OK thx.", 255, GC);
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
}
}
else if (GC.MyChar.GuildRank == NewestCOServer.Features.GuildRank.DeputyManager)
{
if (GC.MyChar.TopDeputyLeader < 1)
{
GC.MyChar.TopDeputyLeader = 1;
GC.MyChar.StatEff.Add(NewestCOServer.Game.StatusEffectEn.TopDeputyLeader);
OptionText("Cogration!You have Top DeuputiLider ,thx for you participation", GC);
OptionLink("Ah..Ok i see.", 255, GC);
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
}
else
{
OptionText("You got them i think", GC);
OptionLink("OK thx.", 255, GC);
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
}
}
else
{
OptionText("i think you got them already", GC);
OptionLink("Ah..Ok i see.", 255, GC);
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
}
}
else
{
OptionText("Sorry,your not a winner", GC);
OptionLink("Ah..Ok i see.", 255, GC);
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
}
}
else
{
OptionText("Guildwar is on", GC);
OptionLink("Ah..Ok i see.", 255, GC);
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
}
}
else if (option == 1)
{
OptionText("Guildwar on,your ready to be warped?", GC);
OptionLink("Yes.", 6, GC);
OptionLink("No ty", 255, GC);
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
}
else if (option == 6)
{
Random R = new Random(); // New Random
int Nr = R.Next(1, 10); // "Randomally" Picks a number 1-10
if (Nr == 1) //Random Spot 1
{
GC.MyChar.Teleport(1038, 351, 341);
}
if (Nr == 2) //Random Spot 2
{
GC.MyChar.Teleport(1038, 335, 345);
}
if (Nr == 3) //Random Spot 3
{
GC.MyChar.Teleport(1038, 309, 369);
}
if (Nr == 4) //Random Spot 4
{
GC.MyChar.Teleport(1038, 283, 340);
}
if (Nr == 5) //Random Spot 5
{
GC.MyChar.Teleport(1038, 310, 327);
}
if (Nr == 6) //Random Spot 6
{
GC.MyChar.Teleport(1038, 318, 297);
}
if (Nr == 7) //Random Spot 7
{
GC.MyChar.Teleport(1038, 347, 309);
}
if (Nr == 8) //Random Spot 8
{
GC.MyChar.Teleport(1038, 337, 320);
}
if (Nr == 9) //Random Spot 9
{
GC.MyChar.Teleport(1038, 309, 293);
}
if (Nr == 10) //Random Spot 10
{
GC.MyChar.Teleport(1038, 371, 300);
}
}
}
break;
}
#endregion
when i win the war this npc give me prize as possible as i can
my npc should give guild war winner cps just one time but this give winner cps every time winner talk to it so npc can give me my cps 10000000000000 times untill war start agian
[Hilfe]Ungelöstes Server Erstell Problem, ausführliche Problem Schilderung 09/15/2011 - Flyff Private Server - 8 Replies Hey Com!
Ich hoffe, dass dieser Thread nicht als Spamthread angesehen wird, da ich ja gestern schon einen zu diesem Thema eröffnet habe.
Sorry wenn ich euch mit dem Thema nerve, aber ich sitze nun schon 4 Tage über dem Problem, und finde einfach keine Lösung.
Nun werde ich hier allerdings eine ausführlichere Beschreibung des Problems geben.
Mein Problem ist, dass ich den Windows Mssql Server 2008/2005 aus Sedrika's TuT nicht installieren kann, da sobald ich ihn immer installiere...
[Problem] Problem with server starting - cannot find quest index for PaxHeader 12/22/2009 - Metin2 Private Server - 1 Replies Hello!
I have this same problem as here when i'm starting my server:
http://www.elitepvpers.com/forum/metin2-pserver-di scussions-questions/307143-metin2-serverfiles-ques t-index-fehler.html
But I didn't know the answer.. how to repair this?
Greetings