Jump to content
  • 0

king of emperium


Green

Question


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  61
  • Reputation:   0
  • Joined:  04/28/13
  • Last Seen:  

anyone has a script King of Emperium? compatible w/ eathena svn?

i already test AnnieRuru script     but the emperium can still attack even if the castle or emperium is yours

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  185
  • Reputation:   53
  • Joined:  01/04/12
  • Last Seen:  

need some edit for src(battle.c), to fix it, how edit depends on script

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  61
  • Reputation:   0
  • Joined:  04/28/13
  • Last Seen:  

Do i Paste This one?

or i Replace?

Index: battle.c
===================================================================
--- battle.c    (revision 14826)
+++ battle.c    (working copy)
@@ -3341,6 +3341,13 @@
    if( (s_bl = battle_get_master(src)) == NULL )
        s_bl = src;

+    if ( s_bl->type == BL_PC && t_bl->type == BL_MOB ) {
+        struct map_session_data *sd = BL_CAST(BL_PC, s_bl);
+        if ( ( ((TBL_MOB*)target)->class_ == 1288 && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) &&
+            ( sd->status.guild_id == mapreg_readreg( add_str("$koegid") ) || battle_getcurrentskill(src) > 0 ) )
+        return 0;
+    }
+
    switch( target->type )
    { // Checks on actual target
        case BL_PC:
Index: battle.h
===================================================================
--- battle.h    (revision 14826)
+++ battle.h    (working copy)
@@ -3,6 +3,7 @@

#ifndef _BATTLE_H_
#define _BATTLE_H_
+#include "mapreg.h"

// state of a single attack attempt; used in flee/def penalty calculations when mobbed
typedef enum damage_lv {
Edited by Patskie
Change to code
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  185
  • Reputation:   53
  • Joined:  01/04/12
  • Last Seen:  

add lines with ''+'' at begin, then remove '+' and compile

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...