Jump to content
  • 0

Auto Resurrection when died (Item)


Yhaj

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  41
  • Reputation:   0
  • Joined:  05/04/18
  • Last Seen:  

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

  • 1

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

-	script	asdqwe	-1,{
	OnPCDieEvent:
		if (!countitem(501)) end;
		delitem 501, 1;
		specialeffect 77;
		atcommand "@alive";
		end;
}

Change 501 to your item id

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  41
  • Reputation:   0
  • Joined:  05/04/18
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

if (!countitem(501) || agitcheck() || agitcheck2() || agitcheck3() || getmapflag(strcharinfo(3), mf_gvg)) end;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  41
  • Reputation:   0
  • Joined:  05/04/18
  • Last Seen:  

1 minute ago, Patskie said:

if (!countitem(501) || agitcheck() || agitcheck2() || agitcheck3() || getmapflag(strcharinfo(3), mf_gvg)) end;

 

Is this only working during WoE?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

*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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  41
  • Reputation:   0
  • Joined:  05/04/18
  • Last Seen:  

2 minutes ago, Patskie said:

You can test and let me know if it doesn't work

Thank you... It is working

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...