EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Database/World Building (https://www.eqemulator.org/forums/forumdisplay.php?f=625)
-   -   Question about spellcasting for NPC's (https://www.eqemulator.org/forums/showthread.php?t=7000)

Armanthuz 05-02-2003 09:21 AM

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???

killspree 05-02-2003 09:49 AM

You forgot to give the spell entry itself an ID.

Armanthuz 05-02-2003 03:41 PM

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?

Armanthuz 05-03-2003 07:07 AM

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...

Sterbla 05-03-2003 10:58 PM

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.


All times are GMT -4. The time now is 10:26 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.