TriviaBot V.2.2 for Lua 5
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

TriviaBot V.2.2 for Lua 5

Started by Jelf, 15 March, 2005, 14:26:42

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jelf

Another triviabot :)

Not sure if anyones done this one, cant see it anywhere so here goes..

TriviaBot v.2.2 Lua5

Bobby1999

Nice as usual Jelf.Seculite next?? hehehe :D

Jelf

Raflmao

Now I know your joking , right???


Hehehe

Bobby1999

You know your dying to do it :D

H?LL?L?L??nG?L

Can u please help me with this script X(  no matter wot i do as soon as i reboot theres no scores!! they dissapear any ideas?

lynyrd

you have to manually save the scores by typing " tbsavescores "
and after reboot load the scores by typing " tbloadscores "
hope it helps

Syphrone-NL

Does anybody has a right click menu for trivia that or an inproved zrightclick menu with trivia????????
Owner of 2 public hubs in Palace Network ---> www.palace-network.nl

maksis

[10:46:42] <[BOT]?Adrenaline?>
Top 0 Trivia scores in this hub
 Pos    Score       Nick   

[10:46:42] <[AD]maksalaatikko> topten
[10:46:45] <[BOT]?Adrenaline?> [AD]maksalaatikko you have 14023 points!


It doesn't work

H?LL?L?L??nG?L

Yip ur right still doesnt work..no matter if i do savescores  :( as soon as i reboot  the scores are either overwritten or are deleted... ?(

dragos_sto

QuoteOriginally posted by Jelf
Another triviabot :)

Not sure if anyones done this one, cant see it anywhere so here goes..

nice script but some one help me to modify
elseif (string.lower(firstWord) == string.lower(RestartTrigg)) then
      if (curUser.bOperator) then
        SendToPlayers("TriviaBot restarted. All points etc are lost!")
        SendToPlayers("If Save is used now it will overwrite the old save!")
        pointArray = {}
        StopQuiz(1)
      end
operator to not restart trivia, and lose the point.
just master may to use

jiten

Try this one:

elseif (string.lower(firstWord) == string.lower(RestartTrigg)) then 
	if (curUser.iProfile == 0) then 
		SendToPlayers("TriviaBot restarted. All points etc are lost!") 
		SendToPlayers("If Save is used now it will overwrite the old save!") 
		pointArray = {} 
		StopQuiz(1) 
	end

Cheers

dragos_sto


jiten


dragos_sto

#13
another little problem  :D ,
trivia work just fine , but  when stop and start the hub server , dont save the score , and when i start`it it dont load score automaticaly
sopose to hapen a reboot of the pc ,and i am not on computer , i lose the score ;(

Dj_OcTaGoN

#14
How can I remove the join/Part function, I want everyone to automaticly join it without having to type any commands etc
cheers//Dj_OcTaGoN


Stravides

another bummer - once I reload the scores topten function still shows 0 scores but show scores shows all the users and scores....
weird -

can we please work on this autosave / load as this is a little frustrating when the hub restarts and you need to dickabout with the trivia before anyone logs into it ;)

regards
Stravides
For RPG Books, Mp3 & Videos
We host trivia  and the ever failing Smeagolbot

Dj_OcTaGoN

I agree, loadscore does load the score but doesn't show them in Top Ten

cheers//XposEx


Stravides

is there a way of autoloading these scores as its beginnign to get right on ones nerves now :) hehe

please please please help

regards
Stravides
For RPG Books, Mp3 & Videos
We host trivia  and the ever failing Smeagolbot

Stravides

QuoteOriginally posted by Dj_OcTaGoN
How can I remove the join/Part function, I want everyone to automaticly join it without having to type any commands etc
cheers//Dj_OcTaGoN

edit this bit here

-- Should the bot auto login every user on connect ?
boolAutoLogin = 1 -- (nil = off, 1 = on)
Stravides
For RPG Books, Mp3 & Videos
We host trivia  and the ever failing Smeagolbot

Dj_OcTaGoN

yeah i have already changed that, but as I have understood, it means every user who connects to the hub will automaticly join, so if someone starts the Trivia and there are users in the hub already that means they whont auto join...or have I missunderstood?

cheers//Dj_OcTaGoN


Stravides

QuoteOriginally posted by Dj_OcTaGoN
yeah i have already changed that, but as I have understood, it means every user who connects to the hub will automaticly join, so if someone starts the Trivia and there are users in the hub already that means they whont auto join...or have I missunderstood?

cheers//Dj_OcTaGoN

NOT TESTED, but I think its right...

Taking a brief look at it - the bit that sends all the info to the players is the func SendToPlayers (below)

I guess if you are playin in main chat then this should already be set up...
set the other responses to the Send PM if playing in PM

function SendToPlayers(msg)
  	if ((lngMode > 2) or (lngMode < 0)) then
    		lngMode = lngDefMode
 	end
  	if (lngMode == 0) then
   		SendToAll(BotName, msg)
  	elseif (lngMode == 1) then
    		for index, value in playerArray do
      			SendToNick(index, "<"..BotName.."> "..msg)
    		end
  	elseif (lngMode == 2) then
    		for index, value in playerArray do
      			SendPmToNick(index, BotName, msg)
    		end
  	end
end
Stravides
For RPG Books, Mp3 & Videos
We host trivia  and the ever failing Smeagolbot

dragos_sto

#21
a little modification , solve problem whit score load at hub start and restart
download from [URL=http://www.dragossto.3x.ro/Trivia.doc]here[/URL]


it not a doc , it a rar file
i test the script , but never know when a bug  appear

jiten

QuoteOriginally posted by Dj_OcTaGoN
yeah i have already changed that, but as I have understood, it means every user who connects to the hub will automaticly join, so if someone starts the Trivia and there are users in the hub already that means they whont auto join...or have I missunderstood?

cheers//Dj_OcTaGoN
If the hub had users (that didn't join the game) before the restarting the scripts with the boolAutoLogin = 1 change, the ones that didn't reconnect wouldn't be able to play without logging in.

Cheers

dragos_sto

hmm some ideea , it not a specific function ho make .. something after script restart .
i thing one way to do this it when user connect
to make a for or while ho check other4 users online
it a player or not

other ideea i dont have

TommyGun

Nice script :)

But i got a question;

I'm scripting for mIRC and im totally n00b with DC++ scripting. But i made a trivia for mIRC a few years ago but its another system. I got 2 files, ?ne with questions and ?ne with answers. Is it possible to change this Trivia script so it can read from that 2 files? Without description, just a question file and a answer file.

Thanks in advance

Ps; Sorry for my bad English, i'm Dutch.
My computer specifications :: http://tweakers.net/gallery/sys/9478

SMF spam blocked by CleanTalk