[Release]SaveHalos

01/19/2010 07:34 Arcо#16
Quote:
Originally Posted by NoFatChicks View Post
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 NoFatChicks#17
Quote:
Originally Posted by Hepatitis C View Post

Tell me if that helps.



grazie per l'aiuto.
Have a great day.
01/19/2010 07:53 Arcо#18
Quote:
Originally Posted by NoFatChicks View Post
grazie per l'aiuto.
Have a great day.

Alright.
Glad to help:]
01/19/2010 11:10 ramix#19
my friend Hepatiti C you forgot put i little think :D

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 :D ty ;)


the only away to delete the halo is the delete in Top.txt rigth?
01/19/2010 12:18 Korvacs#20
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 |xabi|#21
i do it and no errors

but it will save automtic?
01/19/2010 14:07 copz1337#22
now it gives no errors. will test after school.
01/19/2010 15:11 ramix#23
not have erros the programme :D

Hepatiti C i need talk to you :D
01/19/2010 17:04 copz1337#24
er, I awarded myself topguildleader Halo then i disconnect myself and when I relogged it was gone.
01/19/2010 17:14 .RainBow.#25
Quote:
Originally Posted by copz1337 View Post
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 copz1337#26
Quote:
Originally Posted by .RainBow. View Post
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 .RainBow.#27
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 .Ryu#28
Wow i thot mike was just joking when he said you released this =P

Good good job
01/19/2010 20:38 copz1337#29
Quote:
Originally Posted by .RainBow. View Post
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 Arcо#30
Quote:
Originally Posted by copz1337 View Post
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?