Post by Kawika on Jul 15, 2015 1:23:05 GMT
Making a history bank script for Creative will go as following:
Creative
Deposit
First, we are going to make the deposit script. Proceed as such:
1) Go to creative/scripts/new script
2) insert/If/If
3) insert/HasInventory/HasInventory [player|x,y,z] [item] [compare] [count]
4) insert/then
5) insert/inventory/Inventory [player] [add|take] [item] [qty]
6) insert/Notify [message[gamertag]] [local|global]
7) insert/History/History [name] [player]
8) insert/If/else
9) insert/Notify [message[gamertag]] [local|global]
Now this part comes down to the correct settings and personal preference.
On #3 Change the "[player|x,y,z] to simply [player]. Change [item] to [GoldPieces] NO SPACES!! Change [compare] to [>=]
This part is personal preference, you can change the count to any number you wish, but for the sake of this tutorial, I'm using 1000.
Change [count] to [1000]
On #5 Change the [add|take] to [take] Change [Item] to [GoldPieces].
The next part is your preference, again. Use the number you used for [count] on #3 as the same number for #5. Again, I'm using 1000.
Change [count] to [1000].
On #6 Next, change the [message[gamertag]] to whatever you want your message to be for the person that deposited their money. A Standard [You have deposited 1000 gold] is good for us. Delete [gamertag] if you're going to use this style.
On #7, Change [name] to [deposit1000]
#9 Change [Notify[gamertag]] to [You don't have enough gold to deposit.]
And congratulations, you have created the deposit script, name it what you want!
It should look something like this:
If
HasInventory [player] [GoldPieces] [>=] [1000]
Then
Inventory [player] [take] [GoldPieces] [1000]
Notify [You have deposited 1000 gold] [local]
History [deposit1000]
Else
Notify [You don't have enough gold to deposit.]
Withdraw
Now that we've created a deposit script, it's time to make a withdraw script. Proceed as such:
1) Create a new Script.
2) Insert/If/If
3) Insert/Has/HasHistory/HisHistory [Name] [Player] [compare] [count]
4) Insert/Then
5) Insert/Inventory/Inventory [Player] [add|take] [item] [qty]
6) Insert/History/History [name] [decrease|clear] [player]
7) Insert/Notify [message[gamertag]] [local|global]
8) Insert/If/Else
9) Insert/Notify [message[gamertag]] [local|global]
#3 Change [Name] to [deposit1000] Change [compare] to [>=] Change [count] to [1] this is the same name as the deposit script.
#5 Change [add|take] to [add] Change [item] to [goldpieces] Change [count] to [1000] Or whatever number you want.
#6 Change [name] to [deposit1000] Change [decrease|clear] to [decrease]
#7 Change [Message[gamertag]] to [Withdrew 1000 gold from the bank.]
#9 Change [message[gamertag]] to [You don't have enough gold in the bank.]
It should look like this when finished.
If
HasHistory [deposit1000]
Then
Inventory [player] [add] [goldpieces] [1000]
History [deposit1000] [decrease] [player]
Notify [Withdrew 1000 gold from the bank.] [local]
Else
Notify [You don't have enough gold in the bank]
Creative
Deposit
First, we are going to make the deposit script. Proceed as such:
1) Go to creative/scripts/new script
2) insert/If/If
3) insert/HasInventory/HasInventory [player|x,y,z] [item] [compare] [count]
4) insert/then
5) insert/inventory/Inventory [player] [add|take] [item] [qty]
6) insert/Notify [message[gamertag]] [local|global]
7) insert/History/History [name] [player]
8) insert/If/else
9) insert/Notify [message[gamertag]] [local|global]
Now this part comes down to the correct settings and personal preference.
On #3 Change the "[player|x,y,z] to simply [player]. Change [item] to [GoldPieces] NO SPACES!! Change [compare] to [>=]
This part is personal preference, you can change the count to any number you wish, but for the sake of this tutorial, I'm using 1000.
Change [count] to [1000]
On #5 Change the [add|take] to [take] Change [Item] to [GoldPieces].
The next part is your preference, again. Use the number you used for [count] on #3 as the same number for #5. Again, I'm using 1000.
Change [count] to [1000].
On #6 Next, change the [message[gamertag]] to whatever you want your message to be for the person that deposited their money. A Standard [You have deposited 1000 gold] is good for us. Delete [gamertag] if you're going to use this style.
On #7, Change [name] to [deposit1000]
#9 Change [Notify[gamertag]] to [You don't have enough gold to deposit.]
And congratulations, you have created the deposit script, name it what you want!
It should look something like this:
If
HasInventory [player] [GoldPieces] [>=] [1000]
Then
Inventory [player] [take] [GoldPieces] [1000]
Notify [You have deposited 1000 gold] [local]
History [deposit1000]
Else
Notify [You don't have enough gold to deposit.]
Withdraw
Now that we've created a deposit script, it's time to make a withdraw script. Proceed as such:
1) Create a new Script.
2) Insert/If/If
3) Insert/Has/HasHistory/HisHistory [Name] [Player] [compare] [count]
4) Insert/Then
5) Insert/Inventory/Inventory [Player] [add|take] [item] [qty]
6) Insert/History/History [name] [decrease|clear] [player]
7) Insert/Notify [message[gamertag]] [local|global]
8) Insert/If/Else
9) Insert/Notify [message[gamertag]] [local|global]
#3 Change [Name] to [deposit1000] Change [compare] to [>=] Change [count] to [1] this is the same name as the deposit script.
#5 Change [add|take] to [add] Change [item] to [goldpieces] Change [count] to [1000] Or whatever number you want.
#6 Change [name] to [deposit1000] Change [decrease|clear] to [decrease]
#7 Change [Message[gamertag]] to [Withdrew 1000 gold from the bank.]
#9 Change [message[gamertag]] to [You don't have enough gold in the bank.]
It should look like this when finished.
If
HasHistory [deposit1000]
Then
Inventory [player] [add] [goldpieces] [1000]
History [deposit1000] [decrease] [player]
Notify [Withdrew 1000 gold from the bank.] [local]
Else
Notify [You don't have enough gold in the bank]