|
@@ -1467,8 +1467,24 @@ if $ARGS[0] = 'zinaida':
|
|
|
end
|
|
|
|
|
|
|
|
|
-if $ARGS[0] = 'summer_invite_sms':
|
|
|
+if $ARGS[0] = 'game_invite_sms_switch':
|
|
|
+ if $start_type['loc'] = 'sg' and (grupTipe = 3 or nerd_game['stage'] > 0 or rand(80, npc_rel['A152']) > 95):
|
|
|
+ gs 'nerd_game_night', 'summer_invite_sms', 'Add SMS'
|
|
|
+ elseif ($start_type['loc'] = 'uni' or $start_type['loc'] = 'city') and nerd_game['fixed_uni_day'] = 0 and (nerd_game['stage'] > 0 or rand(80, npc_rel['A152']) > 95):
|
|
|
+ gs 'nerd_game_night', 'summer2_invite_sms', 'Add SMS'
|
|
|
+ end
|
|
|
+ gs 'telefon', 'SetSMSSchedule', 'A152', "", "0", "", "0"
|
|
|
+end
|
|
|
+
|
|
|
+if $ARGS[0] = 'first_text':
|
|
|
+ temp_pos = arrpos('$contact', 'A152')
|
|
|
+ if temp_pos = -1 or contactAnon[temp_pos] = 1: gs 'telefon', 'AddContact', 'A152', 'images/characters/shared/headshots_main/big152.jpg', 0
|
|
|
+ killvar 'temp_pos'
|
|
|
+ nerd_game['first_SMS_received'] = 1
|
|
|
+end
|
|
|
|
|
|
+
|
|
|
+if $ARGS[0] = 'summer_invite_sms':
|
|
|
if $ARGS[1] = 'Add SMS':
|
|
|
nerd_game['lot'] = func('shortgs', 'rand_pick', '', 12, 13, 14, 23, 24, 34)
|
|
|
end
|
|
@@ -1480,17 +1496,22 @@ if $ARGS[0] = 'summer_invite_sms':
|
|
|
$SMSTree[ '0'] = 'Hey <<$pcs_nickname>>, would you like to join us for our weekly game night? We have a few nights free this week and were wondering which one works best for you. We can do it either on <<$week[val(mid(nerd_game[''lot''],1,1))]>> or <<$week[val(mid(nerd_game[''lot''],2,1))]>>.'
|
|
|
end
|
|
|
|
|
|
- $SMSTree['ca1'] = 'Not interested'
|
|
|
- $SMSTree['a1'] = 'Sorry, but I''m just not interested in stuff like that. Thanks for the invite though.'
|
|
|
- $SMSTree['a2'] = ':-( Oh... okay yeah I get it. Guess we''ll see you around.'
|
|
|
+ $SMSTree['ca1'] = '<<$week[val(mid(nerd_game[''lot''],1,1))]>>'
|
|
|
+ $SMSTree['a1'] = 'Sure, I can make it on <<$week[val(mid(nerd_game[''lot''],1,1))]>>.'
|
|
|
+ $SMSTree['a2'] = ':-) Great! I''ll see you on <<$week[val(mid(nerd_game[''lot''],1,1))]>> at 20:00 in the library then! Be ready to get your nerd on, because we''re going to rock it so hard! We also meet for board games on Saturday and Sunday if you want to show up for those.'
|
|
|
+
|
|
|
+ $SMSTree['cb1'] = '<<$week[val(mid(nerd_game[''lot''],2,1))]>>'
|
|
|
+ $SMSTree['b1'] = 'Sure, I can make it on <<$week[val(mid(nerd_game[''lot''],2,1))]>>.'
|
|
|
+ $SMSTree['b2'] = ':-) Great! I''ll see you on <<$week[val(mid(nerd_game[''lot''],2,1))]>> at 20:00 in the library then! Be ready to get your nerd on, because we''re going to rock it so hard! We also meet for board games on Saturday and Sunday if you want to show up for those.'
|
|
|
|
|
|
- $SMSTree['cb1'] = '<<$week[val(mid(nerd_game[''lot''],1,1))]>>'
|
|
|
- $SMSTree['b1'] = 'Sure, I can make it on <<$week[val(mid(nerd_game[''lot''],1,1))]>>.'
|
|
|
- $SMSTree['b2'] = ':-) Great! I''ll see you on <<$week[val(mid(nerd_game[''lot''],1,1))]>> at 20:00 in the library then! Be ready to get your nerd on, because we''re going to rock it so hard! We also meet for board games on Saturday and Sunday if you want to show up for those.'
|
|
|
+ $SMSTree['cc1'] = 'Not this week'
|
|
|
+ $SMSTree['c1'] = 'Sorry I don''t have time this week, but next week I should be able too.'
|
|
|
+ $SMSTree['c2'] = ':-( Oh... okay yeah I get it. Guess we''ll see you next week.'
|
|
|
|
|
|
- $SMSTree['cc1'] = '<<$week[val(mid(nerd_game[''lot''],2,1))]>>'
|
|
|
- $SMSTree['c1'] = 'Sure, I can make it on <<$week[val(mid(nerd_game[''lot''],2,1))]>>.'
|
|
|
- $SMSTree['c2'] = ':-) Great! I''ll see you on <<$week[val(mid(nerd_game[''lot''],2,1))]>> at 20:00 in the library then! Be ready to get your nerd on, because we''re going to rock it so hard! We also meet for board games on Saturday and Sunday if you want to show up for those.'
|
|
|
+ $SMSTree['cd1'] = 'Not interested'
|
|
|
+ $SMSTree['cd2'] = '<font color="red">This ends the D&D Campaign - Forever</font>'
|
|
|
+ $SMSTree['d2'] = 'Sorry, but I''m just not interested in stuff like that. Thanks for the invite though.'
|
|
|
+ $SMSTree['d3'] = ':-( Oh... okay yeah I get it. Guess we''ll see you around.'
|
|
|
|
|
|
|
|
|
if $ARGS[1] = 'Add SMS':
|
|
@@ -1502,103 +1523,102 @@ if $ARGS[0] = 'summer_invite_sms':
|
|
|
gs 'SMStext_builder', 'add_reply', $SMSTree['ca1'], 'nerd_game_night', 'summer_invite_sms', 'Choice_a'
|
|
|
gs 'SMStext_builder', 'add_reply', $SMSTree['cb1'], 'nerd_game_night', 'summer_invite_sms', 'Choice_b'
|
|
|
gs 'SMStext_builder', 'add_reply', $SMSTree['cc1'], 'nerd_game_night', 'summer_invite_sms', 'Choice_c'
|
|
|
+ gs 'SMStext_builder', 'add_reply', $SMSTree['cd1'], 'nerd_game_night', 'summer_invite_sms', 'Choice_d'
|
|
|
|
|
|
gs 'SMStext_builder', 'add_sms', 'A152'
|
|
|
gs 'SMStext_builder', 'end'
|
|
|
-
|
|
|
- elseif $ARGS[1] = 'Choice_a':
|
|
|
+ else
|
|
|
!! Add Feofan to the contact list if he isn''t in it yet.
|
|
|
!! Is here to add it after reading the text.
|
|
|
if nerd_game['first_SMS_received'] = 0:
|
|
|
- if arrpos('$contact', 'A152') = -1: gs 'telefon', 'AddContact', 'A152', 'images/characters/shared/headshots_main/big152.jpg', 0
|
|
|
- nerd_game['first_SMS_received'] = 1
|
|
|
+ gs 'nerd_game_night', 'first_text'
|
|
|
end
|
|
|
+ end
|
|
|
|
|
|
+ if $ARGS[1] = 'Choice_a':
|
|
|
gs 'SMStext_builder', 'start'
|
|
|
gs 'SMStext_builder', 'send', $SMSTree['a1']
|
|
|
gs 'SMStext_builder', 'show_sms', ARGS[2]
|
|
|
- wait 1000
|
|
|
+ nerd_game['game_day'] = daystart - week + val(mid(nerd_game['lot'], 1, 1))
|
|
|
+
|
|
|
+ wait 100
|
|
|
|
|
|
gs 'SMStext_builder', 'receive', $SMSTree['a2']
|
|
|
gs 'SMStext_builder', 'show_sms', ARGS[2]
|
|
|
gs 'SMStext_builder', 'end'
|
|
|
-!! nerd_game['invite_day'] = 2147483647 & ! block the event
|
|
|
-
|
|
|
- elseif $ARGS[1] = 'Choice_b':
|
|
|
- !! Add Feofan to the contact list if he isn''t in it yet.
|
|
|
- !! Is here to add it after reading the text.
|
|
|
- if nerd_game['first_SMS_received'] = 0:
|
|
|
- if arrpos('$contact', 'A152') = -1: gs 'telefon', 'AddContact', 'A152', 'images/characters/shared/headshots_main/big152.jpg', 0
|
|
|
- nerd_game['first_SMS_received'] = 1
|
|
|
- end
|
|
|
-
|
|
|
- nerd_game['game_day'] = daystart - week + val(mid(nerd_game['lot'],1,1))
|
|
|
|
|
|
+ elseif $ARGS[1] = 'Choice_b':
|
|
|
gs 'SMStext_builder', 'start'
|
|
|
gs 'SMStext_builder', 'send', $SMSTree['b1']
|
|
|
gs 'SMStext_builder', 'show_sms', ARGS[2]
|
|
|
- wait 1000
|
|
|
+ nerd_game['game_day'] = daystart - week + val(mid(nerd_game['lot'], 2, 1))
|
|
|
+
|
|
|
+ wait 100
|
|
|
|
|
|
gs 'SMStext_builder', 'receive', $SMSTree['b2']
|
|
|
gs 'SMStext_builder', 'show_sms', ARGS[2]
|
|
|
gs 'SMStext_builder', 'end'
|
|
|
|
|
|
elseif $ARGS[1] = 'Choice_c':
|
|
|
- !! Add Feofan to the contact list if he isn''t in it yet.
|
|
|
- !! Is here to add it after reading the text.
|
|
|
- if nerd_game['first_SMS_received'] = 0:
|
|
|
- if arrpos('$contact', 'A152') = -1: gs 'telefon', 'AddContact', 'A152', 'images/characters/shared/headshots_main/big152.jpg', 0
|
|
|
- nerd_game['first_SMS_received'] = 1
|
|
|
- end
|
|
|
-
|
|
|
- nerd_game['game_day'] = daystart - week + val(mid(nerd_game['lot'],2,1))
|
|
|
-
|
|
|
gs 'SMStext_builder', 'start'
|
|
|
gs 'SMStext_builder', 'send', $SMSTree['c1']
|
|
|
gs 'SMStext_builder', 'show_sms', ARGS[2]
|
|
|
- wait 1000
|
|
|
+
|
|
|
+ wait 100
|
|
|
|
|
|
gs 'SMStext_builder', 'receive', $SMSTree['c2']
|
|
|
gs 'SMStext_builder', 'show_sms', ARGS[2]
|
|
|
gs 'SMStext_builder', 'end'
|
|
|
- end
|
|
|
|
|
|
- killvar '$SMSTree'
|
|
|
-end
|
|
|
+ elseif $ARGS[1] = 'Choice_d':
|
|
|
+ gs 'SMStext_builder', 'start'
|
|
|
+ gs 'SMStext_builder', 'add_reply', $SMSTree['ca1'], 'nerd_game_night', 'summer_invite_sms', 'Choice_a'
|
|
|
+ gs 'SMStext_builder', 'add_reply', $SMSTree['cb1'], 'nerd_game_night', 'summer_invite_sms', 'Choice_b'
|
|
|
+ gs 'SMStext_builder', 'add_reply', $SMSTree['cc1'], 'nerd_game_night', 'summer_invite_sms', 'Choice_c'
|
|
|
+ gs 'SMStext_builder', 'add_reply', $SMSTree['cd2'], 'nerd_game_night', 'summer_invite_sms', 'Choice_d1'
|
|
|
+ gs 'SMStext_builder', 'show_sms', ARGS[2]
|
|
|
+ gs 'SMStext_builder', 'end'
|
|
|
|
|
|
-if $ARGS[0] = 'summer2_invite_sms':
|
|
|
- $SMS_open_receiving = '<table width=80%><tr><td collspan=2 bgcolor="#D4CEF9"><font color=black>'
|
|
|
- $SMS_close_receiving = '</font></td><td width=10%></td></tr></table>'
|
|
|
+ elseif $ARGS[1] = 'Choice_d1':
|
|
|
+ gs 'SMStext_builder', 'start'
|
|
|
+ gs 'SMStext_builder', 'send', $SMSTree['d2']
|
|
|
+ gs 'SMStext_builder', 'show_sms', ARGS[2]
|
|
|
+ nerd_game['invite_day'] += 7305 & ! Next campaign in 20 years.
|
|
|
|
|
|
- !! Open and close sending text
|
|
|
- $SMS_open_sending = '<table width=80%><tr><td width=10%></td><td collspan=2 bgcolor=pink><font color=black>'
|
|
|
- $SMS_close_sending = '</font></td></tr></table>'
|
|
|
+ wait 100
|
|
|
|
|
|
- !! Start reply
|
|
|
- $SMS_open_replies = '<table><tr><th> Reply</th></tr><tr><td>'
|
|
|
- $SMS_next_reply = '</td></tr><tr><td>'
|
|
|
- $SMS_close_replies = '</td></tr></table>'
|
|
|
-
|
|
|
- $temp_SMStext = ''
|
|
|
+ gs 'SMStext_builder', 'receive', $SMSTree['d3']
|
|
|
+ gs 'SMStext_builder', 'show_sms', ARGS[2]
|
|
|
+ gs 'SMStext_builder', 'end'
|
|
|
+ end
|
|
|
|
|
|
+ killvar '$SMSTree'
|
|
|
+end
|
|
|
|
|
|
+if $ARGS[0] = 'summer2_invite_sms':
|
|
|
if nerd_game['first_SMS_received'] = 0:
|
|
|
$SMSTree[ '0'] = 'Hey <<$pcs_nickname>> this is Feofan. We are doing our weekly game night at the Coffee Hole, coffee shop now. We will mostly be playing Dungeons and Dragons and board games. I was talking to the others and we were wondering if you was going to keep playing with us? We have a few nights free this week and were wondering which night works best for you. We can do it either on Tuesday or Thursday.'
|
|
|
else
|
|
|
$SMSTree[ '0'] = 'Hey <<$pcs_nickname>>, would you like to join us for our weekly game night at the Coffee Hole? We have a few nights free this week and were wondering which night works best for you. We can do it either on Tuesday or Thursday.'
|
|
|
end
|
|
|
|
|
|
- $SMSTree['ca1'] = 'Not interested'
|
|
|
- $SMSTree['a1'] = 'Sorry, but I''m just not interested in stuff like that anymore. Thanks for the invite though.'
|
|
|
- $SMSTree['a2'] = ':-( Oh... Okay, yeah I get it. Guess we''ll see you around.'
|
|
|
+ $SMSTree['ca1'] = 'Tuesday'
|
|
|
+ $SMSTree['a1'] = 'Sure, I can make it on Tuesday.'
|
|
|
+ $SMSTree['a2'] = ':-) Great! I''ll see you on Tuesday at 18:00 at the Coffee Hole then! Be ready to get your nerd on, because we''re going to rock it so hard! We also meet for board games on Saturday and Sunday if you want to show up for those.'
|
|
|
+
|
|
|
+ $SMSTree['cb1'] = 'Thursday'
|
|
|
+ $SMSTree['b1'] = 'Sure, I can make it on Thursday.'
|
|
|
+ $SMSTree['b2'] = ':-) Great! I''ll see you on Thursday at 18:00 at the Coffee Hole then! Be ready to get your nerd on, because we''re going to rock it so hard! We also meet for board games on Saturday and Sunday if you want to show up for those.'
|
|
|
|
|
|
- $SMSTree['cb1'] = 'Tuesday'
|
|
|
- $SMSTree['b1'] = 'Sure, I can make it on Tuesday.'
|
|
|
- $SMSTree['b2'] = ':-) Great! I''ll see you on Tuesday at 18:00 at the Coffee Hole then! Be ready to get your nerd on, because we''re going to rock it so hard! We also meet for board games on Saturday and Sunday if you want to show up for those.'
|
|
|
+ $SMSTree['cc1'] = 'Not this week'
|
|
|
+ $SMSTree['c1'] = 'Sorry I don''t have time this week, but next week I should be able too.'
|
|
|
+ $SMSTree['c2'] = ':-( Oh... Okay, yeah I get it. Guess we''ll see you next week.'
|
|
|
+
|
|
|
+ $SMSTree['cd1'] = 'Not interested'
|
|
|
+ $SMSTree['cd2'] = '<font color="red">This ends the D&D Campaign - Forever</font>'
|
|
|
+ $SMSTree['d2'] = 'Sorry, but I''m just not interested in stuff like that. Thanks for the invite though.'
|
|
|
+ $SMSTree['d3'] = ':-( Oh... okay yeah I get it. Guess we''ll see you around.'
|
|
|
|
|
|
- $SMSTree['cc1'] = 'Thursday'
|
|
|
- $SMSTree['c1'] = 'Sure, I can make it on Thursday.'
|
|
|
- $SMSTree['c2'] = ':-) Great! I''ll see you on Thursday at 18:00 at the Coffee Hole then! Be ready to get your nerd on, because we''re going to rock it so hard! We also meet for board games on Saturday and Sunday if you want to show up for those.'
|
|
|
|
|
|
if $ARGS[1] = 'Add SMS':
|
|
|
nerd_game['invite_day'] = daystart
|
|
@@ -1609,67 +1629,77 @@ if $ARGS[0] = 'summer2_invite_sms':
|
|
|
gs 'SMStext_builder', 'add_reply', $SMSTree['ca1'], 'nerd_game_night', 'summer2_invite_sms', 'Choice_a'
|
|
|
gs 'SMStext_builder', 'add_reply', $SMSTree['cb1'], 'nerd_game_night', 'summer2_invite_sms', 'Choice_b'
|
|
|
gs 'SMStext_builder', 'add_reply', $SMSTree['cc1'], 'nerd_game_night', 'summer2_invite_sms', 'Choice_c'
|
|
|
+ gs 'SMStext_builder', 'add_reply', $SMSTree['cd1'], 'nerd_game_night', 'summer2_invite_sms', 'Choice_d'
|
|
|
|
|
|
gs 'SMStext_builder', 'add_sms', 'A152'
|
|
|
gs 'SMStext_builder', 'end'
|
|
|
-
|
|
|
- elseif $ARGS[1] = 'Choice_a':
|
|
|
+ else
|
|
|
!! Add Feofan to the contact list if he isn''t in it yet.
|
|
|
!! Is here to add it after reading the text.
|
|
|
if nerd_game['first_SMS_received'] = 0:
|
|
|
- if arrpos('$contact', 'A152') = -1: gs 'telefon', 'AddContact', 'A152', 'images/characters/shared/headshots_main/big152.jpg', 0
|
|
|
- nerd_game['first_SMS_received'] = 1
|
|
|
+ gs 'nerd_game_night', 'first_text'
|
|
|
end
|
|
|
+ end
|
|
|
+
|
|
|
|
|
|
+ if $ARGS[1] = 'Choice_a':
|
|
|
gs 'SMStext_builder', 'start'
|
|
|
gs 'SMStext_builder', 'send', $SMSTree['a1']
|
|
|
gs 'SMStext_builder', 'show_sms', ARGS[2]
|
|
|
- wait 1000
|
|
|
+ nerd_game['fixed_uni_day'] = 2
|
|
|
+
|
|
|
+ wait 100
|
|
|
|
|
|
gs 'SMStext_builder', 'receive', $SMSTree['a2']
|
|
|
gs 'SMStext_builder', 'show_sms', ARGS[2]
|
|
|
gs 'SMStext_builder', 'end'
|
|
|
-!! nerd_game['invite_day'] = 2147483647 & ! block the event
|
|
|
|
|
|
elseif $ARGS[1] = 'Choice_b':
|
|
|
- !! Add Feofan to the contact list if he isn''t in it yet.
|
|
|
- !! Is here to add it after reading the text.
|
|
|
- if nerd_game['first_SMS_received'] = 0:
|
|
|
- if arrpos('$contact', 'A152') = -1: gs 'telefon', 'AddContact', 'A152', 'images/characters/shared/headshots_main/big152.jpg', 0
|
|
|
- nerd_game['first_SMS_received'] = 1
|
|
|
- end
|
|
|
-
|
|
|
- nerd_game['fixed_uni_day'] = 2
|
|
|
-
|
|
|
gs 'SMStext_builder', 'start'
|
|
|
gs 'SMStext_builder', 'send', $SMSTree['b1']
|
|
|
gs 'SMStext_builder', 'show_sms', ARGS[2]
|
|
|
- wait 1000
|
|
|
+ nerd_game['fixed_uni_day'] = 4
|
|
|
+
|
|
|
+ wait 100
|
|
|
|
|
|
gs 'SMStext_builder', 'receive', $SMSTree['b2']
|
|
|
gs 'SMStext_builder', 'show_sms', ARGS[2]
|
|
|
gs 'SMStext_builder', 'end'
|
|
|
|
|
|
elseif $ARGS[1] = 'Choice_c':
|
|
|
- !! Add Feofan to the contact list if he isn''t in it yet.
|
|
|
- !! Is here to add it after reading the text.
|
|
|
- if nerd_game['first_SMS_received'] = 0:
|
|
|
- if arrpos('$contact', 'A152') = -1: gs 'telefon', 'AddContact', 'A152', 'images/characters/shared/headshots_main/big152.jpg', 0
|
|
|
- nerd_game['first_SMS_received'] = 1
|
|
|
- end
|
|
|
-
|
|
|
- nerd_game['fixed_uni_day'] = 4
|
|
|
-
|
|
|
gs 'SMStext_builder', 'start'
|
|
|
gs 'SMStext_builder', 'send', $SMSTree['c1']
|
|
|
gs 'SMStext_builder', 'show_sms', ARGS[2]
|
|
|
- wait 1000
|
|
|
+
|
|
|
+ wait 100
|
|
|
|
|
|
gs 'SMStext_builder', 'receive', $SMSTree['c2']
|
|
|
gs 'SMStext_builder', 'show_sms', ARGS[2]
|
|
|
gs 'SMStext_builder', 'end'
|
|
|
+
|
|
|
+ elseif $ARGS[1] = 'Choice_d':
|
|
|
+ gs 'SMStext_builder', 'start'
|
|
|
+ gs 'SMStext_builder', 'add_reply', $SMSTree['ca1'], 'nerd_game_night', 'summer_invite_sms', 'Choice_a'
|
|
|
+ gs 'SMStext_builder', 'add_reply', $SMSTree['cb1'], 'nerd_game_night', 'summer_invite_sms', 'Choice_b'
|
|
|
+ gs 'SMStext_builder', 'add_reply', $SMSTree['cc1'], 'nerd_game_night', 'summer_invite_sms', 'Choice_c'
|
|
|
+ gs 'SMStext_builder', 'add_reply', $SMSTree['cd2'], 'nerd_game_night', 'summer_invite_sms', 'Choice_d1'
|
|
|
+ gs 'SMStext_builder', 'show_sms', ARGS[2]
|
|
|
+ gs 'SMStext_builder', 'end'
|
|
|
+
|
|
|
+ elseif $ARGS[1] = 'Choice_d1':
|
|
|
+ gs 'SMStext_builder', 'start'
|
|
|
+ gs 'SMStext_builder', 'send', $SMSTree['d2']
|
|
|
+ gs 'SMStext_builder', 'show_sms', ARGS[2]
|
|
|
+ nerd_game['invite_day'] += 7305 & ! Next campaign in 20 years.
|
|
|
+
|
|
|
+ wait 100
|
|
|
+
|
|
|
+ gs 'SMStext_builder', 'receive', $SMSTree['d3']
|
|
|
+ gs 'SMStext_builder', 'show_sms', ARGS[2]
|
|
|
+ gs 'SMStext_builder', 'end'
|
|
|
end
|
|
|
|
|
|
+
|
|
|
killvar '$SMSTree'
|
|
|
end
|
|
|
|