StealthBot.net: SnapNJacks Trivia - StealthBot.net

Jump to content

  • (5 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

SnapNJacks Trivia Script Conversion

#26 User is offline   TheFreak Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: August-10 10

Posted September 07, 2010 - 02:34 AM

Oh GG.

Thanks Jen.

What language are these scripts written in? I write in JavaScript for D2NT Bots, This seems sorta like JavaScript, but obviously isn't.

#27 User is offline   The-Black-Ninja Icon

  • The Sex
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,526
  • Joined: August-01 09

Posted September 07, 2010 - 02:37 AM

Visual Basic Script.

#28 User is offline   TheFreak Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: August-10 10

Posted September 07, 2010 - 03:10 AM

Oh, ok VB. Thanks for the info.

#29 User is offline   PhiX Icon

  • Notice the ownage.
  • PipPipPipPipPipPipPipPipPip
  • Group: Guests
  • Posts: 8,388,607
  • Joined: July-31 09

Posted September 07, 2010 - 06:50 AM

View PostThe-Black-Ninja, on 07 September 2010 - 04:23 AM, said:

You mean grey? Open ST_Config.ini, look for this line and set the value to True:
Or you could just use the "/gemote on" command.

View PostScarecrow, on 06 September 2010 - 04:29 AM, said:

i keep getting this when i try to reload scripts

[07:22:01 PM] Scripts loaded.
[07:22:01 PM] Scripting runtime error '429' in Demo: (line 35; column 3)
[07:22:01 PM] ActiveX component can't create object
[07:22:01 PM] Offending line: >>
[07:22:01 PM] Scripting runtime error '429' in Demo: (line 35; column 3)
[07:22:01 PM] ActiveX component can't create object
[07:22:01 PM] Offending line: >>
[07:22:02 PM] Loaded 0 plugins (0 enabled). Type /plugins to view them. Type /phelp for help using them.
[07:22:02 PM] Type /updates in the bot to view updates and new plugins that are available for download.
[07:22:02 PM] SnapNJacks Trivia. Version 1.00 Release loaded with 0 users in the DB
[07:23:04 PM] Plugin Help System
[07:23:04 PM] Type /phelp <prefix> to get help on one of your loaded plugins.

any way to fix that or
cause it isnt running the questions
Just on a side note: This error has nothing to do with trivia. It was the demo script erroring.
PhiX

BNLS: phix.no-ip.org

Please refrain from sending me personal messages regarding technical support issues. Use the forums, that is what they are there for.

#30 User is offline   MaThEuS_rEi_wAr Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: December-12 09

Posted September 18, 2010 - 10:22 PM

hey, whatz that command that makes the bot say by /me?

View PostMaThEuS_rEi_wAr, on 18 September 2010 - 07:19 PM, said:

hey, whatz that command that makes the bot say by /me?

ive found the command now, itz .gemote on/off, dun need to answer now :D

#31 User is offline   azn4life Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: September-21 10

Posted September 21, 2010 - 01:41 PM

I followed weirdlikes instructions and I think i did everything right and when i reloaded my sb this came out
" [11:37:33 PM] Scripts loaded.
[11:37:33 PM] Loaded 0 plugins (0 enabled). Type /plugins to view them. Type /phelp for help using them.
[11:37:33 PM] Type /updates in the bot to view updates and new plugins that are available for download.
[11:37:33 PM] SnapNJacks Trivia. Version 1.00 Release loaded with 0 users in the DB"

Since i'm new i'm not exactly sure whats wrong with it.. So who ever can help thx!!

#32 User is offline   PhiX Icon

  • Notice the ownage.
  • PipPipPipPipPipPipPipPipPip
  • Group: Guests
  • Posts: 8,388,607
  • Joined: July-31 09

Posted September 21, 2010 - 01:49 PM

Everything looks correct to me. What's your question?
PhiX

BNLS: phix.no-ip.org

Please refrain from sending me personal messages regarding technical support issues. Use the forums, that is what they are there for.

#33 User is offline   T3X0 Icon

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 498
  • Joined: June-27 10

Posted September 21, 2010 - 03:03 PM

you have to write .trivia on in bnet that it works or what do you mean?

mhm i forgot how to add the questions in the folder.. ;<
i think it was something like:
Who am i?*art*2
<question>*<answer>*<points>
?

#34 User is offline   PhiX Icon

  • Notice the ownage.
  • PipPipPipPipPipPipPipPipPip
  • Group: Guests
  • Posts: 8,388,607
  • Joined: July-31 09

Posted September 21, 2010 - 03:15 PM

http://www.stealthbo...dpost&pid=18409
PhiX

BNLS: phix.no-ip.org

Please refrain from sending me personal messages regarding technical support issues. Use the forums, that is what they are there for.

#35 User is offline   T3X0 Icon

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 498
  • Joined: June-27 10

Posted September 21, 2010 - 04:28 PM

k thx
edit: hhm i added a .txt into the question folder but if i am starting the trivia their comes:
[36707] (random/trivia) $1.00: Music - Sgt Peppers Beatles Tunes- 1,2,3,4 can I have a little ..
instead of
"What's the full name of ID?*Island Defense*1"

- argh got it !! :D

This post has been edited by art: September 21, 2010 - 04:43 PM


#36 User is offline   azn4life Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: September-21 10

Posted September 21, 2010 - 10:47 PM

View Postart, on 21 September 2010 - 03:03 PM, said:

you have to write .trivia on in bnet that it works or what do you mean?

I tried saying ".triva on" and nothing happened.. I'm not sure what i should do now..

#37 User is offline   PhiX Icon

  • Notice the ownage.
  • PipPipPipPipPipPipPipPipPip
  • Group: Guests
  • Posts: 8,388,607
  • Joined: July-31 09

Posted September 21, 2010 - 10:50 PM

Is "." your bot's external trigger? You can use "/trivia on" from inside your bot, that should definitely work. To use the command from the channel, you need access to the bot.
PhiX

BNLS: phix.no-ip.org

Please refrain from sending me personal messages regarding technical support issues. Use the forums, that is what they are there for.

#38 User is offline   azn4life Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: September-21 10

Posted September 21, 2010 - 10:56 PM

View PostPhiX, on 21 September 2010 - 10:50 PM, said:

Is "." your bot's external trigger? You can use "/trivia on" from inside your bot, that should definitely work. To use the command from the channel, you need access to the bot.

Umm i tried using "/triva on" in war3 and in sb and they both said unknown command

#39 User is offline   Dragon_Legion Icon

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 423
  • Joined: October-08 09

Posted September 21, 2010 - 11:01 PM

try /trivia not /triva (typos wont work)

#40 User is offline   PhiX Icon

  • Notice the ownage.
  • PipPipPipPipPipPipPipPipPip
  • Group: Guests
  • Posts: 8,388,607
  • Joined: July-31 09

Posted September 22, 2010 - 08:33 AM

And obviously "/trivia on" will not work on WarCraft III. That's why I said "from inside the bot". When you want to control your bot with your gaming account from the channel or via whispers you have to use the bot's external trigger (which is "." by default). The account must have been added to the bot's database with access in order to perform commands.
PhiX

BNLS: phix.no-ip.org

Please refrain from sending me personal messages regarding technical support issues. Use the forums, that is what they are there for.

#41 User is offline   NeoAqua3 Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: October-08 10

Posted October 08, 2010 - 03:59 PM

any help here :)
im extremely new to bots and this is my first attempt at getting a script on it

[11:50:50 AM] Scripting parsing error '1025' in trivia.txt: (line 1; column 29)
[11:50:50 AM] Expected end of statement
[11:50:50 AM] Offending line: >> Script(Name) = SnapNJacks Trivia
[11:50:50 AM] Scripts loaded.
[11:50:52 AM] Loaded 0 plugins (0 enabled). Type /plugins to view them. Type /phelp for help using them.
[11:50:52 AM] Type /updates in the bot to view updates and new plugins that are available for download.

#42 User is offline   The-Black-Ninja Icon

  • The Sex
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,526
  • Joined: August-01 09

Posted October 08, 2010 - 04:29 PM

Wrap those in quotes.
Script("Name") = "SnapNJacks Trivia"


#43 User is offline   NeoAqua3 Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: October-08 10

Posted October 08, 2010 - 04:35 PM

thx, i did that but now i am getting this.

[12:35:08 PM] Scripting parsing error '1025' in trivia.txt: (line 38; column 15)
[12:35:08 PM] Expected end of statement
[12:35:08 PM] Offending line: >> Public ST_VER ST_VER = Script(Major) & . & Script(Minor) & Script(Revision)

#44 User is offline   PhiX Icon

  • Notice the ownage.
  • PipPipPipPipPipPipPipPipPip
  • Group: Guests
  • Posts: 8,388,607
  • Joined: July-31 09

Posted October 08, 2010 - 04:41 PM

How did you add the script to your bot? It looks like some characters have been deleted, which obviously breaks the script. You're supposed to simply download the attachment and put it in your scripts folder. Read this topic if you need more detailed instructions.

Edit: I added a respective note to the first post.
PhiX

BNLS: phix.no-ip.org

Please refrain from sending me personal messages regarding technical support issues. Use the forums, that is what they are there for.

#45 User is offline   NeoAqua3 Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: October-08 10

Posted October 08, 2010 - 05:00 PM

thx alot, somehow the quotes all got removed i did it over and its working correctly now, now hopefully just one last thing. it keeps asking questions like 80's culture movies and music, and i want it to ask starcraft questions, maybe u could point me in the right direction.

#46 User is offline   PhiX Icon

  • Notice the ownage.
  • PipPipPipPipPipPipPipPipPip
  • Group: Guests
  • Posts: 8,388,607
  • Joined: July-31 09

Posted October 08, 2010 - 05:11 PM

You can either filter the server questions using categories ("/category starcraft") or make your own question file.
PhiX

BNLS: phix.no-ip.org

Please refrain from sending me personal messages regarding technical support issues. Use the forums, that is what they are there for.

#47 User is offline   NeoAqua3 Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: October-08 10

Posted October 08, 2010 - 05:13 PM

Finally got it woking like i wanted thx for all the help, i know u must get pelted with tons of questions like this :)

#48 User is offline   GuateMalaOwnsU Icon

  • Newbie
  • Pip
  • Group: Beta Testers
  • Posts: 6
  • Joined: August-19 09

Posted October 10, 2010 - 08:49 PM

For some reason, i am not able to connect to the trivia server... I have no firewall blocking anything....
† Clan [email protected]
Posted Image

#49 Guest_Sandman81_*

  • Group: Guests

Posted October 14, 2010 - 12:31 AM

How did you add the script to your bot? It looks like some characters have been deleted, which obviously breaks the script. You're supposed to simply download the attachment and put it in your scripts folder. Read this topic if you need more detailed instructions.

Edit: I added a respective note to the first post.

PhiX

BNLS: phix.no-ip.org / phix.bnls.net

Please refrain from sending me personal messages regarding technical support issues. Use the forums, that is what they are there for.




so i followed the instructions and i'm still getting this
[07:27:47 PM] Scripting parsing error '1025' in SnapNJacksTrivia.txt: (line 1; column 37)
[07:27:47 PM] Expected end of statement
[07:27:47 PM] Offending line: >> Script("Name") = "SnapNJacks Trivia" Script("Abbreviation") = "st"

This post has been edited by Sandman81: October 14, 2010 - 12:36 AM


#50 User is offline   Novynn Icon

  • Silver Member
  • PipPipPipPipPip
  • Group: Members
  • Posts: 873
  • Joined: October-07 09

Posted October 14, 2010 - 02:37 AM

It looks like all the new lines are not being reproduced... I would upload this to another site but SB rules doesn't let me.

I could probably put it in a zipped file if you need it to be.

  • (5 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users