Whats the code so when you enter the server a message will appear were the /c message

04/03/2010 18:04 Paralyzer[GM]#1
Ok so this is a darn NOOB ass question ok so I have this in my teleport with all my other code for login

Code:
GC.LocalMessage(2000, "Welcome to TestCo Coded By Paralyzer[GM]!");
                 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, "Respect all GM/PM(s) and do what they say they will NEVER ask for ur username/password.");
                 GC.LocalMessage(2005, "Welcome to TestCo");
                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));
            }
        }
What do I change in the
Code:
GC.LocalMessage(2005, "Welcome to TestCo");
to make it appear where when you do /c message it says message in the left-middle screen what is the number for it at the moment it is
Code:
GC.LocalMessage([COLOR=Red]2005[/COLOR], "Welcome to TestCo");
But I cant just use the /c number can I ?
04/03/2010 19:01 ChingChong23#2
Quote:
Originally Posted by Paralyzer[GM
]GC.LocalMessage(2000, "Welcome to TestCo, some strings modified by Paralyzer[GM]!");
fixed, honestly why lie to the public like that when you can't even manage something as SIMPLE as this?
04/03/2010 21:16 Paralyzer[GM]#3
Yes this is very simple something VERY damn simple I did not know I bet you ANYTHING I can find something very simple that you did not know. also
Code:
2000,
That is not it! maybe 2010 or 2011 or 2012 ?
04/03/2010 22:46 Arcо#4
T&E my friend.
Try it, that is how we all learn.
04/03/2010 22:59 Kiyono#5
Quote:
Originally Posted by Paralyzer[GM] View Post
Ok so this is a darn NOOB ass question ok so I have this in my teleport with all my other code for login

Code:
GC.LocalMessage(2000, "Welcome to TestCo Coded By Paralyzer[GM]!");
                 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, "Respect all GM/PM(s) and do what they say they will NEVER ask for ur username/password.");
                 GC.LocalMessage(2005, "Welcome to TestCo");
                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));
            }
        }
What do I change in the
Code:
GC.LocalMessage(2005, "Welcome to TestCo");
to make it appear where when you do /c message it says message in the left-middle screen what is the number for it at the moment it is
Code:
GC.LocalMessage([COLOR=Red]2005[/COLOR], "Welcome to TestCo");
But I cant just use the /c number can I ?
Why not?
2011 works fine.
04/03/2010 23:09 Paralyzer[GM]#6
does it ?, ok thanks! just that it is 2005 and that appears left-top and on a /cc it is 2012 and it appears left-top but oh well THANKS!
04/03/2010 23:15 Paralyzer[GM]#7
ok so I was thinking of making a command to do a broadcast

I have this

Code:
if (Cmd == "/b" )
{

}
I have looked through the broadcase codes but it does not help me once I have the command I can make events broadcast :P
04/03/2010 23:20 PeTe Ninja#8
stop making new threads for the same question.. ffs look at /c look at the broadcast code it self where it sends. look at the pkt broadcast code.. seriously so much to look at and you spend five minutes.. #request close, #request infraction. multiple threads.
04/03/2010 23:31 Paralyzer[GM]#9
PeTe I hope that you never get a MOD as you do not HELP! you make it worse!

EDIT: I got this code but get error MARKED ERROR IN RED

Code:
                            if (Cmd[0] == "/testb")
                            {
                                for (byte i = 0; i < Data[13]; i++)
                                Message += Convert.ToChar(Data[14 + i]);

                                Game.[COLOR=Red]BroadCastMessage[/COLOR]("Server", "hello");
                            }
that should just broadcat Hello but it does not error is: 'NewestCOServer.Game.BroadCaseMessage' is a 'type', witch is not a valid argument
04/03/2010 23:37 PeTe Ninja#10
Quote:
Originally Posted by Paralyzer[GM] View Post
PeTe I hope that you never get a MOD as you do not HELP! you make it worse!
well actually in that "flame" i gave you key places to look at. i always talk to arco like that.. he gets his shit done.. anyway

i already took off my mod thing. dont want to be on anymore. dont have time.
04/03/2010 23:43 Fish*#11
put type 2500
i think is Game.BroadCastMessage("Server", "hello", 2500);
04/03/2010 23:47 Paralyzer[GM]#12
Still same error
04/04/2010 01:18 Fish*#13
Quote:
Game.BroadCastMessage(2500, "Server", "hello");
this work?
04/04/2010 12:04 Paralyzer[GM]#14
Same error :(
04/04/2010 13:58 Kiyono#15
if (Cmd[0] == "/bc")
{
Game.World.SendMsgToAll(GC.MyChar.Name, Message.Remove(0, 4), 2500, 0);
}