Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 05:29

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

Advertisement



[Help]Can't get command to work

Discussion on [Help]Can't get command to work within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2008
Posts: 19
Received Thanks: 0
[Help]Can't get command to work

Hey guys. I'm trying to get a /revive command to work so you revive at the same spot. I got a command going but it only revives me back to the same spot that clicking Revive would. I tried looking around to see if I can find some hint as to how to do it. I tried looking to see how it's done in Lab because I know in there you revive on the spot. This is what I have, although I'm sure I'm probably going about it the completely wrong way

Code:
                                            if (Splitter[0] == "/revive")
                                            {
                                                MyChar.Revive(true);
                                            }
Also if it's not to much trouble could someone explain to me how I would make it so if I do just "/revive" it revives myself, but if I put in a name at the end it revives them instead? Thanks much.
FuzionZero is offline  
Old 09/24/2008, 06:06   #2
 
pegaeu's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 62
Received Thanks: 6
if (Splitter[0] == "/revive")
{
ushort ThisMap = MyChar.LocMap;
ushort ThisX = MyChar.LocX;
ushort ThisY = MyChar.LocY;
MyChar.Revive(true);
MyChar.Teleport(ThisMap, ThisX, ThisY);
}
pegaeu is offline  
Thanks
1 User
Old 09/24/2008, 06:07   #3
 
elite*gold: 0
Join Date: Sep 2008
Posts: 19
Received Thanks: 0
Thanks. I knew it was something like that unfortunately I still have a lot to learn so I wasn't sure how to do that.
FuzionZero is offline  
Old 09/24/2008, 07:00   #4
 
elite*gold: 0
Join Date: Sep 2008
Posts: 19
Received Thanks: 0
K. Well instead of making a new topic I'll post here. I'm now working on a command for GMs to change other people's name. But when I use it, it changes my name, then after a restart it then changes their name. Can anyone help me out so it changes there name and makes the changes viewable to everyone instantly? This is what I have so far.

Code:
 if (Splitter[0] == "/changeother")
                                            {
                                                foreach (DictionaryEntry DE in World.AllChars)
                                                {
                                                    Character Char = (Character)DE.Value;
                                                    if (Char.Name == Splitter[1])
                                                    {
                                                        string newname = Splitter[2];
                                                        Char.Name = newname;
                                                        SendPacket(General.MyPackets.CharacterInfo(Char));
                                                        Char.SendEquips(false);
                                                        break;
                                                    }
                                                }
                                            }
FuzionZero is offline  
Old 09/24/2008, 07:07   #5
 
elite*gold: 0
Join Date: Sep 2008
Posts: 92
Received Thanks: 21
if (Splitter[0] == "/changename")
{
string newname = Splitter[1];
MyChar.Name = newname;
SendPacket(General.MyPackets.CharacterInfo(MyChar) );
World.SpawnMeToOthers(MyChar, false);
MyChar.SendEquips(false);
}
reborn666 is offline  
Old 09/24/2008, 07:15   #6
 
elite*gold: 0
Join Date: Sep 2008
Posts: 19
Received Thanks: 0
Quote:
Originally Posted by reborn666 View Post
if (Splitter[0] == "/changename")
{
string newname = Splitter[1];
MyChar.Name = newname;
SendPacket(General.MyPackets.CharacterInfo(MyChar) );
World.SpawnMeToOthers(MyChar, false);
MyChar.SendEquips(false);
}
That's the command for people to change there own name. I'm trying to make a command for GMs to change other player's names.
FuzionZero is offline  
Old 09/24/2008, 09:49   #7
 
elite*gold: 0
Join Date: Nov 2007
Posts: 306
Received Thanks: 75
dont do the mychar.locX, that "true" is for teleporting the char or not MyChar.Revive(false) will revive without teleporting, this will stop items from dissapearing and remove all the lag associated with reviving.
Rechocto is offline  
Old 09/24/2008, 14:36   #8
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
* Already helped Fuzion with ;
Better revive command,more simple and less nooby
Changename command

#Close
_Emme_ is offline  
Old 09/24/2008, 21:20   #9
 
elite*gold: 0
Join Date: Feb 2008
Posts: 668
Received Thanks: 160
You may can try add : World.SpawnMeToOthers(Char, false);
YukiXian is offline  
Reply


Similar Threads Similar Threads
[Release] ReXIGNation (Anti-Xigncode+CRC Bypass) spam here work/no work
07/19/2010 - Dekaron - 9 Replies
F>Y>I the bypass still work for me reinstall the game and run the bypasss with Cheat engine only, no winhex or any other way will make you DC right away when log in, am a vista user and i testes 3 different way and only CE work now hope this help u guy :mofo:
Does Gm Ghostmode Command Still Work?
01/31/2010 - Dekaron - 2 Replies
I got the GM hack, everytime I press /GM Ghostmode On, it dont work. So i just want to know if it still works or not.
GM command, creat item don't work
08/11/2008 - RF Online - 6 Replies
Hello all, I got a gm account on gamehaze server, but when i try %* it tell me error authority. I show alot of gm naked, and after a log off full stuffed anyone know how to ? Another question :) Absolute reaver anyone know who to get it?



All times are GMT +1. The time now is 05:29.


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.