Jump to content

  •  

Total

Member Since 13 May 2016
Offline Last Active Mar 19 2017 03:44 PM
-----

Posts I've Made

In Topic: Join or Create guild restrictions.

29 November 2016 - 05:53 PM

Perfect thanks,

 

Was missing the closing } but all working other than that.

 

Much appreciated.


In Topic: Join or Create guild restrictions.

28 November 2016 - 07:29 PM

Thank you, works perfect.

 

How about the joining guilds? can i make it so players cannot invite group_id = 1 players to their guild?


In Topic: King of Emperium Hill

13 August 2016 - 10:34 AM

here:

 

//===== Hercules Plugin ======================================
//= King of Emperium Hill
//===== By: ==================================================
//= AnnieRuru
//===== Current Version: =====================================
//= 1.1
//===== Compatible With: ===================================== 
//= Hercules 2015-12-19
//===== Description: =========================================
//= stop guild owner from hitting the emperium over and over
//===== Topic ================================================
//= http://herc.ws/board/topic/4495-king-of-emperium-hill/
//===== Additional Comments: =================================  
//= finally a plugin for this popular script
//============================================================

#include "common/hercules.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "map/pc.h"
#include "map/mob.h"
#include "map/battle.h"
#include "map/mapreg.h"
#include "common/memmgr.h"
#include "plugins/HPMHooking.h"
#include "../common/HPMDataCheck.h" // should always be the last file included! (if you don't make it last, it'll intentionally break compile time)



HPExport struct hplugin_info pinfo = {
	"koe",
	SERVER_TYPE_MAP,
	"1.1",
	HPM_VERSION,
};

int battle_check_target_post( int retVal, struct block_list *src, struct block_list *target, int *flag ) {
	if ( retVal == 1 ) {
		struct block_list *s_bl = src;
		if( (s_bl = battle->get_master(src)) == NULL )
			s_bl = src;
		if ( s_bl->type == BL_PC && target->type == BL_MOB ) {
			TBL_PC *sd = BL_CAST( BL_PC, s_bl );
			TBL_MOB *md = BL_CAST( BL_MOB, target );
			if ( ( md->class_ == MOBID_EMPELIUM && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) &&
				( sd->status.guild_id == mapreg->readreg( script->add_str("$koegid") ) || battle->get_current_skill(src) > 0 ) )
				return 0;
		}
	}
	return retVal;
}

HPExport void plugin_init (void) {
	addHookPost( battle, check_target, battle_check_target_post );
}

 

Thank you :)

 

However here is another one.

 

In file included from koe.c:26:0:
koe.c: In function ‘plugin_init’:
../plugins/HPMHooking.h:54:54: warning: comparison of distinct pointer types lacks a cast [enabled by default]
   (void)((HPMHOOK_post_ ## ifname ## _ ## funcname)0 == (hook)), \
                                                      ^
koe.c:55:2: note: in expansion of macro ‘addHookPost’
  addHookPost( battle, check_target, battle_check_target_post );
  ^

In Topic: Queue BG rewrite

11 August 2016 - 10:24 PM

Hello,

 

I know Kubix is a little busy right now but does anyone else know why the BG & WOE EDP bottles and any other items that are used via skills dont work?

 

I implemented these changes https://github.com/k...new_item_mode.с

 

Everything works great apart from items used via skills.

 

I even tried using the EDP bottle on the Battleground maps from inventory and it works, just not from skills.

 

There are no errors via console when compiling either.

 

Any help would be much appreciated.

 

bump?


In Topic: King of Emperium Hill

08 August 2016 - 12:42 AM

Hello,

 

I get this error when making the plugin.

 

        CC      koe.c
koe.c: In function ‘battle_check_target_post’:
koe.c:43:25: error: ‘MOBID_EMPERIUM’ undeclared (first use in this function)
    if ( ( md->class_ == MOBID_EMPERIUM && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) &&
                         ^
koe.c:43:25: note: each undeclared identifier is reported only once for each function it appears in
koe.c: In function ‘plugin_init’:
koe.c:52:2: warning: implicit declaration of function ‘addHookPost’ [-Wimplicit-function-declaration]
  addHookPost( "battle->check_target", battle_check_target_post );
  ^
koe.c:52:2: warning: nested extern declaration of ‘addHookPost’ [-Wnested-externs]
make[1]: *** [../../plugins/koe.so] Error 1