Change Log ( 5th, June, 2004):
New version released.
Version: 1.0.9 Beta 2
Changes:- Introduced necromancer Curse spell types recognition,
- Introduced Mage Curse spell types recognition,
- Npcs will now use remove curse only when hit by a curse type
spell.
- Minor Changes to some recognition instances and situations
Summary:
Customised Paladin AI V1.0
Used for Paladin npcs. This AI enables you to create Paladin npcs, that cast Paladin spells while in combat. A good complement to any customised shard.
To use this script you must have the following items:
Server version: RunUO 1.0 RC0
Paladin Spellbook
Warning: Works only on RunUO 1.0 RC0
For support email me at:
elanon@terra.es
Or post on this thread.
Thanks to:
RunUO Dev Team for their great work on the Distribution MageAI, that has been my base & inspiration for these series of scripts.
Description:
This Ai uses a more advanced system, than the previous ones I released. Most of the original AI from RunUO has been tweaked and reworked, introducing new variables for the calculation of the chances that a npc will use certain spells.
This AI is more complex to use as it requires not so much items coded in your server, but rather a few specific code lines ( as shown on sample Paladin.cs ) that must allways be included in order for the code to work.
As allways you will need to add to the npc's equipment the full paladin spell book that comes with the RunUO 1.0 RC0 distribution. How to do this is shown in the sample Paladin npc included in all packages.
As a side note, take a moment to check the npc hue codes, as they may not match the ones intended in your shard. We all have our own hues files

so the npc may look a bit wrong in color for you.
A word of warning before you install the files:
Each package carries the all the needed files for you to install the script. Read through the installation notes below to see how to install thosefiles ( which folders they go to ).
Each package is for a type of user only, if you havent downloaded any of my previous AI scripts, download the standalone version, if you have downloaded the necromancer script only, then download the zip file for those who have installed that AI.
If you are a fan ( j/k ) and have all my previous scripts, then download the lats package which comes prepared to support all 3 AI's instantly.
Note that all the files included are from the original BASE distribution, so if you have modified any of these files on your shard, just look for the lines you have tp modify as stated on the install instructions in this post, and in the ReadMe file on the downloads.
Enjoy
Installation Instructions:
To install proceed as follows:
On the file BaseAI.cs:
Under line 26, insert the following:
AI_Paladin
Under line 250, insert the following:
SkillName.Chivalry
On BaseCreature.cs:
Under line 1616, insert the following:
/////////////////PALADINAI//////////////
case AIType.AI_Paladin:
m_AI = new PaladinAI(this);
break;
/////////////////PALADINAI//////////////
Final steps:
After this is done, put the PaladinAI.cs file into your folder:
Scripts/Engines/AI/AI
Start your server after installing, normally.
More info on use:
To use on npcs, declare the AI normally like for any other AI, with the following nuances:
public NpcName() : base( AIType.AI_Paladin, FightMode.Evil, 10, 1, 0.2, 0.4 )
Note that its is best to use the Fightmode.Evil so paladin npcs attack evil creatures ( negative karma ).
if you dont want to attack those evil creatures above all others while in combat, simply modify the fight mode to:
public NpcName() : base( AIType.AI_Paladin, FightMode.Closest, 10, 1, 0.2, 0.4 )
Find my other scripts here:
Custom Necromancer AI v 1.0 - RunUO 1.0 RC0
Custom NecroMage AI v1.0 - RunUO 1.0 RC0
Enjoy
