Jump to content
  • 0
Tio Akima

Token of Siegfried revive button

Question

hy guis
Does anyone know if the Token of Siegfried rebirth function is coded on the client side only?
I mean the setting (code) to trigger the autorevive button

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
static void clif_parse_AutoRevive(int fd, struct map_session_data *sd) __attribute__((nonnull (2)));
/// Request to resurrect oneself using Token of Siegfried (CZ_STANDING_RESURRECTION).
/// 0292
static void clif_parse_AutoRevive(int fd, struct map_session_data *sd)
{
	int item_position = pc->search_inventory(sd, ITEMID_TOKEN_OF_SIEGFRIED);
	int hpsp = 100;

	if (item_position == INDEX_NOT_FOUND) {
		if (sd->sc.data[SC_LIGHT_OF_REGENE])
			hpsp = 20 * sd->sc.data[SC_LIGHT_OF_REGENE]->val1;
		else
			return;
	}

	if (sd->sc.data[SC_HELLPOWER]) //Cannot res while under the effect of SC_HELLPOWER.
		return;

	if (!status->revive(&sd->bl, hpsp, hpsp))
		return;

	if (item_position == INDEX_NOT_FOUND)
		status_change_end(&sd->bl,SC_LIGHT_OF_REGENE,INVALID_TIMER);
	else
		pc->delitem(sd, item_position, 1, 0, DELITEM_SKILLUSE, LOG_TYPE_CONSUME);

	clif->skill_nodamage(&sd->bl,&sd->bl,ALL_RESURRECTION,4,1);
}

 

pretty straight forward to me, seems it does it without any inventory stuff, just a check for the inventory item

 

not really sure what your question is though, couldnt you use Kaizel from soul linker tree ?

 

 

e: Oh you mean that button, Yeah I have no idea where it is but you can modify it if thats the case 

Edited by Naruto

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

×
×
  • Create New...

Important Information

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