My First Noob Script

05/17/2010 20:53 PrettyGodness#1
Hey guys i got a noob script today so i'll post for people who dont know yet like me :D

How to go where the players are!

- Go to chat.cs and put this

if (Cmd[0] == "/find")

{
if (GC.AuthInfo.Status == "[GM]")
{
Game.Character C = Game.World.CharacterFromName(Cmd[1]);
if (C != null && C != Game.World.CharacterFromName (Cmd[1]));
GC.MyChar.Teleport(C.Loc.Map, C.Loc.X, C.Loc.Y);

}
}

the command in the game is : //find player
05/17/2010 21:54 MonstersAbroad#2
atually it is /find playername not //find playername
05/18/2010 00:20 PrettyGodness#3
ya thanks i made a mistake when i write thanks xD
05/18/2010 00:23 .Summer#4
Moving forward. I like that :)
Keep going!
05/18/2010 00:59 Arcо#5
Uhm, this is already in the source.
Search for /ctele
Code:
                            case "/ctele":
                                Game.Character G = Game.World.CharacterFromName(Cmd[1]);
                                if (G != null)
                                    GC.MyChar.Teleport(G.Loc.Map, G.Loc.X, G.Loc.Y);
                                break;
05/18/2010 02:18 PrettyGodness#6
omg i really didnt know about that haha thanks arco :D i made my head hurt trying to do that for nothing lmao hahaha
05/18/2010 18:22 .Summer#7
Quote:
Originally Posted by PrettyGodness View Post
omg i really didnt know about that haha thanks arco :D i made my head hurt trying to do that for nothing lmao hahaha
Well it was not for nothing.
You haveimroved your knowledge by doing it :)
wich is a big step forward :D