Yhaj Posted April 14, 2020 Posted April 14, 2020 I would like to have my custom item like effect of Token of Siegfried when it is being attack, or being died it will automatically ressurect and delete the item. Please help me... Thanks in advance... Quote
1 Patskie Posted April 14, 2020 Posted April 14, 2020 - script asdqwe -1,{ OnPCDieEvent: if (!countitem(501)) end; delitem 501, 1; specialeffect 77; atcommand "@alive"; end; } Change 501 to your item id Quote
0 Yhaj Posted April 14, 2020 Author Posted April 14, 2020 Thanks boss Patskie !! 13 hours ago, Patskie said: - script asdqwe -1,{ OnPCDieEvent: if (!countitem(501)) end; delitem 501, 1; specialeffect 77; atcommand "@alive"; end; } Change 501 to your item id How about it is disable during WoE hours or inside GVG Quote
0 Patskie Posted April 15, 2020 Posted April 15, 2020 if (!countitem(501) || agitcheck() || agitcheck2() || agitcheck3() || getmapflag(strcharinfo(3), mf_gvg)) end; Quote
0 Yhaj Posted April 15, 2020 Author Posted April 15, 2020 1 minute ago, Patskie said: if (!countitem(501) || agitcheck() || agitcheck2() || agitcheck3() || getmapflag(strcharinfo(3), mf_gvg)) end; Is this only working during WoE? Quote
0 Patskie Posted April 15, 2020 Posted April 15, 2020 *agitcheck() *agitcheck2() *agitcheck3() These function will let you check whether the server is currently in WoE:FE mode (agitcheck()), WoE:SE mode (agitcheck2()), or WoE:TE mode (agitcheck3()) and will return true if War of Emperium is on and false if it isn't. You can test and let me know if it doesn't work Quote
0 Yhaj Posted April 15, 2020 Author Posted April 15, 2020 2 minutes ago, Patskie said: You can test and let me know if it doesn't work Thank you... It is working Quote
Question
Yhaj
I would like to have my custom item like effect of Token of Siegfried
when it is being attack, or being died it will automatically ressurect and delete the item.
Please help me... Thanks in advance...
6 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.