瀏覽代碼

- Changed scripted MVPs (Bio3 and Lord of Death) to spawn instantly on server start, just like other permanent monster spawns.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15802 54d463be-8e91-2dee-dedb-b68131a5f0ec
brianluau 13 年之前
父節點
當前提交
61d6762338
共有 2 個文件被更改,包括 7 次插入106 次删除
  1. 6 102
      npc/mobs/dungeons/lhz_dun.txt
  2. 1 4
      npc/mobs/fields/niflheim.txt

+ 6 - 102
npc/mobs/dungeons/lhz_dun.txt

@@ -69,58 +69,10 @@ lhz_dun03,163,138,12,16	monster	Whitesmith Howard	1642,1,3000000,2700000,1
 lhz_dun03,138,138,36,34	monster	High Priest Margaretha	1643,1,3300000,3000000,1
 
 lhz_dun03,0,0,0	script	mvp_lhz_dun03	-1,{
-OnInit:
-	initnpctimer;
-	end;
-
-OnTimer6000000:
-	if (rand(1,6) == 1) {
-		donpcevent strnpcinfo(3)+"::OnSummon";
-		stopnpctimer;
-	}
-	end;
-
-OnTimer6300000:
-	if (rand(1,6) == 2) {
-		donpcevent strnpcinfo(3)+"::OnSummon";
-		stopnpctimer;
-	}
-	end;
-
-OnTimer6600000:
-	if (rand(1,6) == 3) {
-		donpcevent strnpcinfo(3)+"::OnSummon";
-		stopnpctimer;
-	}
-	end;
-
-OnTimer6900000:
-	if (rand(1,6) == 4) {
-		donpcevent strnpcinfo(3)+"::OnSummon";
-		stopnpctimer;
-	}
-	end;
-
-OnTimer7200000:
-	if (rand(1,6) == 5) {
-		donpcevent strnpcinfo(3)+"::OnSummon";
-		stopnpctimer;
-	}
-	end;
-
-OnTimer7500000:
-	if (rand(1,6) == 6) {
-		donpcevent strnpcinfo(3)+"::OnSummon";
-		stopnpctimer;
-	}
-	end;
-
-OnTimer7800000:
-	donpcevent strnpcinfo(3)+"::OnSummon";
+OnTimer6000000: // delay1 = 6000000 ms (100 min)
 	stopnpctimer;
-	end;
-
-OnSummon:
+	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;
@@ -172,58 +124,10 @@ lhz_dun04,0,0,0,0	monster	Clown Alphoccio	2233,1,2580000,2460000,1
 lhz_dun04,0,0,0,0	monster	Gypsy Trentini	2234,1,2580000,2460000,1
 
 lhz_dun04,0,0,0	script	mvp_lhz_dun04	-1,{
-OnInit:
-	initnpctimer;
-	end;
-
-OnTimer6000000:
-	if (rand(1,6) == 1) {
-		donpcevent strnpcinfo(3)+"::OnSummon";
-		stopnpctimer;
-	}
-	end;
-
-OnTimer6300000:
-	if (rand(1,6) == 2) {
-		donpcevent strnpcinfo(3)+"::OnSummon";
-		stopnpctimer;
-	}
-	end;
-
-OnTimer6600000:
-	if (rand(1,6) == 3) {
-		donpcevent strnpcinfo(3)+"::OnSummon";
-		stopnpctimer;
-	}
-	end;
-
-OnTimer6900000:
-	if (rand(1,6) == 4) {
-		donpcevent strnpcinfo(3)+"::OnSummon";
-		stopnpctimer;
-	}
-	end;
-
-OnTimer7200000:
-	if (rand(1,6) == 5) {
-		donpcevent strnpcinfo(3)+"::OnSummon";
-		stopnpctimer;
-	}
-	end;
-
-OnTimer7500000:
-	if (rand(1,6) == 6) {
-		donpcevent strnpcinfo(3)+"::OnSummon";
-		stopnpctimer;
-	}
-	end;
-
-OnTimer7800000:
-	donpcevent strnpcinfo(3)+"::OnSummon";
+OnTimer6000000: // delay1 = 6000000 ms (100 min)
 	stopnpctimer;
-	end;
-
-OnSummon:
+	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;

+ 1 - 4
npc/mobs/fields/niflheim.txt

@@ -45,12 +45,9 @@ nif_fild02,0,0,0,0	monster	Lude	1509,10,5000,0,0
 nif_fild02,0,0,0,0	monster	Heirozoist	1510,10,5000,0,0
 
 niflheim,0,0,0	script	mvp_niflheim	-1,{
-OnInit:
-	initnpctimer;
-	end;
-
 OnTimer7980000: // delay1 = 7980000 ms (133 min)
 	stopnpctimer;
+OnInit:
 	switch(rand(6)) {
 	case 0:
 		monster "niflheim",327,193,"Lord Of Death",1373,1,strnpcinfo(3)+"::OnLoDDead";