|
You last visited: Today at 05:48
Advertisement
[Release]Super commands for LOTF
Discussion on [Release]Super commands for LOTF within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
01/19/2010, 09:16
|
#1
|
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
|
[Release]Super commands for LOTF
Here is alot commands for lotf.
That you can use.
They might be in source already, but these
are fixed =]
Some are also jsut some new commands =]
Botjail
Code:
if (Splitter[0] == "/botjail")
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Char = (Character)DE.Value;
if (Char.Name == Splitter[1])
{
World.SendMsgToAll(Splitter[1] + " has been botjailed by " + MyChar.Name, "SYSTEM", 2011);
Char.Teleport(6001, 50, 50);
Char.Silvers = 0;
Char.CPs = 0;
SendPacket(General.MyPackets.Vital((long)Char.UID, 13, Char.Silvers));
SendPacket(General.MyPackets.Vital((long)Char.UID, 13, Char.CPs));
}
else
{
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Sorry the Character:" + Splitter[1] + " is offline...Please try again later", 2000));
}
}
}
Warning
Code:
if (Splitter[0] == "/warning")
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Char = (Character)DE.Value;
if (Char.Name == Splitter[1])
{
World.SendMsgToAll(Splitter[1] + " has got a warning from " + MyChar.Name, "SYSTEM", 2011);
}
else
{
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Sorry the Character:" + Splitter[1] + " is offline...Please try again later", 2000));
}
}
}
Revive
Code:
if (Splitter[0] == "/revive")
{
if (MyChar.Alive == true)
{
MyChar.Alive = true;
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Sorry, but you are already alive", 2000));
}
else if (MyChar.LocMap == 1005 && MyChar.Alive == false)
{
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Sorry, but you can't use this command in arena.", 2000));
}
else if (MyChar.LocMap == 1038 && MyChar.Alive == false)
{
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Is not allowed to revive with command in guildwar.", 2000));
}
else if (MyChar.Alive == false)
{
MyChar.CurHP = MyChar.MaxHP;
MyChar.Alive = true;
MyChar.MyClient.SendPacket(General.MyPackets.Status1(MyChar.UID, 0));
MyChar.MyClient.SendPacket(General.MyPackets.Status3(MyChar.UID));
MyChar.MyClient.SendPacket(General.MyPackets.Vital(MyChar.UID, 26, MyChar.GetStat()));
MyChar.MyClient.SendPacket(General.MyPackets.CharacterInfo(MyChar));
MyChar.SendEquips(false);
MyChar.BlueName = false;
MyChar.MyClient.SendPacket(General.MyPackets.Vital(MyChar.UID, 26, MyChar.GetStat()));
MyChar.Stamina = 100;
MyChar.MyClient.SendPacket(General.MyPackets.Vital(MyChar.UID, 9, MyChar.Stamina));
MyChar.MyClient.SendPacket(General.MyPackets.String(MyChar.UID, 10, "born3"));
World.UpdateSpawn(MyChar);
}
}
World Chat
Code:
if (Splitter[0] == "/w")
{
Message = Message.Remove(0, 2);
World.SendMsgToAll(Message, MyChar.Name, 2000);
}
Silvers
Code:
if (Splitter[0] == "/silvers")
{
if (MyChar.LocMap == 6001)
{
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "You can not get silvers in botjail.", 2000));
}
else
{
uint NewSilvers = uint.Parse(Splitter[1]);
MyChar.Silvers = NewSilvers;
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 4, MyChar.Silvers));
}
}
CPs
Code:
if (Splitter[0] == "/cps")
{
if (MyChar.LocMap == 6001)
{
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "You can not get CPs in botjail..", 2000));
}
else
{
uint NewCPs = uint.Parse(Splitter[1]);
MyChar.CPs = NewCPs;
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.CPs));
}
}
Disconnect
Code:
if (Splitter[0] == "/dc")
{
MyChar.MyClient.Drop();
}
|
|
|
01/19/2010, 09:28
|
#2
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
|
@ botjail, why not have a character bool or int controlling if the player is botjailed or not and use that to control if they can be let out or not (int may work better to keep track of how many times the player has been sent there)
@ revive, why on map 1005 you printing a msg saying the person can't revive... and then going ahead and doing it anways? Seems odd but not a serious problem.
@ money/cp, you are updating client money/cp without printing any msg... no reason to update if you aren't changing it. Why not just have it print out a msg saying that "you can't use this cmd on this map" or w/e. Kinda pointless updating it if it isn't actually being used.
Nothing serious, just some minor suggestions/fixes.
|
|
|
01/19/2010, 09:31
|
#3
|
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
|
Quote:
Originally Posted by pro4never
@ botjail, why not have a character bool or int controlling if the player is botjailed or not and use that to control if they can be let out or not (int may work better to keep track of how many times the player has been sent there)
@ revive, why on map 1005 you printing a msg saying the person can't revive... and then going ahead and doing it anways? Seems odd but not a serious problem.
@ money/cp, you are updating client money/cp without printing any msg... no reason to update if you aren't changing it. Why not just have it print out a msg saying that "you can't use this cmd on this map" or w/e. Kinda pointless updating it if it isn't actually being used.
Nothing serious, just some minor suggestions/fixes.
|
For the botjail, it was jsut the ban command edited =]
the revive.
It dosnt revive in 1005 and 1005 is arena =]
So you cant revive in arena
The money and cp is so you cant use cp/money command in botjail =]
|
|
|
01/19/2010, 09:40
|
#4
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
|
Quote:
Originally Posted by N¡ghtMare ?? WooT
For the botjail, it was jsut the ban command edited =]
the revive.
It dosnt revive in 1005 and 1005 is arena =]
So you cant revive in arena
The money and cp is so you cant use cp/money command in botjail =]
|
if (MyChar.LocMap == 6001)
{
SendPacket(General.MyPackets.Vital((long)MyChar.UI D, 30, MyChar.CPs));
}
You are saying if they are on that map that you are going to update their cp's/gold client side.That's what I was referring too, it's not needed and is kinda pointless. I would replace the sendpacket code that updates client cp with something such as a system msg telling them that they cannot use the command where they currently are.
Code:
else if (MyChar.LocMap == 1005 && MyChar.Alive == false)
{
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Sorry, but you can't use this command in arena.", 2000));
[b]MyChar.CurHP = MyChar.MaxHP;[/b]
[b]MyChar.Alive = true;[/b]
MyChar.MyClient.SendPacket(General.MyPackets.Status1(MyChar.UID, 0));
MyChar.MyClient.SendPacket(General.MyPackets.Status3(MyChar.UID));
MyChar.MyClient.SendPacket(General.MyPackets.Vital(MyChar.UID, 26, MyChar.GetStat()));
MyChar.MyClient.SendPacket(General.MyPackets.CharacterInfo(MyChar));
MyChar.SendEquips(false);
MyChar.BlueName = false;
MyChar.MyClient.SendPacket(General.MyPackets.Vital(MyChar.UID, 26, MyChar.GetStat()));
MyChar.Stamina = 100;
MyChar.MyClient.SendPacket(General.MyPackets.Vital(MyChar.UID, 9, MyChar.Stamina));
MyChar.MyClient.SendPacket(General.MyPackets.String(MyChar.UID, 10, "born3"));
World.UpdateSpawn(MyChar);
}
Sure looks to me like you are reviving even if they are in that map. You print out a msg saying they can't use it... then you go into a bunch of code filling up hp/stamina, updating them client side, changing the bool and updating clients around them...
|
|
|
01/19/2010, 09:43
|
#5
|
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
|
Quote:
Originally Posted by pro4never
if (MyChar.LocMap == 6001)
{
SendPacket(General.MyPackets.Vital((long)MyChar.UI D, 30, MyChar.CPs));
}
You are saying if they are on that map that you are going to update their cp's/gold client side.That's what I was referring too, it's not needed and is kinda pointless. I would replace the sendpacket code that updates client cp with something such as a system msg telling them that they cannot use the command where they currently are.
Code:
else if (MyChar.LocMap == 1005 && MyChar.Alive == false)
{
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Sorry, but you can't use this command in arena.", 2000));
[b]MyChar.CurHP = MyChar.MaxHP;[/b]
[b]MyChar.Alive = true;[/b]
MyChar.MyClient.SendPacket(General.MyPackets.Status1(MyChar.UID, 0));
MyChar.MyClient.SendPacket(General.MyPackets.Status3(MyChar.UID));
MyChar.MyClient.SendPacket(General.MyPackets.Vital(MyChar.UID, 26, MyChar.GetStat()));
MyChar.MyClient.SendPacket(General.MyPackets.CharacterInfo(MyChar));
MyChar.SendEquips(false);
MyChar.BlueName = false;
MyChar.MyClient.SendPacket(General.MyPackets.Vital(MyChar.UID, 26, MyChar.GetStat()));
MyChar.Stamina = 100;
MyChar.MyClient.SendPacket(General.MyPackets.Vital(MyChar.UID, 9, MyChar.Stamina));
MyChar.MyClient.SendPacket(General.MyPackets.String(MyChar.UID, 10, "born3"));
World.UpdateSpawn(MyChar);
}
Sure looks to me like you are reviving even if they are in that map. You print out a msg saying they can't use it... then you go into a bunch of code filling up hp/stamina, updating them client side, changing the bool and updating clients around them...
|
Oh, thanks =]
Fixed now =]
|
|
|
01/19/2010, 18:24
|
#6
|
elite*gold: 0
Join Date: Dec 2009
Posts: 583
Received Thanks: 119
|
Goodjob night =P
|
|
|
01/19/2010, 19:17
|
#7
|
elite*gold: 111
Join Date: Feb 2008
Posts: 2,161
Received Thanks: 646
|
I lol'd at the "Super" part.
Search around next time. All of them are allready released.
|
|
|
01/20/2010, 03:22
|
#8
|
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
|
Quote:
Originally Posted by ~*NewDuuDe*~
I lol'd at the "Super" part.
Search around next time. All of them are allready released.
|
yea yea what ever
|
|
|
01/26/2010, 01:06
|
#9
|
elite*gold: 0
Join Date: Jan 2010
Posts: 36
Received Thanks: 8
|
Nightmare, what was your previous account?
|
|
|
01/26/2010, 09:11
|
#10
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by Vultix
Nightmare, what was your previous account?
|
If you have something personal to say to someone please use the pm function.
|
|
|
01/26/2010, 14:13
|
#11
|
elite*gold: 0
Join Date: Jan 2010
Posts: 89
Received Thanks: 3
|
Hey all !
Plz where can i put this?
Thanks in advance
Cordialy, Me
|
|
|
01/26/2010, 17:47
|
#12
|
elite*gold: 0
Join Date: Aug 2009
Posts: 424
Received Thanks: 108
|
Quote:
Originally Posted by TiPoucet
Hey all !
Plz where can i put this?
Thanks in advance
Cordialy, Me
|
Search in your LOTF source, "/item" put these commands after that command code.
Press thanks if that helped you. >.>
|
|
|
Similar Threads
|
[RELEASE]Some New LOTF commands
07/06/2009 - CO2 PServer Guides & Releases - 9 Replies
Very simple go to where all ur other commands and are put these 2 in or what ever one u want in
////////CREDITS Go To Pete////////////////
if (Splitter == "/givecps")
{
foreach (DictionaryEntry DE in World.AllChars)
{
...
|
[Release] Super Edited LOTF Source
05/09/2009 - CO2 PServer Guides & Releases - 88 Replies
Many features within the source. Come leech leech leech leech.
including:
-Dis City
-Control Panel
-PK Tournament fully working.
-Guild war fully working. (Guild names show on the right-top corner)
-Many commands.
-Lucky Time (Re-coded)
-Heaven Blessing (Re-coded)
-Nobility
|
Few Commands PeTe and I coded(for Lotf)
02/23/2009 - CO2 Private Server - 24 Replies
deleted due 2 people flaming me
|
Commands for LOTF server?
08/13/2008 - Conquer Online 2 - 11 Replies
Can some1 post Fully commands for LOTF server? i got some problems with making items.. i cant make em:/...
|
All times are GMT +2. The time now is 05:48.
|
|