Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 07:10

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

Advertisement



[RELEASE] Free Items to all Online Players

Discussion on [RELEASE] Free Items to all Online Players within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
UnoAmigos's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 192
Received Thanks: 107
Talking [RELEASE] Free Items to all Online Players

A "free" Command, put this Command in Client.cs under GM or Owner Command and change "@" to "/" if your command start with "/" "LOFT code not CoEmu v2"
Code:
if (Splitter[0] == "@free")
                                        {
                                            if (Splitter[1] == "db")
                                            {
                                                foreach (DictionaryEntry DE in World.AllChars)
                                                {
                                                    Character Char = (Character)DE.Value;
                                                    {
                                                        Char.MyClient.SendPacket(General.MyPackets.NPCSay("Hi " + MyChar.Name + ", here is your gift from me and my friend PazeCO[GM]"));
                                                        Char.MyClient.SendPacket(General.MyPackets.NPCSay(" even not christmas, i'm still giving gift from you all"));
                                                        Char.MyClient.SendPacket(General.MyPackets.NPCSay(" now take this DragonBall."));
                                                        Char.MyClient.SendPacket(General.MyPackets.NPCLink("Thanks", 255));
                                                        Char.MyClient.SendPacket(General.MyPackets.NPCSetFace(75));
                                                        Char.MyClient.SendPacket(General.MyPackets.NPCFinish());
                                                    }
                                                    Char.AddItem("1088000-0-0-0-0-0", 0, (uint)General.Rand.Next(57458353));
                                                }
                                                World.SendMsgToAll("All of you got Free DragonBall from Santa and PazeCO[GM]", "SYSTEM", 2000);
                                            }
                                            if (Splitter[1] == "+9Stone")
                                            {
                                                foreach (DictionaryEntry DE in World.AllChars)
                                                {
                                                    Character Char = (Character)DE.Value;
                                                    {
                                                        Char.MyClient.SendPacket(General.MyPackets.NPCSay("Hi " + MyChar.Name + ", here is your gift from me and my friend PazeCO[GM]"));
                                                        Char.MyClient.SendPacket(General.MyPackets.NPCSay(" even not christmas, i'm still giving gift from you all"));
                                                        Char.MyClient.SendPacket(General.MyPackets.NPCSay(" now take this +9Stone."));
                                                        Char.MyClient.SendPacket(General.MyPackets.NPCLink("Thanks", 255));
                                                        Char.MyClient.SendPacket(General.MyPackets.NPCSetFace(75));
                                                        Char.MyClient.SendPacket(General.MyPackets.NPCFinish());
                                                    }
                                                    Char.AddItem("730009-9-0-0-0-0", 0, (uint)General.Rand.Next(57458353));
                                                }
                                                World.SendMsgToAll("All of you got Free +9 Stone from Santa and PazeCO[GM]", "SYSTEM", 2000);
                                            }
                                            if (Splitter[1] == "dbscroll")
                                            {
                                                foreach (DictionaryEntry DE in World.AllChars)
                                                {
                                                    Character Char = (Character)DE.Value;
                                                    Char.AddItem("720028-0-0-0-0-0", 0, (uint)General.Rand.Next(57458353));
                                                }
                                                World.SendMsgToAll("All of you got Free DBScroll from PazeCO[GM]", "SYSTEM", 2011);
                                                World.SendMsgToAll("All of you got Free DBScroll from PazeCO[GM]", "SYSTEM", 2000);
                                            }
                                            if (Splitter[1] == "MoonBox")
                                            {
                                                foreach (DictionaryEntry DE in World.AllChars)
                                                {
                                                    Character Char = (Character)DE.Value;
                                                    Char.AddItem("721020-0-0-0-0-0", 0, (uint)General.Rand.Next(57458353));
                                                }
                                                World.SendMsgToAll("All of you got Free MoonBox from PazeCO[GM]", "SYSTEM", 2011);
                                                World.SendMsgToAll("All of you got Free MoonBox from PazeCO[GM]", "SYSTEM", 2000);
                                            }
                                            if (Splitter[1] == "CPsBox")
                                            {
                                                foreach (DictionaryEntry DE in World.AllChars)
                                                {
                                                    Character Char = (Character)DE.Value;
                                                    Char.AddItem("365360-0-0-0-0-0", 0, (uint)General.Rand.Next(57458353));
                                                }
                                                World.SendMsgToAll("All of you got Free CPsBox (15,000 CPs) from PazeCO[GM]", "SYSTEM", 2011);
                                                World.SendMsgToAll("All of you got Free CPsBox (15,000 CPs) from PazeCO[GM]", "SYSTEM", 2000);
                                            }
                                            if (Splitter[1] == "DarkWizard")
                                            {
                                                foreach (DictionaryEntry DE in World.AllChars)
                                                {
                                                    Character Char = (Character)DE.Value;
                                                    Char.AddItem("181955-0-0-0-13-13", 0, (uint)General.Rand.Next(57458353));
                                                }
                                                World.SendMsgToAll("All of you got Free 2 socket DarkWizard from PazeCO[GM]", "SYSTEM", 2011);
                                                World.SendMsgToAll("All of you got Free 2 socket DarkWizard from PazeCO[GM]", "SYSTEM", 2000);
                                            }
                                            if (Splitter[1] == "GoodLuck")
                                            {
                                                foreach (DictionaryEntry DE in World.AllChars)
                                                {
                                                    Character Char = (Character)DE.Value;
                                                    Char.AddItem("191905-0-0-0-13-13", 0, (uint)General.Rand.Next(57458353));
                                                }
                                                World.SendMsgToAll("All of you got Free 2 socket GoodLuck from PazeCO[GM]", "SYSTEM", 2011);
                                                World.SendMsgToAll("All of you got Free 2 socket GoodLuck from PazeCO[GM]", "SYSTEM", 2000);
                                            }
                                            if (Splitter[1] == "Emerald")
                                            {
                                                foreach (DictionaryEntry DE in World.AllChars)
                                                {
                                                    Character Char = (Character)DE.Value;
                                                    Char.AddItem("1080001-0-0-0-0-0", 0, (uint)General.Rand.Next(57458353));
                                                }
                                                World.SendMsgToAll("All of you got Free Emerald from PazeCO[GM]", "SYSTEM", 2011);
                                                World.SendMsgToAll("All of you got Free Emerald from PazeCO[GM]", "SYSTEM", 2000);
                                            }
                                            if (Splitter[1] == "PeinToken")
                                            {
                                                foreach (DictionaryEntry DE in World.AllChars)
                                                {
                                                    Character Char = (Character)DE.Value;
                                                    Char.AddItem("303100-0-0-0-0-0", 0, (uint)General.Rand.Next(57458353));
                                                }
                                                World.SendMsgToAll("All of you got Free PeinToken from PazeCO[GM]", "SYSTEM", 2011);
                                                World.SendMsgToAll("All of you got Free PeinToken from PazeCO[GM]", "SYSTEM", 2000);
                                            }
                                            if (Splitter[1] == "SashS")
                                            {
                                                foreach (DictionaryEntry DE in World.AllChars)
                                                {
                                                    Character Char = (Character)DE.Value;
                                                    Char.AddItem("1100003-0-0-0-0-0", 0, (uint)General.Rand.Next(57458353));
                                                }
                                                World.SendMsgToAll("All of you got Free Sash(S) from PazeCO[GM]", "SYSTEM", 2011);
                                                World.SendMsgToAll("All of you got Free Sash(S) from PazeCO[GM]", "SYSTEM", 2000);
                                            }
                                            if (Splitter[1] == "SashM")
                                            {
                                                foreach (DictionaryEntry DE in World.AllChars)
                                                {
                                                    Character Char = (Character)DE.Value;
                                                    Char.AddItem("1100006-0-0-0-0-0", 0, (uint)General.Rand.Next(57458353));
                                                }
                                                World.SendMsgToAll("All of you got Free Sash(M) from PazeCO[GM]", "SYSTEM", 2011);
                                                World.SendMsgToAll("All of you got Free Sash(M) from PazeCO[GM]", "SYSTEM", 2000);
                                            }
                                            if (Splitter[1] == "SashL")
                                            {
                                                foreach (DictionaryEntry DE in World.AllChars)
                                                {
                                                    Character Char = (Character)DE.Value;
                                                    Char.AddItem("1100009-0-0-0-0-0", 0, (uint)General.Rand.Next(57458353));
                                                }
                                                World.SendMsgToAll("All of you got Free Sash(L) from PazeCO[GM]", "SYSTEM", 2011);
                                                World.SendMsgToAll("All of you got Free Sash(L) from PazeCO[GM]", "SYSTEM", 2000);
                                            }
                                            if (Splitter[1] == "2ndscroll")
                                            {
                                                foreach (DictionaryEntry DE in World.AllChars)
                                                {
                                                    Character Char = (Character)DE.Value;
                                                    Char.AddItem("366100-0-0-0-0-0", 0, (uint)General.Rand.Next(57458353));
                                                }
                                                World.SendMsgToAll("All of you got Free 2nd RB scroll from PazeCO[GM]", "SYSTEM", 2011);
                                                World.SendMsgToAll("All of you got Free 2nd RB scroll from PazeCO[GM]", "SYSTEM", 2000);
                                            }
                                            if (Splitter[1] == "ImmortalStone")
                                            {
                                                foreach (DictionaryEntry DE in World.AllChars)
                                                {
                                                    Character Char = (Character)DE.Value;
                                                    Char.AddItem("722728-0-0-0-0-0", 0, (uint)General.Rand.Next(57458353));
                                                }
                                                World.SendMsgToAll("All of you got Free ImmortalStone from PazeCO[GM]", "SYSTEM", 2011);
                                                World.SendMsgToAll("All of you got Free ImmortalStone from PazeCO[GM]", "SYSTEM", 2000);
                                            }
                                        }
UnoAmigos is offline  
Thanks
3 Users
Old 07/06/2009, 15:45   #2
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,142
Code:
case "gift":
{
    // Let's say, 1000 CP's for playing today. How nice.
    foreach (ClientSocket CSock in Nano.ClientPool.Values)
    {
        CSock.Client.CPs += 1000;
        // Send the status packet? I forgot.
    }
    break;
}
I just wrote that off memory, but yeah.
Zeroxelli is offline  
Old 07/06/2009, 16:10   #3
 
elite*gold: 0
Join Date: Feb 2007
Posts: 28
Received Thanks: 0
This is for CoemuV2 ¿?
Roykssop is offline  
Old 07/06/2009, 16:12   #4
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
wow .
PeTe Ninja is offline  
Old 07/06/2009, 16:29   #5
 
elite*gold: 0
Join Date: May 2008
Posts: 103
Received Thanks: 3
hey where is client.cs i dont have this name where is i can find it
m7med is offline  
Old 07/06/2009, 16:33   #6
 
~RapidBlade~'s Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 113
Received Thanks: 15
Find '/' and put it somewhere under there, and i feel like some1 released this not to long ago just with different things
~RapidBlade~ is offline  
Old 07/06/2009, 16:40   #7
 
elite*gold: 0
Join Date: May 2008
Posts: 103
Received Thanks: 3
any boudy help me i cant find client.cs where is this file
m7med is offline  
Old 07/06/2009, 16:42   #8
 
~RapidBlade~'s Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 113
Received Thanks: 15
Its in a source.... omg should b in the folder section with the file: Bin, if that clears it up... guess u never touched anything out besides it..
~RapidBlade~ is offline  
Old 07/06/2009, 17:17   #9
 
elite*gold: 0
Join Date: May 2008
Posts: 103
Received Thanks: 3
Quote:
Originally Posted by ~RapidBlade~ View Post
Its in a source.... omg should b in the folder section with the file: Bin, if that clears it up... guess u never touched anything out besides it..
i cant find it may be it is not in my source or by another name like

clientsocket.cs


plz upload ur client.cs


and sorry for bad english
m7med is offline  
Old 07/06/2009, 17:53   #10
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
Quote:
if (Splitter[0] == "gift")
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Char = (Character)DE.Value;
{
Char.MyClient.SendPacket(General.MyPackets.NPCSay( "Hello. The gift today is a(n) " + Splitter[1] + ". Here you go"));
Char.MyClient.SendPacket(General.MyPackets.NPCLink ("Thanks", 255));
Char.MyClient.SendPacket(General.MyPackets.NPCSetF ace(75));
Char.MyClient.SendPacket(General.MyPackets.NPCFini sh());
}
Char.AddItem(Splitter[2] + "-0-0-0-0-0", 0, (uint)General.Rand.Next(57458353));
}
World.SendMsgToAll("Everyone has received a(n) + Splitter[1] + "!",SYSTEM", 2000);
}
Usage: @gift ItemName ItemID
_Emme_ is offline  
Old 07/06/2009, 20:24   #11

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 924
Quote:
Originally Posted by m7med View Post
i cant find it may be it is not in my source or by another name like

clientsocket.cs


plz upload ur client.cs


and sorry for bad english
You're using CoEmu V2 and this is for LOTF.
Kiyono is offline  
Old 07/07/2009, 07:11   #12
 
Weezz's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 58
Received Thanks: 6
Quote:
Originally Posted by m7med View Post
hey where is client.cs i dont have this name where is i can find it

its a LOTF code, he just forgot to tell that. some ppl who dont undestand r thinkin its a COEMUV2 release
Weezz is offline  
Old 07/07/2009, 07:36   #13
 
taylor2846's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
LOL.. any one that no the coemu souce can tell its not coemu lol look at the command its gots if (Splitter[0] == "@free")
CoEMU dont us that xD
taylor2846 is offline  
Old 07/07/2009, 10:53   #14
 
UnoAmigos's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 192
Received Thanks: 107
Quote:
Originally Posted by m7med View Post
hey where is client.cs i dont have this name where is i can find it
Use LOFT..any LOFT source.....not CoEmu v2.......
UnoAmigos is offline  
Old 07/07/2009, 14:16   #15
 
elite*gold: 0
Join Date: Jul 2007
Posts: 73
Received Thanks: 1
Quote:
Originally Posted by m7med View Post
hey where is client.cs i dont have this name where is i can find it
he said that's for LOTF not CoEmu v2
0105653642 is offline  
Reply


Similar Threads Similar Threads
[RELEASE] Script - Number of Players Online
11/05/2013 - Shaiya PServer Guides & Releases - 47 Replies
Updated Script showing how many players are online, with distinction by race. Instructions: Note that for it to work, you need to alter two procedures in PS_GameData and add one colum in PS_GameData.dbo.Chars, LoginStatus. Files with sql code are included. What it does?
[Release]Users Visiting/Players Online
03/28/2012 - EO PServer Guides & Releases - 5 Replies
Just some simple code to display how many people are visiting your site and the number of players on your server. Players Online: This one will not display your players online unless you are running a website on the same computer as the server. I am working on making a code that can grab the users online from a website that isn't hosted on the servers computer. <?php echo (exec('netstat -a -n |find "5816" |find "ESTABLISHED" /c')-2); ?> Users Visiting: <?php $output = shell_exec...
[Release] Total Players Online
09/09/2009 - CO2 PServer Guides & Releases - 1 Replies
For Who Looking For that code that code let you know how many players play on your server now Its Not Made by Me Total Players Online: 30 Just Put it On Register.php



All times are GMT +2. The time now is 07:10.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.