AdamD

Member
ServUO Version
Publish 58
Ultima Expansion
Endless Journey
Hi all!
So I've just returned after many years to tinker with ServUO, I can usually figure out most of the simple things, but this one is eluding me.
What I want to do is to copy the existing Mage AI and make the copy of that more punishing, by decreasing cast delays and adding a different mix of spells to a creatures arsenal.
So in my case I wanted to copy the Paladin AI and have that assigned to pets.
I copied the PaladinAI file, the MageAI file and renamed them PetPaladinAI and PetMageAI
I changed all the instances inside the files to the updated name
I updated and added both AI's to the BaseAI file
All compiles aok, but as soon as either of those new AI's are attached to a pet, or monster, they stop responding to commands and are stuck in place.
Switching them back to the standard stock AI's and they carry on as normal.
Argh! :p
Any advice would be greatly appreciated.
 
Did you check ingame, the props, what the AI ist set to?
I did indeed, yea
When I set it to the new AI, that's when they stop responding (They don't respond to commands at all).
If I set it back to default or something like melee/mage, they carry on as normal.
It's probably something really obvious, but I'm struggling to find out what it might be, I'm sure I had this problem years ago and figured it out.
 
Well of course, I'd never be stupid enough to leave it out of there....erm. ;)
Thank you so much Pyro, I'll give it a go here in a second, I had a feeling as I Said it was something obvious.
 
Seems to work aok, had a few shard crashes when my pet used the healing spells, I think I set the timespan delay too low, so it wasn't happy.
Code:
System.ArgumentException: TimeSpan does not accept floating point Not-a-Number values.
   at System.TimeSpan.Interval(Double value, Int32 scale)
   at Server.Mobiles.PetMageAI.CheckCastHealingSpell() in D:\ServUO\Scripts\Mobiles\AI\Magical AI\PetMageAI.cs:line 506
So I just restored it and edited again, seems happy now.
 

Active Shards

Donations

Total amount
$50.00
Goal
$1,000.00
Back