mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-27 21:06:08 +02:00
fixed some timers
- status icons now display (<3 u ion) - todo: populate status tables, figure out why effect wont tick down for me
This commit is contained in:
parent
ddad27a5f9
commit
8bebba64b3
10 changed files with 55 additions and 35 deletions
|
@ -1814,10 +1814,14 @@ namespace FFXIVClassic_Map_Server
|
|||
{
|
||||
var duration = effect.GetDurationMs() + effect.GetStartTime().Millisecond - Program.Tick.Millisecond;
|
||||
|
||||
queries += Environment.NewLine + $"REPLACE INTO characters_statuseffect(characterId, statusId, magnitude, duration, tick, tier, extra) VALUES ({player.actorId}, {effect.GetEffectId()}, {effect.GetMagnitude()}, {duration}, {effect.GetTickMs()}, {effect.GetTier()}, {effect.GetExtra()});";
|
||||
queries += Environment.NewLine + $"REPLACE INTO characters_statuseffect(characterId, statusId, magnitude, duration, tick, tier, extra) VALUES ({player.actorId}, {effect.GetStatusEffectId()}, {effect.GetMagnitude()}, {duration}, {effect.GetTickMs()}, {effect.GetTier()}, {effect.GetExtra()});";
|
||||
}
|
||||
|
||||
if (queries.Length > 0)
|
||||
{
|
||||
MySqlCommand cmd = new MySqlCommand(queries, conn);
|
||||
cmd.ExecuteNonQuery();
|
||||
}
|
||||
MySqlCommand cmd = new MySqlCommand(queries, conn);
|
||||
cmd.ExecuteNonQuery();
|
||||
}
|
||||
catch (MySqlException e)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue