Method: Char.withdraw
- Defined in:
- lib/Olib/character/char.rb
.withdraw(amount) ⇒ Object
91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/Olib/character/char.rb', line 91 def Char.withdraw(amount) Go2.bank result = Olib.do "withdraw #{amount} silvers", /I'm sorry|hands you/ if result =~ /I'm sorry/ Go2.origin echo "Unable to withdraw the amount requested for this script to run from your bank account" exit end wealth return self end |