MikZ 5 Posted February 12, 2020 Good day! Please help me to make this https://rathena.org/board/files/file/3997-set-and-get-variable-for-gepard/ compatible to hercules please. thanks! I am getting error on thanks! Quote Share this post Link to post Share on other sites
0 brunosc 2 Posted February 12, 2020 go to src/map/script.c and check if you have get_unique_id. Quote Share this post Link to post Share on other sites
0 MikZ 5 Posted March 18, 2020 On 2/13/2020 at 2:05 AM, brunosc said: go to src/map/script.c and check if you have get_unique_id. I don't have.. but I have gepard. what should I do? Quote Share this post Link to post Share on other sites
0 MikZ 5 Posted March 28, 2020 up please. can someone help me. Quote Share this post Link to post Share on other sites
0 MikZ 5 Posted March 30, 2020 (edited) Anyone please. badly need it. or does it have to do with the deprecation-notice. Thank you! Edited March 30, 2020 by MikZ Quote Share this post Link to post Share on other sites
0 Kenpachi 65 Posted March 30, 2020 Hi. In src/map/script.c: Add this: BUILDIN(get_unique_id) { struct map_session_data* sd = script_rid2sd(st); if (sd == NULL) { script_pushint(st,0); return false; } script_pushint(st, sockt->session[sd->fd]->gepard_info.unique_id); return true; } Below: BUILDIN(resethate) { struct map_session_data *sd; if (script_hasdata(st, 2)) sd = script->id2sd(st, script_getnum(st, 2)); else sd = script->rid2sd(st); if (sd != NULL) pc->resethate(sd); return true; } And add this: BUILDIN_DEF(get_unique_id, ""), Below: BUILDIN_DEF(openlapineddukddakboxui, "i"), Don't forget to re-compile. ~Kenpachi 1 MikZ reacted to this Quote Share this post Link to post Share on other sites
Good day!
Please help me to make this https://rathena.org/board/files/file/3997-set-and-get-variable-for-gepard/ compatible to hercules please. thanks!
I am getting error on
thanks!
Share this post
Link to post
Share on other sites