This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IRON_INGOT: 4 | |
EMERALD: 15 | |
DIAMOND: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ReplicatedStorage = game:GetService("ReplicatedStorage") | |
local HttpService = game:GetService("HttpService") | |
local apiEvent = ReplicatedStorage:WaitForChild("api_event") | |
local function callQuestGeneratorAPI() | |
local url = "https://authdev.xgaming.club/xquest/generate" | |
local data = | |
{ | |
goal = "Player crash landed near a cave and needs to learn to hunt", | |
key = "6mgxg5y2", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"fields": { | |
"noun": { | |
"desc": "Choose the creature to interact with:", | |
"data": [ | |
{ | |
"Bat": "The bats on this plane are way bigger and fierce than the ones on the earth. Their fangs can pierce a giant’s skin easily." | |
}, | |
{ | |
"Spider": "Spiders of this planet are not only bigger, but also more venomous. They have no trouble in defeating Monsters with it." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"type": "object", | |
"properties": { | |
"fields": { | |
"type": "object", | |
"patternProperties": { | |
"^.*$": { | |
"type": "object", | |
"properties": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WHEAT: 3 | |
CARROT: 2 | |
POTATO: 2 | |
BEETROOT: 4 | |
PUMPKIN: 5 | |
MELON: 4 | |
BREAD: 6 | |
APPLE: 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.xgaming.questsample.External; | |
import kong.unirest.HttpResponse; | |
import kong.unirest.JsonNode; | |
import kong.unirest.Unirest; | |
import kong.unirest.UnirestException; | |
import kong.unirest.json.JSONObject; | |
import java.util.List; | |
import java.util.logging.Level; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function callQuestGeneratorAPI() | |
local url = "https://authdev.xgaming.club/xquest/generate" | |
local data = | |
{ | |
goal = "", | |
key = "abcd1234", | |
fields = { | |
}, | |
n = 1, | |
story = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//for bukkit plugins | |
package org.xgaming.questsample.External; | |
import kong.unirest.HttpResponse; | |
import kong.unirest.JsonNode; | |
import kong.unirest.Unirest; | |
import kong.unirest.UnirestException; | |
import kong.unirest.json.JSONObject; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function callQuestGeneratorAPI() | |
local url = "https://authdev.xgaming.club/xquest/generate" | |
local data = | |
{ | |
goal = "The player just crash landed on the plant near a cave. He needs to survive", | |
key = "abcd1234", | |
fields = { | |
"verb", | |
"noun" |