Пример #1
0
HPExport void plugin_init(void) {
	addHookPre("pc->delitem", pc_restock_misc_pre);
	addHookPost("pc->delitem", pc_restock_misc_post);
	addAtcommand("restock",restock);
	addAtcommand("restock2",restock2);
	addScriptCommand("restock_item","iii",restock_item);
}
Пример #2
0
/* Server Startup */
HPExport void plugin_init (void) {
	clif = GET_SYMBOL("clif");
	pet = GET_SYMBOL("pet");
	script = GET_SYMBOL("script");
	map = GET_SYMBOL("map");
	logs = GET_SYMBOL("logs");
	itemdb = GET_SYMBOL("itemdb");
	pc = GET_SYMBOL("pc");

		//Hook
	addHookPre("map->reqnickdb",HPM_map_reqnickdb);
	addHookPost("pc->equippoint",HPM_pc_equippoint);
	
		//atCommand
	addAtcommand("costumeitem",costumeitem);

		//scriptCommand
	addScriptCommand("costume","i",costume);
};