Yhaj Posted April 14, 2020 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 41 Reputation: 0 Joined: 05/04/18 Last Seen: October 10, 2020 Share 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 Link to comment Share on other sites More sharing options...
1 Patskie Posted April 14, 2020 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 3 hours ago Share 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 Link to comment Share on other sites More sharing options...
0 Yhaj Posted April 14, 2020 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 41 Reputation: 0 Joined: 05/04/18 Last Seen: October 10, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
0 Patskie Posted April 15, 2020 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 3 hours ago Share Posted April 15, 2020 if (!countitem(501) || agitcheck() || agitcheck2() || agitcheck3() || getmapflag(strcharinfo(3), mf_gvg)) end; Quote Link to comment Share on other sites More sharing options...
0 Yhaj Posted April 15, 2020 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 41 Reputation: 0 Joined: 05/04/18 Last Seen: October 10, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
0 Patskie Posted April 15, 2020 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 3 hours ago Share 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 Link to comment Share on other sites More sharing options...
0 Yhaj Posted April 15, 2020 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 41 Reputation: 0 Joined: 05/04/18 Last Seen: October 10, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
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...
Link to comment
Share on other sites
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.