Jump to content
  • 0
Sign in to follow this  
canditw

King of Emperium Hill plugin help

Question

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?

 

        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

 

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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" ) ) &&
Edited by Cretino

Share this post


Link to post
Share on other sites
  • 0

 

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

 

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
 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.