King of Emperium Hill plugin help

canditw

New member
Messages
78
Points
0
So I've come across AnnieRuru script for King of Emperium which requires a plugin to avoid players from killing their own emperium (http://herc.ws/board/topic/4495-king-of-emperium-hill/)

However I seem to come across some problem when I try to make plugins. Any ideas?

Code:
        PLUGIN  sample
        PLUGIN  db2sql
        PLUGIN  HPMHooking_char
        PLUGIN  HPMHooking_login
        PLUGIN  HPMHooking_map
        CC      koe.c
koe.c: In function ‘battle_check_target_post’:
koe.c:43: error: ‘MOBID_EMPERIUM’ undeclared (first use in this function)
koe.c:43: error: (Each undeclared identifier is reported only once
koe.c:43: error: for each function it appears in.)
make[1]: *** [../../plugins/koe.so] Error 1
 
Try this:

Find:

if ( ( md->class_ == MOBID_EMPERIUM && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) &&
 Replace:

Code:
if ( ( md->class_ == MOBID_EMPELIUM && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) &&
 
Last edited by a moderator:
Try this:

Find:

if ( ( md->class_ == MOBID_EMPERIUM && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) &&
 Replace:

if ( ( md->class_ == MOBID_EMPELIUM && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) &&
tried this dude, 

next

i got this error after building the koe.c

Code:
Warning 1 warning C4013: 'addHookPost' undefined; assuming extern returning int 
Error 2 error LNK2019: unresolved external symbol _addHookPost referenced in function _plugin_init
Error 3 error LNK1120: 1 unresolved externals
 
 
Back
Top