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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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