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