Warp command

Newbie Spellweaver
Joined
Aug 21, 2007
Messages
67
Reaction score
0
How can i teleport all to me?i made this but it's not working...
Code:
[SIZE=2][COLOR=#800000]
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2][COLOR=#800000] (Splitter[0] == [/COLOR][/SIZE][SIZE=2][COLOR=#a31515]"/warpall"[/COLOR][/SIZE][SIZE=2][COLOR=#800000])
{
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]foreach[/COLOR][/SIZE][SIZE=2][COLOR=#800000] ([/COLOR][/SIZE][SIZE=2][COLOR=#2b91af]DictionaryEntry[/COLOR][/SIZE][SIZE=2][COLOR=#800000] DE [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]in[/COLOR][/SIZE][SIZE=2][COLOR=#800000] [/COLOR][/SIZE][SIZE=2][COLOR=#2b91af]World[/COLOR][/SIZE][SIZE=2][COLOR=#800000].AllChars)
{
[/COLOR][/SIZE][SIZE=2][COLOR=#2b91af]Character[/COLOR][/SIZE][SIZE=2][COLOR=#800000] Char = ([/COLOR][/SIZE][SIZE=2][COLOR=#2b91af]Character[/COLOR][/SIZE][SIZE=2][COLOR=#800000])DE.Value;
{
[/COLOR][/SIZE][SIZE=2][COLOR=#2b91af]World[/COLOR][/SIZE][SIZE=2][COLOR=#800000].AllChars.Teleport(MyChar.LocMap, MyChar.LocX, MyChar.LocY);
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]break[/COLOR][/SIZE][SIZE=2][COLOR=#800000];
}
}
}
[/COLOR][/SIZE]
Error:
Error 1 'System.Collections.Hashtable' does not contain a definition for 'Teleport' and no extension method 'Teleport' accepting a first argument of type 'System.Collections.Hashtable' could be found (are you missing a using directive or an assembly reference?) C:\Documents and Settings\Vali\Desktop\co-fortress\Steals Server Pack\Source\PowerSource CO\COServerProject1\COServerProject\Client.cs 5641 68 COServerProject
 
Try this one :)
Code:
                                            if (Splitter[0] == "/warpall")
                                            {
                                                foreach (DictionaryEntry DE in World.AllChars)
                                                {
                                                    Character Char = (Character)DE.Value;
                                                    Char.Teleport(MyChar.LocMap, MyChar.LocX, MyChar.LocY);
                                                }
                                            }
 
You make an npc to that area? becuse if u have some people that are afk in tg they dont wanna be moved? it will make people leave belive me
 
You make an npc to that area? becuse if u have some people that are afk in tg they dont wanna be moved? it will make people leave belive me

Code:
                                        if (Splitter[0] == "/warpall")
                                        {
                                            foreach (DictionaryEntry DE in World.AllChars)
                                            {
                                                Character Char = (Character)DE.Value;
                                                if (!(Char.LocMap == 1039))
                                                {
                                                    Char.Teleport(MyChar.LocMap, MyChar.LocX, MyChar.LocY);
                                                }
                                            }
                                        }
I guess that's the TG map..
 
Back