[Small Release]Fixed Guild Chat Error!

10/21/2008 13:09 pauldexter#1
Do you notice that when you chat(guild chat) with no guild you will get an error in the Console? If you don't experience, then try it, Guild chat with no Guild.

Now here's the release:

In World.cs find:
Code:
            if (ChatType == 2004)
            {
                Char.MyGuild.GuildMessage(Char, Message, To);
            }
Replace it with:
Code:
            if (ChatType == 2004)
            {
                if (Char.MyClient.MyChar.MyGuild != null)
                Char.MyGuild.GuildMessage(Char, Message, To);
            }
And your done!

This only for people who can't manage to fix it.
10/21/2008 15:49 XxArcherMasterxX#2
added to [Only registered and activated users can see links. Click Here To Register...] ok?
10/21/2008 18:14 pauldexter#3
thanks for the add
10/21/2008 23:08 keving15#4
Make it smaller :)
Code:
if (ChatType == 2004 && Char.MyClient.MyChar.MyGuild)
                Char.MyGuild.GuildMessage(Char, Message, To);
10/21/2008 23:39 pauldexter#5
not working.
heres the error found:
Code:
Operator '&&' cannot be applied to operands of type 'bool' and 'COServer_Project.Guild'
09/13/2009 21:50 vipper123#6
thx man works 100%
09/13/2009 21:53 .Guru#7
ha, don't bump old threads, if it worked just click the Thanks button, located under his post.