Jump to content
  • 0

not reflected damage diff


xG000000

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.01
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/07/20
  • Last Seen:  

this script give me error when i manually apply it. can you help me make it work for the latest rathena.

 

error


skill.cpp: In function ‘int64 skill_attack(int, block_list*, block_list*, block_list*, uint16, uint16, t_tick, int)’:
skill.cpp:3627:44: error: request for member ‘notreflected’ in ‘*(skill_db + ((sizetype)(((long unsigned int)skill_get_index_(((int)skill_id), 0, ((const char*)(& __FUNCTION__)), ((const char*)"skill.cpp"), 3627)) * 8)))’, which is of pointer type ‘s_skill_db*’ (maybe you meant to use ‘->’ ?)
   if( !skill_db[skill_get_index(skill_id)].notreflected && (dmg.damage || dmg.damage2) && (type = skill_magic_reflect(src, bl, src==dsrc)) )
                                            ^~~~~~~~~~~~
skill.cpp: In function ‘bool skill_parse_row_notreflecteddb(char**, int, int)’:
skill.cpp:22617:38: error: request for member ‘notreflected’ in ‘*(skill_db + ((sizetype)(((long unsigned int)skill_get_index_(((int)skill_id), 0, ((const char*)(& __FUNCTION__)), ((const char*)"skill.cpp"), 22617)) * 8)))’, which is of pointer type ‘s_skill_db*’ (maybe you meant to use ‘->’ ?)
  skill_db[skill_get_index(skill_id)].notreflected = true;
                                      ^~~~~~~~~~~~
skill.cpp: In function ‘void skill_readdb()’:
skill.cpp:22756:71: error: ‘MAX_SKILL_DB’ was not declared in this scope
 sv_readdb(dbsubpath2, "skill_not_reflected_db.txt"  , ',',   1,  1, MAX_SKILL_DB, skill_parse_row_notreflecteddb); // [Cydh]
                                                                     ^~~~~~~~~~~~
skill.cpp:22756:71: note: suggested alternative: ‘MAX_SKILL_ID’
 sv_readdb(dbsubpath2, "skill_not_reflected_db.txt"  , ',',   1,  1, MAX_SKILL_DB, skill_parse_row_notreflecteddb); // [Cydh]
                                                                     ^~~~~~~~~~~~
                                                                       MAX_SKILL_ID

 

skill_not_reflected_db-rA.diff

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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