xilence01 Posted July 4, 2016 Posted July 4, 2016 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. Quote
0 xilence01 Posted July 4, 2016 Author Posted July 4, 2016 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. Quote
0 xilence01 Posted July 4, 2016 Author Posted July 4, 2016 (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 July 4, 2016 by xilence01 Quote
0 Playtester Posted July 4, 2016 Posted July 4, 2016 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); } Quote
Question
xilence01
Hi, i tried putting the skill "NPC_Rebirth" to priest class.
According to IRO WIKI:
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.