Register for your free account! | Forgot your password?

You last visited: Today at 04:49

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



/allto me command

Discussion on /allto me command within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 01/13/2009, 23:21   #16
 
elite*gold: 0
Join Date: Jan 2009
Posts: 94
Received Thanks: 19
well anyway the first command i posted works fine =] also has /allto tc and much more
TruthCo is offline  
Old 01/14/2009, 15:51   #17
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 1,001
Code:
if(Splitter[0] == "@getall") {
  ushort MapID = MyChar.LocMap;
  ushort X = MyChar.LocX;
  ushort Y = MyChar.LocY;
  if(Splitter.Length  == 3) {
    ushort.Parse(Splitter[1], out MapID);
    ushort.Parse(Splitter[2], out X);
    ushort.Parse(Splitter[3], out Y);
       
    if(MapID == 0 || X == 0 || Y == 0) return; // Stop executing
  }
  foreach(DictionaryEntry DE in World.AllChars)
  {
    Character Target = (Character)DE.Value;
    if(Target == null) return; // Just incase it is null for some reason.
    Target.Teleport(MapID, X, Y);     
  }
}
This might not look so nice but atleast it has all the proper checks, shouldn't throw any errors unless I made a typo.
tanelipe is offline  
Old 01/20/2009, 22:38   #18
 
elite*gold: 0
Join Date: Dec 2008
Posts: 105
Received Thanks: 26
Yes I'm a noob k?

If I put Character Players = (Character)DE.Value;

The 'DE' part gets a red line under it. Which means it isn't in the current context. How do I put the DE, in the currect context?

Thanks,

NubCake~
.Dan. is offline  
Reply


Similar Threads Similar Threads
/get command
06/15/2010 - Kal Online - 6 Replies
is there a way to figure out the /get command for a server?
GM command-s
04/06/2010 - SRO Private Server - 8 Replies
Please start I Silkroad server 1.236 (CRSEMU) how to fix that I am GM and what are the command-s to spawn the NPC-s and MOB-s and ITEM-s and GOLD please help, give me command-s, ty
i need GM command
12/29/2008 - Dekaron Private Server - 7 Replies
i open server and i need GM command. thx!
o:- can't do both of that command plz some help ...
02/13/2008 - Kal Online - 9 Replies
hi u guys , sup every ?? hope all fine i have some problem .. i'm a gm in private server and when i type /moveto name of player none moving from my place it's mean not work so any 1 can just say me what can i do ?? 2 get place's player 2nd problem i can't attacking moobs while away from them i should get close enough like normal player ?? i need some help plz 3rd how i can get stuff mixing Demon Blood ?? or should admin make it 4 me 4th why i can't upgrade it egg's 4 ppl or me ?? or same...



All times are GMT +1. The time now is 04:51.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.