Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 08-22-2007, 04:31 AM   #1 (permalink)
Account Terminated
 
Join Date: Jun 2004
Posts: 126
Default Turn off Self Healing for Monsters?

I have been looking into turning off the self heal that monsters seem to use while players are fighting them. I am hoping to get my shard to resemble the Renaissance build. Back in those days, Liches did not heal themselves.. Once they took damage, it stuck.

I have been looking at the MageAI.cs file, which the lich.cs seems to call upon.. I am not sure but, I take it that the AIType.AI_Mage infers that it does take its Artificial Intel from the Mage file in the AI folder?

I figure I will make the change for Liches, then I will use the same technique to alter the other monsters.

My first instinct is that I will have to rewrite the MageAI.cs file to remove all calls to self heal (not that I really know which are which). This would be my first real experience at this level, and I am hoping that folks can help me understand what it is that I am doing, and give me advice, instruction so that I do not mess anything up too badly.

Am I missing something, like a switch that turns this function off like you can turn off AOS and SE?

Thanks for any help!
Wayland Archer is offline   Reply With Quote
Old 08-22-2007, 04:35 AM   #2 (permalink)
Forum Master
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 6,625
Send a message via Yahoo to Lord_Greywolf
Default

yes - changing the mage ai is what you want to do - but could be a simplier way than doing heavy mods in there

there are 3 varuable to set - healing, teleport and 1 other
i believe the mage ai standard is like 15 or something in there - changing it to 1 would mean 1 in 100 "on thinks" it will try to heal

i am not sure if setting it to 0 will work to completely disable it - only because of problems that might come up with a 0 (null) call

but that would reduce down their healing a great deal
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is online now   Reply With Quote
Old 08-22-2007, 04:49 AM   #3 (permalink)
Account Terminated
 
Join Date: Jun 2004
Posts: 126
Default

Ok, so this is where I made the change, in MageAI
[
Quote:
private const double HealChance = 0.01; //<--- THIS
private const double TeleportChance = 0.05;
private const double DispelChance = 0.75;
I rebooted my server, and I then went out to test it.. I found a lich, cast Energy Bolt on it, and it immediately cast heal upon itself.

This remedy did not work

I then set the HealChance to 0.00 and it worked. I beat on a lich for five minutes and it never healed itself.

Hopefully this works with all monsters.. etc!

Thanks!

Last edited by Wayland Archer; 08-22-2007 at 05:12 AM.
Wayland Archer is offline   Reply With Quote
Old 08-22-2007, 12:45 PM   #4 (permalink)
Forum Master
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 6,625
Send a message via Yahoo to Lord_Greywolf
Default

it should work with all monsters that use the mage ai - because it is universal for them

melle does not self heal, neither does beserk or archer

not sure if theif ai has it or not, if it does it is via script (and not magery) and is probably very limited

if you have the pali ai - do not use it at all - i have not found one that does not crash - but i know it self heals also

if you have downloaded and used the necro ai at all - it also needs to be tweaked then - but it uses ss for healing, and they do not heal as much as mages do
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is online now   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5