PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Finished Scripts => Topic started by: [NL]Daddy-Bear? on 08 March, 2008, 15:31:02

Title: Trivia-Ex-V.0.681_5.1.3
Post by: [NL]Daddy-Bear? on 08 March, 2008, 15:31:02
Hello it?s me again.

Converted to new Api on Request from  Bobby1999
Trivia-Ex-V.0.681_5.1.3 by [NL]Daddy-Bear?

Respectfully,

[NL]Daddy-Bear?
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: ]-[?LL?L?L??nG?L on 09 March, 2008, 16:30:03
Kool!!!  Its about time there was a triv converted way to go Daddy  :P :P :P
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: 11hh on 11 March, 2008, 04:14:41
stopping does not work (!trivstop)
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: [NL]Daddy-Bear? on 11 March, 2008, 19:24:08
No problem here,

[19:22:41] <Trivia_Daddy-Bear?> Trivia is stoped.
[19:22:41] <Trivia_Daddy-Bear?> 

                  *TriVia Action*
   ================================================================================

            Trivia was stoped by ![DFA-NF][NL]Daddy-Bear?

   ================================================================================

???
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: ArtificialInsanety on 13 March, 2008, 10:25:38
indeed !trivstop doesn't work :) and I don't get any errors

[11:22:59] <?Trivia?> Trivia is stoped.
[11:22:59] <?Trivia?>

                  *TriVia Action*
   ================================================================================

            Trivia was stoped by ArtificialInsanety

   ================================================================================



[11:23:13] <?Trivia?> QUESTION Nr. 4015 from 23281 Questions.
   ----------------------------------------------------------------------



LE: I managed to stop it 1 time with the !trivstop , I don't really know whats wrong:)
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: Offski on 14 March, 2008, 07:54:07
Tried over and over stops everytime  ???  try moving the script up or down in the list , I got it in position 7 in the list.
Tho moving it doent seem to affect it for me  :o
Oh an thx DB Exellent work again
[06: 36 01 AM ? Fri 14 Mar] *** Server command: !trivstop
[06: 36 01 AM ? Fri 14 Mar] <-=Trivia=-> Trivia is stoped.
[06: 36 01 AM ? Fri 14 Mar] <-=Trivia=->

                          *-=TriVia=-*
   ================================================================================

               Trivia was stoped by Ghost??

   ================================================================================
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: ArtificialInsanety on 14 March, 2008, 08:33:08
Ok , now it stops , don't know what made it not work yesterday

can it be modified not to start on hub start?
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: 11hh on 14 March, 2008, 22:35:45
Quote[22:35:50] <[Bp]Trivia?> QUESTION Nr. 2397 from 5052 Questions.
   ----------------------------------------------------------------------
   > Category: ZENE - Point(s): 8 - Valid Answers: 1
   QUESTION: Melyik egy?ttes ?nekelte, hogy Sz?llj el, kismad?r?
   HINT:  ????????
   ----------------------------------------------------------------------
[22:35:50] <[Bp]Trivia?> Trivia is stoped.
[22:35:50] <[Bp]Trivia?>

                  *TriVia Action*
   ================================================================================

            Trivia was stoped by [Bp]11hh

   ================================================================================



[22:35:54] <[Bp]Trivia?> QUESTION Nr. 3738 from 5052 Questions.
   ----------------------------------------------------------------------
   > Category: NYELV - Point(s): 6 - Valid Answers: 1
   QUESTION: Mi a v?ge a nemakar?snak a mond?s szerint?
   HINT:  ??????
   ----------------------------------------------------------------------
[22:35:56] <Ptokax>
------------------------------------------------------------
Current stats:
------------------------------------------------------------
Version: PtokaX DC Hub 0.4.0.0 built on Feb 23 2008 19:44:31
Uptime: 2 days, 0 hours, 5 minutes
Users (Max/Actual Peak (Max Peak)/Logged): 250 / 2 (3) / 2
Users shared size: 17496241604 Bytes / 16.29 GB

???
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: Tw?sT?d-d?v on 14 March, 2008, 22:57:45
Works fine here  ...  tested with vip.op.master profiles


[21:52:10] <Trivia_Daddy-Bear?> QUESTION Nr. 29 from 36 Questions.
----------------------------------------------------------------------
> Category: ReggaeTrivia - Point(s): 8 - Valid Answers: 1
QUESTION: In 1958, he founded West Indies Records and the WIRL label to record Jamaican musicians
and singers, then mostly performing the Jamaican variant of American r&b.
HINT:  e????? ???ga
----------------------------------------------------------------------
[21:52:24] <Trivia_Daddy-Bear?> Trivia is stoped.
[21:52:24] <Trivia_Daddy-Bear?>

*TriVia Action*
================================================================================

Trivia was stoped by Tw?sT?d-d?v?l

================================================================================



[21:52:33] <'[Fin]'marco> Two hookers were on a street corner. They started discussing business, and one of the hookers said, "Gonna be a good night, I smell cock in the air." The other hooker looked at her and said, "Nah, I just burped..."
[21:52:46] <Tw?sT?d-d?v?l> lol
[21:55:14] <{-Twisteds-Soul-}>
------------------------------------------------------------
Current stats:
------------------------------------------------------------
Version: PtokaX DC Hub 0.4.0.0b built on Mar 11 2008 19:50:10
Uptime: 3 days, 2 hours, 32 minutes
Users (Max/Actual Peak (Max Peak)/Logged): 2500 / 128 (141) / 121
Users shared size: 190479280079102 Bytes / 173.24 TB
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: [NL]Daddy-Bear? on 14 March, 2008, 23:25:06
Hello it?s me again.

Hello ArtificialInsanety,  Offski and 11hh and all the rest

Lua is only for the new API and using PtokaX 4.0.0
If you are using a version 3.60 it will not work.
Thx:  Tw?sT?d-d?v?l for also testing.

Respectfully,

[NL]Daddy-Bear?
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: 11hh on 15 March, 2008, 03:34:35
Version: PtokaX DC Hub 0.4.0.0 built on Feb 23 2008 19:44:31
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: ArtificialInsanety on 15 March, 2008, 08:26:16
When u start hub , trivia autostarts , can it be set not to start on hub start?
and with the "!trivstop" not stoping trivia I think it was because I use dixbot , and has additional profiles Owner , SuperOp,Kvip , I added them to the script , not sure how correct , but works now
btw I was using PtokaX 0.4.0.0b

Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: rEALx on 15 March, 2008, 08:52:31
Quote from: ArtificialInsanety on 15 March, 2008, 08:26:16
When u start hub , trivia autostarts , can it be set not to start on hub start?
In the script file Trivia-Ex-V.0.681_5.1.3.lua
goto line 136 where it says

TrivEx._Sets.StartOnMain = 1

change the value to 0

TrivEx._Sets.StartOnMain = 0

Save n restart script.

rEALx

Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: ArtificialInsanety on 15 March, 2008, 18:49:43
thanks rEALx
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: Bobby1999 on 17 March, 2008, 13:40:21
Cheers DB :)
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: TrIp-iN-SuN on 29 July, 2008, 16:33:40
hi all i try to stop the trivia but them not stoped  same times its work same times its not and tivia be fast few sec him open new latters if i restart scripts its work like i want i can stop trivia and every thing but in few time its not work to me any more same one can help me?

http://rapidshare.com/files/133336981/Trivia-Ex-V.0.681_5.1.3.lua.html

its my script
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: TrIp-iN-SuN on 31 July, 2008, 14:44:53
no one cant help me??
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: [NL]Daddy-Bear? on 03 August, 2008, 22:16:09
Hello TrIp-iN-SuN

Sorry I do not get what your problem is, can you rephrase the question?
Thanks.

Respectfully,

[NL]Daddy-Bear?
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: TrIp-iN-SuN on 04 August, 2008, 15:28:56
same time i try to stop the trivia and trivia not stop its type me them stoped but tivia not stoped and when his stop atomatic trivia need to start in 2 hours but same thing like 15 min trivia autostart again and its need be in 2 hour but if i restart my scripts its work agian good but in few days its happned agian
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: [NL]Daddy-Bear? on 04 August, 2008, 19:49:50
Hello TrIp-iN-SuN

Running this version also from march 08 and up, no problem like that here.
I did ask some friends here who also running it no one get this error.
So I don?t? now what to do for you right now sorry.
All the user settings okay?

Respectfully,

[NL]Daddy-Bear?
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: Offski?????? on 07 August, 2008, 04:33:33
Hello TrIp-iN-SuN
Try setting like this



TrivEx._Sets.autostop = 300                    -- nil when no autostop, 1 - endless            
autoplay = 120                                    -- autoplay in MIN  after action from line above (April 2007)


hope this works ok for u

with Respect   
                  
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: TrIp-iN-SuN on 07 August, 2008, 16:35:46
no its not i want but not maen its fixed tnx
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: Hades on 19 December, 2008, 01:56:42
HIi All!
I have a weird one here.

Scripts crashes with info SCRIPTS/TriviaScores.txt doesnt exist but its there and script matches filename
Im running ptokax 4.1.1 on Ubuntu linux with lua 5.1.3

On windows xp sp3 i get same thing exept when i save script ( with no changes made ) from ptokax gui ,it works but only till i reload it again ??? wtf?
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: ATAG on 19 December, 2008, 07:19:30
In line #157 change
TrivEx._Sets.folder = "TRIVIA"
to
TrivEx._Sets.folder = Core.GetPtokaXPath().."scripts/TRIVIA"
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: Hades on 19 December, 2008, 08:34:28
Thanx ATAG but didn't work now i'm getting

\scripts\Trivia-Ex-V.0.681_5.1.3.lua:157: attempt to index global 'Core' (a nil value)

instead.  :(
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: ATAG on 19 December, 2008, 17:06:00
Don't forget to enable the scripting interface in the settings...
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: Hades on 19 December, 2008, 20:46:59
Its on.
I have selfreg,rolling tropic and hubmenu up and running at the moment but trivia crashes with error code:

Trivia-Ex-V.0.681_5.1.3.lua:157: attempt to index global 'Core' (a nil value)

thats after editing

In line #157 change
Code:

TrivEx._Sets.folder = "TRIVIA"

to
Code:

TrivEx._Sets.folder = Core.GetPtokaXPath().."scripts/TRIVIA"
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: ATAG on 20 December, 2008, 02:27:53
Then i've got no idea   :-\
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: Hemarr on 28 December, 2008, 03:34:42
awesome job you have done with this script [NL]Daddy-Bear. Thanks to scriptwriters like you This great script keeps on ticking
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: Hades on 05 January, 2009, 21:58:12
Any idea how to make this script work on unix?
I got ptokax 4.1.1 running on Ubuntu and cant get it to work:(
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: [NL]Daddy-Bear? on 06 January, 2009, 21:36:07
Sorry Hades i've got no idea.  ???
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: Daywalker? on 07 January, 2009, 12:19:23
Dunno for sure but the lua is the same i think, it's the Path to the files that makes it not working imo  the \  \\  /  //  issue ^^
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: Hades on 07 January, 2009, 14:23:42
So can i rfeplace the path with acctual path like for example
path = /home/PtokaX/scripts/triviaquestions.txt??
What's the code to replace?
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: Daywalker? on 07 January, 2009, 14:58:06
i don't know much about linux but if you use it you should now where to find the triviaquestions.txt file and how the path must be created :)
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: Hades on 07 January, 2009, 16:44:56
Whats the lua syntax for creating a path?
I have no clu about coding?
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: CE3AM on 08 January, 2009, 04:49:36
Hi ! I have a problem to Add &Start new questions...Some ideas ?!
Regards
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: CE3AM on 09 January, 2009, 04:30:23
TrivEx._Scores = {
   ["scorpio"] = {
      ["Streak"] = 1,
      ["Score"] = 29,
      ["AvTime"] = {
         [1] = 88.01,
         [2] = 3,
         [3] = 29.34,
      },
   },
}



There is something wromg :( Cannot be loadet  ! Mesech:Syntax cannot open TRIVIA/Trivia ExScores.txt No such file or directory . Cannot play new loaded questions ?!
Regards
CE3AM
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: Hemarr on 09 January, 2009, 20:52:25
If you backtrack a bit on this thread your question has been already answered you need to change where it looks for files



In line #157 change
Code:

TrivEx._Sets.folder = "TRIVIA"

to
Code:

TrivEx._Sets.folder = Core.GetPtokaXPath().."scripts/TRIVIA"
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: Annie on 17 June, 2009, 09:48:55
Quote from: Hades on 19 December, 2008, 08:34:28
Thanx ATAG but didn't work now i'm getting

\scripts\Trivia-Ex-V.0.681_5.1.3.lua:157: attempt to index global 'Core' (a nil value)

instead.  :(

line 157 I changed to

TrivEx._Sets.folder = "scripts/TRIVIA"

and I have no errors then :)


Ive set this up and its working, but.....   I cant answer the questions it wont accept any answer, Is there something I have done wrong?
Title: Re: Trivia-Ex-V.0.681_5.1.3
Post by: the-master on 01 May, 2010, 19:58:52
make sure trivia is above al scripts that check mainchat, perhaps on top at ptokax scripts