Jump to content
  • 0
Sign in to follow this  
MikZ

GEPARD SET AND GET

Question

5 answers to this question

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites
  • 0
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?

Share this post


Link to post
Share on other sites
  • 0

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

Edited by MikZ

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.