You_Got_Tescoed
08-09-08, 03:27 PM
This Will Simply Announce "[Player Name] Needs Gm assistance." When a player types #Help.
note: You deffrently might want to up the flood control on this one =D.
PlayerAssistance.cpp:
#include "StdAfx.h"
#include "Setup.h"
static string food = "#Help";
void PlayerAssistance(Player* plr)
{
if(Message == help)
{
plr->BroadcastMessage("%s Needs Gm Assistance!", plr->GetName()
}
void SetupPlayerAssistance(ScriptMgr * mgr)
{
mgr->register_hook(SERVER_HOOK_EVENT_ON_CHAT, (void*)PlayerAssistance);
}
Setup.h:
#ifndef INSTANCE_SCRIPTS_SETUP_H
#define INSTANCE_SCRIPTS_SETUP_H
void SetupPlayerAssistance(ScriptMgr * mgr);
#endifNot tested. And errors Say. I have to go/sleep >.>
Edit: Changed to release
note: You deffrently might want to up the flood control on this one =D.
PlayerAssistance.cpp:
#include "StdAfx.h"
#include "Setup.h"
static string food = "#Help";
void PlayerAssistance(Player* plr)
{
if(Message == help)
{
plr->BroadcastMessage("%s Needs Gm Assistance!", plr->GetName()
}
void SetupPlayerAssistance(ScriptMgr * mgr)
{
mgr->register_hook(SERVER_HOOK_EVENT_ON_CHAT, (void*)PlayerAssistance);
}
Setup.h:
#ifndef INSTANCE_SCRIPTS_SETUP_H
#define INSTANCE_SCRIPTS_SETUP_H
void SetupPlayerAssistance(ScriptMgr * mgr);
#endifNot tested. And errors Say. I have to go/sleep >.>
Edit: Changed to release