Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

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
 
Newbie Spellweaver
Joined
Jan 1, 2008
Messages
98
Reaction score
0
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);
                                                }
                                            }
 
Elite Diviner
Joined
Jan 11, 2008
Messages
405
Reaction score
0
What a useless command its bad alot of people dont wanna be bother whehn they are playing
 
Newbie Spellweaver
Joined
Aug 21, 2007
Messages
67
Reaction score
0
What a useless command its bad alot of people dont wanna be bother whehn they are playing
Well im talking about an event...what would you do if there are 30 ppl who want to come...do u stay to press /recall playername and say 30 names?..
 
Elite Diviner
Joined
Jan 11, 2008
Messages
405
Reaction score
0
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
 
Newbie Spellweaver
Joined
Aug 13, 2008
Messages
34
Reaction score
0
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..
 
Junior Spellweaver
Joined
Apr 19, 2008
Messages
170
Reaction score
0
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);
                                                }
                                            }


ur pretty helpful coder :D
 
Back
Top