Browse Source

[fixed] forgot to limit Luda's apartment by day and time

Sicaa 4 năm trước cách đây
mục cha
commit
cc895fcdb3
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      locations/ludahome.qsrc

+ 2 - 2
locations/ludahome.qsrc

@@ -58,7 +58,7 @@ if $ARGS[0] = 'home':
 		'You go to Aunt Luda''s apartment and ring the door bell.'
 		!! Luda is home and answers the door Monday-Thursday from 18:00 to 23:00 or 08:00 to 23:00 on the weekends 50% of the time
 		!! Olu is home and answers the door at the same times but only 33% of the time. Otherwise no one is home
-		if rand(0,1) = 1:
+		if rand(0,1) = 1 and (week < 5 and hour >= 18 and hour <= 22) or (week > 5 and hour >= 8 and hour <= 22):
 			*clr & cla
 			'<center><img src="images/pc/npc_headshots/big30.jpg"></center>'
 			'You stand outside your aunts apartment, knocking on the door. The door is answered by Luda, as soon as she sees you she smiles "<<$pcs_nickname>> come in, come in." With that she invites you in and closes the door behind you.'
@@ -68,7 +68,7 @@ if $ARGS[0] = 'home':
 				'She leads you to her living room and then sits down on the couch and pats the seat next to her. Once you sit down she says "What have you been up to?"'
 				act 'Sit down and chat': LudaLoc = 5 & gt 'ludahome', 'chat_luda'
 			end
-		elseif rand(0,2) <= 1:
+		elseif rand(0,2) <= 1 and (week < 5 and hour >= 18 and hour <= 22) or (week > 5 and hour >= 8 and hour <= 22):
 			*clr & cla
 			'<center><img src="images/pc/npc_headshots/big55.jpg"></center>'
 			if OluQW['met'] = 0: