|
You last visited: Today at 01:46
Advertisement
[Release]SaveHalos
Discussion on [Release]SaveHalos within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
01/19/2010, 07:34
|
#16
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by NoFatChicks
Thank you. The first two steps make some errors shows up:
-First (database.cs).. the void to put under> Features.QuizShow.AllQuestions.Clear();
basicaly the errors was about theese lines (all halos):
GC.MyChar.StatEff.Add(StatusEffectEn.TopDeputyLead er);
it says the "StatusEffectEn" is incorrect, something like it.
-Second (telport.cs).. the lines to put above> if (Game.World.KOBoard[0].Name == GC.MyChar.Name)
here error too.. says some words on lines are incorrect(in all lines)
I created the folders and replaced the guild director code for urs and as far i tested its saving the top GL and GL halos (sure, DL only one saving)
Note: the source source i use isnt urs so thats can be the reason of the errors i listed cuz i noted in teleport.cs for example.. above that line is alredy a code with lines similars to urs.
Anyway, Thanks for it. Helpful release.
|
Fixed:
Put this at the top top top of database.cs
using NewestCOServer.Game;
Tell me if that helps.
|
|
|
01/19/2010, 07:52
|
#17
|
elite*gold: 0
Join Date: Dec 2009
Posts: 62
Received Thanks: 0
|
Quote:
Originally Posted by Hepatitis C
Tell me if that helps.
|
grazie per l'aiuto.
Have a great day.
|
|
|
01/19/2010, 07:53
|
#18
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by NoFatChicks
grazie per l'aiuto.
Have a great day.
|
Alright.
Glad to help:]
|
|
|
01/19/2010, 11:10
|
#19
|
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
|
my friend Hepatiti C you forgot put i little think
Quote:
else if (Linkback == 2)
{
if (GC.MyChar.MyGuild == Features.GuildWars.LastWinner && (GC.MyChar.GuildRank == NewestCOServer.Features.GuildRank.GuildLeader))
{
GC.MyChar.StatEff.Add(StatusEffectEn.TopGuildLeade r);
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());
}
|
and great release ty
the only away to delete the halo is the delete in Top.txt rigth?
|
|
|
01/19/2010, 12:18
|
#20
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
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?
|
|
|
01/19/2010, 13:04
|
#21
|
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
|
i do it and no errors
but it will save automtic?
|
|
|
01/19/2010, 14:07
|
#22
|
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
|
now it gives no errors. will test after school.
|
|
|
01/19/2010, 15:11
|
#23
|
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
|
not have erros the programme
Hepatiti C i need talk to you
|
|
|
01/19/2010, 17:04
|
#24
|
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
|
er, I awarded myself topguildleader Halo then i disconnect myself and when I relogged it was gone.
|
|
|
01/19/2010, 17:14
|
#25
|
elite*gold: 0
Join Date: Jun 2009
Posts: 29
Received Thanks: 10
|
Quote:
Originally Posted by copz1337
er, I awarded myself topguildleader Halo then i disconnect myself and when I relogged it was gone.
|
well u did sumthing wrong then. it works perfect
|
|
|
01/19/2010, 17:16
|
#26
|
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
|
Quote:
Originally Posted by .RainBow.
well u did sumthing wrong then. it works perfect
|
i did exactly what it says on the guide. and i get no errors, so.
|
|
|
01/19/2010, 17:42
|
#27
|
elite*gold: 0
Join Date: Jun 2009
Posts: 29
Received Thanks: 10
|
well u have to add halo codes like that
Code:
GC.MyChar.StatEff.Add(StatusEffectEn.TopDeputyLeader);
try
{
StreamWriter sw = new StreamWriter("C:\\OldCODB/Tops/TopDeputy.txt");
sw.WriteLine("" + GC.MyChar.EntityID + "#34359738368");
sw.Close();
}
instead of this
Code:
GC.MyChar.StatEff.Add(StatusEffectEn.TopDeputyLeader);
|
|
|
01/19/2010, 18:18
|
#28
|
elite*gold: 0
Join Date: Dec 2009
Posts: 583
Received Thanks: 119
|
Wow i thot mike was just joking when he said you released this =P
Good good job
|
|
|
01/19/2010, 20:38
|
#29
|
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
|
Quote:
Originally Posted by .RainBow.
well u have to add halo codes like that
Code:
GC.MyChar.StatEff.Add(StatusEffectEn.TopDeputyLeader);
try
{
StreamWriter sw = new StreamWriter("C:\\OldCODB/Tops/TopDeputy.txt");
sw.WriteLine("" + GC.MyChar.EntityID + "#34359738368");
sw.Close();
}
instead of this
Code:
GC.MyChar.StatEff.Add(StatusEffectEn.TopDeputyLeader);
|
is that it?
|
|
|
01/19/2010, 22:10
|
#30
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by copz1337
er, I awarded myself topguildleader Halo then i disconnect myself and when I relogged it was gone.
|
Did you do it via the npc i showed.
Or did you do some little command for it?
|
|
|
All times are GMT +2. The time now is 01:46.
|
|