In npc.h, add these parts to the public members of the NPC class.
Code:
/******************************************************
WayPoints
******************************************************/
void SetWayPointStep(uint32 step){ Step=step;}
uint32 GetWayPointStep(){return Step;}
uint32 Step;
/******************************************************
Mob quest engine
******************************************************/
void CheckQuests(char* zonename, char * message, int32 npc_id, int32 item_id = 0, bool IsDoorScript = false);
bool IsEnd(char* string);
bool IsCommented(char* string);
char * rmnl(char* nstring);
char * strreplace(char* searchstring, char* searchquery, char* replacement);
And add this to the private member:
Code:
Timer* waypoint_timer;