Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-24-2011, 01:37 AM
Hateborne
Hill Giant
 
Join Date: May 2010
Posts: 125
Default npcspecialattks semi-working?

Sorry to bother you gents again, but npcspecialattks doesn't seem to be working fully (or I'm using it incorrectly).

I am trying to create a caster npc that (stay with me, this gets crazy) actually casts instead of punching for 5-6 damage.

Magical Attack = m
Ranged Attack = Y

I tried both and neither seemed to have any effect. The npc continued to smack me and has yet to cast the first spell.

I've repopped the zone a few times, restarted the server a few times, and still I stand with a wizard npc punching me.


Any pointers?

-Hate


P.S. - Yes I set the npc to class wizard(12) and yes I set it's npc_spells_id to wizard(2).
Reply With Quote
  #2  
Old 03-24-2011, 02:41 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

All special attacks work fine as far as I know. I think you are just not understanding what those special attacks do.

Magical Attack - Makes an NPCs melee attacks magical, so they can hit stuff that is "Immune to non-magical damage". This would probably mostly be used for pets so they can hit stuff like skeletons that require a magic weapon.
Ranged Attack - This is for making ranger type NPCs that attack with arrows, not for casters.

To make a casting NPC, you would just set it as you already have with class and spell set. They should periodically cast spells based on their spell set settings.

To make an NPC that only casts and never melees would be a bit more complicated, but it can be done with some innovative scripting or some source code edits.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #3  
Old 03-24-2011, 06:28 AM
Jaekob
Sarnak
 
Join Date: May 2010
Posts: 39
Default

Ranged attacks will work but NPC must be at range. This is best handled by setting run speed to 0 and keeping the NPC away from the target PC.
Reply With Quote
  #4  
Old 03-24-2011, 04:15 PM
Hateborne
Hill Giant
 
Join Date: May 2010
Posts: 125
Default

Trevius, ever the badass, thank you!
Jaekob, thank you for your input also.

I was beginning to wonder if I had misinterpreted the meaning of the npcspecialattks column, but I had no example to base such thoughts.

Ok, I will have to essentially just use perl to build the attack script.

My next question is, what is the $mob->CastSpell slot arguement?
ex: $mob->CastSpell(1234, 5678, >THIS<, 5, -1)


-Hate
Reply With Quote
Reply


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

Forum Jump

   

All times are GMT -4. The time now is 02:10 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3