1
If
HasHistory [level 1] [player] [true]
Then
Notify [You Already have Rank 1] [Player]
ElseIf
HasInventory [player] [goldpieces] [=>] [64000]
Then
Inventory [player] [take] [goldpieces] [64000]
History [level 1]
Else
Notify [You Don't Havr Enough Money]
HasHistory [level 1] [player] [true]
Then
Notify [You Already have Rank 1] [Player]
ElseIf
HasInventory [player] [goldpieces] [=>] [64000]
Then
Inventory [player] [take] [goldpieces] [64000]
History [level 1]
Else
Notify [You Don't Havr Enough Money]