Thread: [Share]Quiz
View Single Post
Old 12.10.2007, 22:00   #1
forsage
Guest
 
Posts: n/a
Default [Share]Quiz

Hello

This is quiz. May be you find it fun , may be not, but players like this at my server.

So, all of options settings in AI.

At default here 10 questions. Each question take a 15 seconds.

If time out, answer will be incorrect.

By default , all prizes that give players is adena, of course you can modify code yourself and add there another prizes.

Parameters in AI:

Code:

Code:
        int maxquestions 10                                                                                    
        int timeanswer 15000                                                                                   
        int cost 10000                                                                                         
        int priz1 10000                                                                                        
        int priz2 20000                                                                                        
        int priz3 50000                                                                                        
        int RandValue 1351                                                                                     
        int StartFString 1300000
maxquestions - number of questions for one quiz

timeanswer - time for answer for one question

cost - cost of quiz ( adena )

priz1 - if player answer for maxquestion-2 he get priz1 ( adena )

priz2 - if player answer for maxquestion-1 he get priz2 ( adena )

priz3 - if player answer for all of questions he get priz3 ( adena )

RandValue - total number of questions

StartFString - number of fstring, where questions is started.

Each question has only ! 4 answers , not more or less .

Here is fstring structure :

Code:

Code:
1300000 [Question 1?]
1300001 [<a action="bypass -h menu_select?ask=1&reply=0">1. answer1</a>]
1300002 [<a action="bypass -h menu_select?ask=1&reply=0">2. answer2</a>]
1300003 [<a action="bypass -h menu_select?ask=1&reply=1">3. answer3</a>]
1300004 [<a action="bypass -h menu_select?ask=1&reply=0">4. answer4</a>]
1300005 [Question 2?]
1300006 [<a action="bypass -h menu_select?ask=1&reply=0">1. answer1</a>]
1300007 [<a action="bypass -h menu_select?ask=1&reply=0">2. answer2</a>]
1300008 [<a action="bypass -h menu_select?ask=1&reply=0">3. answer3</a>]
1300009 [<a action="bypass -h menu_select?ask=1&reply=1">4. answer4</a>]
1300010 [Question 3?]
1300011 [<a action="bypass -h menu_select?ask=1&reply=0">1. answer1</a>]
1300012 [<a action="bypass -h menu_select?ask=1&reply=1">2. answer2</a>]
1300013 [<a action="bypass -h menu_select?ask=1&reply=0">3. answer3</a>]
1300014 [<a action="bypass -h menu_select?ask=1&reply=0">4. answer4</a>]
.......
.......
.......
How you can see , reply=1 is true answer.

Some screenshots :

Изображение

Изображение

Изображение

p.s. sorry for bad english please

p.s. special thanks to SuperKent

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Дата оценена по относительному времени в снимке (2 Days Ago); точное время не сохранилось. Открыть источник.