Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 07-02-2004, 11:19 AM
Draupner
Hill Giant
 
Join Date: Jul 2004
Location: In my basement
Posts: 131
Default

Set spell Id:
Usage: #npcspell [id]

command.cpp Line 257
Code:
command_add("npcspell","[radius] - Sets the spell list for an NPC",100,command_npcspell) ||  //Draupner: Set spells list
command.cpp Line 2608
Code:
void command_npcspell(Client *c, const Seperator *sep) //Draupner: Set npc spell list
{
		if ( strcasecmp( sep->arg[1], "list" ) == 0 )
	{
		c->Message(0, "Spell List (default) Note these are the default spells that are found in the MW_057DR2_alpha1 Database	:");
		c->Message(4, "     (1) Default Cleric List");
		c->Message(4, "     (2) Default Wizard List");
		c->Message(4, "     (3) Default Necromancer List");
		c->Message(4, "     (4) Default Magician List");
		c->Message(4, "     (5) Default Enchanter List");
		c->Message(4, "     (6) Default Shaman List");
		c->Message(4, "     (7) Default Druid List");
		c->Message(4, "     (8) Default Paladin List");
		c->Message(4, "     (9) Default Shadowknight List");
		c->Message(4, "    (10) Default Ranger List");
		c->Message(4, "    (11) Default Bard List");
		c->Message(4, "    (12) Default Beastlord List");
		c->Message(4, "    (13) AirPetInvis");
		c->Message(4, "    (14) AirPetAttacks");
		c->Message(4, "    (15) EarthPetAttacks");
		c->Message(4, "    (16) WaterPetAttacks");
		c->Message(4, "    (17) FirePetDS");
		c->Message(4, "    (18) FirePetAttacks");
		c->Message(4, "    (19) FirePetAttack2 (Decoy)");
		c->Message(4, "    (20) FirePetSpells (Wizard)");
		c->Message(4, "    (21) EpicPetSpells");
		c->Message(4, "    (22) Necro pet procs");
		c->Message(4, "    (23) Necro uber pet procs");

	}
	else if((sep->arg[1][0] == 0 || strcasecmp(sep->arg[1],"*")==0) || ((c->GetTarget()==0) || (c->GetTarget()->IsClient())))
		c->Message(0, "Usage: #npcspell [spell list id] or #npcspell list for a list of IDs");
	
	else
	{
		char errbuf[MYSQL_ERRMSG_SIZE];
		char *query = 0;
		c->Message(15,"NPCID %u now is on %i  spellset",c->GetTarget()->CastToNPC()->GetNPCTypeID(),atoi(sep->argplus[1]));
		if (database.RunQuery(query, MakeAnyLenString(&query, "update npc_types set npc_spells_id=%i where id=%i",atoi(sep->argplus[1]),c->GetTarget()->CastToNPC()->GetNPCTypeID()), errbuf))
			safe_delete_array(query);
	}


}
command.h Line 111
Code:
void command_npcspell(Client *c, const Seperator *sep); //Draupner: Npc spell list
Post any more suggestions you want done.
Reply With Quote
 


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 10:29 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