- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleUntitled Paste
TypeDenizen Script
Date2017/05/22 20:15:00 UTC-07:00
ByGuest
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
3400
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."
                    }



RawRaw



Pastes made: 59170