PDA

View Full Version : Player-Help Command



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

Crux
08-09-08, 04:30 PM
LMFAO!!! yeah imagine this on WoWscape.. gm's wouldn't even last for 1 day..

You_Got_Tescoed
09-09-08, 11:55 AM
would be funny =P. Must find out how do some sort of timer.

edit: Phsi i put request instaed of release Wigg I need a plzz =]

StickyIcky
09-09-08, 12:16 PM
What do you need?

You_Got_Tescoed
09-09-08, 02:31 PM
The Post says Request, But i want to change it to release.

StickyIcky
09-09-08, 02:50 PM
Already done