|
@@ -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
|