Quests and Leves now load from the db.

This commit is contained in:
Filip Maj 2016-01-10 14:15:46 -05:00
parent 5b5b99bb4b
commit d9e274eb09
3 changed files with 41 additions and 24 deletions

View file

@ -84,12 +84,9 @@ namespace FFXIVClassic_Map_Server.dataobjects.chara
charaWork.command[14] = 0xA0F00000 | 29497;
charaWork.command[15] = 0xA0F00000 | 22015;
charaWork.command[32] = 0xA0F00000 | 27150;
for (int i = 0; i < 16; i++)
charaWork.commandCategory[i] = 1;
charaWork.commandCategory[32] = 1;
charaWork.commandBorder = 32;
Database.loadPlayerCharacter(this);
@ -228,19 +225,10 @@ namespace FFXIVClassic_Map_Server.dataobjects.chara
}
//Guildleve - Local
for (int i = 0; i < playerWork.questGuildLeve.Length; i++)
for (int i = 0; i < playerWork.questGuildleve.Length; i++)
{
if (playerWork.questGuildLeve[i] != 0)
propPacketUtil.addProperty(String.Format("playerWork.questGuildLeve[{0}]", i));
}
//NPC Linkshell
for (int i = 0; i < playerWork.npcLinkshellChatCalling.Length; i++)
{
if (playerWork.npcLinkshellChatCalling[i] != false)
propPacketUtil.addProperty(String.Format("playerWork.npcLinkshellChatCalling[{0}]", i));
if (playerWork.npcLinkshellChatExtra[i] != false)
propPacketUtil.addProperty(String.Format("playerWork.npcLinkshellChatExtra[{0}]", i));
if (playerWork.questGuildleve[i] != 0)
propPacketUtil.addProperty(String.Format("playerWork.questGuildleve[{0}]", i));
}
//Guildleve - Regional
@ -254,6 +242,15 @@ namespace FFXIVClassic_Map_Server.dataobjects.chara
propPacketUtil.addProperty(String.Format("work.guildleveChecked[{0}]", i));
}
//NPC Linkshell
for (int i = 0; i < playerWork.npcLinkshellChatCalling.Length; i++)
{
if (playerWork.npcLinkshellChatCalling[i] != false)
propPacketUtil.addProperty(String.Format("playerWork.npcLinkshellChatCalling[{0}]", i));
if (playerWork.npcLinkshellChatExtra[i] != false)
propPacketUtil.addProperty(String.Format("playerWork.npcLinkshellChatExtra[{0}]", i));
}
//Profile
propPacketUtil.addProperty("playerWork.tribe");
propPacketUtil.addProperty("playerWork.guardian");

View file

@ -17,7 +17,7 @@ namespace FFXIVClassic_Map_Server.dataobjects.chara
public int restBonusExpRate;
public uint[] questScenario = new uint[16];
public uint[] questGuildLeve = new uint[8];
public uint[] questGuildleve = new uint[8];
public int questScenarioComplete;
public int questGuildleveComplete;