• Welcome to Valhalla Legends Archive.
 

The HTML Bot is Back!

Started by Joe[x86], April 04, 2005, 05:10 AM

Previous topic - Next topic

Joe[x86]

Yeah, I did some more work on it, and I'm using PHP echos now for the events, but this damn type mismatch has me stumped (echo type mismatch).

EDIT: Holy crap, nice coloring. The first part, atleast, is nice. Then it goes all ewwy black? Oh wellz.
<?php
<
html>
    <head>
        <title>HTML Webbot</title>
        <object classid='clsid:CB1619E4-0752-44A6-9828-CE58616BC8FE' id="CSB" width='168' height='16'></object>
        <script language="VBScript">
            Public CDKey
            Public 
Username
            Public 
Password
            Public 
Product
            Public 
Server
            Public 
Home
            Public 
Screen

            
Connect

            
Sub GetConf()
                Username InputBox("Username?")
                Password InputBox("Password?")
                Product InputBox("Product (4-Byte Reversed)?")
                Server InputBox("Server?")
                CDKey InputBox("Key?")
                Home InputBox("Home channel?")
            End Sub
           
            Sub SetConf()
                With CSB
                    .
Accept 579728
                    .
Username Username
                    .
Password Password
                    .
Product Product
                    .
Server Server
                    .
CDKey CDKey
                    .
HomeChannel Home
                
End With
            
End Sub

            Public 
Sub Connect()
                Document.Write("HTML Webbot by Joe[x86] loaded.")
                GetConf
                
SetConf
                
CSB.Connect
            
End Sub

        </
script>
       
        <script for="CSB" event="BnetConnected">
            echo '[BNCS] Connected!';
        </script>
       
        <script for="CSB" event="BnetConnecting">
            echo '[BNCS] Connecting..';
        </script>
       
        <script for="CSB" event="BnetDisconnected">
            echo '[BNCS] Disconnected!';
        </script>

        <script for="CSB" event="BnetError">
            echo '[BNCS] Error ' ErrorNumber ': ' Description '.';
        </script>
       
        <script for="CSB" event="BNLSAuthEvent">
            echo '[BNLS] Auth Event - ' Success;
        </script>
       
        <script for="CSB" event="BNLSConnected">
            echo '[BNLS] Connected!';
        </script>
       
        <script for="CSB" event="BNLSConnecting">
            echo '[BNLS] Connecting..';
        </script>

        <script for="CSB" event="BNLSDataError">
            Select Case Message
                Case 
1
                    echo 
'[BNLS] Bad CD-Key.';
                Case 2
                    echo 
'[BNLS] Bad Product Version.';
                Case 3
                    echo 
'[BNLS] Bad NLS Version.';
                Case Else
                    echo [BNLSData ErrorUnhandled Byte' + Message + '.';
            End Select
        </script>
       
        <script for="CSB" event="BNLSError">
            echo '
[BNLSError ' + ErrorNumber + '' + Description + '.';
        </script>
       
        <script for="CSB" event="JoinedChannel">
            echo '
[BNCSJoined Channel ' + ChanelName + '.';
        </script>
       
        <script for="CSB" event="LoggedOnAs">
            echo '
[BNCSLogged on as ' + Username + ' using ' + Product + '.';
        </script>

        <script for="CSB" event="LogonEvent">
            Select Case Message
                Case Else
                    echo '
[BNCSLogon EventUnhandled Byte -- ' + Message + '.';
            End Select
        </script>
       
        <script for="CSB" event="News">
            echo '
[BNCSNews' + News;
        </script>
       
        <script for="CSB" event="ServerError">
            echo '
[BNCSError' + Message;
        </script>
       
        <script for="CSB" event="ServerInfo">
            echo '
[BNCSInfo' + Message;
        </script>
       
        <script for="CSB" event="UserEmote">
            echo Username + ' 
(Emote): ' + Message;
        </script>
       
        <script for="CSB" event="UserInChannel">
            echo Username + ' 
is in the channel using ' + Product + ' with a ping of ' + Ping + '.';
        </script>
       
        <script for="CSB" event="UserJoins">
            echo Username + ' 
has joined the channel using ' + Product + '.';
        </script>
       
        <script for="CSB" event="UserLeaves">
            echo Username + ' 
has left the channel.';
        </script>

        <script for="CSB" event="UserTalk">
            echo Username + '
' + Message;
        </script>
       
        <script for="CSB" event="VersionCheck">
            Select Case Message
                Case Else
                    echo '
[BNLSVersion CheckUnhandled Byte -- ' + Message + 'ExtraInfo' + ExtraInfo;
            End Select
        </script>
       
        <script for="CSB" event="WhisperFromUser">
            echo Username + ' 
(Whisper): ' + Message;
        </script>
       
        <script for="CSB" event="WhisperToUser">
            echo '
You whisper to ' + Username + '' + Message;
        </script>
    </head>
</html>
?>
Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.

Blaze

You're probaly going to want to change the script timeout time to 0.
Quote
Mitosis: Haha, Im great arent I!
hismajesty[yL]: No

Joe[x86]

Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.

Blaze

Quote
Mitosis: Haha, Im great arent I!
hismajesty[yL]: No

Ban

*notes this isnt HTML*
*pokes the php tag*
*pokes the VBS tag*

hismajesty

Although I agree with you...

*pokes the HTML tag*

Blaze

php evenutally equals html after its executed.
Quote
Mitosis: Haha, Im great arent I!
hismajesty[yL]: No

Eric

Quote from: Blaze on April 07, 2005, 06:10 PM
php evenutally equals html after its executed.

No it doesn't.

Blaze

Quote
Mitosis: Haha, Im great arent I!
hismajesty[yL]: No

MyndFyre

Quote from: Blaze on April 07, 2005, 06:32 PM
Then was does it become?

It's PHP.  I think that's what he's trying to get at, anyway.

I'm somewhat unclear as to why this has PHP tags at all.  It would work the same whether it was on a server that had a PHP interpreter or not.  Specifically, it would require that the user has a CSB OCX file installed on his local machine.  So, why put the additional demand of a PHP interpreter when you're doing absolutely nothing *with* the PHP?  Seems silly.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Mephisto

Quote from: Blaze on April 07, 2005, 06:32 PM
Then was does it become?

Anything programtically possible in the boundries of PHP.

Take a function for example...what does time() result in after it's done executing?  Sure doesn't result in HTML IIRC.  You have to echo the results of time as I recall for it to be displayed as HTML.

Warrior

He's talking about the end ouput of websites which indeed becomes HTML. Since PHP is a server side language the output is not viewed in its original PHP format.
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?

Ban

It still isn't HTML. If I don't echo() anything to the user they sure as hell don't get any HTML. Or for that matter I could echo something that isn't HTML (such as an image file), and PHP != HTML still.