public override void Ready(bool ready, ushort step)
        {
            var crafterLevel  = CharacterJobRecord.GetJob(Client.Character.Id, JobId).JobLevel;
            var currentRecipe = RecipeRecord.GetRecipe(CraftedItems, (ushort)SkillId);

            if (currentRecipe.IsNull())
            {
                Client.Send(new ExchangeCraftResultMessage((sbyte)CraftResultEnum.CRAFT_IMPOSSIBLE));
                return;
            }
            else if (currentRecipe.ResultLevel > crafterLevel)
            {
                Client.Character.Reply("Vous n'avez pas le niveau pour effectuer ce craft!");
                return;
            }
            ReplayEngine = new CraftReplayEngine(this, currentRecipe);
            ReplayEngine.Start();
        }
Esempio n. 2
0
 public override void Ready(bool ready, ushort step)
 {
     var crafterLevel = CharacterJobRecord.GetJob(Client.Character.Id, JobId).JobLevel;
     var currentRecipe = RecipeRecord.GetRecipe(CraftedItems, (ushort)SkillId);
     if (currentRecipe.IsNull())
     {
         Client.Send(new ExchangeCraftResultMessage((sbyte)CraftResultEnum.CRAFT_IMPOSSIBLE));
         return;
     }
     else if (currentRecipe.ResultLevel > crafterLevel)
     {
         Client.Character.Reply("Vous n'avez pas le niveau pour effectuer ce craft!");
         return;
     }
     ReplayEngine = new CraftReplayEngine(this, currentRecipe);
     ReplayEngine.Start();
 }