Jump to content

  •  

Anomaladox

Member Since 16 Apr 2014
Offline Last Active May 28 2014 03:28 AM
-----

Posts I've Made

In Topic: [Script CMD]dispbottomcolor

24 May 2014 - 05:44 PM

#include <stdio.h>#include <string.h>#include "../common/HPMi.h"#include "../map/script.h"#include "../map/pc.h"#include "../map/clif.h"#include "../common/HPMDataCheck.h"HPExport struct hplugin_info pinfo = {	"dispbottomcolor",		// Plugin name	SERVER_TYPE_MAP,// Which server types this plugin works with?	"1.0",			// Plugin version	HPM_VERSION,	// HPM Version (don't change, macro is automatically updated)};BUILDIN(dispbottomcolor) {	TBL_PC *sd = script->rid2sd(st);	const char *message;	int color;	message=script_getstr(st,2);	if(script_hasdata(st,3))		color=script_getnum(st,3);	else 		color = COLOR_DEFAULT;	if(sd)		clif->colormes(sd->fd,color,message);	return true;}/* Server Startup */HPExport void plugin_init (void){    clif = GET_SYMBOL("clif");    script = GET_SYMBOL("script");    pc = GET_SYMBOL("pc");	        addScriptCommand("dispbottomcolor","s?",dispbottomcolor);}