Jump to content
  • 0

2 hour delay after server restart or DC.


kamoteka

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   0
  • Joined:  08/29/12
  • Last Seen:  

How can i add delay on LHZ respawn? when i refresh my server, it will automatically spawn after 2hours.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

trunk/npc/re/mobs/dungeons/lhz_dun.txt (if you're not using Renewal, then edit the file in /npc/pre-re/)

Move the OnInit labels like so:

Index: npc/re/mobs/dungeons/lhz_dun.txt
===================================================================
--- npc/re/mobs/dungeons/lhz_dun.txt	(revision 16991)
+++ npc/re/mobs/dungeons/lhz_dun.txt	(working copy)
@@ -72,7 +72,6 @@
OnTimer6000000: // delay1 = 6000000 ms (100 min)
	stopnpctimer;
	sleep rand(0,30)*60000; // 0 to 30 minutes
-OnInit:
	// Select Coordinates to summon a random MVP on
	switch(rand(1,6)) {
		case 1:  set .@x,140;  set .@y,232;  break;
@@ -100,6 +99,7 @@

OnMyMVPDead:
	killmonster "lhz_dun03",strnpcinfo(3)+"::OnMy99Dead";
+OnInit:
	initnpctimer;
OnMy99Dead:
	end;
@@ -127,7 +127,6 @@
OnTimer6000000: // delay1 = 6000000 ms (100 min)
	stopnpctimer;
	sleep rand(0,30)*60000; // 0 to 30 minutes
-OnInit:
	// Select Coordinates to summon a random MVP on
	switch(rand(1,7)) {
		case 1:  set .@x,77;   set .@y,251;  break;
@@ -157,6 +156,7 @@

OnMyMVPDead:
	killmonster "lhz_dun04",strnpcinfo(3)+"::OnMy99Dead";
+OnInit:
	initnpctimer;
OnMy99Dead:
	end;

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...