|
You last visited: Today at 02:58
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.
07/07/2009, 21:43
|
#16
|
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 98
|
This is ******* garbage LOL. Go learn some English before you try to give out instructions.
|
|
|
07/11/2009, 15:22
|
#17
|
elite*gold: 0
Join Date: May 2008
Posts: 103
Received Thanks: 3
|
Quote:
Originally Posted by Kiyono
You're using CoEmu V2 and this is for LOTF.
|
opes
Did not watch out for that and thank everyone that tried to help me and everyone silly Woe
I'm careful to only sorry for all
Quote:
Originally Posted by Jay1029
This is ******* garbage LOL. Go learn some English before you try to give out instructions.
|
I am not trying to give instructions to the one I just wonder you and I am interested in the comeu v2
This why I not careful he is Lotf
you knew You are bumptious and conceited
|
|
|
07/30/2009, 19:48
|
#18
|
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 98
|
Why don't you try testing your code before you release it.
@m7med
I was talking to the person that released the code...not you.
=-=-=-=-=-=-=-=
Fixed//code that works for the people that couldn't understand a damn word that kid typed. It had 1 small problem.
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 [GM]KumaR"));
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 a free DragonBall from Santa and [GM]KumaR", "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 [GM]KumaR"));
Char.MyClient.SendPacket(General.MyPackets.NPCSay(" who needs christmas to give gifts, I will give you all a present"));
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 a free +9 Stone from [GM]KumaR", "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 a free DBScroll from [GM]KumaR", "SYSTEM", 2011);
World.SendMsgToAll("All of you got a free DBScroll from [GM]KumaR", "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 a free MoonBox from [GM]KumaR", "SYSTEM", 2011);
World.SendMsgToAll("All of you got a free MoonBox from [GM]KumaR", "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 a free CPBox (15,000 CPs) from [GM]KumaR", "SYSTEM", 2011);
World.SendMsgToAll("All of you got a free CPBox (15,000 CPs) from [GM]KumaR", "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 a free 2 socket DarkWizard from [GM]KumaR", "SYSTEM", 2011);
World.SendMsgToAll("All of you got a free 2 socket DarkWizard from [GM]KumaR", "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 a free 2 socket GoodLuck from [GM]KumaR", "SYSTEM", 2011);
World.SendMsgToAll("All of you got a free 2 socket GoodLuck from [GM]KumaR", "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 a free Emerald from [GM]KumaR", "SYSTEM", 2011);
World.SendMsgToAll("All of you got a free Emerald from [GM]KumaR", "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 a free PeinToken from [GM]KumaR", "SYSTEM", 2011);
World.SendMsgToAll("All of you got a free PeinToken from [GM]KumaR", "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 a free Sash(S) from [GM]KumaR", "SYSTEM", 2011);
World.SendMsgToAll("All of you got a free Sash(S) from [GM]KumaR", "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 a free Sash(M) from [GM]KumaR", "SYSTEM", 2011);
World.SendMsgToAll("All of you got a free Sash(M) from [GM]KumaR", "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 a free Sash(L) from [GM]KumaR", "SYSTEM", 2011);
World.SendMsgToAll("All of you got a free Sash(L) from [GM]KumaR", "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 a free 2nd RB scroll from [GM]KumaR", "SYSTEM", 2011);
World.SendMsgToAll("All of you got a free 2nd RB scroll from [GM]KumaR", "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 a free ImmortalStone from [GM]KumaR", "SYSTEM", 2011);
World.SendMsgToAll("All of you got a free ImmortalStone from [GM]KumaR", "SYSTEM", 2000);
}
}
|
|
|
|
|
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 02:58.
|
|