not sure about what you meant with every registered user.
a registered user or each char in the database or each char connected on the server.
the code below should work for each char in nano.clientspool
Code:
case "cps":
{
if(Command.Length == 2 && CSocket.Client.isPM || CSocket.Client.isGM)
{
[COLOR="Red"]foreach (KeyValuePair<int, ClientSocket> Clients in Nano.ClientPool)[/COLOR]
{
int Cps = Convert.ToInt32(Command[1]);
Clients.Value.Client.CPs += Cps;
Clients.Value.Send(ConquerPacket.Chat(0, "SYSTEM", Clients.Value.Client.Name, "You now have " + Clients.Value.Client.CPs + " CPs.", Struct.ChatType.Top));
Clients.Value.Send(ConquerPacket.Status(Clients.Value, 2, Clients.Value.Client.CPs, Struct.StatusTypes.InvCPoints));
}
}
break;
}
if you want it for each char in the database you'll be better of with a little php else you'll have to select all chars in the source first which would be useless.
not sure about what you meant with every registered user.
a registered user or each char in the database or each char connected on the server.
the code below should work for each char in nano.clientspool
Code:
case "cps":
{
if(Command.Length == 2 && CSocket.Client.isPM || CSocket.Client.isGM)
{
[COLOR="Red"]foreach (KeyValuePair<int, ClientSocket> Clients in Nano.ClientPool)[/COLOR]
{
int Cps = Convert.ToInt32(Command[1]);
Clients.Value.Client.CPs += Cps;
Clients.Value.Send(ConquerPacket.Chat(0, "SYSTEM", Clients.Value.Client.Name, "You now have " + Clients.Value.Client.CPs + " CPs.", Struct.ChatType.Top));
Clients.Value.Send(ConquerPacket.Status(Clients.Value, 2, Clients.Value.Client.CPs, Struct.StatusTypes.InvCPoints));
}
}
break;
}
if you want it for each char in the database you'll be better of with a little php else you'll have to select all chars in the source first which would be useless.
Shorter DUN Abyss? 11/07/2009 - Dekaron - 7 Replies Hi folks,
Is there a way of shortening the Abyss dun? It takes 45 minutes to spawn the last boss.
With speedhack I noticed the counter runs faster (45'/speed hack) but I think it's only on client side.
Thanks!
Idea-modify packet like Frenzy skill so it can have shorter reusetime 11/25/2007 - Lineage 2 - 0 Replies Hi,
i have idea. What about when u use some buff(frenzy,zealot...) and u modify packet, so reuse this skill can be not 5min but 30sec? Or buff(frenzy) can be not 90sec but 120sec?
I saw it in other mmorpg(Archlord), ppl modified packet and cooldown of skill was 0.... ---- ARCHLORD