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.