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
Question
xG000000
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.