Jump to content
  • 0

KOE Help!


Radian

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

I've search this script in this forum and found this script + source

 

http://rathena.org/board/topic/81302-im-using-annie-koe-script-but-need-some-modifications/

 

And i got this error, can anyone help me out with this?

battle.c: In function ‘battle_check_target’:
battle.c:6990: error: ‘TBL_MOB’ has no member named ‘class_’

Link to comment
Share on other sites

11 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

@bump!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   1
  • Joined:  12/17/11
  • Last Seen:  

Have you patch the appropriate source with the provided patch script?
I can see few changes:

  1. 1 NPC Script
  2.  db/castle_db.txt
  3.  src/map/battle.c
  4.  src/map/battle.h

If you already patched the source code, did you re-compile?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

Yes, i actually apply the patch in manual. that's the error show when im recompiling..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

@bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

You may want to post your battle_check_target function here if you want any help (Not all of it though).

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

You may want to post your battle_check_target function here if you want any help (Not all of it though).

 

Here's the source code im using

+ 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;
+ }
+
Edited by Ginji
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

I clearly didn't ask for the code I saw on annie's patch.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

((TBL_MOB*)target)->mob_id == 1288

for our current source, it's mob_id I guess.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

I clearly didn't ask for the code I saw on annie's patch.

 

I'm sorry i thought your asking on that since that's what im using..

((TBL_MOB*)target)->mob_id == 1288

for our current source, it's mob_id I guess.

 

How can i fixed this one? what should i do?

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

read ur diff, and read my comment. /swt

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

read ur diff, and read my comment. /swt

 

Thank you so much for your help.. and sorry for the trouble..

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