GEPARD SET AND GET

Anyone please. badly need it. or does it have to do with the deprecation-notice. Thank you!

 
Last edited by a moderator:
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

 
Back
Top