Example #1
0
        public void SkillFinished(Network.WorldClient client, IO.InteractiveObject io)
        {
            try
            {
                if (JobHelper.GetItemBySkill(this.ID) != -1)
                {
                    var quantity = Utilities.Basic.Rand(this.Min, this.GetDesByLevel());
                    Database.Records.WorldItemRecord item = Helper.ItemHelper.GenerateItem(client, JobHelper.GetItemBySkill(this.ID));
                    client.Character.AddItem(item, quantity);

                    client.Send("IQ" + client.Character.ID + "|" + quantity);
                    client.Action.RefreshPods();
                    this.BaseJob.AddExp(this.Exp, client);
                }
            }
            catch (Exception e)
            {
                Utilities.ConsoleStyle.Error("Can't finish job skill : " + e.ToString());
            }

            io.SetEmpty();
            io.StartRespawnTimer();
        }