Jump to content
  • 0
Sign in to follow this  
MikZ

GEPARD SET AND GET

Question

6 answers to this question

Recommended Posts

  • 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
  • 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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