[DOC] RAT Banking System - Technical Information

Trekkan

JFF Administrator
Staff member
RAT Script Command: .BANKMODIFY:<playerName>:<Amount> or .BANKMODIFY:<playerName>:<Amount>:<Display bank_funds_changed_txt use true/false>

<Amount> can be either a whole number (example: 10) or in the format: x@y where x is how many of the item, and y is the cost for one of those items.​
This allows you to setup commands like a store where players can buy X number of items at a specific cost for that item.​

Event Variables:​
bank_funds_amount, bank_balance​
Group Attributes:​
bank_enabled - Boolean value (true/false) as to whether the bank system is enabled for this group​
bank_disabled_txt - sayplayer {player_steam} "I'm sorry, but the either bank system is disabled, or you do not have access to it."​
bank_funds_changed_txt - sayplayer {player_steam} "Your zombucks balance has changed, it is now: {bank_balance}"​

RAT Script Command: .BANKBALANCE:<playerName>
Event Variables:​
bank_balance​
Group Attributes:​
bank_enabled - Boolean value (true/false) as to whether the bank system is enabled for this group​
bank_disabled_txt - sayplayer {player_steam} "I'm sorry, but the either bank system is disabled, or you do not have access to it."​
bank_balance_txt - sayplayer {player_steam} "Your new bank balance is: {bank_balance}"​

RAT Script Command: .BANKWITHDRAW:<playerName>:<Amount>
Event Variables:​
bank_exchange_rate, bank_exchange_value, bank_balance, bank_withdraw_amount​
Group Attributes:​
bank_enabled - Boolean value (true/false) as to whether the bank system is enabled for this group​
bank_disabled_txt - sayplayer {player_steam} "I'm sorry, but the either bank system is disabled, or you do not have access to it."​
bank_exchange_rate - whole number as a percentage, example: 5​
bank_has_funds_false_txt - sayplayer {player_steam} "I'm sorry, but you do not have the funds to withdraw that much. Don't forget the exchange rate is: {bank_exchange_rate}%"​
bank_exchange_cmd - give {player_steam} casinoCoin {bank_withdraw_amount}​
bank_withdraw_txt - sayplayer {player_steam} "Your new balance is: {bank_balance}, nice doing business with you!"​

RAT Conditional: HASFUNDS
Event Variables:​
bank_funds_amount,​
Group Attributes:​
bank_enabled - Boolean value (true/false) as to whether the bank system is enabled for this group​
bank_disabled_txt - sayplayer {player_steam} "I'm sorry, but the either bank system is disabled, or you do not have access to it."​
'bank_has_funds_true_txt -​
bank_has_funds_false_txt - sayplayer {player_steam} "You have {bank_balance} zombucks, but it would require {bank_funds_amount} zombucks to make that purchase..."​
 
Last edited:

Trekkan

JFF Administrator
Staff member
Updated all functions as they now require the playername, or steamID to be passed to them.
 
Top