Author Topic: Resurrection Fails  (Read 316 times)

Legacy_Nebril2

  • Full Member
  • ***
  • Posts: 104
  • Karma: +0/-0
Resurrection Fails
« on: December 19, 2014, 04:25:24 pm »


               

Hi all!


 


 


 


Every time i try to use EffectResurrection() on a creature it doesn nothing. 


 


I created an item wich apply the effect when used in a creature, and again, does nothing. 


 


Quote



 


#include "x2_inc_switches"


#include "70_inc_spells"

#include "x2_inc_spellhook"

void main()

{

 

int nEvent =GetUserDefinedItemEventNumber();

if(nEvent !=  X2_ITEM_EVENT_ACTIVATE)return;

 

 

  object oPC = GetItemActivatedTarget();

 

  ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectResurrection(), oPC);

 

 

 

 

 

 

 

}


 


I use it on creatures that has the No permanent death unchecked.  And they leaves a lootable corpse, where i use the item.


 


And also i used it on a zombie, wich after 20 seconds of death (delayCommand) should resurrect! but nothing.


 


why?


 



               
               

               
            

Legacy_Pstemarie

  • Hero Member
  • *****
  • Posts: 4368
  • Karma: +0/-0
Resurrection Fails
« Reply #1 on: December 19, 2014, 04:42:50 pm »


               

Try this...


 



   Spoiler
   



               
               

               
            

Legacy_Nebril2

  • Full Member
  • ***
  • Posts: 104
  • Karma: +0/-0
Resurrection Fails
« Reply #2 on: December 20, 2014, 04:14:35 am »


               

The problem was the "looteable corpse" check. It seems like its counted as a placeable once dead, and cant be resurrected. 


 


Ty for your answer anyway '<img'>



               
               

               
            

Legacy_Pstemarie

  • Hero Member
  • *****
  • Posts: 4368
  • Karma: +0/-0
Resurrection Fails
« Reply #3 on: December 20, 2014, 02:41:21 pm »


               

Glad you got it worked out.