Jump to content
AnnieRuru

King of Emperium Hill

Recommended Posts

 

hi.. i extracted the patch manually on its destined files to edit.. and when i rebuild my svn.. i got an error

 

1>------ Build started: Project: map-server_sql, Configuration: Debug Win32 ------
1>  battle.c
1>e:rathena-mastersrcmapbattle.c(6602): error C2143: syntax error : missing ';' before 'if'
1>e:rathena-mastersrcmapbattle.c(6602): error C2039: 'class_' : is not a member of 'mob_data'
1>e:rathena-mastersrcmapmob.h(116) : see declaration of 'mob_data'
1>e:rathena-mastersrcmapbattle.c(6603): error C2065: 'mapreg' : undeclared identifier
1>e:rathena-mastersrcmapbattle.c(6603): error C2223: left of '->readreg' must point to struct/union
1>e:rathena-mastersrcmapbattle.c(6603): error C2065: 'script' : undeclared identifier
1>e:rathena-mastersrcmapbattle.c(6603): error C2223: left of '->add_str' must point to struct/union
========== Build: 0 succeeded, 1 failed, 3 up-to-date, 0 skipped ==========

 

I think you are using rAthena.. try to use Hercules instead..

Share this post


Link to post
Share on other sites
 

how to patch that file please help  :(

 

with git or svn right click apply patch

 

but:

diff patch for battle.h could not be applied? :(

also i couldnt find the lines where it is supposed to be added in battle.h

it says 1 failed hunk

Edited by Medusalem

Share this post


Link to post
Share on other sites

but:

diff patch for battle.h could not be applied? :(

also i couldnt find the lines where it is supposed to be added in battle.h

it says 1 failed hunk

weird, its works fine with my tortoisegit

though, I see that battle.h does have an extra line ...

 

try the new one

Share this post


Link to post
Share on other sites

I duplicated the Flag outside prontera so it looks like it's WoE Flag also but one problem when the server restarts or shutdown for maintenance or something the Guild Emblem disappears.  (This is Fixed already sorry didn't look at the comment)

 

But one thing with reward it still can be abused like at the end of koe every guild member claim their reward and exits the map, the Guild Leader will not claim a reward so he will not exit the map and he will emergency call everyone back again so they can claim again and after 5 minutes cool down of E-call everyone can claim reward same steps to abuse.

Edited by THPO

Share this post


Link to post
Share on other sites

^ Try adding to your script that players should be forced to exit the map after a minute or so, after the event is done. But still be automatically given the reward though

Share this post


Link to post
Share on other sites

i already commented this on other topic for this KOE by AnnieRuru but since this is the original topic i posted it here also

 

the problem is i can still Hit the EMP even i owned it. and the EMP is Skillable..

how do i fix it? 

Share this post


Link to post
Share on other sites

 

Diff = nemo or other way? Have any offical topic about this file?

 

 

 

 

 

Solution to emperium hit by owner?

Manually add the koe_1.0a.diff then recompile.

 

http://herc.ws/wiki/Diff#Using_.diff.2F.patch_files_to_patch_your_server

Share this post


Link to post
Share on other sites

Hi @@AnnieRuru

 

There's a flaw with the script, players can enter the KOE room even after it ends. They talk to the NPC and leave the window option open, press OK once the KOE ends and you will be warped inside, able to claim the prize. :)

Share this post


Link to post
Share on other sites

1.1

- fix the bug mentioned above

- change all stuffs that I can find into constants

- fix a rare bug that if player brings in a slave monster, the monster get killed whenever the emperium spawn/dead

- add a plugin this time

Share this post


Link to post
Share on other sites

Thank you I'm testing it now :)



1.1
- fix the bug mentioned above
- change all stuffs that I can find into constants
- fix a rare bug that if player brings in a slave monster, the monster get killed whenever the emperium spawn/dead
- add a plugin this time

 

Can you also include the update to diff? :D Thanks

Share this post


Link to post
Share on other sites

Can you also include the update to diff? :D Thanks

I believe the diff still works with latest herc

well if you manually insert those few lines

you can find them in spoiler tag

 

I recently hook with Haru in pull request at Github, so I can't have any diff in my test server

Share this post


Link to post
Share on other sites

is HPM need for this plugin to work? like do I need to activate HPM together with this plugin?

Also getting this error

 

koe.c: In function ‘battle_check_target_post’:
koe.c:43: error: ‘MOBID_1288’ 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

 

 

Edited by canditw

Share this post


Link to post
Share on other sites
Hi! Thx for the script, again.

 

       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.)
koe.c: In function 'plugin_init':
koe.c:52: warning: implicit declaration of function 'addHookPost'
koe.c:52: warning: nested extern declaration of 'addHookPost'
make[1]: *** [../../plugins/koe.so] Error 1
 

Any fix for this ? I get this when trying to recompile with "make sql plugins"

Thanks ~

Share this post


Link to post
Share on other sites

 

Hi! Thx for the script, again.

 

       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.)
koe.c: In function 'plugin_init':
koe.c:52: warning: implicit declaration of function 'addHookPost'
koe.c:52: warning: nested extern declaration of 'addHookPost'
make[1]: *** [../../plugins/koe.so] Error 1
 

Any fix for this ? I get this when trying to recompile with "make sql plugins"

 

Thanks ~

 

I assume the plugin is not compatible with the current version of herc? You may want to use the patch instead.​

Share this post


Link to post
Share on other sites

The plugin is created to stop people from killing their own emperium.

 

You can just code it so that when a guild kills the emperium if they already own it their entire guild gets warped out and the owner of the emperium is set to 0. This also forces the owning guild to watch their AoE and play a bit more carefully. It only takes once for a guild to learn from their mistake, since the other guilds can easily take the emperium while they are warped out. By doing this you get to entirely avoid the plugin and source edits, if you have a hard time updating your plugins this is a nice simple alternative. 

 

You can just add this bit to OnEmpDead:

 

if ( $koegid == getcharid(2) ) {
        mapannounce "guild_vs1", "You can't do that... bad " + strcharinfo(2) +" ",bc_map,0xFFCE00;
        mapwarp "guild_vs1","prontera",0,0,1,$koegid;
        $koegid = 0;
        sleep 500;
        if ( .start )
            monster "guild_vs1",49,49,"EMPERIUM",1288,1,"KoE::OnEmpDead";
    end;
    }

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
Reply to this topic...

×   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...

×
×
  • Create New...

Important Information

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