Browse Source

[added] something to help the scheduler work a little better

hornguy6 1 năm trước cách đây
mục cha
commit
4eb7746b92
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      locations/booty_call.qsrc

+ 5 - 1
locations/booty_call.qsrc

@@ -3,6 +3,8 @@ if $ARGS[0] = 'scheduler':
 	!! clear SMS
 	!! clear schedule
 	killvar 'booty_call_time'
+	killvar 'npc_booty_call'
+	killvar 'npc_booty_call_time'
 	i = 0
 	gs 'booty_call', 'scheduler2'
 end
@@ -56,7 +58,9 @@ if $ARGS[0] = 'set_booty_call_date':
 	elseif booty_call['invite_tomorrow'] = 1:
 		npc_booty_call[$boy] = daystart + 1
 	end
-	npc_booty_call_time[$boy] = npc_start_free_time[$boy]
+	if npc_booty_call_time[$boy] = 0:
+		npc_booty_call_time[$boy] = npc_start_free_time[$boy]
+	end
 end
 
 if $ARGS[0] = 'block_booty_calls':