[Mini-Release] /command

02/14/2010 20:35 howardj76#1
alright, so this will be my first ever release, so please lay off if your going to be rude or comment about how easy or un-needed this is. This command will allow you to type in "/mk" and teleport you to Market.

Step 1: Open up chat.cs using Microsoft Visual C#

Step 2: Search the following code listed below:

Code:
                    if (Cmd[0] == "/clearinv")
                    {
                        foreach (Game.Item I in GC.MyChar.Inventory)
                            GC.AddSend(Packets.ItemPacket(I.UID, 0, 3));
                        GC.MyChar.Inventory = new ArrayList(40);
                    }
If you do not have this code, then find any code (preferably a teleport code) and paste the following underneath it:

Code:
                    if (Cmd[0] == "/mk")
                    {
                        GC.MyChar.Teleport(1036, 211, 196);
                    }
This simple code will allow you to teleport to Market with the ease of typing "/mk"

Like I said before, this is my first code, so take it easy on me :o and If it works for you, please reply with confirmation due to the code working, and also press thanks :)

And also if anyone knows how to check the MapID I would really appreciate you explaining that to me :)
02/14/2010 20:38 DontLookDown#2
Good to see new learners joining the community, will help some out. :]
02/14/2010 20:44 Arcо#3
Hmm your market command needs a closing bracket, glad to see you learning C#!
02/14/2010 20:50 howardj76#4
Quote:
Originally Posted by .Arco View Post
Hmm your market command needs a closing bracket, glad to see you learning C#!
Thanks, your right, and I corrected it. thanks.
02/14/2010 20:55 Decker_#5
Good release, I will use this.
02/14/2010 21:26 copz1337#6
good job.