Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Database/World Building

Archive::Database/World Building Archive area for General Discussion's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-02-2003, 09:21 AM
Armanthuz
Sarnak
 
Join Date: Apr 2003
Posts: 72
Default Question about spellcasting for NPC's

Hi,

I am trying to make lord nagafen cast "dragon roar" as a pb aoe spell. i modified the npc_spells.txt file to read...


# **************
# Dragon Roar
# **************

INSERT INTO npc_spells (id, name, parent_list, attack_proc)
VALUES (13, "DRAGON SPELLS", 0, 1);

INSERT INTO npc_spells_entries (npc_spells_id, spellid, type, minlevel, maxlevel, manacost, recast_delay, priority) VALUES (13, 789, 1, 5, 55, -1, -1, 50);

This introduced it into the menu of spells i can pick for NPCS using eqadmin 4.5/

even thou everything seems correct nagafen refuses to cast any spell, much less dragon roar...


could i please have a hint to what im doing wrong???
Reply With Quote
  #2  
Old 05-02-2003, 09:49 AM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

You forgot to give the spell entry itself an ID.
__________________
Xeldan
Lead Content Designer
Shards of Dalaya
Reply With Quote
  #3  
Old 05-02-2003, 03:41 PM
Armanthuz
Sarnak
 
Join Date: Apr 2003
Posts: 72
Default

im sorry im a bit green at all this...


could you explain a bit more?


I set the spell field ID at 13, and the id of spell itself is 789.... what did i miss?
Reply With Quote
  #4  
Old 05-03-2003, 07:07 AM
Armanthuz
Sarnak
 
Join Date: Apr 2003
Posts: 72
Default

Im starting to get the picture...


I used sql front end to take things apart a little better...

I didnt understand that npc_spells and npc_spells_entries were 2 different tables, i do now.... By this point i had amassed a repeating sequence of spell entries.. so i deleted spells and entries table. I sourced in the below text at the end of my npc_spells.txt file..

# **************
# Dragon Roar
# **************

INSERT INTO npc_spells (id, name, parent_list, attack_proc)
VALUES (13, "DRAGON SPELLS", 0, -1);

INSERT INTO npc_spells_entries (npc_spells_id, spellid, type, minlevel, maxlevel, manacost, recast_delay, priority) VALUES (13, 789, 1, 54, 255, -2, -1, 50);



Now it ceratinly looks better when i pull up sql front end, and it has an id of 397....


i even went into game and had lord nagafen (my test subject) cast dragon roar on me to confirm it works.. ( it casts on me and lasts proper time but does nothing to interfere with my abilitys)


UNFORTUNATELY after all this nagafen refuses to cast this spell on his own...



I'm outta ideas at this point so ill await someones suggestiomn thats brighter than i am...
Reply With Quote
  #5  
Old 05-03-2003, 10:58 PM
Sterbla
Fire Beetle
 
Join Date: Apr 2003
Posts: 21
Default

I'm not sure if this is a solution but your recast delay is set at -1. Try setting it to a positive value. Also mana cost might have to be set at 0 instead of -2. Not sure if this would help as I'm a total newb in this area but those two values seem strange to me.
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 05:30 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3