Sfoglia il codice sorgente

[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 mesi fa
parent
commit
ded06b0c72
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  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
 
-if $ARGS[0] = 'stage_calls':
+if $ARGS[0] = 'scheduler':
 	if arrsize('$lover') > 0:
 		ts_temp_i = 0
 		ts_temp_max_i = arrsize('$lover')
@@ -8,7 +8,7 @@ if $ARGS[0] = 'stage_calls':
 			$temp_npcid = $lover[ts_temp_i]
 			if $npc_rel_type[$temp_npcid] = 'boyfriend' or $npc_rel_type[$temp_npcid] = 'girlfriend':
 				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
 					gs 'telefon', 'SetCallSchedule', $temp_npcid, "gt 'lover_call', 'callingTheLover', '<<$temp_npcid>>'", "npc_meetday['<<$temp_npcid>>'] < <<daystart>> and hour >= 7 and hour <= 19", "", "0"
 				end

+ 1 - 1
locations/telefon_schedules.qsrc

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