Register for your free account! | Forgot your password?

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

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

Advertisement



Change GM status in game

Discussion on Change GM status in game within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Exia13's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 256
Received Thanks: 21
Question Change GM status in game

I was trying to make a command that changes a players status to PH or GM.
I know that when you use the ban command, it connects to the database and the player's log in type changes to 3, so i figured that i could use that as a base and work from it. So i thought of a little code: (doubt it's any good)

If (Splitter = "/gmstatus");
{Status == 8}

My problem is that I know the ban command connects to the database, the thing is that i dont know how. If i kew, then maybe i could finish my first ever code (even if it's just a simple command code)

Thanks.
Exia13 is offline  
Old 10/18/2008, 18:56   #2
 
elite*gold: 0
Join Date: Jan 2007
Posts: 220
Received Thanks: 63
add this as a command
Code:
if (Splitter[0] == "/gmstatus")
                                            {
                                                foreach (DictionaryEntry DE in World.AllChars)
                                                {
                                                    Character Char = (Character)DE.Value;

                                                    if (Char.Name == Splitter[1])
                                                    {
                                                        World.SendMsgToAll(Splitter[1] + " has been changed into a GM by " + MyChar.Name, "SYSTEM", 2011);
                                                        ExternalDatabase.gmstatus(Char.MyClient.Account);
                                                        Char.MyClient.Drop();
                                                    }
                                                    else
                                                    {
                                                        SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Sorry the Character:" + Splitter[1] + " is offline...Please try again later", 2000));
                                                    }
                                                }
                                            }
go to database

and look for
Code:
    public static void Ban(string Acc)
and add
Code:
public static void gmstatus(string Acc)
    {
        if (ExternalDatabase.AllowQuerys)
            DatabaseQueue.Enqueue(new MySqlCommand("UPDATE `Accounts` SET `Status` = 8 WHERE `AccountID` = '" + Acc + "'", Connection));
    }
after it, i'm using PowerSource and it worked for me, if it doesnt just remove the "ExternalDatabase" and ur good (i hope)

lolz btw, nice idea i added it to my serv. 2 ;P

click "thanks" Button if it helped you ;P
BlooD-BoY is offline  
Thanks
1 User
Old 10/18/2008, 19:11   #3
 
felipeboladao's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 255
Received Thanks: 273
tranks BlooD-BoY,you have luck time code??
felipeboladao is offline  
Old 10/18/2008, 19:51   #4
 
Exia13's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 256
Received Thanks: 21
Thanks alot. I would have never thought to do all this.
Exia13 is offline  
Old 10/18/2008, 20:38   #5
 
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
Quote:
Originally Posted by felipeboladao View Post
tranks BlooD-BoY,you have luck time code??
almost everyone have it, but the most people dont know how to use it and the other people dont know how to finnish it
XxArcherMasterxX is offline  
Old 10/18/2008, 22:00   #6
 
Exia13's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 256
Received Thanks: 21
Is there a public version of the Lucky Time code?
Exia13 is offline  
Old 10/18/2008, 23:00   #7
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
Luckytime was leaked,and it actually belong to CoBeyond team. Anyone who uses it gets on my hate-list.
_Emme_ is offline  
Old 10/18/2008, 23:15   #8
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
Quote:
Originally Posted by emildayan1 View Post
Luckytime was leaked,and it actually belong to CoBeyond team. Anyone who uses it gets on my hate-list.
Correction, actually belonged to me, because I coded it myself.
kinshi88 is offline  
Old 10/18/2008, 23:52   #9
 
levi255's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 76
Received Thanks: 9
Reborn,skills,monsters,npcs, How?

How can i make rbs?
levi255 is offline  
Old 10/18/2008, 23:52   #10
 
levi255's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 76
Received Thanks: 9
Reborn,skills,monsters,npcs, How?

How can i make these things work?
Some1 can help me?
levi255 is offline  
Old 10/19/2008, 01:19   #11
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
Quote:
Originally Posted by kinshi88 View Post
Correction, actually belonged to me, because I coded it myself.
i lol'd
© Haydz is offline  
Old 10/19/2008, 01:44   #12
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
Quote:
Originally Posted by © Haydz View Post
i lol'd
What? I did.
kinshi88 is offline  
Old 10/19/2008, 03:28   #13
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
Quote:
Originally Posted by kinshi88 View Post
What? I did.
i wasn't lol'ing @ that factor of your post
© Haydz is offline  
Old 10/19/2008, 05:05   #14
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
Quote:
Originally Posted by © Haydz View Post
i wasn't lol'ing @ that factor of your post
Ah, good good =P
kinshi88 is offline  
Old 10/19/2008, 07:07   #15
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
@kinshi88- u`re the only one who coded the lucky time???i dont think so
P.S. CODING not LEACHING
alexbigfoot is offline  
Reply


Similar Threads Similar Threads
how to change anything in the game! ANYTHING!
06/07/2010 - 12Sky2 Hacks, Bots, Cheats & Exploits - 14 Replies
hey today im telling u how to change anything lik font and like how ling chi fortress is ling chi fortress mine is now ling chi... i can edit silver jeon to money and i can change font type u just go to your 12sky2 folder and then your font folder and there will be numbers like 1 2 3 4 and 5 u click in them and change the words XD its awsome! EDIT-u can also go into file 1 of the 5 and u can delete all the "...." things just dont delete numbers but if u delete the file in 1 it will get rid of...
[Official GCPH Game Status & Maintence Schedule] Will Be Updated Weekly
05/18/2010 - Grand Chase Philippines - 7 Replies
LUNAOnline GONOnline NINKOOnline SIDTOnline Grand Chasers! Please be informed that Grand Chase’s scheduled weekly maintenance is every Tuesdays 8:30AM – 1:30PM
How do i change a maps pk status
08/24/2009 - Zero - 12 Replies
ok i have been wanting to make steelwarship non pkable so ppl wil stop pking in market and steel warship idk either to changed the type or the data. i thought changing the type would do anything but ive tried alot idk which one it is. any help will be great. :mofo:
Change In Game Font
01/22/2007 - CO2 Guides & Templates - 1 Replies
Ok, well lets see how do I start ok If you'd like to change your in game font just follow these steps: 1. Go to C:\Program Files\Conquer 2.0\ini then scroll down and you should see Font.... click on this and it should open up your current Font in Notepad 2. Now if i was you i would copy down the original font just in case you mess up 3. Ok this is easy if you just open up microsoft word...or something similar and look at the one word fonts on there just type the exact name of the...



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


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.