Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-11-2008, 11:08 PM
HurtinuDaily
Hill Giant
 
Join Date: Nov 2005
Posts: 145
Default NPCSpells - type?

does anyone know what the different type 's are for the statement below? is there a list anywhere or are they contained anywhere else in the database?


insert into npc_spells_entries (npc_spells_id, spellid, type, minlevel, maxlevel, manacost, recast_delay, priority) values (999, 278, 8, 50, -1, -1, 0);
Reply With Quote
  #2  
Old 06-11-2008, 11:35 PM
xxarthurxx
Hill Giant
 
Join Date: Jun 2006
Location: San Jo, Cali
Posts: 180
Default

im at work otherwise i could answer the question for you. I think what your asking is what spells those are? Try GeorgeS tools... they come along with a spell referance txt file that gives you the name of all spell numbers
Reply With Quote
  #3  
Old 06-11-2008, 11:53 PM
xxarthurxx
Hill Giant
 
Join Date: Jun 2006
Location: San Jo, Cali
Posts: 180
Default

npc_spells_id, 999 think this is a complilation of spells for an npc like (necrospells)
spellid, 278 this should be a spell
type, 8
minlevel, 1
maxlevel, 50 (spell level range)
manacost, -1 (null)
recast_delay, -1 (null)
priority 0
Reply With Quote
  #4  
Old 06-12-2008, 12:16 AM
HurtinuDaily
Hill Giant
 
Join Date: Nov 2005
Posts: 145
Default

I am wondering what the type value represents, I am assuming its soemthing like buff detremental aoe or something like that, just can;t find a list anywhere of what value signifies what.
Reply With Quote
  #5  
Old 06-12-2008, 12:44 AM
xxarthurxx
Hill Giant
 
Join Date: Jun 2006
Location: San Jo, Cali
Posts: 180
Default

maybe referance spells you know what type they are and use process of elimination :/
Reply With Quote
  #6  
Old 06-12-2008, 09:25 AM
HurtinuDaily
Hill Giant
 
Join Date: Nov 2005
Posts: 145
Default

Yea, I was hoping when I added a spell to a spell list I would be able to automatically pull the type value somewhere out of the database and fill it in. I have the Spells table sourced into my db from the Ax_classic database, I cannot find it in there either. Seems if you dont assign the correct type to a spell it doesn't get casted properly, I gave an enchanter mob visions of grandeur (haste) hoping it would buff the mobs around it, but it buffed me while I was fighting it! lol
Reply With Quote
  #7  
Old 06-12-2008, 09:28 AM
Congdar
Developer
 
Join Date: Jul 2007
Location: my own little world
Posts: 751
Default

from MobAI.cpp

const int SpellType_Nuke=1;
const int SpellType_Heal=2;
const int SpellType_Root=4;
const int SpellType_Buff=8;
const int SpellType_Escape=16;
const int SpellType_Pet=32;
const int SpellType_Lifetap=64;
const int SpellType_Snare=128;
const int SpellType_DOT=256;

const int SpellTypes_Detrimental = SpellType_Nuke|SpellType_Root|SpellType_Lifetap|Sp ellType_Snare|SpellType_DOT;
const int SpellTypes_Beneficial = SpellType_Heal|SpellType_Buff|SpellType_Escape|Spe llType_Pet;
Reply With Quote
  #8  
Old 06-12-2008, 09:34 AM
HurtinuDaily
Hill Giant
 
Join Date: Nov 2005
Posts: 145
Default

you rock, thanks
Reply With Quote
  #9  
Old 06-12-2008, 01:46 PM
xxarthurxx
Hill Giant
 
Join Date: Jun 2006
Location: San Jo, Cali
Posts: 180
Default

awesome thank you Congdar!
Reply With Quote
  #10  
Old 06-13-2008, 01:44 PM
HurtinuDaily
Hill Giant
 
Join Date: Nov 2005
Posts: 145
Default

Thanks, that worked perfect, makes it so much easier to correctly add a spell to a spell list now


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 07:00 PM.


 

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