|
You last visited: Today at 06:44
Advertisement
Problem.
Discussion on Problem. within the CO2 Private Server forum part of the Conquer Online 2 category.
02/20/2010, 05:28
|
#1
|
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
|
Problem.
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);
}
}
}
}
|
|
|
02/20/2010, 05:35
|
#2
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
open up that file and tell me whats in it.
|
|
|
02/20/2010, 05:36
|
#3
|
elite*gold: 0
Join Date: Apr 2008
Posts: 275
Received Thanks: 43
|
I think arco didnt add the saving in top month,, you should work in your own, i did add a top month in my server in own. and make it perfectly.
|
|
|
02/20/2010, 05:37
|
#4
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by salem rey
I think arco didnt add the saving in top month,, you should work in your own, i did add a top month in my server in own. and make it perfectly.
|
Come to think of it you are right, I didn't.
@Shun
Check teleport.cs and tell me whats in there.
Paste it all here.
|
|
|
02/20/2010, 05:58
|
#5
|
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
|
Quote:
Originally Posted by .Arco
Come to think of it you are right, I didn't.
@Shun
Check teleport.cs and tell me whats in there.
Paste it all here.
|
xD, Thanks Alot Fixed it works PERFECTT
|
|
|
02/20/2010, 05:58
|
#6
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by -Shunsui-
xD, Thanks Alot Fixed it works PERFECTT
|
So can we request close?
|
|
|
02/20/2010, 06:21
|
#7
|
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
|
Yeah.
|
|
|
Similar Threads
|
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
|
All times are GMT +2. The time now is 06:44.
|
|