public Knights() : base(4, 4, 2, 2) { Type = Unit.Knights; Name = "Knights"; RequiredTech = new Chivalry(); ObsoleteTech = new Automobile(); SetIcon('E', 1, 1); }
public Chariot() : base(4, 4, 1, 2) { Type = Unit.Chariot; Name = "Chariot"; RequiredTech = new TheWheel(); ObsoleteTech = new Chivalry(); SetIcon('D', 0, 2); }
/// <summary> /// Cast Chivalry spell with a spellbook. /// </summary> /// <param name="client">Target client.</param> /// <param name="chivalry">Spell to cast.</param> public static void Cast(int client, Chivalry chivalry) { byte[] myBaseAOSCastPacket = new byte[] { 0xBF, 0x00, 0x09, 0x00, 0x1C, 0x00, 0x02, 0x00, 0x00 }; switch (chivalry) { case Chivalry.Cleanse_By_Fire: myBaseAOSCastPacket[8] = 0xC9; break; case Chivalry.Close_Wounds: myBaseAOSCastPacket[8] = 0xCA; break; case Chivalry.Consecrate_Weapon: myBaseAOSCastPacket[8] = 0xCB; break; case Chivalry.Dispel_Evil: myBaseAOSCastPacket[8] = 0xCC; break; case Chivalry.Divine_Fury: myBaseAOSCastPacket[8] = 0xCD; break; case Chivalry.Enemy_Of_One: myBaseAOSCastPacket[8] = 0xCE; break; case Chivalry.Holy_Light: myBaseAOSCastPacket[8] = 0xCF; break; case Chivalry.Noble_Sacrifice: myBaseAOSCastPacket[8] = 0xD0; break; case Chivalry.Remove_Curse: myBaseAOSCastPacket[8] = 0xD1; break; case Chivalry.Sacred_Journey: myBaseAOSCastPacket[8] = 0xD2; break; default: return; } SendPacketToServer(client, myBaseAOSCastPacket); }
public static void Cast(int client, Chivalry chivalry) { switch (chivalry) { case Chivalry.Cleanse_By_Fire: Event(client, 15, 0xC9); break; case Chivalry.Close_Wounds: Event(client, 15, 0xCA); break; case Chivalry.Consecrate_Weapon: Event(client, 15, 0xCB); break; case Chivalry.Dispel_Evil: Event(client, 15, 0xCC); break; case Chivalry.Divine_Fury: Event(client, 15, 0xCD); break; case Chivalry.Enemy_Of_One: Event(client, 15, 0xCE); break; case Chivalry.Holy_Light: Event(client, 15, 0xCF); break; case Chivalry.Noble_Sacrifice: Event(client, 15, 0xD0); break; case Chivalry.Remove_Curse: Event(client, 15, 0xD1); break; case Chivalry.Sacred_Journey: Event(client, 15, 0xD2); break; } }