Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-28-2005, 05:00 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Attention: IRC Bots

Alright, first I would like to tell you all where to get information about irc bots.

http://ilfirin.org/graal/Graal_v4_IRC

Go their for information about the irc bots.


Now, for the event bots.

I had access to the admin panel, but after the new update..I lost it. I no longer recieve admin, I've tried everything. Restarting NC. Restarting Game Server etc..nothing has worked.

The problem is somewhere is one of these parts of the scripts:
NPC Code:

sendtext("irc","privmsg",{"IRCBot","!resetevents"} );
OR
function onReceiveText(texttype,textoption,textlines) {
if (texttype=="irc" && textoption=="privmsg" &&
textlines[0]=="IRCBot" && textlines[1]=="!eventsbotlogin") {
sendtext("irc","privmsg",{"IRCBot",{"!eventadmins" ,this.admins[0],this.admins[1]}});
sendtext("irc","privmsg",{"IRCBot",{"!eventchannel ",this.channel}});
}
}




And, theirs a bug with the IRC Chat (Picture Attached)
Attached Images
 
Reply With Quote
  #2  
Old 08-28-2005, 05:11 AM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by KuJi
NPC Code:
sendtext("irc","privmsg",{"IRCBot",{"!eventadmins"  ,this.admins[0],this.admins[1]}});

Hmm, just putting this.admins there should work, but if it worked like that before, then I don't know.
__________________
Liek omigosh.

Reply With Quote
  #3  
Old 08-28-2005, 06:42 AM
raiden0899 raiden0899 is offline
Registered User
raiden0899's Avatar
Join Date: Oct 2004
Posts: 192
raiden0899 is on a distinguished road
I'm in that pic. I feel special .
Reply With Quote
  #4  
Old 08-28-2005, 08:31 AM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
uhm didnt work for me too
i just put the !eventsadmin and !eventschannel pm thing in the doconnect part lol
Reply With Quote
  #5  
Old 08-28-2005, 12:35 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
this.admins does have a value, yes?
__________________
Skyld
Reply With Quote
  #6  
Old 08-28-2005, 12:49 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
uhm event if it has one
when i took this script form graalwiki and put my account in it didnt even recieve a message form IRCBot lol
Reply With Quote
  #7  
Old 08-28-2005, 12:57 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by projectigi
uhm event if it has one
when i took this script form graalwiki and put my account in it didnt even recieve a message form IRCBot lol
You may need to restart the gserver to allow IRC connections.
__________________
Skyld
Reply With Quote
  #8  
Old 08-28-2005, 02:25 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
then why my irc and events bot are both in the irc channels where they should be and send pm and things
just this events bot didnt get a message from IRCBot
Reply With Quote
  #9  
Old 08-28-2005, 02:39 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by projectigi
then why my irc and events bot are both in the irc channels where they should be and send pm and things
just this events bot didnt get a message from IRCBot
Have you tried outputting the text from onReceiveText, to ensure that you are not actually receiving it?
__________________
Skyld
Reply With Quote
  #10  
Old 08-28-2005, 04:56 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
it didnt recieve anything form ircbot
because i places a echo right after
if(textlines[0]=="IRCBot")
Reply With Quote
  #11  
Old 08-28-2005, 04:56 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
I am not recieving it, I tried to make it send text to channel, no worky.

Restarted, still doesn't work. Used to work b4 updae.

Yes their is something in this.admins
this.admins=Admin-Playerworld64,KuJi
Reply With Quote
  #12  
Old 08-28-2005, 05:19 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by KuJi
I am not recieving it, I tried to make it send text to channel, no worky.

Restarted, still doesn't work. Used to work b4 updae.

Yes their is something in this.admins
this.admins=Admin-Playerworld64,KuJi
this.admins = {"Admin-Playerworld64", "KuJi"};
__________________
Liek omigosh.

Reply With Quote
  #13  
Old 08-28-2005, 05:32 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
ehr i think thats wrong ajira xD
Reply With Quote
  #14  
Old 08-28-2005, 06:06 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by projectigi
ehr i think thats wrong ajira xD
I think you will find it is not.
__________________
Skyld
Reply With Quote
  #15  
Old 08-29-2005, 01:08 AM
Thrashsoul3 Thrashsoul3 is offline
Registered User
Join Date: Mar 2005
Posts: 354
Thrashsoul3 is an unknown quantity at this point
I would like to tell you that: sendtext("irc","privmsg",{"IRCBot","!resetevents"} );

That dos not reset the events, and i've restarted server several times. Does not work.
__________________
Thrash
Reply With Quote
  #16  
Old 08-29-2005, 01:27 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
NPC Code:
function oncreated() {
sendtext("irc","login","Aeon IRC Bot");
sendtext("irc","join","#Aeon");
}
function onRecieveText("irc","kick","") {
if (clientr.ircadmin) {
if (texttype == "irc") {
if (textoptions == "kick") {
with (getplayer(params[3])) {
sendtext("irc","part","#Aeon");
}
sendtonc(params[3]"has been kicked from the IRC channel");
}
}else echo("I am recieving non-IRC data!");
}
}



anyone know what I'm doin wrong?
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #17  
Old 08-29-2005, 02:05 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Yes

function onRecieveText("irc","kick","") {

WHAT IS THAT?
__________________
Skyld
Reply With Quote
  #18  
Old 08-29-2005, 03:22 AM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by Skyld
Yes

function onRecieveText("irc","kick","") {

WHAT IS THAT?
LOL.
BTW, the bot nickname has to START with IRCBot_, Graal_, or EventsBot_.
__________________
Liek omigosh.

Reply With Quote
  #19  
Old 08-29-2005, 03:51 AM
Thrashsoul3 Thrashsoul3 is offline
Registered User
Join Date: Mar 2005
Posts: 354
Thrashsoul3 is an unknown quantity at this point
Bot does not recieve data from IRCBot, but does recieve other data.
__________________
Thrash
Reply With Quote
  #20  
Old 09-02-2005, 11:14 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Mine didn't work until i changed:

NPC Code:
 if (texttype == "irc" && textoption == "privmsg" && textlines[0] == "IRCBot" && textlines[1] == "!eventsbotlogin") {



to

NPC Code:
 if (texttype == "irc" && textoption == "privmsg" && textlines[0] == "IRCBot" && textlines[2] == "!eventsbotlogin") {



(textlines[1] to textlines[2])

EDIT:
For Script ID: and Params: in the event admin window, how is that used exactly?

(I understand the script id part, but how do you access the params?)
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #21  
Old 09-02-2005, 12:29 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Well pointed out, napo_p2p. There was a mistake in the GraalWiki. textlines[1] is the destination, where textlines[2] is the data. It was checking the one wrong, but I have fixed it now.

Quote:
Originally Posted by napo_p2p
EDIT:
For Script ID: and Params: in the event admin window, how is that used exactly?

(I understand the script id part, but how do you access the params?)
The params are passed to the eventsbot when an event begins.

You will get something like this:

textlines[0]: IRCBot
textlines[1]: EventsBot_Rudora
textlines[2][0]: !startevent
textlines[2][1]: 1 (That's the script ID)
textlines[2][2]: test (That's the params option)
textlines[2][3]: Team A, Team B (team names as array)
textlines[2][>=4]: Player and team information

Update: added a parameter for team names (Stefan)
__________________
Skyld

Last edited by Admins; 06-12-2006 at 12:41 AM..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:16 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.