mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-24 05:37:17 +00:00
Add EVENT_TICK for NPCs
This event fires at the start of the tick processing so we can script on the actual tick.
This commit is contained in:
1 parent
1fc23beb78
commit
fe0758c984
5 files changed
+64
-58
No files matched your search
@@ -37,6 +37,7 @@
|
||||
#include "string_ids.h"
|
||||
#include "spawn2.h"
|
||||
#include "zone.h"
|
||||
#include "quest_parser_collection.h"
|
||||
|
||||
#include <cctype>
|
||||
#include <stdio.h>
|
||||
@@ -601,6 +602,7 @@ bool NPC::Process()
|
||||
|
||||
if(tic_timer.Check())
|
||||
{
|
||||
parse->EventNPC(EVENT_TICK, this, nullptr, "", 0);
|
||||
BuffProcess();
|
||||
|
||||
if(curfp)
|
||||
|
||||
Reference in new issue
Block a user