SphereCommunity
region_antimagic_all prevents resurrection from t_shrine - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: region_antimagic_all prevents resurrection from t_shrine (/Thread-region-antimagic-all-prevents-resurrection-from-t-shrine)



region_antimagic_all prevents resurrection from t_shrine - Rizz - 07-06-2015 07:25 PM

Since region_antimagic_all prevents resurrection from t_shrine, is possible to avoid and get the resurrection anyway?

I reported in bugtracker anyway.


RE: region_antimagic_all prevents resurrection from t_shrine - darksun84 - 07-06-2015 08:13 PM

I think you can override t_shrine typedef and put resurrect 1 (force resurrect even if anti-magic) return 1 in the @dclick trigger.


RE: region_antimagic_all prevents resurrection from t_shrine - Shamino - 07-07-2015 04:06 AM

U need to add CAN_I_FORCEDC to shrine item and this custom typedef.

If you dont like create a new item shrine, u can create a normal ankh and type:
.xattr 010
.xcan |= can_i_forcedc
.xtype t_shrine_help

Code:
[TYPEDEF t_shrine_help]
ON=@DCLICK
IF (<SRC.FLAGS>&statf_dead)
    SRC.RESURRECT 1
    SRC.HITS=<SRC.MAXHITS>
    SRC.STAM=<SRC.MAXSTAM>
    SRC.MANA=<SRC.MAXMANA>
    RETURN 1
ELSE
    SRC.SYSMESSAGE You're full of life, you must be dead to use the ankh.
    RETURN 1
ENDIF



RE: region_antimagic_all prevents resurrection from t_shrine - Rizz - 07-07-2015 06:43 PM

Thx all!