Radian Posted March 26, 2021 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 1546 Reputation: 192 Joined: 07/23/14 Last Seen: June 24, 2024 Share Posted March 26, 2021 Greetings everyone, Im here to ask for help regarding on my issue on this custom source modification. This is the part where its getting errors. for the specific part (data = itemdb_group_exists(opt_id);) if (sd->inventory_data[i]->flag.inventory_script_option) { int j; struct s_random_opt_data *data; current_equip_opt_index = -1; for (j = 0; j < MAX_ITEM_RDM_OPT; j++) { short opt_id = sd->inventory.u.items_inventory[i].option[j].id; if (!opt_id) continue; current_equip_opt_index = j; data = itemdb_group_exists(opt_id); if (!data || !data->script) continue; run_script(data->script, 0, sd->bl.id, 0); if (!calculating) return 1; } While recompiling my files these are the message that i get; status.cpp: In function ‘int status_calc_pc_sub(map_session_data*, e_status_calc_opt)’: status.cpp:4213:31: error: cannot convert ‘s_item_group_db*’ to ‘s_random_opt_data*’ in assignment 4213 | data = itemdb_group_exists(opt_id); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ | | | s_item_group_db* make[1]: *** [Makefile:84: obj/status.o] Error 1 make[1]: Leaving directory '/home/radians/src/map' make: *** [Makefile:50: map] Error 2 Thank you in advance for who can help me solve this issue. cheeeeeers! Quote Link to comment Share on other sites More sharing options...
Question
Radian
Greetings everyone, Im here to ask for help regarding on my issue on this custom source modification.
This is the part where its getting errors. for the specific part (data = itemdb_group_exists(opt_id);)
While recompiling my files these are the message that i get;
Thank you in advance for who can help me solve this issue. cheeeeeers!
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.