浏览代码

[fixed] $npcID wasn't properly given to the lover call, resulting in missing names (and more). Renamed the staging_call function to scheduler to mimic the sms function

anjuna krokus 2 月之前
父节点
当前提交
ded06b0c72
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      locations/lover_call.qsrc
  2. 1 1
      locations/telefon_schedules.qsrc

+ 2 - 2
locations/lover_call.qsrc

@@ -1,6 +1,6 @@
 # lover_call
 # lover_call
 
 
-if $ARGS[0] = 'stage_calls':
+if $ARGS[0] = 'scheduler':
 	if arrsize('$lover') > 0:
 	if arrsize('$lover') > 0:
 		ts_temp_i = 0
 		ts_temp_i = 0
 		ts_temp_max_i = arrsize('$lover')
 		ts_temp_max_i = arrsize('$lover')
@@ -8,7 +8,7 @@ if $ARGS[0] = 'stage_calls':
 			$temp_npcid = $lover[ts_temp_i]
 			$temp_npcid = $lover[ts_temp_i]
 			if $npc_rel_type[$temp_npcid] = 'boyfriend' or $npc_rel_type[$temp_npcid] = 'girlfriend':
 			if $npc_rel_type[$temp_npcid] = 'boyfriend' or $npc_rel_type[$temp_npcid] = 'girlfriend':
 				if rand(0, 1) = 1:
 				if rand(0, 1) = 1:
-					gs 'telefon', 'SetCallSchedule', $temp_npcid, "gt 'lover_call', 'callingTheLover', '<<$temp_npcid>>'", "npc_meetday['<<$temp_npcid>>'] < <<daystart>> and hour >= 7 and hour <= 19", "gs 'lover_call', 'lover', <<$temp_npcid>>", "hour >= 6 and hour <= 19"
+					gs 'telefon', 'SetCallSchedule', $temp_npcid, "gt 'lover_call', 'callingTheLover', '<<$temp_npcid>>'", "npc_meetday['<<$temp_npcid>>'] < <<daystart>> and hour >= 7 and hour <= 19", "gs 'lover_call', 'lover', '<<$temp_npcid>>'", "hour >= 6 and hour <= 19"
 				else
 				else
 					gs 'telefon', 'SetCallSchedule', $temp_npcid, "gt 'lover_call', 'callingTheLover', '<<$temp_npcid>>'", "npc_meetday['<<$temp_npcid>>'] < <<daystart>> and hour >= 7 and hour <= 19", "", "0"
 					gs 'telefon', 'SetCallSchedule', $temp_npcid, "gt 'lover_call', 'callingTheLover', '<<$temp_npcid>>'", "npc_meetday['<<$temp_npcid>>'] < <<daystart>> and hour >= 7 and hour <= 19", "", "0"
 				end
 				end

+ 1 - 1
locations/telefon_schedules.qsrc

@@ -10,7 +10,7 @@ if $ARGS[0] = 'cikl':
 	!!===============================================================!!
 	!!===============================================================!!
 
 
 
 
-	gs 'lover_call', 'stage_calls'
+	gs 'lover_call', 'scheduler'