Jump to content
  • 0

AnnieRuru's KoE script BUG


jimmyyheah

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  12/18/13
  • Last Seen:  

i follow AnnieRuru step in patch modified SRC i having error in battle.h

    CC     script.c
        CC      storage.c
        CC      skill.c
        CC      atcommand.c
        CC      battle.c
battle.c: In function ‘battle_check_target’:
battle.c:6602: error: ‘TBL_MOB’ has no member named ‘class_’
battle.c:6603: error: ‘mapreg’ undeclared (first use in this function)
battle.c:6603: error: (Each undeclared identifier is reported only once
battle.c:6603: error: for each function it appears in.)
battle.c:6603: error: ‘script’ undeclared (first use in this function)
make[1]: *** [obj_sql/battle.o] Error 1
make[1]: Leaving directory `/home/sg04/trunk/src/map'
make: *** [map] Error 2
Recompile failed. Please check again.

my battle h

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

 

but in annieruru src is below
 #include "../common/mmo.h"
 #include "../config/core.h"
 #include "map.h" //ELE_MAX
+#include "mapreg.h"
 

but when i using this

Index: battle.c
===================================================================
--- battle.c    (revision 16817)
+++ battle.c    (working copy)
@@ -5021,6 +5021,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("$KOEGUILD") ) || battle_getcurrentskill(src) > 0 ) )
+        return 0;
+    }
+
    if ( s_bl->type == BL_PC ) {
        switch( t_bl->type ) {
            case BL_MOB: // Source => PC, Target => MOB
Index: battle.h
===================================================================
--- battle.h    (revision 16817)
+++ 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 {

no error in putty

but i facing player cant hit emp all miss. there is the bug on there and as a gm can keep break the emp

koe_0.3ar (1).diff

koe.txt

Edited by Emistry
use codebox
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1529
  • Reputation:   234
  • Joined:  08/03/12
  • Last Seen:  

 

i follow AnnieRuru step in patch modified SRC i having error in battle.h

    CC     script.c
        CC      storage.c
        CC      skill.c
        CC      atcommand.c
        CC      battle.c
battle.c: In function ‘battle_check_target’:
battle.c:6602: error: ‘TBL_MOB’ has no member named ‘class_’
battle.c:6603: error: ‘mapreg’ undeclared (first use in this function)
battle.c:6603: error: (Each undeclared identifier is reported only once
battle.c:6603: error: for each function it appears in.)
battle.c:6603: error: ‘script’ undeclared (first use in this function)
make[1]: *** [obj_sql/battle.o] Error 1
make[1]: Leaving directory `/home/sg04/trunk/src/map'
make: *** [map] Error 2
Recompile failed. Please check again.

my battle h

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

 

but in annieruru src is below
 #include "../common/mmo.h"
 #include "../config/core.h"
 #include "map.h" //ELE_MAX
+#include "mapreg.h"
 

but when i using this

Index: battle.c
===================================================================
--- battle.c    (revision 16817)
+++ battle.c    (working copy)
@@ -5021,6 +5021,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("$KOEGUILD") ) || battle_getcurrentskill(src) > 0 ) )
+        return 0;
+    }
+
    if ( s_bl->type == BL_PC ) {
        switch( t_bl->type ) {
            case BL_MOB: // Source => PC, Target => MOB
Index: battle.h
===================================================================
--- battle.h    (revision 16817)
+++ 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 {

no error in putty

but i facing player cant hit emp all miss. there is the bug on there and as a gm can keep break the emp

 

hit emp all miss = not up guild skill approval

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  12/18/13
  • Last Seen:  

@chaos92 

 

my player his guild level is maxi still can hit it =(

 

and they can keep break the emp izit ?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

try
 
use the same npc script
 
but patch using this

 

your issue happen probably because your diff files failed, and server didnt compile successfully.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  12/18/13
  • Last Seen:  

@Emistry i using koe_03ar.diff and i get this
 
battle.c: In function 'battle_check_target':
battle.c:5266: error: 'TBL_MOB' has no member named 'mob_id'
make[1]: *** [obj_sql/battle.o] Error 1
make[1]: Leaving directory `/home/irisro/trunk/src/map'
make: *** [map_sql] Error 2

Pump


pump pump

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