Jump to content

Question

Posted

Hi, i tried putting the skill "NPC_Rebirth" to priest class.

According to IRO WIKI:

  • Supportive skill
  • Levels: 3

When the caster dies, it immediately respawns in the same spot with half HP.

 

I successfully added it but the problem is, my player doesn't revive.

I think this is a src error or db error. not sure.

 

My scenario:

I casted LVL 3 NPC_Rebirth to my character.

Enemy killed me.

Did i revive? NOPE.

4 answers to this question

Recommended Posts

  • 0
Posted (edited)

Why not use SL skill Kazail?

I'm planning to do that. but i dont want to change that skill.

Any idea how to make NPC_Rebirth work like SL_Kaizel? but you can cast it to yourself and/or party members?

Edited by xilence01
  • 0
Posted

You'll have to write your own handling what should happen when a PC has SC_REBIRTH.
 
Right now it only handles monsters (status.c -> status_damage):

	if (target->type == BL_MOB && sc && sc->data[SC_REBIRTH] && !((TBL_MOB*) target)->state.rebirth) { // Ensure the monster has not already rebirthed before doing so.
		status_revive(target, sc->data[SC_REBIRTH]->val2, 0);
		status_change_clear(target,0);
		((TBL_MOB*)target)->state.rebirth = 1;

		return (int)(hp+sp);
	}
  • 0
Posted

 

You'll have to write your own handling what should happen when a PC has SC_REBIRTH.

 

Right now it only handles monsters (status.c -> status_damage):

	if (target->type == BL_MOB && sc && sc->data[SC_REBIRTH] && !((TBL_MOB*) target)->state.rebirth) { // Ensure the monster has not already rebirthed before doing so.
		status_revive(target, sc->data[SC_REBIRTH]->val2, 0);
		status_change_clear(target,0);
		((TBL_MOB*)target)->state.rebirth = 1;

		return (int)(hp+sp);
	}

how can i make it work like SL_KAIZEL? and you can cast it to yourself and other party members.

Nvm. Thanks for the help playtester and stolao.

Fixed it already.

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...