I got it working great! I had to replace msg $nick with msg $chan, as well as remove the custom colors now and it works great.. .thank you soo much! Do you have a betting or lottery that uses the same system?
Oh.. I added a OP only gifting command which allows OP's to gift money just like the transfer command.... I figured I share if anyone wants.
I just modified transfer command.... still learning.
;#########GIFT Money####################
on :TEXT:!gift:: {
if ($nick isop #) {
tokenize 32 $strip($1-)
if ($1 == !gift) {
var %takemoney $calc($readini(mnycount.ini,$2,money) + $3)
if (!%replyflood. [ $+ [ $chan ] ]) {
set -u4 %replyflood. [ $+ [ $chan ] ] ON
if (!$readini(mnycount.ini,$2,money)) {
msg $chan $nick $2 does not exist
HALT
}
writeini -n mnycount.ini $2 money $($+(%takemoney),2)
msg $chan $2 The channel has just gifted you $3 $+ !
}
}
}
else { msg $chan $nick You aren't able to use this command. }
}
I was using it a week or two ago and had no problem, it hasn't been altered since it was uploaded here either.
If you are having problems even doing something as simple as !mymoney I'd say you probably have another script loaded which is either
a) Named sooner in the alphabet than this script and has a HALT in the script rather than a return causing it to stop instead of allow this script to trigger properly.
b) Given priority on incoming text (e.g: on !:TEXT::#: { something then HALT } ) to another script.
or the last possibility is
c) Complicated colour text used in your channel/s (text replacers etc) which make the text 'techinically' not the first word or letter the script recieves.
Depending on your knowledge level, I could give you pointless or too complicated advice on hunting those issues down but it boils down to: debug code additions ( echo -a debug: activated !mymoney trigger ) to source errors and ALWAYS strip your bot's incoming text (It's in mIRC options).