Jump to content
  • 0

NPC_REBIRTH


xilence01

Question


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   4
  • Joined:  05/23/12
  • Last Seen:  

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.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   4
  • Joined:  05/23/12
  • Last Seen:  

 

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.

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

Why not use SL skill Kazail?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   4
  • Joined:  05/23/12
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  815
  • Reputation:   235
  • Joined:  01/30/13
  • Last Seen:  

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);
	}
Link to comment
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.   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.

×
×
  • Create New...