PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
Question on spellcasting NPC's....

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help (095)
Display posts from previous:   

Author Message
mijimoe



Joined: 17 Feb 2006
Posts: 22
Location: Saint Paul, MN

PostPosted: Wed Mar 01, 2006 9:09 pm    Post subject: Question on spellcasting NPC's.... Reply with quote

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

Author Message
Tritan



Joined: 04 Feb 2006
Posts: 136
Location: Illinois, USA

PostPosted: Thu Mar 02, 2006 2:04 pm    Post subject: Reply with quote

Make sure in your spell property you are setting the correct path to the script for the spells you want them to cast.

Author Message
DevGIB



Joined: 06 Feb 2006
Posts: 93

PostPosted: Thu Mar 02, 2006 10:06 pm    Post subject: Reply with quote

cast_pct 95
num_casts 45

Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help (095) All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty