mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-22 07:01:29 +00:00
Added attackdelay to #npcedit
Also changelog!
This commit is contained in:
parent
881f937a35
commit
ed4d954ba8
@ -6,6 +6,9 @@ demonstar55: Incrase Mob kick/bash timer by 3
|
|||||||
demonstar55: Fix slow effect on NPC special attack reuse timers
|
demonstar55: Fix slow effect on NPC special attack reuse timers
|
||||||
see: http://www.eqemulator.org/forums/showthread.php?t=38734
|
see: http://www.eqemulator.org/forums/showthread.php?t=38734
|
||||||
demonstar55: Slow fixes to bots!
|
demonstar55: Slow fixes to bots!
|
||||||
|
demonstar55: Revamped how NPC attack rate is set
|
||||||
|
SQL: 2014_09_09_attack_delay.sql
|
||||||
|
demonstar55: Added attackdelay to #npcedit
|
||||||
|
|
||||||
== 09/08/2014 ==
|
== 09/08/2014 ==
|
||||||
demonstar55: Fix slow calc
|
demonstar55: Fix slow calc
|
||||||
|
|||||||
@ -7159,6 +7159,15 @@ void command_npcedit(Client *c, const Seperator *sep)
|
|||||||
c->LogSQL(query);
|
c->LogSQL(query);
|
||||||
safe_delete_array(query);
|
safe_delete_array(query);
|
||||||
}
|
}
|
||||||
|
else if ( strcasecmp( sep->arg[1], "Attackdelay" ) == 0 )
|
||||||
|
{
|
||||||
|
char errbuf[MYSQL_ERRMSG_SIZE];
|
||||||
|
char *query = 0;
|
||||||
|
c->Message(15,"NPCID %u now has attack_delay set to %f",c->GetTarget()->CastToNPC()->GetNPCTypeID(),atof(sep->arg[2]));
|
||||||
|
database.RunQuery(query, MakeAnyLenString(&query, "update npc_types set attack_delay=%f where id=%i",atof(sep->argplus[2]),c->GetTarget()->CastToNPC()->GetNPCTypeID()), errbuf);
|
||||||
|
c->LogSQL(query);
|
||||||
|
safe_delete_array(query);
|
||||||
|
}
|
||||||
else if ( strcasecmp( sep->arg[1], "findable" ) == 0 )
|
else if ( strcasecmp( sep->arg[1], "findable" ) == 0 )
|
||||||
{
|
{
|
||||||
char errbuf[MYSQL_ERRMSG_SIZE];
|
char errbuf[MYSQL_ERRMSG_SIZE];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user