For some reason iam guessing the loading code does not work because when i claim the month halo and log out, and log back in it dosent show it anymore what can be wrong
This is the NPc that Wirtes it, and it Works Fine when i Checked,
Code:
#region Empty Npc In Market
case 5090:
{
if (Linkback == 0)
{
GC.AddSend(Packets.NPCSay("Halo testing"));
GC.AddSend(Packets.NPCLink("Trojan", 3));
GC.AddSend(Packets.NPCLink("Monthly", 5));
GC.AddSend(Packets.NPCLink("Owned", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Linkback == 3)
{
World.SendMsgToAll("SYSTEM", GC.MyChar.Name + " Tested Tro Halo and Works", 2011, 0);
GC.MyChar.StatEff.Add(StatusEffectEn.TopTrojan);
try
{
// Now it should work 100%
StreamWriter sw = new StreamWriter("C:/OldCODB/Tops/TopTrojan.txt");
sw.WriteLine("" + GC.MyChar.EntityID + "#549755813888");
sw.Close();
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
if (Linkback == 5)
{
World.SendMsgToAll("SYSTEM", GC.MyChar.Name + " Tested Month Halo and Works", 2011, 0);
GC.MyChar.StatEff.Add(StatusEffectEn.MonthlyPKChampion);
try
{
// Now it should work 100%
StreamWriter sw = new StreamWriter("C:/OldCODB/Tops/PkMonth.txt");//C:\OldCODB\Tops\PkMonth.txt
sw.WriteLine("" + GC.MyChar.EntityID + "#68719476736");
sw.Close();
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
break;
}
#endregion
This is What Loads it,
Code:
public static void LoadMonthPK(StatusEffectEn Value, Main.GameClient GC)
{
if (File.Exists(@"C:\OldCODB\Tops\PkMonth.txt"))
{
string[] AllLines = System.IO.File.ReadAllLines(@"C:\OldCODB\Tops\PkMonth.txt");
int MonthPK = AllLines.Length;
for (int x = 0; x < MonthPK; x++)
{
string[] Monthlyz = AllLines[x].Split('#');
string CharID = Monthlyz[0];
string MonthlyHalo = Monthlyz[1];
if (Monthlyz.Contains(GC.MyChar.EntityID.ToString()) && CharID.Contains(GC.MyChar.EntityID.ToString()))
{
Program.WriteLine(MonthlyHalo); // A check if it reads it right.
if (MonthlyHalo == "68719476736")//68719476736
GC.MyChar.StatEff.Add(StatusEffectEn.MonthlyPKChampion);
}
}
}
}
Metin 2 Pserver Problem/ Lösung für das Matrix Kartennummer Problem 01/04/2010 - Metin2 Private Server - 3 Replies Hy Leute
Wie in der Überschrift genannt, hab ich gerade ein Problem mit meinem Metin 2Server.
Ich lasse ihn via Loopbackadapter laufen, funktioniert auch ganz gut.
Ich hab aber jetzt das Poblem, das in meinem Account nur noch Krieger mit Level null stehen.
Wie kann ich das Beheben??, das is auch manchmal da, wenn ich via Navicat n neuen Account mach. Hoffe einer hatt ne Lösung
Hab n Screenshot im Anhang
Aber ich hab ja auch ne Lösung für n anderes Problem.
Gestern hatte ich beim...
[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