Edit::OH, you mean all characters... that's my bad =P
Like, if you want all characters online, you can just run foreach loop, else it'd take some different coding D=<
Edit::OH, you mean all characters... that's my bad =P
Like, if you want all characters online, you can just run foreach loop, else it'd take some different coding D=<
nice but i think he means that he want a command that reset all pkps from all characters in lotf
Edit::OH, you mean all characters... that's my bad =P
Like, if you want all characters online, you can just run foreach loop, else it'd take some different coding D=<
trying to get it too do it to all chars in the database regardless if ther online
or offline, still playing around w/the code
well this is just the first part im trying to figure out, wut im trying to do is first figure out
how to reset every1's pkp even if ther offline, then my next step after i figure that out
is to figure out how to make it automatically reset all pkp n the database at a certain time
of day, example 0:00 every day it would reset the pkp
well this is just the first part im trying to figure out, wut im trying to do is first figure out
how to reset every1's pkp even if ther offline, then my next step after i figure that out
is to figure out how to make it automatically reset all pkp n the database at a certain time
of day, example 0:00 every day it would reset the pkp
its this:
Quote:
if (Splitter[0] == "/clearallpkp")
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Char = (Character)DE.Value;
{
Char.PKPoints = 0;
Char.BlueName = false;
SendPacket(General.MyPackets.Vital(Char.UID, 6, Char.PKPoints));
World.UpdateSpawn(Char);
SendPacket(General.MyPackets.CharacterInfo(Char));
Char.SendEquips(false);
SendPacket(General.MyPackets.Vital(Char.UID, 26, Char.GetStat()));
World.SpawnMeToOthers(Char, true);
}
}
}
i assume your running lotf based database and source so it will be somewhat along the lines of
Code:
MySqlCommand MySqlCmd = new MySqlCommand("UPDATE `characters` SET `PKPoints` = 0", Connection);
MySqlCmd.ExecuteNonQuery();
I am far from a genius with mysql so no doubt that will need correcting
LMAO, why did it take that long for someone to post this? XD.. it's so dang obvious XDDD -- as soon as I read the first post I had that ready in my mind but had to read other posts so as to make sure not to repost... everyone that gave anything other than this -- it is now plainly obvious that you do nothing but copypaste and minor edits
LMAO, why did it take that long for someone to post this? XD.. it's so dang obvious XDDD -- as soon as I read the first post I had that ready in my mind but had to read other posts so as to make sure not to repost... everyone that gave anything other than this -- it is now plainly obvious that you do nothing but copypaste and minor edits
kd reset 04/02/2010 - Combat Arms - 19 Replies Was wird bei einen KD reset alles zurückgesetzt?
reset 08/30/2009 - Metin2 Private Server - 1 Replies hallo auf dem nonameserver
habe ich mich heute eingeloggt und fand keinen char vor obwohl ich gestern einen erstellt habe deswegen meine frage braucht man proxy?
reset yt2 07/21/2009 - Metin2 Private Server - 1 Replies Also bin im urlaub am pc hab da kein yt2 oder so wurde s1 reset wegen neune chs oder wie und wenn ja auf welche datuum:confused:
name reset 07/01/2008 - Dekaron - 1 Replies just wondering if there was anyways to change your IGN. ty