Changing System Messages

12/11/2011 14:35 znarfyelyu#1
This is how my teleport.cs looks like now.. but how come It didn't change the system message when I login into the game? O.o? Help please??


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NewestCOServer.PacketHandling
{
public class Teleport
{
public static void Handle(Main.GameClient GC, byte[] Data)
{
if (!GC.LoginDataSent)
{

GC.AddSend(Packets.Packet1012Time(GC.MyChar.Entity ID));
GC.AddSend(Packets.GeneralData(GC.MyChar.Loc.Map, GC.MyChar.Loc.Map, GC.MyChar.Loc.X, GC.MyChar.Loc.Y, 0x4a));
GC.AddSend(Packets.GeneralData(GC.MyChar.EntityID, 0xffffffff, GC.MyChar.Loc.X, GC.MyChar.Loc.Y, 0x68));
if (GC.MyChar.Loc.Map == 1036)
GC.AddSend(Packets.MapStatus(GC.MyChar.Loc.Map, 30));
else
GC.AddSend(Packets.MapStatus(GC.MyChar.Loc.Map, 32));
foreach (Game.Item I in GC.MyChar.Inventory)
GC.AddSend(Packets.AddItem(I, 0));
GC.MyChar.Equips.Send(GC, true);

foreach (Game.Prof P in GC.MyChar.Profs.Values)
GC.AddSend(Packets.Prof(P));
foreach (Game.Skill S in GC.MyChar.Skills.Values)
GC.AddSend(Packets.Skill(S));
if (GC.MyChar.MyGuild != null)
{
GC.AddSend(Packets.GuildInfo(GC.MyChar.MyGuild, GC.MyChar));
GC.AddSend(Packets.String(GC.MyChar.MyGuild.GuildI D, (byte)Game.StringType.GuildName, GC.MyChar.MyGuild.GuildName));
}
foreach (Features.Guild G in Features.Guilds.AllTheGuilds.Values)
GC.AddSend(Packets.String(G.GuildID, (byte)Game.StringType.GuildName, G.GuildName));
GC.MyChar.PKPoints = GC.MyChar.PKPoints;
GC.MyChar.Nobility.Rank = GC.MyChar.Nobility.Rank;

GC.LocalMessage(2000, "Welcome to 5165CO Beta Server!");
GC.LocalMessage(2000, "The server is still being fixed. Anyway, We want you to enjoy this server.");
GC.LocalMessage(2000, "If you want to revive here while being blessed, you have to type /rh or /revivehere.");
GC.LocalMessage(2000, "Also if somehow you died, you pressed the revive button, it dissapered and you didnt revive, type /forcerevive .");
GC.LocalMessage(2000, "Enjoy.");
if (Game.World.KOBoard[0].Name == GC.MyChar.Name)
GC.LocalMessage(2000, "You are the 1st place on the KO board, you gain 2 times more exp than others.");
if (Game.World.CurrentBC.Message != null)
GC.AddSend(Packets.ChatMessage(GC.MessageID, Game.World.CurrentBC.Name, "ALL", Game.World.CurrentBC.Message, 2500, 0));
}
}
}
}
12/11/2011 16:14 12k#2
hit F5 after doing that. That will rebuild your solution. That will make the changes take effect.
12/11/2011 16:16 Korvacs#3
*pop* I split these into a new thread.
12/12/2011 13:58 BeatEmUp#4
after hittin F5 there comes an tekst the time right now, should that stay also in the file?

meh after doing this its still the same >.<
12/12/2011 14:33 BaussHacker#5
Learn to code in C#, then come back and work with Conquer Online Private Servers.
12/13/2011 01:00 znarfyelyu#6
@12K : Thank you dude! :) The problem was, my C# version is somehow bugged.. what I did is that I reinstalled it, and from there.. everything went smoothly.. ^__^

@Korvacs: I'm sorry for bumping sir! =/ I'll go through the archives this time.

You may close this thread now, I got my answer. Thank you guys! :)