Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public unsafe class Dialog
- {
- public bool Sent = false;
- public static IniFile AvatarLinker = null;
- public Client Client;
- public List<MsgTaskDialog> Replies;
- public Dialog(Client client)
- {
- Client = client;
- Replies = new List<MsgTaskDialog>();
- }
- public Dialog Text(string text)
- {
- if (text.Length > 100)
- {
- if (text.Length > 980)
- text = text.Substring(0, 980);
- int myLength = text.Length;
- while (myLength > 0)
- {
- int lastIndex = 100;
- if (myLength < 100)
- lastIndex = myLength;
- string txt = text.Substring(0, lastIndex);
- text = text.Substring(lastIndex, myLength - lastIndex);
- myLength -= lastIndex;
- Replies.Add(new MsgTaskDialog(MsgTaskDialog.Dialog, txt));
- }
- }
- else Replies.Add(new MsgTaskDialog(MsgTaskDialog.Dialog, text));
- return this;
- }
- public Dialog Option(string text, byte id = 255)
- {
- Replies.Add(new MsgTaskDialog(MsgTaskDialog.Option, text) { OptionID = id });
- return this;
- }
- public Dialog Avatar(uint npcMesh)
- {
- if (Replies.Count == 0)
- Replies.Add(new MsgTaskDialog(MsgTaskDialog.Avatar, "") { InputMaxLength = (byte)npcMesh });
- else
- Replies[0].InputMaxLength = (byte)npcMesh;
- return this;
- }
- public Dialog Input(string text, byte id, byte maxLength)
- {
- Replies.Add(new MsgTaskDialog(true)
- {
- DontDisplay = true,
- InputMaxLength = maxLength,
- InteractType = MsgTaskDialog.Input,
- OptionID = id,
- Text = text
- });
- return this;
- }
- public Dialog Send()
- {
- foreach (MsgTaskDialog nr in Replies)
- Client.Send(nr);
- Client.Send(new MsgTaskDialog(true) { InteractType = MsgTaskDialog.Finish, DontDisplay = false });
- Replies.Clear();
- Sent = true;
- return this;
- }
- public static ISkill LearnableSpell(ushort spellid)
- {
- ISkill spell = new MsgMagicInfo(true);
- spell.ID = spellid;
- return spell;
- }
- public static ISkill LearnableSpell(ushort spellid, byte level)
- {
- ISkill spell = new MsgMagicInfo(true);
- spell.ID = spellid;
- spell.Level = level;
- return spell;
- }
- public static bool InvalidCharacters(string Name)
- {
- if (Name.Length > 16)
- Name = Name.Substring(0, 16);
- if (Name == "")
- return false;
- foreach (Char c in Name)
- if (Elements.Kernel.InvalidCharacters.Contains(c) || (byte)c < 48)
- return true;
- return true;
- }
- public static void GetDialog(MsgTaskDialog npcRequest, Client client, bool bypass = false)
- {
- if (!bypass)
- {
- if (AvatarLinker == null)
- AvatarLinker = new IniFile("\\database\\npc.ini");
- Dialog dialog = new Dialog(client);
- npcRequest.Dialogs = dialog;
- if (!client.Map.Npcs.ContainsKey(client.ActiveNpc) || npcRequest == null || client == null || client.Entity == null || (npcRequest.NpcID == 0 && npcRequest.OptionID == 255)) return;
- if (client.Trade != null) if (client.Trade.InTrade) return;
- INpc npcs = null;
- if (client.Map.Npcs.TryGetValue(client.ActiveNpc, out npcs))
- {
- ushort avatar = (ushort)AvatarLinker.Readint16("NpcType" + (npcs.Mesh / 10), "SimpleObjID", 1);
- dialog.Avatar(avatar);
- }
- #region Invoke
- Action<MsgTaskDialog, Client> _invoker = TryGet(client.ActiveNpc) as Action<MsgTaskDialog, Client>;
- if (_invoker != null) _invoker.Invoke(npcRequest, client);
- #endregion
- if (!dialog.Sent)
- if (dialog.Replies.Count > 1)
- dialog.Send();
- }
- }
- #region - Job Center -
- #region - Warrior Skills -
- public static string WarriorSkills(byte type, Client client)
- {
- switch (type)
- {
- #region -- XPSkills --
- case 1:
- {
- ushort SkillID1 = 1015;
- ushort SkillID2 = 1020;
- ushort SkillID3 = 1025;
- string SkillName = "XPSkills";
- if (!client.Spells.ContainsKey(SkillID1) && !client.Spells.ContainsKey(SkillID2) && !client.Spells.ContainsKey(SkillID3)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID1) && client.Spells.ContainsKey(SkillID2) && client.Spells.ContainsKey(SkillID3)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Dash --
- case 2:
- {
- ushort SkillID = 1051;
- string SkillName = "Dash";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- DefensiveStance --
- case 3:
- {
- ushort SkillID = 11160;
- string SkillName = "DefensiveStance";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- MagicDefender --
- case 4:
- {
- ushort SkillID = 11200;
- string SkillName = "MagicDefender";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- ChargingVortex --
- case 5:
- {
- ushort SkillID = 11190;
- string SkillName = "ChargingVortex";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- ScarOfEarth --
- case 6:
- {
- ushort SkillID = 12670;
- string SkillName = "ScarOfEarth";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- WaveOfBlood --
- case 7:
- {
- ushort SkillID = 12690;
- string SkillName = "WaveOfBlood";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- ManiacDance --
- case 8:
- {
- ushort SkillID = 12700;
- string SkillName = "ManiacDance";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- TwistOfWar --
- case 9:
- {
- ushort SkillID = 12660;
- string SkillName = "TwistOfWar";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- BackFire --
- case 10:
- {
- ushort SkillID = 12680;
- string SkillName = "BackFire";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Pounce --
- case 11:
- {
- ushort SkillID = 12770;
- string SkillName = "Pounce";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- default: return "";
- }
- }
- #endregion
- #region - Archer Skills -
- public static string ArcherSkills(byte type, Client client)
- {
- switch (type)
- {
- #region -- XPSkill --
- case 1:
- {
- ushort SkillID = 8002;
- string SkillName = "XPSkill";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Scatter --
- case 2:
- {
- ushort SkillID = 8001;
- string SkillName = "Scatter";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- RapidFire --
- case 3:
- {
- ushort SkillID = 8000;
- string SkillName = "RapidFire";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Fly --
- case 4:
- {
- ushort SkillID = 8003;
- string SkillName = "Fly";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Intensify --
- case 5:
- {
- ushort SkillID = 9000;
- string SkillName = "Intensify";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- ArrowRain --
- case 6:
- {
- ushort SkillID = 8030;
- string SkillName = "ArrowRain";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- AdvancedFly --
- case 7:
- {
- ushort SkillID = 8003;
- string SkillName = "AdvancedFly";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- PathOfShadow --
- case 8:
- {
- ushort SkillID = 11620;
- string SkillName = "PathOfShadow";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- BladeFlurry --
- case 9:
- {
- ushort SkillID = 11610;
- string SkillName = "BladeFlurry";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- MortalWound --
- case 10:
- {
- ushort SkillID = 11660;
- string SkillName = "MortalWound";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- KineticSpark --
- case 11:
- {
- ushort SkillID = 11590;
- string SkillName = "KineticSpark";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- BlisteringWave --
- case 12:
- {
- ushort SkillID = 11650;
- string SkillName = "BlisteringWave";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- SpiritFocus --
- case 13:
- {
- ushort SkillID = 11670;
- string SkillName = "SpiritFocus";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- DaggerStorm --
- case 14:
- {
- ushort SkillID = 11600;
- string SkillName = "DaggerStorm";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- default: return "";
- }
- }
- #endregion
- #region - Ninja Skills -
- public static string NinjaSkills(byte type, Client client)
- {
- switch (type)
- {
- #region -- TwofoldBlades --
- case 1:
- {
- ushort SkillID = 6000;
- string SkillName = "TwofoldBlades";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- ToxicFog --
- case 2:
- {
- ushort SkillID = 6001;
- string SkillName = "ToxicFog";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- PoisonStar --
- case 3:
- {
- ushort SkillID = 6002;
- string SkillName = "PoisonStar";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- CounterKill --
- case 4:
- {
- ushort SkillID = 6003;
- string SkillName = "CounterKill";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- ArcherBane --
- case 5:
- {
- ushort SkillID = 6004;
- string SkillName = "ArcherBane";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Shuriken Vortex --
- case 6:
- {
- ushort SkillID = 6010;
- string SkillName = "Shuriken Vortex";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- FatalStrike --
- case 7:
- {
- ushort SkillID = 6011;
- string SkillName = "FatalStrike";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- BloodyScythe --
- case 8:
- {
- ushort SkillID = 11170;
- string SkillName = "BloodyScythe";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- MortalDrag --
- case 9:
- {
- ushort SkillID = 11180;
- string SkillName = "MortalDrag";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- GapingWounds --
- case 10:
- {
- ushort SkillID = 11230;
- string SkillName = "GapingWounds";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- TwilightDance --
- case 11:
- {
- ushort SkillID = 12070;
- string SkillName = "TwilightDance";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- ShadowClone --
- case 12:
- {
- ushort SkillID = 12090;
- string SkillName = "ShadowClone";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- SuperTwofoldBlade --
- case 13:
- {
- ushort SkillID = 12080;
- string SkillName = "SuperTwofoldBlade";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- FatalSpin --
- case 14:
- {
- ushort SkillID = 12110;
- string SkillName = "FatalSpin";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- default: return "";
- }
- }
- #endregion
- #region - Monk Skills -
- public static string MonkSkills(byte type, Client client)
- {
- switch (type)
- {
- #region -- TripleAttack --
- case 1:
- {
- ushort SkillID = 10490;
- string SkillName = "TripleAttack";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- OblivionXP --
- case 2:
- {
- ushort SkillID = 10390;
- string SkillName = "OblivionXP";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- WhirlwindKick --
- case 3:
- {
- ushort SkillID = 10415;
- string SkillName = "WhirlwindKick";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- RadiantPalm --
- case 4:
- {
- ushort SkillID = 10381;
- string SkillName = "RadiantPalm";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Serenity --
- case 5:
- {
- ushort SkillID = 10400;
- string SkillName = "Serenity";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Tranquility --
- case 6:
- {
- ushort SkillID = 10425;
- string SkillName = "Tranquility";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Compassion --
- case 7:
- {
- ushort SkillID = 10430;
- string SkillName = "Compassion";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- TyrantAura --
- case 8:
- {
- ushort SkillID = 10395;
- string SkillName = "TyrantAura";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- FendAura --
- case 9:
- {
- ushort SkillID = 10410;
- string SkillName = "FendAura";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- MetalAura --
- case 10:
- {
- ushort SkillID = 10420;
- string SkillName = "MetalAura";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- WoodAura --
- case 11:
- {
- ushort SkillID = 10421;
- string SkillName = "WoodAura";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- WaterAura --
- case 12:
- {
- ushort SkillID = 10422;
- string SkillName = "WaterAura";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- FireAura --
- case 13:
- {
- ushort SkillID = 10423;
- string SkillName = "FireAura";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- EarthArua --
- case 14:
- {
- ushort SkillID = 10424;
- string SkillName = "EarthArua";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- WrathOfTheEmperor --
- case 15:
- {
- ushort SkillID = 12570;
- string SkillName = "WrathOfTheEmperor";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- GraceOfHeaven --
- case 16:
- {
- ushort SkillID = 12560;
- string SkillName = "GraceOfHeaven";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- InfernalEcho --
- case 17:
- {
- ushort SkillID = 12550;
- string SkillName = "InfernalEcho";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- default: return "";
- }
- }
- #endregion
- #region - Trojan Skills -
- public static string TrojanSkills(byte type, Client client)
- {
- switch (type)
- {
- #region -- XPSkills --
- case 1:
- {
- ushort SkillID1 = 1110;
- ushort SkillID2 = 1015;
- string SkillName = "XPSkills";
- if (!client.Spells.ContainsKey(SkillID1) && !client.Spells.ContainsKey(SkillID2)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID1) && client.Spells.ContainsKey(SkillID2)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Hercules --
- case 2:
- {
- ushort SkillID = 1115;
- string SkillName = "Hercules";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Golem --
- case 3:
- {
- ushort SkillID = 1270;
- string SkillName = "Golem";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- SpiritHealing --
- case 4:
- {
- ushort SkillID = 1190;
- string SkillName = "SpiritHealing";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- SuperCyclone --
- case 5:
- {
- ushort SkillID = 11970;
- string SkillName = "SuperCyclone";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- FatalCross --
- case 6:
- {
- ushort SkillID = 11980;
- string SkillName = "FatalCross";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- MortalStrike --
- case 7:
- {
- ushort SkillID = 11990;
- string SkillName = "MortalStrike";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- BreathFocus --
- case 8:
- {
- ushort SkillID = 11960;
- string SkillName = "BreathFocus";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- default: return "";
- }
- }
- #endregion
- #region - Taiost Skills -
- public static string TaiostSkills(byte type, Client client)
- {
- switch (type)
- {
- #region -- Thunder --
- case 1:
- {
- ushort SkillID = 1000;
- string SkillName = "Thunder";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Fire --
- case 2:
- {
- ushort SkillID = 1001;
- string SkillName = "Fire";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Cure --
- case 3:
- {
- ushort SkillID = 1005;
- string SkillName = "Cure";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Meditation --
- case 4:
- {
- ushort SkillID = 1195;
- string SkillName = "Meditation";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- HealingRain --
- case 5:
- {
- ushort SkillID = 1055;
- string SkillName = "HealingRain";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Invisibility --
- case 6:
- {
- ushort SkillID = 1075;
- string SkillName = "Invisibility";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- StarOfAccuracy --
- case 7:
- {
- ushort SkillID = 1085;
- string SkillName = "StarOfAccuracy";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- MagicShield --
- case 8:
- {
- ushort SkillID = 1090;
- string SkillName = "MagicShield";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Stigma --
- case 9:
- {
- ushort SkillID = 1095;
- string SkillName = "Stigma";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Pray --
- case 10:
- {
- ushort SkillID = 1100;
- string SkillName = "Pray";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- AdvancedCure --
- case 11:
- {
- ushort SkillID = 1175;
- string SkillName = "AdvancedCure";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Nectar --
- case 12:
- {
- ushort SkillID = 1170;
- string SkillName = "Nectar";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Volcano --
- case 13:
- {
- ushort SkillID = 1125;
- string SkillName = "Volcano";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Lightning --
- case 14:
- {
- ushort SkillID = 1010;
- string SkillName = "Lightning";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Revive --
- case 15:
- {
- ushort SkillID = 1050;
- string SkillName = "Revive";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- ChainBolt --
- case 16:
- {
- ushort SkillID = 10309;
- string SkillName = "ChainBolt";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- AzureShield --
- case 17:
- {
- ushort SkillID = 30000;
- string SkillName = "AzureShield";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- AuroraLotus --
- case 18:
- {
- ushort SkillID = 12370;
- string SkillName = "AuroraLotus";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- BlessingTouch --
- case 19:
- {
- ushort SkillID = 12390;
- string SkillName = "BlessingTouch";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- FireRing --
- case 20:
- {
- ushort SkillID = 1150;
- string SkillName = "FireRing";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- FireMeteor --
- case 21:
- {
- ushort SkillID = 1180;
- string SkillName = "FireMeteor";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- FireCircle --
- case 22:
- {
- ushort SkillID = 1120;
- string SkillName = "FireCircle";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Bomb --
- case 23:
- {
- ushort SkillID = 1160;
- string SkillName = "Bomb";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- FireOfHell --
- case 24:
- {
- ushort SkillID = 1165;
- string SkillName = "FireOfHell";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Tornado --
- case 25:
- {
- ushort SkillID = 1002;
- string SkillName = "Tornado";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Volcano --
- case 26:
- {
- ushort SkillID = 1125;
- string SkillName = "Volcano";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Lightning --
- case 27:
- {
- ushort SkillID = 1010;
- string SkillName = "Lightning";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- SpeedLightning --
- case 28:
- {
- ushort SkillID = 5001;
- string SkillName = "SpeedLightning";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- ChainBolt --
- case 29:
- {
- ushort SkillID = 10309;
- string SkillName = "ChainBolt";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- HeavenBlade --
- case 30:
- {
- ushort SkillID = 10310;
- string SkillName = "HeavenBlade";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- FlameLotus --
- case 31:
- {
- ushort SkillID = 12380;
- string SkillName = "FlameLotus";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- SearingTouch --
- case 32:
- {
- ushort SkillID = 12400;
- string SkillName = "SearingTouch";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- default: return "";
- }
- }
- #endregion
- #region - Pirate Skills -
- public static string PirateSkills(byte type, Client client)
- {
- switch (type)
- {
- #region -- BladeTempest --
- case 1:
- {
- ushort SkillID = 11110;
- string SkillName = "BladeTempest";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- ScurvyBomb --
- case 2:
- {
- ushort SkillID = 11040;
- string SkillName = "ScurvyBomb";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- CannonBarrage --
- case 3:
- {
- ushort SkillID = 11050;
- string SkillName = "CannonBarrage";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Blackbeard`sRage --
- case 4:
- {
- ushort SkillID = 11060;
- string SkillName = "Blackbeard`sRage";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- GaleBomb --
- case 5:
- {
- ushort SkillID = 11070;
- string SkillName = "GaleBomb";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Kraken`sRevenge --
- case 6:
- {
- ushort SkillID = 11100;
- string SkillName = "Kraken`sRevenge";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- BlackSpot --
- case 7:
- {
- ushort SkillID = 11120;
- string SkillName = "BlackSpot";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- AdrenalineRush --
- case 8:
- {
- ushort SkillID = 11130;
- string SkillName = "AdrenalineRush";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- EagleEye --
- case 9:
- {
- ushort SkillID = 11030;
- string SkillName = "EagleEye";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Windstorm --
- case 10:
- {
- ushort SkillID = 11140;
- string SkillName = "Windstorm";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- WoodAura --
- case 11:
- {
- ushort SkillID = 10421;
- string SkillName = "WoodAura";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- WaterAura --
- case 12:
- {
- ushort SkillID = 10422;
- string SkillName = "WaterAura";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- FireAura --
- case 13:
- {
- ushort SkillID = 10423;
- string SkillName = "FireAura";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- EarthAura --
- case 14:
- {
- ushort SkillID = 10424;
- string SkillName = "EarthAura";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- default: return "";
- }
- }
- #endregion
- #region - DragonWarrior Skills -
- public static string DragonWarriorSkills(byte type, Client client)
- {
- switch (type)
- {
- #region -- DragonPunch --
- case 1:
- {
- ushort SkillID1 = 12240;
- ushort SkillID2 = 12220;
- ushort SkillID3 = 12210;
- string SkillName = "DragonPunch";
- if (!client.Spells.ContainsKey(SkillID1) && !client.Spells.ContainsKey(SkillID2) && !client.Spells.ContainsKey(SkillID3)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID1) && client.Spells.ContainsKey(SkillID2) && client.Spells.ContainsKey(SkillID3)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- DragonCyclone --
- case 2:
- {
- ushort SkillID = 12290;
- string SkillName = "DragonCyclone";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- AirKick --
- case 3:
- {
- ushort SkillID1 = 12320;
- ushort SkillID2 = 12330;
- ushort SkillID3 = 12340;
- string SkillName = "AirKick";
- if (!client.Spells.ContainsKey(SkillID1) && !client.Spells.ContainsKey(SkillID2) && !client.Spells.ContainsKey(SkillID3)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID1) && client.Spells.ContainsKey(SkillID2) && client.Spells.ContainsKey(SkillID3)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- DragonFlow --
- case 4:
- {
- ushort SkillID = 12270;
- string SkillName = "DragonFlow";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- SpeedKick --
- case 5:
- {
- ushort SkillID1 = 12120;
- ushort SkillID2 = 12130;
- ushort SkillID3 = 12140;
- string SkillName = "SpeedKick";
- if (!client.Spells.ContainsKey(SkillID1) && !client.Spells.ContainsKey(SkillID2) && !client.Spells.ContainsKey(SkillID3)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID1) && client.Spells.ContainsKey(SkillID2) && client.Spells.ContainsKey(SkillID3)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- CrackingSwipe --
- case 6:
- {
- ushort SkillID = 12160;
- string SkillName = "CrackingSwipe";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- SplittingSwipe --
- case 7:
- {
- ushort SkillID = 12170;
- string SkillName = "SplittingSwipe";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- DragonSlash --
- case 8:
- {
- ushort SkillID = 12350;
- string SkillName = "DragonSlash";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- DragonRoar --
- case 9:
- {
- ushort SkillID = 12280;
- string SkillName = "DragonRoar";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- DragonSwing --
- case 10:
- {
- ushort SkillID = 12200;
- string SkillName = "DragonSwing";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- DragonFury --
- case 11:
- {
- ushort SkillID = 12300;
- string SkillName = "DragonFury";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- BreathFocus --
- case 12:
- {
- ushort SkillID = 11960;
- string SkillName = "BreathFocus";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- default: return "";
- }
- }
- #endregion
- #region - WindWalker Skills -
- public static string WindWalkerSkills(byte type, Client client)
- {
- switch (type)
- {
- #region -- Omnipotence --
- case 1:
- {
- ushort SkillID = 12860;
- string SkillName = "Omnipotence";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- JusticeChant --
- case 2:
- {
- ushort SkillID = 12870;
- string SkillName = "JusticeChant";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- SwirlingStorm --
- case 3:
- {
- ushort SkillID = 12890;
- string SkillName = "SwirlingStorm";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- ShadowOfChaser --
- case 4:
- {
- ushort SkillID = 13090;
- string SkillName = "ShadowOfChaser";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- TripleBlasts --
- case 5:
- {
- ushort SkillID = 12850;
- string SkillName = "TripleBlasts";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- ThunderBolt --
- case 6:
- {
- ushort SkillID = 12970;
- string SkillName = "ThunderBolt";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- AngerOfStomper --
- case 7:
- {
- ushort SkillID = 12980;
- string SkillName = "AngerOfStomper";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- BurntFrost --
- case 8:
- {
- ushort SkillID = 12940;
- string SkillName = "BurntFrost";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- HealingSnow --
- case 9:
- {
- ushort SkillID = 12950;
- string SkillName = "HealingSnow";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- RageOfWar --
- case 10:
- {
- ushort SkillID = 12930;
- string SkillName = "RageOfWar";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- HorrorOfStomper --
- case 11:
- {
- ushort SkillID = 12990;
- string SkillName = "HorrorOfStomper";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- ChillingSnow --
- case 12:
- {
- ushort SkillID = 12960;
- string SkillName = "ChillingSnow";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- PeaceOfStomper --
- case 13:
- {
- ushort SkillID = 13000;
- string SkillName = "PeaceOfStomper";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- RevengeTail --
- case 14:
- {
- ushort SkillID = 13030;
- string SkillName = "RevengeTail";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- FreezingPelter --
- case 15:
- {
- ushort SkillID = 13020;
- string SkillName = "FreezingPelter";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Frost Gaze --
- case 16:
- {
- if (client.Entity.Class >= 160 && client.Entity.Class <= 165 && client.Entity.Reborn == 0)
- {
- ushort SkillID1 = 12830;
- string SkillName1 = "Frost Gaze I";
- if (!client.Spells.ContainsKey(SkillID1)) return SkillName1 + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID1)) return SkillName1 + "~(Learned)~.";
- }
- else if (client.Entity.FirstRebornClass == 165 && client.Entity.Class >= 160 && client.Entity.Class <= 165 && client.Entity.Reborn == 1)
- {
- ushort SkillID2 = 12830;
- string SkillName2 = "Frost Gaze II";
- if (!client.Spells.ContainsKey(SkillID2)) return SkillName2 + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID2)) return SkillName2 + "~(Learned)~.";
- }
- else if (client.Entity.FirstRebornClass == 165 && client.Entity.SecondRebornClass == 165 && client.Entity.Class >= 160 && client.Entity.Class <= 165 && client.Entity.Reborn == 2)
- {
- ushort SkillID3 = 12830;
- string SkillName3 = "Frost Gaze III";
- if (!client.Spells.ContainsKey(SkillID3)) return SkillName3 + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID3)) return SkillName3 + "~(Learned)~.";
- }
- return "";
- }
- #endregion
- default: return "";
- }
- }
- #endregion
- #region - Mount Skills -
- public static string MountSkills(byte type, Client client)
- {
- switch (type)
- {
- #region -- Riding --
- case 1:
- {
- ushort SkillID = 7001;
- string SkillName = "Riding";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- Spook --
- case 2:
- {
- ushort SkillID = 7002;
- string SkillName = "Spook";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- WarCry --
- case 3:
- {
- ushort SkillID = 7003;
- string SkillName = "WarCry";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- #region -- ChargingVortex --
- case 4:
- {
- ushort SkillID = 11190;
- string SkillName = "ChargingVortex";
- if (!client.Spells.ContainsKey(SkillID)) return SkillName + "~(Available)~.";
- if (client.Spells.ContainsKey(SkillID)) return SkillName + "~(Learned)~.";
- return "";
- }
- #endregion
- default: return "";
- }
- }
- #endregion
- #endregion
- private static RedBlackTree<uint, Delegate> _Tree;
- public static void LoadAllNpcs()
- {
- Console.Write("\t Loading NpcAttribute ... ");
- _Tree = new RedBlackTree<uint, Delegate>();
- var methods = Assembly.GetCallingAssembly().GetTypes()
- .SelectMany(t => t.GetMethods())
- .Where(m => m.GetCustomAttributes(typeof(NpcAttribute), false).Length > 0)
- .ToArray();
- int count = 0;
- foreach (var i in methods)
- {
- foreach (var npcatt in i.GetCustomAttributes(false))
- {
- Console.Write("\b{0}", Loading.NextChar());
- NpcAttribute Att = npcatt as NpcAttribute;
- if (Att != null)
- {
- Delegate _Action;
- _Action = Delegate.CreateDelegate(typeof(Action<MsgTaskDialog, Client>), null, i);
- if (!_Tree.TryAppend((uint)Att.Type, _Action))
- {
- Delegate source = _Tree.TryGetValue((uint)Att.Type);
- source = Delegate.Combine(source as Delegate, _Action as Delegate);
- _Tree.AppendOrUpdate((uint)Att.Type, source);
- }
- count++;
- }
- }
- }
- var gc = new Client(null);
- gc.Account = null;
- gc.Entity = new Entity(EntityFlag.Player, false) { Name = "NONE" };
- NpcServer.Dialog.GetDialog(new MsgTaskDialog(true), gc, true);
- Console.WriteLine("\b Ok!");
- }
- public static Delegate TryGet(uint index)
- {
- { return _Tree.TryGetValue(index); }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement