MohamedModyAdel
2019-06-14, 04:16 PM
#region SubClassManager
case 123333:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("I Will Open All Sub Class Lvl 9 For 1 bress by Server [" + Constants.ServerName + "].");
dialog.Option("Open All Sub-Class Lvl 9", 1);
dialog.Option("See~you~later.", 255);
dialog.Avatar(76);
dialog.Send();
break;
}
case 1:
{
for (byte i = 1; i <= 9; i++)
{
if (i != 7 && i != 8)
{
if (!client.Player.SubClasses.Classes.ContainsKey(i))
{
Game.SubClass subClass3 = new Game.SubClass();
subClass3.ID = i;
subClass3.Phase = 9;
subClass3.Level = 9;
client.Player.SubClasses.Classes.Add(subClass3.ID, subClass3);
client.Player.SubClasses.SendLearn((ClassID)subCla ss3.ID, subClass3.Level, client);
MsgServer.Database.SubClassTable.Insert(client.Pla yer, subClass3.ID);
Database.SubClassTable.Update(client.Player, subClass3);
SubClassShow subClassShow3 = new SubClassShow(0);
subClassShow3.ID = SubClassShow.SendUpdate;
subClassShow3.Class = subClass3.ID;
client.Send(subClassShow3.ToArray());
client.Player.SubClasses.Send(client);
client.Player.SubClasses.SendPromoted((ClassID)sub Class3.ID, subClass3.Phase, client);
}
}
}
client.LoadItemStats();
break;
}
}
break;
}
#endregion
case 123333:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("I Will Open All Sub Class Lvl 9 For 1 bress by Server [" + Constants.ServerName + "].");
dialog.Option("Open All Sub-Class Lvl 9", 1);
dialog.Option("See~you~later.", 255);
dialog.Avatar(76);
dialog.Send();
break;
}
case 1:
{
for (byte i = 1; i <= 9; i++)
{
if (i != 7 && i != 8)
{
if (!client.Player.SubClasses.Classes.ContainsKey(i))
{
Game.SubClass subClass3 = new Game.SubClass();
subClass3.ID = i;
subClass3.Phase = 9;
subClass3.Level = 9;
client.Player.SubClasses.Classes.Add(subClass3.ID, subClass3);
client.Player.SubClasses.SendLearn((ClassID)subCla ss3.ID, subClass3.Level, client);
MsgServer.Database.SubClassTable.Insert(client.Pla yer, subClass3.ID);
Database.SubClassTable.Update(client.Player, subClass3);
SubClassShow subClassShow3 = new SubClassShow(0);
subClassShow3.ID = SubClassShow.SendUpdate;
subClassShow3.Class = subClass3.ID;
client.Send(subClassShow3.ToArray());
client.Player.SubClasses.Send(client);
client.Player.SubClasses.SendPromoted((ClassID)sub Class3.ID, subClass3.Phase, client);
}
}
}
client.LoadItemStats();
break;
}
}
break;
}
#endregion