Question on spellcasting NPC's....

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 095. Note: Core 095 is no longer officially supported.
Post Reply
mijimoe
New User
Posts: 22
Joined: Fri Feb 17, 2006 7:31 pm

Question on spellcasting NPC's....

Post by mijimoe »

I am trying to make the spellcasting NPC's that are on the shard I manage a bit more "intelligent" and have been trying to locate a way to get certain "mages" to cast only particular spells and nothing more. For instance, in the example listed below I want the npc template called "chaoswizard" to only cast bladespirits (for a test). Here is the template that is found in the npcdesc.cfg file:

NpcTemplate chaoswizard
{
Name <random>, Chaotic Wizard
script spellKillPCs
ObjType 0x190
Color 33770
TrueColor 33784
Gender 0
STR 60
INT 70
DEX 75
HITS 120
MANA 100
STAM 75
MagicResistance 90
Meditation 100
Provocation 100
Tactics 70
Macefighting 71
Magery 105
evaluatingintelligence 100
spell bladespirit
AttackSpeed 30
AttackDamage 4d4
AttackAttribute Macefighting
AttackHitSound 0x142
AttackMissSound 0x239
damagedsound 0x155
idlesound1 0x12c
idlesound2 0x12d
AR 10
lootgroup 48
alignment evil
dstart 10
saywords 1
CProp Equipt schaoswizard
CProp Karma i-25
CProp Fame i25
AttackHitScript :combat:wrestlingHitScript
}

In the template itself I have added the "spell bladespirit" field in order to get them to cast this spell (but it does not seem to work). Does anyone have any suggestions or a template I could follow to better setup my mages to be more uniquely defined? Any help would be appreciated.

Thanks!

Mijimoe
User avatar
Tritan
Grandmaster Poster
Posts: 147
Joined: Sat Feb 04, 2006 8:17 am

Post by Tritan »

Make sure in your spell property you are setting the correct path to the script for the spells you want them to cast.
DevGIB
Grandmaster Poster
Posts: 248
Joined: Mon Feb 06, 2006 6:12 am

Post by DevGIB »

cast_pct 95
num_casts 45
Post Reply