|
@@ -21,9 +21,9 @@
|
|
!! contactLastCall[] = last time this Contact called
|
|
!! contactLastCall[] = last time this Contact called
|
|
!
|
|
!
|
|
!! Add a contact with AddContact
|
|
!! Add a contact with AddContact
|
|
-!! gs 'telefon', 'AddContact', <NPC Code>, <Icon for NPC>, <Code for Incoming Call>, <Limiter for Incoming Call>, <Code for Outgoing Call>, <Limiter for Outgoign Call>, <Anonymous=1>
|
|
|
|
|
|
+!! gs 'telefon', 'AddContact', <NPC Code>, <Icon for NPC>, <Code for Incoming Call>, <Limiter for Incoming Call>, <Code for Outgoing Call>, <Limiter for Outgoign Call>, <Code for Incoming SMS>, <Limiter for Incoming SMS>, <Code for Outgoing SMS>, <Limiter for Outgoign SMS>, <Anonymous=1>
|
|
!! Example, to Add Mother:
|
|
!! Example, to Add Mother:
|
|
-!! gs 'telefon', 'AddContact', 'A29', 'icon_npc1', "gs 'telefon', 'Phone_call'", "hour >= 8 and hour <= 20", "gs 'telefon', 'lover'", "hour >= 8 and hour <= 20", 0
|
|
|
|
|
|
+!! gs 'telefon', 'AddContact', 'A29', 'icon_npc1', "gs 'telefon', 'Phone_call'", "hour >= 8 and hour <= 20", "gs 'telefon', 'lover'", "hour >= 8 and hour <= 20", "gs 'telefon', 'SMS_your_lover'", "hour >= 10 and hour <= 16", "gs 'telefon', 'lover_SMS'", "hour >= 10 and hour <= 16", 0
|
|
!!
|
|
!!
|
|
!! Remove a contact with DeleteContact
|
|
!! Remove a contact with DeleteContact
|
|
!! gs 'telefon', 'DeleteContact', <NPC Code>
|
|
!! gs 'telefon', 'DeleteContact', <NPC Code>
|
|
@@ -103,15 +103,23 @@ if $ARGS[0] = 'AddContact':
|
|
!! $ARGS[4] = If statement code to determine schedule for outbound calls
|
|
!! $ARGS[4] = If statement code to determine schedule for outbound calls
|
|
!! $ARGS[5] = Code to execute for Incoming call
|
|
!! $ARGS[5] = Code to execute for Incoming call
|
|
!! $ARGS[6] = if statement code for schedule of incoming calls
|
|
!! $ARGS[6] = if statement code for schedule of incoming calls
|
|
- !! ARGS[7] = Anonymous? 0 if not, 1 if yes
|
|
|
|
|
|
+ !! $ARGS[7] = Code to execute for SMS out
|
|
|
|
+ !! $ARGS[8] = If statement code to determine schedule for outbound SMS
|
|
|
|
+ !! $ARGS[9] = Code to execute for Incoming SMS
|
|
|
|
+ !! $ARGS[10] = if statement code for schedule of incoming SMS
|
|
|
|
+ !! ARGS[11] = Anonymous? 0 if not, 1 if yes
|
|
$telefonCon['NPC'] = $ARGS[1]
|
|
$telefonCon['NPC'] = $ARGS[1]
|
|
$telefonCon['Icon'] = $ARGS[2]
|
|
$telefonCon['Icon'] = $ARGS[2]
|
|
$telefonCon['OutCode'] = $ARGS[3]
|
|
$telefonCon['OutCode'] = $ARGS[3]
|
|
$telefonCon['OutSched'] = $ARGS[4]
|
|
$telefonCon['OutSched'] = $ARGS[4]
|
|
$telefonCon['InCode'] = $ARGS[5]
|
|
$telefonCon['InCode'] = $ARGS[5]
|
|
$telefonCon['InSched'] = $ARGS[6]
|
|
$telefonCon['InSched'] = $ARGS[6]
|
|
- telefonCon['Anonymous'] = ARGS[7]
|
|
|
|
- telefonCon['ContactListID'] = arrpos('$contact',$telefonCon['NPC'])
|
|
|
|
|
|
+ $telefonCon['OutSMSCode'] = $ARGS[7]
|
|
|
|
+ $telefonCon['OutSMSSched'] = $ARGS[8]
|
|
|
|
+ $telefonCon['InSMSCode'] = $ARGS[9]
|
|
|
|
+ $telefonCon['InSMSSched'] = $ARGS[10]
|
|
|
|
+ telefonCon['Anonymous'] = ARGS[11]
|
|
|
|
+ telefonCon['ContactListID'] = arrpos('$contact', $telefonCon['NPC'])
|
|
if telefonCon['ContactListID'] = -1:
|
|
if telefonCon['ContactListID'] = -1:
|
|
telefonCon['ContactListID'] = arrsize('$contact')
|
|
telefonCon['ContactListID'] = arrsize('$contact')
|
|
$contact[telefonCon['ContactListID']] = $telefonCon['NPC']
|
|
$contact[telefonCon['ContactListID']] = $telefonCon['NPC']
|
|
@@ -121,6 +129,10 @@ if $ARGS[0] = 'AddContact':
|
|
$contactOSche[telefonCon['ContactListID']] = $telefonCon['OutSched']
|
|
$contactOSche[telefonCon['ContactListID']] = $telefonCon['OutSched']
|
|
$contactICode[telefonCon['ContactListID']] = $telefonCon['InCode']
|
|
$contactICode[telefonCon['ContactListID']] = $telefonCon['InCode']
|
|
$contactISche[telefonCon['ContactListID']] = $telefonCon['InSched']
|
|
$contactISche[telefonCon['ContactListID']] = $telefonCon['InSched']
|
|
|
|
+ $contactOSMSCode[telefonCon['ContactListID']] = $telefonCon['OutSMSCode']
|
|
|
|
+ $contactOSMSSche[telefonCon['ContactListID']] = $telefonCon['OutSMSSched']
|
|
|
|
+ $contactISMSCode[telefonCon['ContactListID']] = $telefonCon['InSMSCode']
|
|
|
|
+ $contactISMSSche[telefonCon['ContactListID']] = $telefonCon['InSMSSched']
|
|
contactAnon[telefonCon['ContactListID']] = telefonCon['Anonymous']
|
|
contactAnon[telefonCon['ContactListID']] = telefonCon['Anonymous']
|
|
|
|
|
|
killvar 'telefonCon'
|
|
killvar 'telefonCon'
|
|
@@ -132,14 +144,23 @@ if $ARGS[0] = 'DeleteContact':
|
|
$telefonCon['NPC'] = $ARGS[1]
|
|
$telefonCon['NPC'] = $ARGS[1]
|
|
telefonCon['ContactListID'] = arrpos('$contact',$telefonCon['NPC'])
|
|
telefonCon['ContactListID'] = arrpos('$contact',$telefonCon['NPC'])
|
|
if telefonCon['ContactListID'] > -1:
|
|
if telefonCon['ContactListID'] > -1:
|
|
- killvar '$contact', telefonCon['ContactListID']
|
|
|
|
- killvar '$contactIcon', telefonCon['ContactListID']
|
|
|
|
- killvar '$contactCode', telefonCon['ContactListID']
|
|
|
|
|
|
+ killvar '$contact', telefonCon['ContactListID']
|
|
|
|
+ killvar '$contactIcon', telefonCon['ContactListID']
|
|
|
|
+ killvar '$contactOCode', telefonCon['ContactListID']
|
|
|
|
+ killvar '$contactOSche', telefonCon['ContactListID']
|
|
|
|
+ killvar '$contactICode', telefonCon['ContactListID']
|
|
|
|
+ killvar '$contactISche', telefonCon['ContactListID']
|
|
|
|
+ killvar '$contactOSMSCode', telefonCon['ContactListID']
|
|
|
|
+ killvar '$contactOSMSSche', telefonCon['ContactListID']
|
|
|
|
+ killvar '$contactISMSCode', telefonCon['ContactListID']
|
|
|
|
+ killvar '$contactISMSSche', telefonCon['ContactListID']
|
|
|
|
+ killvar 'contactAnon', telefonCon['ContactListID']
|
|
|
|
+
|
|
end
|
|
end
|
|
|
|
|
|
killvar 'telefonCon'
|
|
killvar 'telefonCon'
|
|
killvar '$telefonCon'
|
|
killvar '$telefonCon'
|
|
-end &! --- AddContact ---
|
|
|
|
|
|
+end &! --- DeleteContact ---
|
|
|
|
|
|
if $ARGS[0] = 'ContactList':
|
|
if $ARGS[0] = 'ContactList':
|
|
$telefon['body'] = '
|
|
$telefon['body'] = '
|
|
@@ -678,7 +699,7 @@ end
|
|
gs 'telefon', 'add_sms_to_send', 'A1', 'Test message the text goes here'
|
|
gs 'telefon', 'add_sms_to_send', 'A1', 'Test message the text goes here'
|
|
|
|
|
|
To add a contact if it doesn't exist
|
|
To add a contact if it doesn't exist
|
|
- if arrpos('$contact', 'A1') = -1: gs 'telefon', 'AddContact', 'A1', 'images/characters/shared/headshots_main/big1.jpg', "", "1 = 0", "", "", 0
|
|
|
|
|
|
+ if arrpos('$contact', 'A1') = -1: gs 'telefon', 'AddContact', 'A1', 'images/characters/shared/headshots_main/big1.jpg', "", "0", "", "0", "", "0", "", "0", 0
|
|
|
|
|
|
SMS Arrays storing received messages and messages that can be sent
|
|
SMS Arrays storing received messages and messages that can be sent
|
|
|
|
|
|
@@ -1019,6 +1040,12 @@ if $ARGS[0] = 'delete_sms_send_id':
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
!!-----------------------------------end of sms------------------------------------------
|
|
!!-----------------------------------end of sms------------------------------------------
|
|
|
|
|
|
if $ARGS[0] = 'Phone_wheather':
|
|
if $ARGS[0] = 'Phone_wheather':
|
|
@@ -1121,25 +1148,6 @@ end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- !!=================================================================!!
|
|
|
|
- !! !!
|
|
|
|
- !! SCHEDULING !!
|
|
|
|
- !! !!
|
|
|
|
- !!=================================================================!!
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
!!=================================================================!!
|
|
!!=================================================================!!
|
|
!! !!
|
|
!! !!
|
|
!! OLD STUFF and EVENTS !!
|
|
!! OLD STUFF and EVENTS !!
|