Date: 2017/05/22 20:15:00 UTC-07:00
Type: Denizen Script
Errors:
22.05 22:23:31 [Server] INFO ERROR in script 'BANKER_INTERACT'! Tag
22.05 22:23:31 [Server] INFO Comparable='Element(flag.[global.account_names].find[name])',
22.05 22:23:31 [Server] INFO Operator='EQUALS', ComparedTo='Element(-1)' -->
22.05 22:23:31 [Server] INFO OUTCOME='false'
22.05 22:23:31 [Server] INFO Filled tag <flag.[global.account_names].find[name]> with
22.05 22:23:31 [Server] INFO 'flag.[global.account_names].find[name]'.
22.05 22:23:31 [Server] INFO ERROR in script 'BANKER_INTERACT'! Tag
22.05 22:23:31 [Server] INFO Comparable='Element(flag.[global.account_names].find[name])',
22.05 22:23:31 [Server] INFO Operator='EQUALS', ComparedTo='Element(null{)' -->
22.05 22:23:31 [Server] INFO OUTCOME='false'
Script:
3:
chat trigger:
1:
trigger: /REGEX:.+/
script:
- chat "Alright..."
- chat "Trying to add your bank account, <context.message>..."
- define name <context.message>
- if <flag.[global.account_names].find[name]> == -1 || <flag.[global.account_names].find[name]> == null{
- flag global account_names:->:name
- flag player accounts_owned:++
- execute as_server "manuaddp <player.name> hyperconomy.bank"
- execute as_player "bank create <context.message>"
- execute as_server "manudelp <player.name> hyperconomy.bank"
- chat "Is there anything else I can do for you?"
- zap 1
}
else {
- chat "That name already exists in our database. Please give another name."
}