and managed to telnet into the bot and add 3 users to try it out first b4 i add every1 els in the room to the list[01:14] Bankd 0.3beta Loaded
Code: Select all
################################################################################
#
# Copyright ©2011 lee8oi@gmail.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# http://www.gnu.org/licenses/
#
################################################################################
#
# Bankd script v0.3beta (6-28-11)
# by: <lee8oi@github><lee8oiOnfreenode>
# github link: https://github.com/lee8oi/eggdrop/blob/master/bankd.tcl
#
# The second graduate of the Dukescript Volatile Experiment. Bankd script is
# one of those 'wouldn't it be kinda cool if' ideas I came up with mainly
# to entertain myself. The idea was to come up with a banking system that
# could be used for role playing purposes in selected channels allowing users
# to transfer funds to other users and collect interest.
#
# The public command is '.bank' which allows users to check thier balance or
# transfer funds to another user (provided both have accounts). Bot owners
# have access to the dcc/partyline command '.bankd' which allows them to add,
# remove, list, check, and edit the 'bank accounts'. An automatic timer
# periodically adds an 'interest' to all existing bank accounts.
#
# ------------------------------------------------------------------------
#
# Updates for v0.3:
# 1.
#
# ------------------------------------------------------------------------
#
# Initial channel setup:
# (enables use of public info command in specified channel)
# .chanset #scene-inspired +bankd
#
# Public command syntax:
# .bank ?balance|transfer? ?args?
#
# DCC (partyline) command syntax:
# .bankd ?add|remove|check|list|edit? ?args?
#
# Example Usage:
# (public)
# <lee8oi> .bank balance
# <dukelovett> lee8oi, your balance is: 1000
# <lee8oi> .bank transfer 100 dukelovett
# <dukelovett> transfer successful.
# <lee8oi> .bank
# <dukelovett> usage: .bank ?balance|transfer? ?args?
#
# (DCC/Partyline)
# <lee8oi> .bankd add jimmy
# <dukelovett> account created.
# <lee8oi> .bankd remove jimmy
# <dukelovett> account removed.
# <lee8oi> .bankd
# <dukelovett> usage: .bankd ?add|remove|check|list|edit? ?args?
# <lee8oi> .bankd add
# <dukelovett> usage: .bankd add <name>
#
################################################################################
#
# CONFIGURATION
# ------------------------------------------------------------------------
# INTEREST PERCENTAGE RATE
# Bank balances are multiplied by this number to calculate amount of
# interest to be added to bank accounts at interest timer interval.
# +--+
variable intrate .01
# +--+
# INTEREST TIMER INTERVAL
# Number of minutes between timer intervals.
# +--+
variable intinterval 10
# +--+
#
################################################################################
# Experts only below.
################################################################################
wbk wrote:hi lee8oi i have seen this working els where and thought i would try it out ( loving your work btw )
but i am having some problem with it
i am a bit of a noob and i do everything trial and error (self taught ) coz i lern better that was and dont like bothering people for help but i just cant get this to work
i managed to get it loaded
[01:14] Bankd 0.3beta Loaded
and managed to telnet into the bot and add 3 users to try it out first b4 i add every1 els in the room to the list
i know its running coz when i .banked list the 3 users showed up and thay are actual gaining points slowly i added 100 to start with and we are showing 107 108 and 109 now BUT
when i put .bank balance or any of the commands into my irc room nothing comes up at all
i have added my irc room where it says too but i cant see what im doing wrong
i am use in [01:14] --- Loading eggdrop v1.6.19+ctcpfix (Thu Sep 8 2011)
ANY HELP WOULD BE GREATLY APPRECIATED MY FRIEND THANKYOU <3
Code: Select all
"transfer" {
Code: Select all
set payee [lindex $textarr 3]
set amount [lindex $textarr 2]
if {$amount == ""} {
Code: Select all
set payee [string tolower [lindex $textarr 2]]
set amount [lindex $textarr 1]
if {$amount <= 0} {