• Welcome to Valhalla Legends Archive.
 

Command Help

Started by zeth369, January 15, 2005, 11:12 PM

Previous topic - Next topic

zeth369

ok im trying to do a "greets on" command that turns on the greets..   heres my code


'===================greets on command============
    If LCase(Message) = Trigger & "greets on" Then
    If LCase(Username) = LCase(Master) Then frmGreet.Check1.Value = 1
    Call SaveSetting(App.EXEName, "Settings", "Check1", frmGreet.Check1.Value)
    CSB.Send "Greets On."
End If


of course.. it doesnt work, or else this post would be pointless.. someone please help

hismajesty

Do you get an error? Can we see your SaveSetting function and any code that deals with greets?

R.a.B.B.i.T

You really should provide more details, IE: is there an error?  If so, what line?  If not, what's it supposed to do?

We can't help if you give us a small block of code and say "it doesn't work".

Warrior

#3
try using vbChecked and vbUnchecked

Also try using a boolean variable set whenever you reload your configuration so you dont have to check your Config every time you want that event to fire, then simply turn it to true when they toggle it on and save config and turn it to false when they toggle it off and save the config. You still with me?


Edit: Might I suggest you switch to using a Select Case for your commands?
If your going to have a thousand if statements its only logical to have one big Select Case to make your code more efficient and to make it look neater as well.
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

CrAz3D

Maybe your trigger has upper case characters?...You should check both sides as lower cased


Lcase(message) = lcase(trigger & "greets on")
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

zeth369

theres no error.. it just doesnt work.. its supposed to check checkbox1 in frmGreet
then save the checkbox1 as checked.. but it doesnt work.. it doesnt check it

CrAz3D

When things like that come up you're best better would be just to mess with it until you find w/e you did wrong.  Trial & error can be annoying sometimes
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

UserLoser.


CheckBox.Checked = vbChecked

Warrior

#8
.Checked ?

:P
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

Mephisto

Important: Don't use CSB.  If you must, then you're not qualified to program a bot!  :)

MaDDoG(DA1)

Im starting out on CSB im shure u have used CSB a few times when u were i a noob i think it helps u get the feel before moving to winsock which im tring to do now, but i cant find a damn tutorial

Kp

Quote from: MaDDoG(DA1) on January 19, 2005, 05:44 PMIm starting out on CSB im shure u have used CSB a few times when u were i a noob i think it helps u get the feel before moving to winsock which im tring to do now, but i cant find a damn tutorial

Since you're new here, I'll cut you some slack.  However, it's rather insulting for you to come in and accuse someone else of being dependent on a crutch, despite having no evidence to your claim.

Also, proper grammar and sentence structure will make your posts easier to read.  Posts which can be easily read are more likely to get assistance.  Thus, it's in your own best interest for us to easily understand what you're trying to say.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

tA-Kane

Quote from: MaDDoG(DA1) on January 19, 2005, 05:44 PMi think it helps u get the feel before moving to winsock which im tring to do now, but i cant find a damn tutorial
I had no prior experience with WinSock before writing BNLS Authorizer. I did not need a tutorial, I simply looked it up on MSDN and figured out what I needed from there. If you're intelligent enough, then you should be able to do the same.

As for using CSB... whatever floats your boat. I highly recommend against it, though.
Macintosh programmer and enthusiast.
Battle.net Bot Programming: http://www.bash.org/?240059
I can write programs. Can you right them?

http://www.clan-mac.com
http://www.eve-online.com

Warrior

I think its more of actually getting his bot to make  a successful logon to Battle.net that confuses him not actually making the connection. If for some reason I am wrong and you can make a connection to battle.net but winsock just stumps you (for whatever reason) Im am sure there are alternatives..
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

CrAz3D

Quote from: Mephisto on January 16, 2005, 03:55 PM
Important: Don't use CSB.  If you must, then you're not qualified to program a bot!  :)
Why not use CSB?  It is a launching pad that help alot of people get into VB.   Just because you think everyone should figure out how to connect to battle.net one their own doesn't mean they should
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...