Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
Sign in to follow this  
ZigoFrend

Quiz \ Викторина

Recommended Posts

Quiz \ Викторина


 

{
    "IsNameSurvivor": 1,  								Проверка на ник игорока если ник Survivor то команды от игрока восприниматься не будут	      	
    "LogEnable": 1,										Активация логов
    "RestartTimer": 60000,								Время после старта сервера через которое будет запущен новый вопрос
    "QuestTimer": 60000,								Время на решения вопроса
    "TimeNewQuest": 30000,								Время через которое будет задан новый вопрос
    "MsgAllNewQuest": "Новый вопрос: ",
    "MsgAllInfoCom": "Для ответа введите в чате: ",
    "MsgAllStopQuest": "Викторина окончена.",
    "MsgAllTime": "Время на ответ: ",
    "MsgGood": "Красава! Держи свой приз! ",
    "MsgBad": "Вы не верно ответили на вопрос. ",
    "MsgQuest": "Сейчас актуальный вопрос: ",
    "MsgQuestEmp": "Ожидай новой викторины.",
    "MsgEmpty": "Вы не ввели ответ.",
    "CMDSim": "/",										Префикс для команды		
    "CMDOtvet": "otvet",								Команда ответа (/otvet Москва)
    "CMDQuest": "quest",								Команда для уточнения вопроса
    "QuestList": [										Список вопросов
        {
            "IDQuest": 0,								ID вопросов каждый вопрос идёт по порядку нумеровать сторого по порядку
            "CountNeedPlayer": 0,						В РАЗРАБОТКЕ
            "TextQuest": "Вопрос 1",					Текст вопроса
            "TextOtvet": "1",							Текст ответа
            "IDLoot": [									Массив с возможными пресетами для спавна награды
                0,
                1
            ]
        },
        {
            "IDQuest": 1,
            "CountNeedPlayer": 0,
            "TextQuest": "Вопрос 2",
            "TextOtvet": "2",
            "IDLoot": [
                0,
                1
            ]
        }
    ],
    "PresetList": [										Массив с пресетами				
        {
            "IDPreset": 0,								ID пресета для спавна лута
            "Comments": "Первый пресет",				Комментарии исключительно для вас
            "ItemList": [								Список предметов
                {
                    "ClassName": "AK74",				Название предмета
                    "ItemDamage": 0.0,					сколько урона ему будет нанесено
                    "ItemCountInStack": 0,				
                    "AttList": [						Массив с аксесуарами которые могут находиться внутри предмета
                        {
                            "ClassNameAtt": "AK_Suppressor",		Название предмета
                            "ChanceToSpawn": 100,					Шанс на спавн данного предмета
                            "AttDamage": 0.0,						сколько урона ему будет нанесено
                            "AttCountInStack": 0					Кол во в стаке
                        },
						{
                            "ClassNameAtt": "AK_WoodBttstck_Camo",
                            "ChanceToSpawn": 100,
                            "AttDamage": 0.0,
                            "AttCountInStack": 0
                        }
                    ]
                },
                {
                    "ClassName": "AK74_Black",
                    "ItemDamage": 0.0,
                    "ItemCountInStack": 0,
                    "AttList": [
                        {
                            "ClassNameAtt": "AK_Suppressor",
                            "ChanceToSpawn": 50,
                            "AttDamage": 0.0,
                            "AttCountInStack": 0
                        },
						{
                            "ClassNameAtt": "AK_WoodBttstck_Camo",
                            "ChanceToSpawn": 100,
                            "AttDamage": 0.0,
                            "AttCountInStack": 0
                        }
                    ]
                }
            ]
        },
        {
            "IDPreset": 1,
            "Comments": "Второй пресет",
            "ItemList": [
                {
                    "ClassName": "AK74",
                    "ItemDamage": 0.0,
                    "ItemCountInStack": 0,
                    "AttList": [
                        {
                            "ClassNameAtt": "AK_Suppressor",
                            "ChanceToSpawn": 100,
                            "AttDamage": 0.0,
                            "AttCountInStack": 0
                        },
						{
                            "ClassNameAtt": "AK_WoodBttstck_Camo",
                            "ChanceToSpawn": 100,
                            "AttDamage": 0.0,
                            "AttCountInStack": 0
                        }
                    ]
                },
                {
                    "ClassName": "AKM",
                    "ItemDamage": 0.0,
                    "ItemCountInStack": 0,
                    "AttList": [
                        {
                            "ClassNameAtt": "AK_Suppressor",
                            "ChanceToSpawn": 50,
                            "AttDamage": 0.0,
                            "AttCountInStack": 0
                        },
						{
                            "ClassNameAtt": "AK_WoodBttstck_Camo",
                            "ChanceToSpawn": 100,
                            "AttDamage": 0.0,
                            "AttCountInStack": 0
                        }
                    ]
                },
                {
                    "ClassName": "SodaCan_Pipsi",
                    "ItemDamage": 0.0,
                    "ItemCountInStack": 50,
                    "AttList": [
                       
                    ]
                },
                {
                    "ClassName": "Guts",
                    "ItemDamage": 0.0,
                    "ItemCountInStack": 10,
                    "AttList": [
                       
                    ]
                }
            ]
        }
    ]
}

Скрипт добавляет викторину которая будет работать через чат в игре путём ввода команд. 
Сразу говорю работает только для тех игроков у которых ник не Survivor.

Есть две команды для уточнения вопроса и ответа. Данные команды можно изменить в конфиге.

По любым вопросам обращайтесь в лс.

Мод работает абсолютно на любом языке на котором работает Dayz

 

МОД СЕРВЕРНЫЙ то есть на клиент его грузить не нужно

 

{
    "IsNameSurvivor": 1,			Checking for the player's nickname if the nickname is Survivor, then commands from the player will not be accepted
    "LogEnable": 1,					Enable logs
    "RestartTimer": 60000,			Time after server start after which new question will be started
    "QuestTimer": 60000,			Time to solve the question
    "TimeNewQuest": 30000,			Time after which a new question will be asked
    "MsgAllNewQuest": "New Question: ",
    "MsgAllInfoCom": "To reply, type in chat: ",
    "MsgAllStopQuest": "The quiz is over.",
    "MsgAllTime": "Response time: ",
    "MsgGood": "Beautiful! Keep your prize!",
    "MsgBad": "You answered the question incorrectly. ",
    "MsgQuest": "Now the actual question is: ",
    "MsgQuestEmp": "Wait for a new quiz.",
    "MsgEmpty": "You didn't enter an answer.",
    "CMDSim": "/",							Command prefix
    "CMDOtvet": "otvet",					Response command (/щемуе Moscow)
    "CMDQuest": "quest",					Command to clarify the question
    "QuestList": [							List of questions
        {
            "IDQuest": 0,					question IDs each question is numbered consecutively
            "CountNeedPlayer": 0,			UNDER DEVELOPMENT
            "TextQuest": "Вопрос 1",		Question text
            "TextOtvet": "1",				Response text
            "IDLoot": [						Array with possible reward spawn presets
                0,
                1
            ]
        },
        {
            "IDQuest": 1,
            "CountNeedPlayer": 0,
            "TextQuest": "Вопрос 2",
            "TextOtvet": "2",
            "IDLoot": [
                0,
                1
            ]
        }
    ],
    "PresetList": [												Array with presets
        {
            "IDPreset": 0,										Preset ID for loot spawn
            "Comments": "Первый пресет",						Comments exclusively for you
            "ItemList": [										List of items
                {
                    "ClassName": "AK74",						Item name
                    "ItemDamage": 0.0,							how much damage will be dealt to it
                    "ItemCountInStack": 0,						Number in stack
                    "AttList": [								Array of accessories that can be inside the item
                        {
                            "ClassNameAtt": "AK_Suppressor",		Item name
                            "ChanceToSpawn": 100,					Chance to spawn this item
                            "AttDamage": 0.0,						how much damage will be dealt to him
                            "AttCountInStack": 0					Number in stack
                        },
						{
                            "ClassNameAtt": "AK_WoodBttstck_Camo",
                            "ChanceToSpawn": 100,
                            "AttDamage": 0.0,
                            "AttCountInStack": 0
                        }
                    ]
                },
                {
                    "ClassName": "AK74_Black",
                    "ItemDamage": 0.0,
                    "ItemCountInStack": 0,
                    "AttList": [
                        {
                            "ClassNameAtt": "AK_Suppressor",
                            "ChanceToSpawn": 50,
                            "AttDamage": 0.0,
                            "AttCountInStack": 0
                        },
						{
                            "ClassNameAtt": "AK_WoodBttstck_Camo",
                            "ChanceToSpawn": 100,
                            "AttDamage": 0.0,
                            "AttCountInStack": 0
                        }
                    ]
                }
            ]
        },
        {
            "IDPreset": 1,
            "Comments": "Второй пресет",
            "ItemList": [
                {
                    "ClassName": "AK74",
                    "ItemDamage": 0.0,
                    "ItemCountInStack": 0,
                    "AttList": [
                        {
                            "ClassNameAtt": "AK_Suppressor",
                            "ChanceToSpawn": 100,
                            "AttDamage": 0.0,
                            "AttCountInStack": 0
                        },
						{
                            "ClassNameAtt": "AK_WoodBttstck_Camo",
                            "ChanceToSpawn": 100,
                            "AttDamage": 0.0,
                            "AttCountInStack": 0
                        }
                    ]
                },
                {
                    "ClassName": "AKM",
                    "ItemDamage": 0.0,
                    "ItemCountInStack": 0,
                    "AttList": [
                        {
                            "ClassNameAtt": "AK_Suppressor",
                            "ChanceToSpawn": 50,
                            "AttDamage": 0.0,
                            "AttCountInStack": 0
                        },
						{
                            "ClassNameAtt": "AK_WoodBttstck_Camo",
                            "ChanceToSpawn": 100,
                            "AttDamage": 0.0,
                            "AttCountInStack": 0
                        }
                    ]
                },
                {
                    "ClassName": "SodaCan_Pipsi",
                    "ItemDamage": 0.0,
                    "ItemCountInStack": 50,
                    "AttList": [
                       
                    ]
                },
                {
                    "ClassName": "Guts",
                    "ItemDamage": 0.0,
                    "ItemCountInStack": 10,
                    "AttList": [
                       
                    ]
                }
            ]
        }
    ]
}

The script adds a quiz that will work through the chat in the game by entering commands.
Immediately I say it works only for those players whose nickname is not Survivor.

There are two commands for clarifying the question and the answer. These commands can be changed in the config.

For any questions, please contact PM.

The mod works in absolutely any language in which Dayz works

 


 

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.