вот инструкция с примерами " [JSON] Quest task structure Vladislav edited this page Jan…
- User
вот инструкция с примерами " [JSON] Quest task structure Vladislav edited this page Jan 6, 2025 · 2 revisions TasksData Field Array reward_items Information
Reward items structure. Upon completion of the dialog with the bot (1 step point), the specified items are given out.Fields
id - itemID from database tw_items_list. value - required amount. enchant - enchant level. durability - durability point.Example
"reward_items": [ { "id": 1, "value": 1, "enchant": 1, "durability": 100 } ]
Array required_items Information
Required structure. Upon completion of the dialog with the bot (1 step point), the specified items are will be required depending on the type.Fields
id - itemID from database tw_items_list. value - required amount. enchant - enchant level. durability - durability point. ?type - type of item required. Might make a difference. Show, Pickup, Default. Default value: Default.Example
"required_items": [ { "id": 1, "value": 1, "type": "pickup" } ]
Array defeat_bots Information
Defeat structure. List of required defeat over bots. To complete the step point.Fields
id - botID from database tw_bots_info. value - required amount.Example
"defeat_bots": [ { "id": 1, "value": 10 } ]
Array move_to Information
Move structure. It will take passing dots to complete a step point's.Element
?move_to_completes_quest_step - finish quest step by end move to. Default value: false.Fields
x - position by X. y - position by Y. ?name - sets the common name of the task. In the case of repeated ones, they are stacked. Default value: Demands a bit of action. ?world_id - worldID from database enum_worlds. Default value: world in which the bot is located is set. ?step - is set ordered through required steps, in the unordered case the steps will be ignored. Default value: 1. ?pick_up_item - Pick up an item when reaching a location by action. It's JSON Object Item data ?required_item - Required item for complection. It's JSON Object Item data ?navigator - add a navigator to move to a point. Default value: true. ?cooldown - add timer for cooldown complete. Default value: 0. ?completion_text - send a chat msg to the player upon completion of a point. ?defeat_bot - to create a personalized quest mob zone. But disables pick_up_item, required_item, use_in_chat field. ?interactive - interactivity with the position using the mouse.defeat_bot - structure
- Assistant
Понятно! На основе данной инструкции и примера, я могу помочь создать новый скрипт в формате JSON для квеста. Вот пример квеста, который включает в себя задания по сбору предметов и уничтожению ботов:
{ "reward_items": [ { "id": 101, "value": 1, "enchant": 2, "durability": 150 } ], "required_items": [ { "id": 102, "value": 5, "type": "pickup" }, { "id": 103, "value": 3, "type": "default" } ], "defeat_bots": [ { "id": 10, "value": 4 }, { "id": 12, "value": 2 } ], "move_to": [ { "step": 1, "x": 5000, "y": 6000, "completion_text": "Вы достигли первой цели и видите группу монстров." }, { "step": 2, "x": 5500, "y": 6500, "defeat_bot": { "id": 15, "attribute_power": 500, "attribute_spread": 50 }, "completion_text": "Вы уничтожили монстра!" }, { "step": 3, "x": 5800, "y": 6800, "name": "Собрать редкие травы", "pick_up_item": { "id": 201, "value": 3 }, "completion_text": "Вы собрали редкие травы!" }, { "step": 4, "x": 6000, "y": 7000, "navigator": false, "completion_text": "Вы пришли на следующее место." } ] } - User
нужно сделать такую задачу или похожую на эту "Rescue the missing conjurers and Wood Wailers. 0/5"
- Assistant
Конечно! Давайте создадим задание, основанное на миссии "Спасите пропавших заклинателей и Древесных Вайлеров". Мы составим JSON-структуру, которая будет соответствовать этому квесту.
{ "reward_items": [ { "id": 201, "value": 1, "enchant": 1, "durability": 100 } ], "required_items": [], "defeat_bots": [], "move_to": [ { "step": 1, "x": 1234, "y": 5678, "completion_text": "Вы дошли до лагеря заклинателей." }, { "step": 2, "x": 1250, "y": 5700, "interactive": { "x": 1260, "y": 5720 }, "completion_text": "Вы нашли одного пропавшего заклинателя!" }, { "step": 3, "x": 1300, "y": 5800, "interactive": { "x": 1310, "y": 5820 }, "completion_text": "Вы нашли ещё одного пропавшего заклинателя!" }, { "step": 4, "x": 1350, "y": 5900, "interactive": { "x": 1360, "y": 5920 }, "completion_text": "Вы нашли Древесного Вайлера!" }, { "step": 5, "x": 1400, "y": 6000, "interactive": { "x": 1410, "y": 6020 }, "completion_text": "Вы нашли ещё одного Древесного Вайлера!" }, { "step": 6, "x": 1450, "y": 6100, "interactive": { "x": 1460, "y": 6120 }, "completion_text": "Вы нашли группу пропавших заклинателей и Древесных Вайлеров!" } ], "defeat_bots": [ { "id": 25, "value": 3 } ] }