View Single Post
  #17  
Old 05-08-2010, 12:46 AM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by napo_p2p View Post
That's probably an ancient IRC EventBot thingy. I'll fix it when I get home from work tonight.
good to hear, but i'm interested to get this working ASP.
the script doesnt look too old, but you made it very messy imo.


Quote:
Originally Posted by cbk1994 View Post
We can't help you if you don't post the code.
PHP Code:
function onCreated() doConnect();
function 
onInitialized() doConnect();
function 
onServerListerConnect() doConnect();
function 
doConnect()
{
  
//sendtext("irc", "logout", "");
  
sendtext("irc""login""EventsBot_AEON");
}

function 
onReceiveText(texttypetextoptionstextlines) {  
  if (
texttype != "irc" || textoptions != "privmsg") return;

  switch (
textlines[2][0]) {
    case 
"!eventsbotlogin": {
      
sendtext("irc""privmsg", {"IRCBot", {"!eventadmins", {"acc""acc"}}});
      
sendtext("irc""privmsg", {"IRCBot", {"!eventchannel""#channel"}});
      
      
// tell the serverlist that you are serving serverlist info
      
sendtext("irc""privmsg", {"IRCBot", {"!handleserverinfo"1}});

      break;
    }

    
// called whenever anybody clicks the server on the serverlist
    
case "!getserverinfo": {
      
temp.list = {
        
"<center>",
        
"<font size=24>Aeon</font><br>",
        
"<img src=login_server_aeon.png><br>",
        
"</center><sbreak>",
        
"<ignorelinebreaks>",
        
"Aeon is a world with 4 words in one."
      
};
      
sendtext("irc""notice", {textlines[0], {"!serverinfo"temp.list}});

      break;
    }
  }

this is pretty much the same script as skyld posted...

and i dont see why this wouldnt work, if you are sure that hosted can have this type of thing still.
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote