Forráskód Böngészése

Added rid check in SaraMemory.txt (issue #2032)

Atemo 8 éve
szülő
commit
a6b252c01e
2 módosított fájl, 10 hozzáadás és 4 törlés
  1. 2 0
      doc/script_commands.txt
  2. 8 4
      npc/re/instances/SaraMemory.txt

+ 2 - 0
doc/script_commands.txt

@@ -5605,6 +5605,8 @@ everything not equippable by the new job class anyway.
 These commands will make a character sit or stand.
 If no character is specified, the command will run for the invoking character.
 
+Additionnally Sitting constant is true when the character is sitting, false otherwise.
+
 ---------------------------------------
 
 *disguise <Monster ID>{,<char_id>};

+ 8 - 4
npc/re/instances/SaraMemory.txt

@@ -1166,7 +1166,8 @@ OnMyMobDead:
 	if ('Sara_Mobs < 1) {
 		set 'Sara_Mobs,0;
 		mapannounce instance_mapname("1@sara"), "Sara ran away again! You think she went in the 2 O'clock direction!",bc_map,"0xffff00";
-		viewpoint 1,208,250,1,0x00FF00;
+		if (playerattached() > 0)
+			viewpoint 1,208,250,1,0x00FF00;
 		donpcevent instance_npcname("#sara_warp02", instance_id())+"::OnEnable";
 		donpcevent instance_npcname("#MobsSara02", instance_id())+"::OnEnable";
 		donpcevent instance_npcname("#MobsSara01", instance_id())+"::OnDisable";
@@ -1211,7 +1212,8 @@ OnMyMobDead:
 	if ('Sara_Mobs < 1) {
 		set 'Sara_Mobs,0;
 		mapannounce instance_mapname("1@sara"), "Sara ran away yet again! You think she went in the 5 O'clock direction!",bc_map,"0xffff00";
-		viewpoint 1,226,190,1,0x00FF00;
+		if (playerattached() > 0)
+			viewpoint 1,226,190,1,0x00FF00;
 		donpcevent instance_npcname("#sara_warp03", instance_id())+"::OnEnable";
 		donpcevent instance_npcname("#MobsSara03", instance_id())+"::OnEnable";
 		donpcevent instance_npcname("#MobsSara02", instance_id())+"::OnDisable";
@@ -1288,7 +1290,8 @@ OnMyMobDead:
 	if ('Sara_Mobs < 1) {
 		set 'Sara_Mobs,0;
 		mapannounce instance_mapname("1@sara"), "Sara ran away yet again! *sigh* You think she went in the 12 O'clock direction!",bc_map,"0xffff00";
-		viewpoint 1,166,67,1,0x00FF00;
+		if (playerattached() > 0)
+			viewpoint 1,166,67,1,0x00FF00;
 		donpcevent instance_npcname("#sara_warp04", instance_id())+"::OnEnable";
 		donpcevent instance_npcname("#MobsSara04", instance_id())+"::OnEnable";
 		donpcevent instance_npcname("#MobsSara03", instance_id())+"::OnDisable";
@@ -1364,7 +1367,8 @@ OnMyMobDead:
 	if ('Sara_Mobs < 1) {
 		set 'Sara_Mobs,0;
 		mapannounce instance_mapname("1@sara"), "Sara continues to run away! You think she went in the 12 O'clock direction!",bc_map,"0xffff00";
-		viewpoint 1,155,180,1,0x00FF00;
+		if (playerattached() > 0)
+			viewpoint 1,155,180,1,0x00FF00;
 		donpcevent instance_npcname("#sara_warp05", instance_id())+"::OnEnable";
 		donpcevent instance_npcname("Sara Irene#02", instance_id())+"::OnEnable";
 		donpcevent instance_npcname("Doyen Irene#03", instance_id())+"::OnEnable";