Forged in the foggy heights of the Fallweather Fjords by master blacksmith Grün (b. 2212 KA – d.2284 KA). Tördon means “thunder” in Droban, the native tongue of Reinboldt. The use of maces began in the kingdom age of man when Reinboldt and Rygaard were part of the Granvalden Kingdom. Today, you can find this weapon for sale in some other lands but only the suits of the House of Rygaard wield this formidable weapon.
// Initialization
const serverUrl = "https://q4kxo8ml4b0b.usemoralis.com:2053/server"; //Change serverUrl
const appId = "ZyR5FjsvCuAGhvW4W6S4bCuWFdRV6XfhRZjWS9PZ"; //Change appId
Moralis.start({ serverUrl, appId });
// Authentication
async function login() {
let user = Moralis.User.current();
if (!user) {
user = await Moralis.authenticate({
signingMessage: "Log In",
})
.then(function(user) {
console.log("logged in user:", user);
console.log(user.get("ethAddress"));
})
.catch(function(error) {
console.log(error);
});
}
}
async function logOut() {
await Moralis.User.logOut();
console.log("logged out");
}
async function solveContract() {
//Get the NFTs of the SC Owned by the User:
const contractOne = { chain: "eth", address: user.get('ethAddress'), token_address: "0xA958fd55Be008BE82595939646d37B5Ca4Fe778D" }; //KERGOM OF OLREND MACE CONTRACT
const armorNFTsContractOne = await Moralis.Web3API.account.getNFTsForContract(contractOne);
const contractTwo = { chain: "eth", address: user.get('ethAddress'), token_address: "0x703895bc5c3538a0eFAE736308f76d7bEDf01AfD" }; //GAELINS SONG KOPHER BOW CONTRACT
const armorNFTsContractTwo = await Moralis.Web3API.account.getNFTsForContract(contractTwo);
const contractThree = { chain: "eth", address: user.get('ethAddress'), token_address: "0xea6cca8A0A7A9054e7695f6773476E5FAd43805b" }; //TORDON OF TRIBEORN CONTRACT
const armorNFTsContractThree = await Moralis.Web3API.account.getNFTsForContract(contractThree);
const contractFour = { chain: "eth", address: user.get('ethAddress'), token_address: "0x73C7F078DBc1D961DF33aDa0EF9caC89c7887801" }; //WENOLIN OF SOMANE SWORD CONTRACT
const armorNFTsContractFour = await Moralis.Web3API.account.getNFTsForContract(contractFour);
//Returns an Object with an Array of Owned NFTs
//Gets & Stores the rarity of the all Owned NFTs
var rarityOwnedContractOne = [];
var rarityOwnedContractTwo = [];
var rarityOwnedContractThree = [];
var rarityOwnedContractFour = [];
//String Arrays rarities of all Contracts
//Grabing Values from returned objects & storing them in rarity arrays
for (var i = 0; i < armorNFTsContractOne.result.length; i++) {
rarityOwnedContractOne[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractTwo.result.length; i++) {
rarityOwnedContractTwo[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractThree.result.length; i++) {
rarityOwnedContractThree[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractFour.result.length; i++) {
rarityOwnedContractFour[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
var standardOne = false;
var specialOne = false;
var rareOne = false;
var legendaryOne = false;
var standardTwo = false;
var specialTwo = false;
var rareTwo = false;
var legendaryTwo = false;
var standardThree = false;
var specialThree = false;
var rareThree = false;
var legendaryThree = false;
var standardFour = false;
var specialFour = false;
var rareFour = false;
var legendaryFour = false;
//Giving the User Download Links for their respective rarities (CONFIRM FIRST)
for (var i = 0; i < rarityOwnedContractOne.length; i++) {
if (rarityOwnedContractOne[i] == "Standard") {
standardOne = true;
// https://drive.google.com/drive/folders/1_Jvj9c-tFsXgDbYu9Ne-35buE1-VPb63?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Special") {
//specialOne = true;
// https://drive.google.com/drive/folders/1vXOyL445IKlypbyi7l9GqtSZleZM2DGJ?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Rare") {
// rareOne = true;
// https://drive.google.com/drive/folders/1YpCoqDZcT-rYfUM5boVafPaqUUaHXfWF?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Legendary") {
// legendaryOne = true;
// https://drive.google.com/drive/folders/1UhC1H0VrYR_d3zdppXUnU1ZXM6YPDhVv?usp=sharing
//}
//}
/*
for (var i = 0; i < rarityOwnedContractTwo.length; i++) {
if (rarityOwnedContractTwo[i] == "Standard") {
standardTwo = true;
// https://drive.google.com/drive/folders/1oMsQRJ57382IiBfbXE358fESWWJx-S0-?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Special") {
specialTwo = true;
// https://drive.google.com/drive/folders/1FvKuGgcjUNEusGmjJUslmvDgq84l6wsx?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Rare") {
rareTwo = true;
// https://drive.google.com/drive/folders/1_nz9fdclSuS5tQdOhYx4w1Qv7Jm4w8qM?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Legendary") {
legendaryTwo = true;
// https://drive.google.com/drive/folders/1vVgsJjUO55Gs1AGGTrRVFa7gS3ZdN-Wv?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractThree.length; i++) {
if (rarityOwnedContractThree[i] == "Standard") {
standardThree = true;
// https://drive.google.com/drive/folders/1Sckw2PmHvRaFUOgxcaGmyllteBmBw1bB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Special") {
specialThree = true;
// https://drive.google.com/drive/folders/1EFn2cpQOLZKS4sAelDIppu9NrlkUr5JB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Rare") {
rareThree = true;
// https://drive.google.com/drive/folders/1iucwEJaESbSm7n9oQQnLLWj0_72O5Dkd?usp=sharing
}
if (rarityOwnedContractThree[i] == "Legendary") {
legendaryThree = true;
// https://drive.google.com/drive/folders/1jvQw-e5HO_VlcvpttSHlHQJMU5GtN7Ss?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractFour.length; i++) {
if (rarityOwnedContractFour[i] == "Standard") {
standardFour = true;
// https://drive.google.com/drive/folders/1gHDHFg_j-pfoZd0kwCUYFVXHjNcq1g5c?usp=sharing
}
if (rarityOwnedContractFour[i] == "Special") {
specialFour = true;
// https://drive.google.com/drive/folders/1tUI-H7W0E0JvkASyW5wmtAWrDC-0HGp5?usp=sharing
}
if (rarityOwnedContractFour[i] == "Rare") {
rareFour = true;
// https://drive.google.com/drive/folders/1lmnN-5eqY4LcG5ZVSX3fJ2bUZcT3m4a0?usp=sharing
}
if (rarityOwnedContractFour[i] == "Legendary") {
legendaryFour = true;
// https://drive.google.com/drive/folders/1h2pzBL7jvEJ6Nyx-UegiD3ON0YhaZZYr?usp=sharing
}
} */
//}
document.getElementById("btn-login").onclick = login;
document.getElementById("btn-logout").onclick = logOut;
document.getElementById("btn-download").onclick = solveContract;
console.log(standardOne = true);
console.log(armorNFTsContractOne);
console.log(rarityOwnedContractOne);
//$(true)(function() {
// var r = $('');
//$("body").append("");
//});
Forged in the foggy heights of the Fallweather Fjords by master blacksmith Grün (b. 2212 KA – d.2284 KA). Tördon means “thunder” in Droban, the native tongue of Reinboldt. The use of maces began in the kingdom age of man when Reinboldt and Rygaard were part of the Granvalden Kingdom. Today, you can find this weapon for sale in some other lands but only the suits of the House of Rygaard wield this formidable weapon. The first unique iteration of the Tördon after Rygaard separated from Granvalden. It is named Duraban, after the region Rygaard inhabited for two generations before venturing south. The area is located where the River of Glass forks above the Cliffs of Feldune.
Forged in the foggy heights of the Fallweather Fjords by master blacksmith Grün (b. 2212 KA – d.2284 KA). Tördon means “thunder” in Droban, the native tongue of Reinboldt. The use of maces began in the kingdom age of man when Reinboldt and Rygaard were part of the Granvalden Kingdom. Today, you can find this weapon for sale in some other lands but only the suits of the House of Rygaard wield this formidable weapon. Around 500 years after the Age of Kingdoms when Rygaard had inhabited Adon they began to create their own version of the Tördon mace in their capital city of Falabørn . What you see here is the mace used by the Falabørn Guard.
Forged in the foggy heights of the Fallweather Fjords by master blacksmith Grün (b. 2212 KA – d.2284 KA). Tördon means “thunder” in Droban, the native tongue of Reinboldt. The use of maces began in the kingdom age of man when Reinboldt and Rygaard were part of the Granvalden Kingdom. Today, you can find this weapon for sale in some other lands but only the suits of the House of Rygaard wield this formidable weapon. When Rygaard began to separate from the Granvalden Kingdom they were in desperate need of leadership.Tribeorn united Rygaard and pressed through to the Lower Lands and established the roads and guard posts which serve as a large source of revenue for Rygaard to this day. Eventually, they would venture as far as the continent of Adon.Though Tribeorn was not alive to make it to what today is the seat of the Rygaard rule, it was his leadership that made it possible.
The Kërgom was developed around the time the Granvalden Kingdom began to fracture. As far as we know, it was the first, and remains the only mace that both bludgeons and cleaves in the Upper Lands. While considered to be unseemly by most it has become a pillar among the suits of Reinboldt.
// Initialization
const serverUrl = "https://q4kxo8ml4b0b.usemoralis.com:2053/server"; //Change serverUrl
const appId = "ZyR5FjsvCuAGhvW4W6S4bCuWFdRV6XfhRZjWS9PZ"; //Change appId
Moralis.start({ serverUrl, appId });
// Authentication
async function login() {
let user = Moralis.User.current();
if (!user) {
user = await Moralis.authenticate({
signingMessage: "Log In",
})
.then(function(user) {
console.log("logged in user:", user);
console.log(user.get("ethAddress"));
})
.catch(function(error) {
console.log(error);
});
}
}
async function logOut() {
await Moralis.User.logOut();
console.log("logged out");
}
async function solveContract() {
//Get the NFTs of the SC Owned by the User:
const contractOne = { chain: "eth", address: user.get('ethAddress'), token_address: "0xA958fd55Be008BE82595939646d37B5Ca4Fe778D" }; //KERGOM OF OLREND MACE CONTRACT
const armorNFTsContractOne = await Moralis.Web3API.account.getNFTsForContract(contractOne);
const contractTwo = { chain: "eth", address: user.get('ethAddress'), token_address: "0x703895bc5c3538a0eFAE736308f76d7bEDf01AfD" }; //GAELINS SONG KOPHER BOW CONTRACT
const armorNFTsContractTwo = await Moralis.Web3API.account.getNFTsForContract(contractTwo);
const contractThree = { chain: "eth", address: user.get('ethAddress'), token_address: "0xea6cca8A0A7A9054e7695f6773476E5FAd43805b" }; //TORDON OF TRIBEORN CONTRACT
const armorNFTsContractThree = await Moralis.Web3API.account.getNFTsForContract(contractThree);
const contractFour = { chain: "eth", address: user.get('ethAddress'), token_address: "0x73C7F078DBc1D961DF33aDa0EF9caC89c7887801" }; //WENOLIN OF SOMANE SWORD CONTRACT
const armorNFTsContractFour = await Moralis.Web3API.account.getNFTsForContract(contractFour);
//Returns an Object with an Array of Owned NFTs
//Gets & Stores the rarity of the all Owned NFTs
var rarityOwnedContractOne = [];
var rarityOwnedContractTwo = [];
var rarityOwnedContractThree = [];
var rarityOwnedContractFour = [];
//String Arrays rarities of all Contracts
//Grabing Values from returned objects & storing them in rarity arrays
for (var i = 0; i < armorNFTsContractOne.result.length; i++) {
rarityOwnedContractOne[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractTwo.result.length; i++) {
rarityOwnedContractTwo[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractThree.result.length; i++) {
rarityOwnedContractThree[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractFour.result.length; i++) {
rarityOwnedContractFour[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
var standardOne = false;
var specialOne = false;
var rareOne = false;
var legendaryOne = false;
var standardTwo = false;
var specialTwo = false;
var rareTwo = false;
var legendaryTwo = false;
var standardThree = false;
var specialThree = false;
var rareThree = false;
var legendaryThree = false;
var standardFour = false;
var specialFour = false;
var rareFour = false;
var legendaryFour = false;
//Giving the User Download Links for their respective rarities (CONFIRM FIRST)
for (var i = 0; i < rarityOwnedContractOne.length; i++) {
if (rarityOwnedContractOne[i] == "Standard") {
standardOne = true;
// https://drive.google.com/drive/folders/1_Jvj9c-tFsXgDbYu9Ne-35buE1-VPb63?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Special") {
//specialOne = true;
// https://drive.google.com/drive/folders/1vXOyL445IKlypbyi7l9GqtSZleZM2DGJ?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Rare") {
// rareOne = true;
// https://drive.google.com/drive/folders/1YpCoqDZcT-rYfUM5boVafPaqUUaHXfWF?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Legendary") {
// legendaryOne = true;
// https://drive.google.com/drive/folders/1UhC1H0VrYR_d3zdppXUnU1ZXM6YPDhVv?usp=sharing
//}
//}
/*
for (var i = 0; i < rarityOwnedContractTwo.length; i++) {
if (rarityOwnedContractTwo[i] == "Standard") {
standardTwo = true;
// https://drive.google.com/drive/folders/1oMsQRJ57382IiBfbXE358fESWWJx-S0-?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Special") {
specialTwo = true;
// https://drive.google.com/drive/folders/1FvKuGgcjUNEusGmjJUslmvDgq84l6wsx?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Rare") {
rareTwo = true;
// https://drive.google.com/drive/folders/1_nz9fdclSuS5tQdOhYx4w1Qv7Jm4w8qM?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Legendary") {
legendaryTwo = true;
// https://drive.google.com/drive/folders/1vVgsJjUO55Gs1AGGTrRVFa7gS3ZdN-Wv?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractThree.length; i++) {
if (rarityOwnedContractThree[i] == "Standard") {
standardThree = true;
// https://drive.google.com/drive/folders/1Sckw2PmHvRaFUOgxcaGmyllteBmBw1bB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Special") {
specialThree = true;
// https://drive.google.com/drive/folders/1EFn2cpQOLZKS4sAelDIppu9NrlkUr5JB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Rare") {
rareThree = true;
// https://drive.google.com/drive/folders/1iucwEJaESbSm7n9oQQnLLWj0_72O5Dkd?usp=sharing
}
if (rarityOwnedContractThree[i] == "Legendary") {
legendaryThree = true;
// https://drive.google.com/drive/folders/1jvQw-e5HO_VlcvpttSHlHQJMU5GtN7Ss?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractFour.length; i++) {
if (rarityOwnedContractFour[i] == "Standard") {
standardFour = true;
// https://drive.google.com/drive/folders/1gHDHFg_j-pfoZd0kwCUYFVXHjNcq1g5c?usp=sharing
}
if (rarityOwnedContractFour[i] == "Special") {
specialFour = true;
// https://drive.google.com/drive/folders/1tUI-H7W0E0JvkASyW5wmtAWrDC-0HGp5?usp=sharing
}
if (rarityOwnedContractFour[i] == "Rare") {
rareFour = true;
// https://drive.google.com/drive/folders/1lmnN-5eqY4LcG5ZVSX3fJ2bUZcT3m4a0?usp=sharing
}
if (rarityOwnedContractFour[i] == "Legendary") {
legendaryFour = true;
// https://drive.google.com/drive/folders/1h2pzBL7jvEJ6Nyx-UegiD3ON0YhaZZYr?usp=sharing
}
} */
//}
document.getElementById("btn-login").onclick = login;
document.getElementById("btn-logout").onclick = logOut;
document.getElementById("btn-download").onclick = solveContract;
console.log(standardOne = true);
console.log(armorNFTsContractOne);
console.log(rarityOwnedContractOne);
//$(true)(function() {
// var r = $('');
//$("body").append("");
//});
The Kërgom was developed around the time the Granvalden Kingdom began to fracture. As far as we know, it was the first, and remains the only mace that both bludgeons and cleaves in the Upper Lands. While considered to be unseemly by most it has become a pillar among the suits of Reinboldt. Ergond was the first Suit to use the vaunted mace in battle during the Battle of Ehador (4214 PA). Though the House of Reinboldt was overextended and ultimately lost, his individual dominance was remembered and ultimately led to Kërgom's usage as the primary mace among the suits in Reinboldt.
// Initialization
const serverUrl = "https://q4kxo8ml4b0b.usemoralis.com:2053/server"; //Change serverUrl
const appId = "ZyR5FjsvCuAGhvW4W6S4bCuWFdRV6XfhRZjWS9PZ"; //Change appId
Moralis.start({ serverUrl, appId });
// Authentication
async function login() {
let user = Moralis.User.current();
if (!user) {
user = await Moralis.authenticate({
signingMessage: "Log In",
})
.then(function(user) {
console.log("logged in user:", user);
console.log(user.get("ethAddress"));
})
.catch(function(error) {
console.log(error);
});
}
}
async function logOut() {
await Moralis.User.logOut();
console.log("logged out");
}
async function solveContract() {
//Get the NFTs of the SC Owned by the User:
const contractOne = { chain: "eth", address: user.get('ethAddress'), token_address: "0xA958fd55Be008BE82595939646d37B5Ca4Fe778D" }; //KERGOM OF OLREND MACE CONTRACT
const armorNFTsContractOne = await Moralis.Web3API.account.getNFTsForContract(contractOne);
const contractTwo = { chain: "eth", address: user.get('ethAddress'), token_address: "0x703895bc5c3538a0eFAE736308f76d7bEDf01AfD" }; //GAELINS SONG KOPHER BOW CONTRACT
const armorNFTsContractTwo = await Moralis.Web3API.account.getNFTsForContract(contractTwo);
const contractThree = { chain: "eth", address: user.get('ethAddress'), token_address: "0xea6cca8A0A7A9054e7695f6773476E5FAd43805b" }; //TORDON OF TRIBEORN CONTRACT
const armorNFTsContractThree = await Moralis.Web3API.account.getNFTsForContract(contractThree);
const contractFour = { chain: "eth", address: user.get('ethAddress'), token_address: "0x73C7F078DBc1D961DF33aDa0EF9caC89c7887801" }; //WENOLIN OF SOMANE SWORD CONTRACT
const armorNFTsContractFour = await Moralis.Web3API.account.getNFTsForContract(contractFour);
//Returns an Object with an Array of Owned NFTs
//Gets & Stores the rarity of the all Owned NFTs
var rarityOwnedContractOne = [];
var rarityOwnedContractTwo = [];
var rarityOwnedContractThree = [];
var rarityOwnedContractFour = [];
//String Arrays rarities of all Contracts
//Grabing Values from returned objects & storing them in rarity arrays
for (var i = 0; i < armorNFTsContractOne.result.length; i++) {
rarityOwnedContractOne[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractTwo.result.length; i++) {
rarityOwnedContractTwo[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractThree.result.length; i++) {
rarityOwnedContractThree[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractFour.result.length; i++) {
rarityOwnedContractFour[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
var standardOne = false;
var specialOne = false;
var rareOne = false;
var legendaryOne = false;
var standardTwo = false;
var specialTwo = false;
var rareTwo = false;
var legendaryTwo = false;
var standardThree = false;
var specialThree = false;
var rareThree = false;
var legendaryThree = false;
var standardFour = false;
var specialFour = false;
var rareFour = false;
var legendaryFour = false;
//Giving the User Download Links for their respective rarities (CONFIRM FIRST)
for (var i = 0; i < rarityOwnedContractOne.length; i++) {
if (rarityOwnedContractOne[i] == "Standard") {
standardOne = true;
// https://drive.google.com/drive/folders/1_Jvj9c-tFsXgDbYu9Ne-35buE1-VPb63?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Special") {
//specialOne = true;
// https://drive.google.com/drive/folders/1vXOyL445IKlypbyi7l9GqtSZleZM2DGJ?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Rare") {
// rareOne = true;
// https://drive.google.com/drive/folders/1YpCoqDZcT-rYfUM5boVafPaqUUaHXfWF?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Legendary") {
// legendaryOne = true;
// https://drive.google.com/drive/folders/1UhC1H0VrYR_d3zdppXUnU1ZXM6YPDhVv?usp=sharing
//}
//}
/*
for (var i = 0; i < rarityOwnedContractTwo.length; i++) {
if (rarityOwnedContractTwo[i] == "Standard") {
standardTwo = true;
// https://drive.google.com/drive/folders/1oMsQRJ57382IiBfbXE358fESWWJx-S0-?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Special") {
specialTwo = true;
// https://drive.google.com/drive/folders/1FvKuGgcjUNEusGmjJUslmvDgq84l6wsx?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Rare") {
rareTwo = true;
// https://drive.google.com/drive/folders/1_nz9fdclSuS5tQdOhYx4w1Qv7Jm4w8qM?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Legendary") {
legendaryTwo = true;
// https://drive.google.com/drive/folders/1vVgsJjUO55Gs1AGGTrRVFa7gS3ZdN-Wv?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractThree.length; i++) {
if (rarityOwnedContractThree[i] == "Standard") {
standardThree = true;
// https://drive.google.com/drive/folders/1Sckw2PmHvRaFUOgxcaGmyllteBmBw1bB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Special") {
specialThree = true;
// https://drive.google.com/drive/folders/1EFn2cpQOLZKS4sAelDIppu9NrlkUr5JB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Rare") {
rareThree = true;
// https://drive.google.com/drive/folders/1iucwEJaESbSm7n9oQQnLLWj0_72O5Dkd?usp=sharing
}
if (rarityOwnedContractThree[i] == "Legendary") {
legendaryThree = true;
// https://drive.google.com/drive/folders/1jvQw-e5HO_VlcvpttSHlHQJMU5GtN7Ss?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractFour.length; i++) {
if (rarityOwnedContractFour[i] == "Standard") {
standardFour = true;
// https://drive.google.com/drive/folders/1gHDHFg_j-pfoZd0kwCUYFVXHjNcq1g5c?usp=sharing
}
if (rarityOwnedContractFour[i] == "Special") {
specialFour = true;
// https://drive.google.com/drive/folders/1tUI-H7W0E0JvkASyW5wmtAWrDC-0HGp5?usp=sharing
}
if (rarityOwnedContractFour[i] == "Rare") {
rareFour = true;
// https://drive.google.com/drive/folders/1lmnN-5eqY4LcG5ZVSX3fJ2bUZcT3m4a0?usp=sharing
}
if (rarityOwnedContractFour[i] == "Legendary") {
legendaryFour = true;
// https://drive.google.com/drive/folders/1h2pzBL7jvEJ6Nyx-UegiD3ON0YhaZZYr?usp=sharing
}
} */
//}
document.getElementById("btn-login").onclick = login;
document.getElementById("btn-logout").onclick = logOut;
document.getElementById("btn-download").onclick = solveContract;
console.log(standardOne = true);
console.log(armorNFTsContractOne);
console.log(rarityOwnedContractOne);
//$(true)(function() {
// var r = $('');
//$("body").append("");
//});
The Kërgom was developed around the time the Granvalden Kingdom began to fracture. As far as we know, it was the first, and remains the only mace that both bludgeons and cleaves in the Upper Lands. While considered to be unseemly by most it has become a pillar among the suits of Reinboldt. Named after the first ruler of the House of Reinboldt after the dissolution of the Granvalden Kingdom. His reign lasted from 4033 PA to 4061 PA and covered what today is known as Aldegar, Seven Cliffs and the Fallweather Fjords.
// Initialization
const serverUrl = "https://q4kxo8ml4b0b.usemoralis.com:2053/server"; //Change serverUrl
const appId = "ZyR5FjsvCuAGhvW4W6S4bCuWFdRV6XfhRZjWS9PZ"; //Change appId
Moralis.start({ serverUrl, appId });
// Authentication
async function login() {
let user = Moralis.User.current();
if (!user) {
user = await Moralis.authenticate({
signingMessage: "Log In",
})
.then(function(user) {
console.log("logged in user:", user);
console.log(user.get("ethAddress"));
})
.catch(function(error) {
console.log(error);
});
}
}
async function logOut() {
await Moralis.User.logOut();
console.log("logged out");
}
async function solveContract() {
//Get the NFTs of the SC Owned by the User:
const contractOne = { chain: "eth", address: user.get('ethAddress'), token_address: "0xA958fd55Be008BE82595939646d37B5Ca4Fe778D" }; //KERGOM OF OLREND MACE CONTRACT
const armorNFTsContractOne = await Moralis.Web3API.account.getNFTsForContract(contractOne);
const contractTwo = { chain: "eth", address: user.get('ethAddress'), token_address: "0x703895bc5c3538a0eFAE736308f76d7bEDf01AfD" }; //GAELINS SONG KOPHER BOW CONTRACT
const armorNFTsContractTwo = await Moralis.Web3API.account.getNFTsForContract(contractTwo);
const contractThree = { chain: "eth", address: user.get('ethAddress'), token_address: "0xea6cca8A0A7A9054e7695f6773476E5FAd43805b" }; //TORDON OF TRIBEORN CONTRACT
const armorNFTsContractThree = await Moralis.Web3API.account.getNFTsForContract(contractThree);
const contractFour = { chain: "eth", address: user.get('ethAddress'), token_address: "0x73C7F078DBc1D961DF33aDa0EF9caC89c7887801" }; //WENOLIN OF SOMANE SWORD CONTRACT
const armorNFTsContractFour = await Moralis.Web3API.account.getNFTsForContract(contractFour);
//Returns an Object with an Array of Owned NFTs
//Gets & Stores the rarity of the all Owned NFTs
var rarityOwnedContractOne = [];
var rarityOwnedContractTwo = [];
var rarityOwnedContractThree = [];
var rarityOwnedContractFour = [];
//String Arrays rarities of all Contracts
//Grabing Values from returned objects & storing them in rarity arrays
for (var i = 0; i < armorNFTsContractOne.result.length; i++) {
rarityOwnedContractOne[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractTwo.result.length; i++) {
rarityOwnedContractTwo[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractThree.result.length; i++) {
rarityOwnedContractThree[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractFour.result.length; i++) {
rarityOwnedContractFour[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
var standardOne = false;
var specialOne = false;
var rareOne = false;
var legendaryOne = false;
var standardTwo = false;
var specialTwo = false;
var rareTwo = false;
var legendaryTwo = false;
var standardThree = false;
var specialThree = false;
var rareThree = false;
var legendaryThree = false;
var standardFour = false;
var specialFour = false;
var rareFour = false;
var legendaryFour = false;
//Giving the User Download Links for their respective rarities (CONFIRM FIRST)
for (var i = 0; i < rarityOwnedContractOne.length; i++) {
if (rarityOwnedContractOne[i] == "Standard") {
standardOne = true;
// https://drive.google.com/drive/folders/1_Jvj9c-tFsXgDbYu9Ne-35buE1-VPb63?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Special") {
//specialOne = true;
// https://drive.google.com/drive/folders/1vXOyL445IKlypbyi7l9GqtSZleZM2DGJ?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Rare") {
// rareOne = true;
// https://drive.google.com/drive/folders/1YpCoqDZcT-rYfUM5boVafPaqUUaHXfWF?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Legendary") {
// legendaryOne = true;
// https://drive.google.com/drive/folders/1UhC1H0VrYR_d3zdppXUnU1ZXM6YPDhVv?usp=sharing
//}
//}
/*
for (var i = 0; i < rarityOwnedContractTwo.length; i++) {
if (rarityOwnedContractTwo[i] == "Standard") {
standardTwo = true;
// https://drive.google.com/drive/folders/1oMsQRJ57382IiBfbXE358fESWWJx-S0-?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Special") {
specialTwo = true;
// https://drive.google.com/drive/folders/1FvKuGgcjUNEusGmjJUslmvDgq84l6wsx?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Rare") {
rareTwo = true;
// https://drive.google.com/drive/folders/1_nz9fdclSuS5tQdOhYx4w1Qv7Jm4w8qM?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Legendary") {
legendaryTwo = true;
// https://drive.google.com/drive/folders/1vVgsJjUO55Gs1AGGTrRVFa7gS3ZdN-Wv?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractThree.length; i++) {
if (rarityOwnedContractThree[i] == "Standard") {
standardThree = true;
// https://drive.google.com/drive/folders/1Sckw2PmHvRaFUOgxcaGmyllteBmBw1bB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Special") {
specialThree = true;
// https://drive.google.com/drive/folders/1EFn2cpQOLZKS4sAelDIppu9NrlkUr5JB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Rare") {
rareThree = true;
// https://drive.google.com/drive/folders/1iucwEJaESbSm7n9oQQnLLWj0_72O5Dkd?usp=sharing
}
if (rarityOwnedContractThree[i] == "Legendary") {
legendaryThree = true;
// https://drive.google.com/drive/folders/1jvQw-e5HO_VlcvpttSHlHQJMU5GtN7Ss?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractFour.length; i++) {
if (rarityOwnedContractFour[i] == "Standard") {
standardFour = true;
// https://drive.google.com/drive/folders/1gHDHFg_j-pfoZd0kwCUYFVXHjNcq1g5c?usp=sharing
}
if (rarityOwnedContractFour[i] == "Special") {
specialFour = true;
// https://drive.google.com/drive/folders/1tUI-H7W0E0JvkASyW5wmtAWrDC-0HGp5?usp=sharing
}
if (rarityOwnedContractFour[i] == "Rare") {
rareFour = true;
// https://drive.google.com/drive/folders/1lmnN-5eqY4LcG5ZVSX3fJ2bUZcT3m4a0?usp=sharing
}
if (rarityOwnedContractFour[i] == "Legendary") {
legendaryFour = true;
// https://drive.google.com/drive/folders/1h2pzBL7jvEJ6Nyx-UegiD3ON0YhaZZYr?usp=sharing
}
} */
//}
document.getElementById("btn-login").onclick = login;
document.getElementById("btn-logout").onclick = logOut;
document.getElementById("btn-download").onclick = solveContract;
console.log(standardOne = true);
console.log(armorNFTsContractOne);
console.log(rarityOwnedContractOne);
//$(true)(function() {
// var r = $('');
//$("body").append("");
//});
The Kërgom was developed around the time the Granvalden Kingdom began to fracture. As far as we know, it was the first, and remains the only mace that both bludgeons and cleaves in the Upper Lands. While considered to be unseemly by most it has become a pillar among the suits of Reinboldt. Olrend was one of the first suits of Reinboldt during the early years of the fracturing. He was a fierce warrior but most remembered for diffusing the decades long war with the House of Eagaar over the land near the White Coast which allowed Reinboldt to live in peace for nearly two centuries.
// Initialization
const serverUrl = "https://q4kxo8ml4b0b.usemoralis.com:2053/server"; //Change serverUrl
const appId = "ZyR5FjsvCuAGhvW4W6S4bCuWFdRV6XfhRZjWS9PZ"; //Change appId
Moralis.start({ serverUrl, appId });
// Authentication
async function login() {
let user = Moralis.User.current();
if (!user) {
user = await Moralis.authenticate({
signingMessage: "Log In",
})
.then(function(user) {
console.log("logged in user:", user);
console.log(user.get("ethAddress"));
})
.catch(function(error) {
console.log(error);
});
}
}
async function logOut() {
await Moralis.User.logOut();
console.log("logged out");
}
async function solveContract() {
//Get the NFTs of the SC Owned by the User:
const contractOne = { chain: "eth", address: user.get('ethAddress'), token_address: "0xA958fd55Be008BE82595939646d37B5Ca4Fe778D" }; //KERGOM OF OLREND MACE CONTRACT
const armorNFTsContractOne = await Moralis.Web3API.account.getNFTsForContract(contractOne);
const contractTwo = { chain: "eth", address: user.get('ethAddress'), token_address: "0x703895bc5c3538a0eFAE736308f76d7bEDf01AfD" }; //GAELINS SONG KOPHER BOW CONTRACT
const armorNFTsContractTwo = await Moralis.Web3API.account.getNFTsForContract(contractTwo);
const contractThree = { chain: "eth", address: user.get('ethAddress'), token_address: "0xea6cca8A0A7A9054e7695f6773476E5FAd43805b" }; //TORDON OF TRIBEORN CONTRACT
const armorNFTsContractThree = await Moralis.Web3API.account.getNFTsForContract(contractThree);
const contractFour = { chain: "eth", address: user.get('ethAddress'), token_address: "0x73C7F078DBc1D961DF33aDa0EF9caC89c7887801" }; //WENOLIN OF SOMANE SWORD CONTRACT
const armorNFTsContractFour = await Moralis.Web3API.account.getNFTsForContract(contractFour);
//Returns an Object with an Array of Owned NFTs
//Gets & Stores the rarity of the all Owned NFTs
var rarityOwnedContractOne = [];
var rarityOwnedContractTwo = [];
var rarityOwnedContractThree = [];
var rarityOwnedContractFour = [];
//String Arrays rarities of all Contracts
//Grabing Values from returned objects & storing them in rarity arrays
for (var i = 0; i < armorNFTsContractOne.result.length; i++) {
rarityOwnedContractOne[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractTwo.result.length; i++) {
rarityOwnedContractTwo[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractThree.result.length; i++) {
rarityOwnedContractThree[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractFour.result.length; i++) {
rarityOwnedContractFour[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
var standardOne = false;
var specialOne = false;
var rareOne = false;
var legendaryOne = false;
var standardTwo = false;
var specialTwo = false;
var rareTwo = false;
var legendaryTwo = false;
var standardThree = false;
var specialThree = false;
var rareThree = false;
var legendaryThree = false;
var standardFour = false;
var specialFour = false;
var rareFour = false;
var legendaryFour = false;
//Giving the User Download Links for their respective rarities (CONFIRM FIRST)
for (var i = 0; i < rarityOwnedContractOne.length; i++) {
if (rarityOwnedContractOne[i] == "Standard") {
standardOne = true;
// https://drive.google.com/drive/folders/1_Jvj9c-tFsXgDbYu9Ne-35buE1-VPb63?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Special") {
//specialOne = true;
// https://drive.google.com/drive/folders/1vXOyL445IKlypbyi7l9GqtSZleZM2DGJ?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Rare") {
// rareOne = true;
// https://drive.google.com/drive/folders/1YpCoqDZcT-rYfUM5boVafPaqUUaHXfWF?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Legendary") {
// legendaryOne = true;
// https://drive.google.com/drive/folders/1UhC1H0VrYR_d3zdppXUnU1ZXM6YPDhVv?usp=sharing
//}
//}
/*
for (var i = 0; i < rarityOwnedContractTwo.length; i++) {
if (rarityOwnedContractTwo[i] == "Standard") {
standardTwo = true;
// https://drive.google.com/drive/folders/1oMsQRJ57382IiBfbXE358fESWWJx-S0-?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Special") {
specialTwo = true;
// https://drive.google.com/drive/folders/1FvKuGgcjUNEusGmjJUslmvDgq84l6wsx?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Rare") {
rareTwo = true;
// https://drive.google.com/drive/folders/1_nz9fdclSuS5tQdOhYx4w1Qv7Jm4w8qM?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Legendary") {
legendaryTwo = true;
// https://drive.google.com/drive/folders/1vVgsJjUO55Gs1AGGTrRVFa7gS3ZdN-Wv?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractThree.length; i++) {
if (rarityOwnedContractThree[i] == "Standard") {
standardThree = true;
// https://drive.google.com/drive/folders/1Sckw2PmHvRaFUOgxcaGmyllteBmBw1bB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Special") {
specialThree = true;
// https://drive.google.com/drive/folders/1EFn2cpQOLZKS4sAelDIppu9NrlkUr5JB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Rare") {
rareThree = true;
// https://drive.google.com/drive/folders/1iucwEJaESbSm7n9oQQnLLWj0_72O5Dkd?usp=sharing
}
if (rarityOwnedContractThree[i] == "Legendary") {
legendaryThree = true;
// https://drive.google.com/drive/folders/1jvQw-e5HO_VlcvpttSHlHQJMU5GtN7Ss?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractFour.length; i++) {
if (rarityOwnedContractFour[i] == "Standard") {
standardFour = true;
// https://drive.google.com/drive/folders/1gHDHFg_j-pfoZd0kwCUYFVXHjNcq1g5c?usp=sharing
}
if (rarityOwnedContractFour[i] == "Special") {
specialFour = true;
// https://drive.google.com/drive/folders/1tUI-H7W0E0JvkASyW5wmtAWrDC-0HGp5?usp=sharing
}
if (rarityOwnedContractFour[i] == "Rare") {
rareFour = true;
// https://drive.google.com/drive/folders/1lmnN-5eqY4LcG5ZVSX3fJ2bUZcT3m4a0?usp=sharing
}
if (rarityOwnedContractFour[i] == "Legendary") {
legendaryFour = true;
// https://drive.google.com/drive/folders/1h2pzBL7jvEJ6Nyx-UegiD3ON0YhaZZYr?usp=sharing
}
} */
//}
document.getElementById("btn-login").onclick = login;
document.getElementById("btn-logout").onclick = logOut;
document.getElementById("btn-download").onclick = solveContract;
console.log(standardOne = true);
console.log(armorNFTsContractOne);
console.log(rarityOwnedContractOne);
//$(true)(function() {
// var r = $('');
//$("body").append("");
//});
The Kophera tree is only found from Gaelin's Pass up to the Howling Moors. It is used to make the most coveted bows in all The Upper Land. The strength and bend of kopher wood allows for an accuracy at distance which cannot be matched by any other material.
// Initialization
const serverUrl = "https://q4kxo8ml4b0b.usemoralis.com:2053/server"; //Change serverUrl
const appId = "ZyR5FjsvCuAGhvW4W6S4bCuWFdRV6XfhRZjWS9PZ"; //Change appId
Moralis.start({ serverUrl, appId });
// Authentication
async function login() {
let user = Moralis.User.current();
if (!user) {
user = await Moralis.authenticate({
signingMessage: "Log In",
})
.then(function(user) {
console.log("logged in user:", user);
console.log(user.get("ethAddress"));
})
.catch(function(error) {
console.log(error);
});
}
}
async function logOut() {
await Moralis.User.logOut();
console.log("logged out");
}
async function solveContract() {
//Get the NFTs of the SC Owned by the User:
const contractOne = { chain: "eth", address: user.get('ethAddress'), token_address: "0xA958fd55Be008BE82595939646d37B5Ca4Fe778D" }; //KERGOM OF OLREND MACE CONTRACT
const armorNFTsContractOne = await Moralis.Web3API.account.getNFTsForContract(contractOne);
const contractTwo = { chain: "eth", address: user.get('ethAddress'), token_address: "0x703895bc5c3538a0eFAE736308f76d7bEDf01AfD" }; //GAELINS SONG KOPHER BOW CONTRACT
const armorNFTsContractTwo = await Moralis.Web3API.account.getNFTsForContract(contractTwo);
const contractThree = { chain: "eth", address: user.get('ethAddress'), token_address: "0xea6cca8A0A7A9054e7695f6773476E5FAd43805b" }; //TORDON OF TRIBEORN CONTRACT
const armorNFTsContractThree = await Moralis.Web3API.account.getNFTsForContract(contractThree);
const contractFour = { chain: "eth", address: user.get('ethAddress'), token_address: "0x73C7F078DBc1D961DF33aDa0EF9caC89c7887801" }; //WENOLIN OF SOMANE SWORD CONTRACT
const armorNFTsContractFour = await Moralis.Web3API.account.getNFTsForContract(contractFour);
//Returns an Object with an Array of Owned NFTs
//Gets & Stores the rarity of the all Owned NFTs
var rarityOwnedContractOne = [];
var rarityOwnedContractTwo = [];
var rarityOwnedContractThree = [];
var rarityOwnedContractFour = [];
//String Arrays rarities of all Contracts
//Grabing Values from returned objects & storing them in rarity arrays
for (var i = 0; i < armorNFTsContractOne.result.length; i++) {
rarityOwnedContractOne[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractTwo.result.length; i++) {
rarityOwnedContractTwo[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractThree.result.length; i++) {
rarityOwnedContractThree[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractFour.result.length; i++) {
rarityOwnedContractFour[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
var standardOne = false;
var specialOne = false;
var rareOne = false;
var legendaryOne = false;
var standardTwo = false;
var specialTwo = false;
var rareTwo = false;
var legendaryTwo = false;
var standardThree = false;
var specialThree = false;
var rareThree = false;
var legendaryThree = false;
var standardFour = false;
var specialFour = false;
var rareFour = false;
var legendaryFour = false;
//Giving the User Download Links for their respective rarities (CONFIRM FIRST)
for (var i = 0; i < rarityOwnedContractOne.length; i++) {
if (rarityOwnedContractOne[i] == "Standard") {
standardOne = true;
// https://drive.google.com/drive/folders/1_Jvj9c-tFsXgDbYu9Ne-35buE1-VPb63?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Special") {
//specialOne = true;
// https://drive.google.com/drive/folders/1vXOyL445IKlypbyi7l9GqtSZleZM2DGJ?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Rare") {
// rareOne = true;
// https://drive.google.com/drive/folders/1YpCoqDZcT-rYfUM5boVafPaqUUaHXfWF?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Legendary") {
// legendaryOne = true;
// https://drive.google.com/drive/folders/1UhC1H0VrYR_d3zdppXUnU1ZXM6YPDhVv?usp=sharing
//}
//}
/*
for (var i = 0; i < rarityOwnedContractTwo.length; i++) {
if (rarityOwnedContractTwo[i] == "Standard") {
standardTwo = true;
// https://drive.google.com/drive/folders/1oMsQRJ57382IiBfbXE358fESWWJx-S0-?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Special") {
specialTwo = true;
// https://drive.google.com/drive/folders/1FvKuGgcjUNEusGmjJUslmvDgq84l6wsx?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Rare") {
rareTwo = true;
// https://drive.google.com/drive/folders/1_nz9fdclSuS5tQdOhYx4w1Qv7Jm4w8qM?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Legendary") {
legendaryTwo = true;
// https://drive.google.com/drive/folders/1vVgsJjUO55Gs1AGGTrRVFa7gS3ZdN-Wv?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractThree.length; i++) {
if (rarityOwnedContractThree[i] == "Standard") {
standardThree = true;
// https://drive.google.com/drive/folders/1Sckw2PmHvRaFUOgxcaGmyllteBmBw1bB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Special") {
specialThree = true;
// https://drive.google.com/drive/folders/1EFn2cpQOLZKS4sAelDIppu9NrlkUr5JB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Rare") {
rareThree = true;
// https://drive.google.com/drive/folders/1iucwEJaESbSm7n9oQQnLLWj0_72O5Dkd?usp=sharing
}
if (rarityOwnedContractThree[i] == "Legendary") {
legendaryThree = true;
// https://drive.google.com/drive/folders/1jvQw-e5HO_VlcvpttSHlHQJMU5GtN7Ss?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractFour.length; i++) {
if (rarityOwnedContractFour[i] == "Standard") {
standardFour = true;
// https://drive.google.com/drive/folders/1gHDHFg_j-pfoZd0kwCUYFVXHjNcq1g5c?usp=sharing
}
if (rarityOwnedContractFour[i] == "Special") {
specialFour = true;
// https://drive.google.com/drive/folders/1tUI-H7W0E0JvkASyW5wmtAWrDC-0HGp5?usp=sharing
}
if (rarityOwnedContractFour[i] == "Rare") {
rareFour = true;
// https://drive.google.com/drive/folders/1lmnN-5eqY4LcG5ZVSX3fJ2bUZcT3m4a0?usp=sharing
}
if (rarityOwnedContractFour[i] == "Legendary") {
legendaryFour = true;
// https://drive.google.com/drive/folders/1h2pzBL7jvEJ6Nyx-UegiD3ON0YhaZZYr?usp=sharing
}
} */
//}
document.getElementById("btn-login").onclick = login;
document.getElementById("btn-logout").onclick = logOut;
document.getElementById("btn-download").onclick = solveContract;
console.log(standardOne = true);
console.log(armorNFTsContractOne);
console.log(rarityOwnedContractOne);
//$(true)(function() {
// var r = $('');
//$("body").append("");
//});
The Kophera tree is only found from Gaelin's Pass up to the Howling Moors. It is used to make the most coveted bows in all The Upper Land. The strength and bend of kopher wood allows for an accuracy at distance which cannot be matched by any other material. The Riders of the White Coast also known as The Ivory Riders of the North or simply the White Riders created this version of the kopher bow upon the founding of Marimor. Purely aesthetic, these enchanting bows are meant to encompass the allure of Marimor and the White Coast. The bow was given the name “white wind” during the attempted raid of Marimor in 1999 FA, just years after its founding, when the men of Braelin lay siege. Under the cover of night, the Riders of the White Coast, only 500 strong, flanked the nearly 10,000 men laying waste to their advances. The men who escaped with their lives said, “it was as though a white wind howled over us.”
// Initialization
const serverUrl = "https://q4kxo8ml4b0b.usemoralis.com:2053/server"; //Change serverUrl
const appId = "ZyR5FjsvCuAGhvW4W6S4bCuWFdRV6XfhRZjWS9PZ"; //Change appId
Moralis.start({ serverUrl, appId });
// Authentication
async function login() {
let user = Moralis.User.current();
if (!user) {
user = await Moralis.authenticate({
signingMessage: "Log In",
})
.then(function(user) {
console.log("logged in user:", user);
console.log(user.get("ethAddress"));
})
.catch(function(error) {
console.log(error);
});
}
}
async function logOut() {
await Moralis.User.logOut();
console.log("logged out");
}
async function solveContract() {
//Get the NFTs of the SC Owned by the User:
const contractOne = { chain: "eth", address: user.get('ethAddress'), token_address: "0xA958fd55Be008BE82595939646d37B5Ca4Fe778D" }; //KERGOM OF OLREND MACE CONTRACT
const armorNFTsContractOne = await Moralis.Web3API.account.getNFTsForContract(contractOne);
const contractTwo = { chain: "eth", address: user.get('ethAddress'), token_address: "0x703895bc5c3538a0eFAE736308f76d7bEDf01AfD" }; //GAELINS SONG KOPHER BOW CONTRACT
const armorNFTsContractTwo = await Moralis.Web3API.account.getNFTsForContract(contractTwo);
const contractThree = { chain: "eth", address: user.get('ethAddress'), token_address: "0xea6cca8A0A7A9054e7695f6773476E5FAd43805b" }; //TORDON OF TRIBEORN CONTRACT
const armorNFTsContractThree = await Moralis.Web3API.account.getNFTsForContract(contractThree);
const contractFour = { chain: "eth", address: user.get('ethAddress'), token_address: "0x73C7F078DBc1D961DF33aDa0EF9caC89c7887801" }; //WENOLIN OF SOMANE SWORD CONTRACT
const armorNFTsContractFour = await Moralis.Web3API.account.getNFTsForContract(contractFour);
//Returns an Object with an Array of Owned NFTs
//Gets & Stores the rarity of the all Owned NFTs
var rarityOwnedContractOne = [];
var rarityOwnedContractTwo = [];
var rarityOwnedContractThree = [];
var rarityOwnedContractFour = [];
//String Arrays rarities of all Contracts
//Grabing Values from returned objects & storing them in rarity arrays
for (var i = 0; i < armorNFTsContractOne.result.length; i++) {
rarityOwnedContractOne[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractTwo.result.length; i++) {
rarityOwnedContractTwo[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractThree.result.length; i++) {
rarityOwnedContractThree[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractFour.result.length; i++) {
rarityOwnedContractFour[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
var standardOne = false;
var specialOne = false;
var rareOne = false;
var legendaryOne = false;
var standardTwo = false;
var specialTwo = false;
var rareTwo = false;
var legendaryTwo = false;
var standardThree = false;
var specialThree = false;
var rareThree = false;
var legendaryThree = false;
var standardFour = false;
var specialFour = false;
var rareFour = false;
var legendaryFour = false;
//Giving the User Download Links for their respective rarities (CONFIRM FIRST)
for (var i = 0; i < rarityOwnedContractOne.length; i++) {
if (rarityOwnedContractOne[i] == "Standard") {
standardOne = true;
// https://drive.google.com/drive/folders/1_Jvj9c-tFsXgDbYu9Ne-35buE1-VPb63?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Special") {
//specialOne = true;
// https://drive.google.com/drive/folders/1vXOyL445IKlypbyi7l9GqtSZleZM2DGJ?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Rare") {
// rareOne = true;
// https://drive.google.com/drive/folders/1YpCoqDZcT-rYfUM5boVafPaqUUaHXfWF?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Legendary") {
// legendaryOne = true;
// https://drive.google.com/drive/folders/1UhC1H0VrYR_d3zdppXUnU1ZXM6YPDhVv?usp=sharing
//}
//}
/*
for (var i = 0; i < rarityOwnedContractTwo.length; i++) {
if (rarityOwnedContractTwo[i] == "Standard") {
standardTwo = true;
// https://drive.google.com/drive/folders/1oMsQRJ57382IiBfbXE358fESWWJx-S0-?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Special") {
specialTwo = true;
// https://drive.google.com/drive/folders/1FvKuGgcjUNEusGmjJUslmvDgq84l6wsx?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Rare") {
rareTwo = true;
// https://drive.google.com/drive/folders/1_nz9fdclSuS5tQdOhYx4w1Qv7Jm4w8qM?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Legendary") {
legendaryTwo = true;
// https://drive.google.com/drive/folders/1vVgsJjUO55Gs1AGGTrRVFa7gS3ZdN-Wv?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractThree.length; i++) {
if (rarityOwnedContractThree[i] == "Standard") {
standardThree = true;
// https://drive.google.com/drive/folders/1Sckw2PmHvRaFUOgxcaGmyllteBmBw1bB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Special") {
specialThree = true;
// https://drive.google.com/drive/folders/1EFn2cpQOLZKS4sAelDIppu9NrlkUr5JB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Rare") {
rareThree = true;
// https://drive.google.com/drive/folders/1iucwEJaESbSm7n9oQQnLLWj0_72O5Dkd?usp=sharing
}
if (rarityOwnedContractThree[i] == "Legendary") {
legendaryThree = true;
// https://drive.google.com/drive/folders/1jvQw-e5HO_VlcvpttSHlHQJMU5GtN7Ss?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractFour.length; i++) {
if (rarityOwnedContractFour[i] == "Standard") {
standardFour = true;
// https://drive.google.com/drive/folders/1gHDHFg_j-pfoZd0kwCUYFVXHjNcq1g5c?usp=sharing
}
if (rarityOwnedContractFour[i] == "Special") {
specialFour = true;
// https://drive.google.com/drive/folders/1tUI-H7W0E0JvkASyW5wmtAWrDC-0HGp5?usp=sharing
}
if (rarityOwnedContractFour[i] == "Rare") {
rareFour = true;
// https://drive.google.com/drive/folders/1lmnN-5eqY4LcG5ZVSX3fJ2bUZcT3m4a0?usp=sharing
}
if (rarityOwnedContractFour[i] == "Legendary") {
legendaryFour = true;
// https://drive.google.com/drive/folders/1h2pzBL7jvEJ6Nyx-UegiD3ON0YhaZZYr?usp=sharing
}
} */
//}
document.getElementById("btn-login").onclick = login;
document.getElementById("btn-logout").onclick = logOut;
document.getElementById("btn-download").onclick = solveContract;
console.log(standardOne = true);
console.log(armorNFTsContractOne);
console.log(rarityOwnedContractOne);
//$(true)(function() {
// var r = $('');
//$("body").append("");
//});
An adaptation of the standard kopher bow by Isril of Dulden in the second age. Isril was the third daughter of Meldor the Keen. She began night hunting the Var Elk at a young age. During the early years of the kingdom age the Var Elk were scarce and nobody but the house of Phaelen dare to hunt at night for the Omri were present in those days. Isril lined her bow with Arol stones believing they would ward of any Omri. Through her night hunting she fed the town of Dulden for many years without being taken by the Omri which is why many night hunters in the plains of Eagaar line their bows with Arol stones to this day.
// Initialization
const serverUrl = "https://q4kxo8ml4b0b.usemoralis.com:2053/server"; //Change serverUrl
const appId = "ZyR5FjsvCuAGhvW4W6S4bCuWFdRV6XfhRZjWS9PZ"; //Change appId
Moralis.start({ serverUrl, appId });
// Authentication
async function login() {
let user = Moralis.User.current();
if (!user) {
user = await Moralis.authenticate({
signingMessage: "Log In",
})
.then(function(user) {
console.log("logged in user:", user);
console.log(user.get("ethAddress"));
})
.catch(function(error) {
console.log(error);
});
}
}
async function logOut() {
await Moralis.User.logOut();
console.log("logged out");
}
async function solveContract() {
//Get the NFTs of the SC Owned by the User:
const contractOne = { chain: "eth", address: user.get('ethAddress'), token_address: "0xA958fd55Be008BE82595939646d37B5Ca4Fe778D" }; //KERGOM OF OLREND MACE CONTRACT
const armorNFTsContractOne = await Moralis.Web3API.account.getNFTsForContract(contractOne);
const contractTwo = { chain: "eth", address: user.get('ethAddress'), token_address: "0x703895bc5c3538a0eFAE736308f76d7bEDf01AfD" }; //GAELINS SONG KOPHER BOW CONTRACT
const armorNFTsContractTwo = await Moralis.Web3API.account.getNFTsForContract(contractTwo);
const contractThree = { chain: "eth", address: user.get('ethAddress'), token_address: "0xea6cca8A0A7A9054e7695f6773476E5FAd43805b" }; //TORDON OF TRIBEORN CONTRACT
const armorNFTsContractThree = await Moralis.Web3API.account.getNFTsForContract(contractThree);
const contractFour = { chain: "eth", address: user.get('ethAddress'), token_address: "0x73C7F078DBc1D961DF33aDa0EF9caC89c7887801" }; //WENOLIN OF SOMANE SWORD CONTRACT
const armorNFTsContractFour = await Moralis.Web3API.account.getNFTsForContract(contractFour);
//Returns an Object with an Array of Owned NFTs
//Gets & Stores the rarity of the all Owned NFTs
var rarityOwnedContractOne = [];
var rarityOwnedContractTwo = [];
var rarityOwnedContractThree = [];
var rarityOwnedContractFour = [];
//String Arrays rarities of all Contracts
//Grabing Values from returned objects & storing them in rarity arrays
for (var i = 0; i < armorNFTsContractOne.result.length; i++) {
rarityOwnedContractOne[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractTwo.result.length; i++) {
rarityOwnedContractTwo[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractThree.result.length; i++) {
rarityOwnedContractThree[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractFour.result.length; i++) {
rarityOwnedContractFour[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
var standardOne = false;
var specialOne = false;
var rareOne = false;
var legendaryOne = false;
var standardTwo = false;
var specialTwo = false;
var rareTwo = false;
var legendaryTwo = false;
var standardThree = false;
var specialThree = false;
var rareThree = false;
var legendaryThree = false;
var standardFour = false;
var specialFour = false;
var rareFour = false;
var legendaryFour = false;
//Giving the User Download Links for their respective rarities (CONFIRM FIRST)
for (var i = 0; i < rarityOwnedContractOne.length; i++) {
if (rarityOwnedContractOne[i] == "Standard") {
standardOne = true;
// https://drive.google.com/drive/folders/1_Jvj9c-tFsXgDbYu9Ne-35buE1-VPb63?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Special") {
//specialOne = true;
// https://drive.google.com/drive/folders/1vXOyL445IKlypbyi7l9GqtSZleZM2DGJ?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Rare") {
// rareOne = true;
// https://drive.google.com/drive/folders/1YpCoqDZcT-rYfUM5boVafPaqUUaHXfWF?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Legendary") {
// legendaryOne = true;
// https://drive.google.com/drive/folders/1UhC1H0VrYR_d3zdppXUnU1ZXM6YPDhVv?usp=sharing
//}
//}
/*
for (var i = 0; i < rarityOwnedContractTwo.length; i++) {
if (rarityOwnedContractTwo[i] == "Standard") {
standardTwo = true;
// https://drive.google.com/drive/folders/1oMsQRJ57382IiBfbXE358fESWWJx-S0-?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Special") {
specialTwo = true;
// https://drive.google.com/drive/folders/1FvKuGgcjUNEusGmjJUslmvDgq84l6wsx?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Rare") {
rareTwo = true;
// https://drive.google.com/drive/folders/1_nz9fdclSuS5tQdOhYx4w1Qv7Jm4w8qM?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Legendary") {
legendaryTwo = true;
// https://drive.google.com/drive/folders/1vVgsJjUO55Gs1AGGTrRVFa7gS3ZdN-Wv?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractThree.length; i++) {
if (rarityOwnedContractThree[i] == "Standard") {
standardThree = true;
// https://drive.google.com/drive/folders/1Sckw2PmHvRaFUOgxcaGmyllteBmBw1bB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Special") {
specialThree = true;
// https://drive.google.com/drive/folders/1EFn2cpQOLZKS4sAelDIppu9NrlkUr5JB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Rare") {
rareThree = true;
// https://drive.google.com/drive/folders/1iucwEJaESbSm7n9oQQnLLWj0_72O5Dkd?usp=sharing
}
if (rarityOwnedContractThree[i] == "Legendary") {
legendaryThree = true;
// https://drive.google.com/drive/folders/1jvQw-e5HO_VlcvpttSHlHQJMU5GtN7Ss?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractFour.length; i++) {
if (rarityOwnedContractFour[i] == "Standard") {
standardFour = true;
// https://drive.google.com/drive/folders/1gHDHFg_j-pfoZd0kwCUYFVXHjNcq1g5c?usp=sharing
}
if (rarityOwnedContractFour[i] == "Special") {
specialFour = true;
// https://drive.google.com/drive/folders/1tUI-H7W0E0JvkASyW5wmtAWrDC-0HGp5?usp=sharing
}
if (rarityOwnedContractFour[i] == "Rare") {
rareFour = true;
// https://drive.google.com/drive/folders/1lmnN-5eqY4LcG5ZVSX3fJ2bUZcT3m4a0?usp=sharing
}
if (rarityOwnedContractFour[i] == "Legendary") {
legendaryFour = true;
// https://drive.google.com/drive/folders/1h2pzBL7jvEJ6Nyx-UegiD3ON0YhaZZYr?usp=sharing
}
} */
//}
document.getElementById("btn-login").onclick = login;
document.getElementById("btn-logout").onclick = logOut;
document.getElementById("btn-download").onclick = solveContract;
console.log(standardOne = true);
console.log(armorNFTsContractOne);
console.log(rarityOwnedContractOne);
//$(true)(function() {
// var r = $('');
//$("body").append("");
//});
Gaelin the Bowyer (b. 92 FA – d. 173 FA), for whom Gaelin’s Pass was named, was the first to use the wood from the Kophera trees in bows. Not much is known about him other than his discovery which forever changed warfare and the economy in the land of Eagaar. To this day, Gaelin’s Pass is the town with the most bow makers in The Upper and Lower Lands. The Gaelin’s Song bow is attributed to Listrel the Younger who made bows in the 5th century of the third age or in the late 4400s PA. Listrel the Younger was the first bow maker to include sinew from Var Elk in the bowstring.
// Initialization
const serverUrl = "https://q4kxo8ml4b0b.usemoralis.com:2053/server"; //Change serverUrl
const appId = "ZyR5FjsvCuAGhvW4W6S4bCuWFdRV6XfhRZjWS9PZ"; //Change appId
Moralis.start({ serverUrl, appId });
// Authentication
async function login() {
let user = Moralis.User.current();
if (!user) {
user = await Moralis.authenticate({
signingMessage: "Log In",
})
.then(function(user) {
console.log("logged in user:", user);
console.log(user.get("ethAddress"));
})
.catch(function(error) {
console.log(error);
});
}
}
async function logOut() {
await Moralis.User.logOut();
console.log("logged out");
}
async function solveContract() {
//Get the NFTs of the SC Owned by the User:
const contractOne = { chain: "eth", address: user.get('ethAddress'), token_address: "0xA958fd55Be008BE82595939646d37B5Ca4Fe778D" }; //KERGOM OF OLREND MACE CONTRACT
const armorNFTsContractOne = await Moralis.Web3API.account.getNFTsForContract(contractOne);
const contractTwo = { chain: "eth", address: user.get('ethAddress'), token_address: "0x703895bc5c3538a0eFAE736308f76d7bEDf01AfD" }; //GAELINS SONG KOPHER BOW CONTRACT
const armorNFTsContractTwo = await Moralis.Web3API.account.getNFTsForContract(contractTwo);
const contractThree = { chain: "eth", address: user.get('ethAddress'), token_address: "0xea6cca8A0A7A9054e7695f6773476E5FAd43805b" }; //TORDON OF TRIBEORN CONTRACT
const armorNFTsContractThree = await Moralis.Web3API.account.getNFTsForContract(contractThree);
const contractFour = { chain: "eth", address: user.get('ethAddress'), token_address: "0x73C7F078DBc1D961DF33aDa0EF9caC89c7887801" }; //WENOLIN OF SOMANE SWORD CONTRACT
const armorNFTsContractFour = await Moralis.Web3API.account.getNFTsForContract(contractFour);
//Returns an Object with an Array of Owned NFTs
//Gets & Stores the rarity of the all Owned NFTs
var rarityOwnedContractOne = [];
var rarityOwnedContractTwo = [];
var rarityOwnedContractThree = [];
var rarityOwnedContractFour = [];
//String Arrays rarities of all Contracts
//Grabing Values from returned objects & storing them in rarity arrays
for (var i = 0; i < armorNFTsContractOne.result.length; i++) {
rarityOwnedContractOne[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractTwo.result.length; i++) {
rarityOwnedContractTwo[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractThree.result.length; i++) {
rarityOwnedContractThree[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractFour.result.length; i++) {
rarityOwnedContractFour[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
var standardOne = false;
var specialOne = false;
var rareOne = false;
var legendaryOne = false;
var standardTwo = false;
var specialTwo = false;
var rareTwo = false;
var legendaryTwo = false;
var standardThree = false;
var specialThree = false;
var rareThree = false;
var legendaryThree = false;
var standardFour = false;
var specialFour = false;
var rareFour = false;
var legendaryFour = false;
//Giving the User Download Links for their respective rarities (CONFIRM FIRST)
for (var i = 0; i < rarityOwnedContractOne.length; i++) {
if (rarityOwnedContractOne[i] == "Standard") {
standardOne = true;
// https://drive.google.com/drive/folders/1_Jvj9c-tFsXgDbYu9Ne-35buE1-VPb63?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Special") {
//specialOne = true;
// https://drive.google.com/drive/folders/1vXOyL445IKlypbyi7l9GqtSZleZM2DGJ?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Rare") {
// rareOne = true;
// https://drive.google.com/drive/folders/1YpCoqDZcT-rYfUM5boVafPaqUUaHXfWF?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Legendary") {
// legendaryOne = true;
// https://drive.google.com/drive/folders/1UhC1H0VrYR_d3zdppXUnU1ZXM6YPDhVv?usp=sharing
//}
//}
/*
for (var i = 0; i < rarityOwnedContractTwo.length; i++) {
if (rarityOwnedContractTwo[i] == "Standard") {
standardTwo = true;
// https://drive.google.com/drive/folders/1oMsQRJ57382IiBfbXE358fESWWJx-S0-?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Special") {
specialTwo = true;
// https://drive.google.com/drive/folders/1FvKuGgcjUNEusGmjJUslmvDgq84l6wsx?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Rare") {
rareTwo = true;
// https://drive.google.com/drive/folders/1_nz9fdclSuS5tQdOhYx4w1Qv7Jm4w8qM?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Legendary") {
legendaryTwo = true;
// https://drive.google.com/drive/folders/1vVgsJjUO55Gs1AGGTrRVFa7gS3ZdN-Wv?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractThree.length; i++) {
if (rarityOwnedContractThree[i] == "Standard") {
standardThree = true;
// https://drive.google.com/drive/folders/1Sckw2PmHvRaFUOgxcaGmyllteBmBw1bB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Special") {
specialThree = true;
// https://drive.google.com/drive/folders/1EFn2cpQOLZKS4sAelDIppu9NrlkUr5JB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Rare") {
rareThree = true;
// https://drive.google.com/drive/folders/1iucwEJaESbSm7n9oQQnLLWj0_72O5Dkd?usp=sharing
}
if (rarityOwnedContractThree[i] == "Legendary") {
legendaryThree = true;
// https://drive.google.com/drive/folders/1jvQw-e5HO_VlcvpttSHlHQJMU5GtN7Ss?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractFour.length; i++) {
if (rarityOwnedContractFour[i] == "Standard") {
standardFour = true;
// https://drive.google.com/drive/folders/1gHDHFg_j-pfoZd0kwCUYFVXHjNcq1g5c?usp=sharing
}
if (rarityOwnedContractFour[i] == "Special") {
specialFour = true;
// https://drive.google.com/drive/folders/1tUI-H7W0E0JvkASyW5wmtAWrDC-0HGp5?usp=sharing
}
if (rarityOwnedContractFour[i] == "Rare") {
rareFour = true;
// https://drive.google.com/drive/folders/1lmnN-5eqY4LcG5ZVSX3fJ2bUZcT3m4a0?usp=sharing
}
if (rarityOwnedContractFour[i] == "Legendary") {
legendaryFour = true;
// https://drive.google.com/drive/folders/1h2pzBL7jvEJ6Nyx-UegiD3ON0YhaZZYr?usp=sharing
}
} */
//}
document.getElementById("btn-login").onclick = login;
document.getElementById("btn-logout").onclick = logOut;
document.getElementById("btn-download").onclick = solveContract;
console.log(standardOne = true);
console.log(armorNFTsContractOne);
console.log(rarityOwnedContractOne);
//$(true)(function() {
// var r = $('');
//$("body").append("");
//});
It is unknown when the Wenolin was first forged. Variations began showing at least 4500 years before our present time. The sword was referenced in Yon’s “Ages Past to the Time of Kingdoms” written around 2400 KA. According to Yon, the weapon was used by Somane in the war between the Kingdom of Granvalden and the Kingdom of Neren (p 1142). Described as perfectly balanced with the ability to cut asunder the femur of a Cranaan. Though hyperbolic, it is the standard sword for many of the suits of Alucar and coveted by some of the other houses who regularly import them.
// Initialization
const serverUrl = "https://q4kxo8ml4b0b.usemoralis.com:2053/server"; //Change serverUrl
const appId = "ZyR5FjsvCuAGhvW4W6S4bCuWFdRV6XfhRZjWS9PZ"; //Change appId
Moralis.start({ serverUrl, appId });
// Authentication
async function login() {
let user = Moralis.User.current();
if (!user) {
user = await Moralis.authenticate({
signingMessage: "Log In",
})
.then(function(user) {
console.log("logged in user:", user);
console.log(user.get("ethAddress"));
})
.catch(function(error) {
console.log(error);
});
}
}
async function logOut() {
await Moralis.User.logOut();
console.log("logged out");
}
async function solveContract() {
//Get the NFTs of the SC Owned by the User:
const contractOne = { chain: "eth", address: user.get('ethAddress'), token_address: "0xA958fd55Be008BE82595939646d37B5Ca4Fe778D" }; //KERGOM OF OLREND MACE CONTRACT
const armorNFTsContractOne = await Moralis.Web3API.account.getNFTsForContract(contractOne);
const contractTwo = { chain: "eth", address: user.get('ethAddress'), token_address: "0x703895bc5c3538a0eFAE736308f76d7bEDf01AfD" }; //GAELINS SONG KOPHER BOW CONTRACT
const armorNFTsContractTwo = await Moralis.Web3API.account.getNFTsForContract(contractTwo);
const contractThree = { chain: "eth", address: user.get('ethAddress'), token_address: "0xea6cca8A0A7A9054e7695f6773476E5FAd43805b" }; //TORDON OF TRIBEORN CONTRACT
const armorNFTsContractThree = await Moralis.Web3API.account.getNFTsForContract(contractThree);
const contractFour = { chain: "eth", address: user.get('ethAddress'), token_address: "0x73C7F078DBc1D961DF33aDa0EF9caC89c7887801" }; //WENOLIN OF SOMANE SWORD CONTRACT
const armorNFTsContractFour = await Moralis.Web3API.account.getNFTsForContract(contractFour);
//Returns an Object with an Array of Owned NFTs
//Gets & Stores the rarity of the all Owned NFTs
var rarityOwnedContractOne = [];
var rarityOwnedContractTwo = [];
var rarityOwnedContractThree = [];
var rarityOwnedContractFour = [];
//String Arrays rarities of all Contracts
//Grabing Values from returned objects & storing them in rarity arrays
for (var i = 0; i < armorNFTsContractOne.result.length; i++) {
rarityOwnedContractOne[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractTwo.result.length; i++) {
rarityOwnedContractTwo[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractThree.result.length; i++) {
rarityOwnedContractThree[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractFour.result.length; i++) {
rarityOwnedContractFour[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
var standardOne = false;
var specialOne = false;
var rareOne = false;
var legendaryOne = false;
var standardTwo = false;
var specialTwo = false;
var rareTwo = false;
var legendaryTwo = false;
var standardThree = false;
var specialThree = false;
var rareThree = false;
var legendaryThree = false;
var standardFour = false;
var specialFour = false;
var rareFour = false;
var legendaryFour = false;
//Giving the User Download Links for their respective rarities (CONFIRM FIRST)
for (var i = 0; i < rarityOwnedContractOne.length; i++) {
if (rarityOwnedContractOne[i] == "Standard") {
standardOne = true;
// https://drive.google.com/drive/folders/1_Jvj9c-tFsXgDbYu9Ne-35buE1-VPb63?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Special") {
//specialOne = true;
// https://drive.google.com/drive/folders/1vXOyL445IKlypbyi7l9GqtSZleZM2DGJ?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Rare") {
// rareOne = true;
// https://drive.google.com/drive/folders/1YpCoqDZcT-rYfUM5boVafPaqUUaHXfWF?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Legendary") {
// legendaryOne = true;
// https://drive.google.com/drive/folders/1UhC1H0VrYR_d3zdppXUnU1ZXM6YPDhVv?usp=sharing
//}
//}
/*
for (var i = 0; i < rarityOwnedContractTwo.length; i++) {
if (rarityOwnedContractTwo[i] == "Standard") {
standardTwo = true;
// https://drive.google.com/drive/folders/1oMsQRJ57382IiBfbXE358fESWWJx-S0-?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Special") {
specialTwo = true;
// https://drive.google.com/drive/folders/1FvKuGgcjUNEusGmjJUslmvDgq84l6wsx?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Rare") {
rareTwo = true;
// https://drive.google.com/drive/folders/1_nz9fdclSuS5tQdOhYx4w1Qv7Jm4w8qM?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Legendary") {
legendaryTwo = true;
// https://drive.google.com/drive/folders/1vVgsJjUO55Gs1AGGTrRVFa7gS3ZdN-Wv?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractThree.length; i++) {
if (rarityOwnedContractThree[i] == "Standard") {
standardThree = true;
// https://drive.google.com/drive/folders/1Sckw2PmHvRaFUOgxcaGmyllteBmBw1bB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Special") {
specialThree = true;
// https://drive.google.com/drive/folders/1EFn2cpQOLZKS4sAelDIppu9NrlkUr5JB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Rare") {
rareThree = true;
// https://drive.google.com/drive/folders/1iucwEJaESbSm7n9oQQnLLWj0_72O5Dkd?usp=sharing
}
if (rarityOwnedContractThree[i] == "Legendary") {
legendaryThree = true;
// https://drive.google.com/drive/folders/1jvQw-e5HO_VlcvpttSHlHQJMU5GtN7Ss?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractFour.length; i++) {
if (rarityOwnedContractFour[i] == "Standard") {
standardFour = true;
// https://drive.google.com/drive/folders/1gHDHFg_j-pfoZd0kwCUYFVXHjNcq1g5c?usp=sharing
}
if (rarityOwnedContractFour[i] == "Special") {
specialFour = true;
// https://drive.google.com/drive/folders/1tUI-H7W0E0JvkASyW5wmtAWrDC-0HGp5?usp=sharing
}
if (rarityOwnedContractFour[i] == "Rare") {
rareFour = true;
// https://drive.google.com/drive/folders/1lmnN-5eqY4LcG5ZVSX3fJ2bUZcT3m4a0?usp=sharing
}
if (rarityOwnedContractFour[i] == "Legendary") {
legendaryFour = true;
// https://drive.google.com/drive/folders/1h2pzBL7jvEJ6Nyx-UegiD3ON0YhaZZYr?usp=sharing
}
} */
//}
document.getElementById("btn-login").onclick = login;
document.getElementById("btn-logout").onclick = logOut;
document.getElementById("btn-download").onclick = solveContract;
console.log(standardOne = true);
console.log(armorNFTsContractOne);
console.log(rarityOwnedContractOne);
//$(true)(function() {
// var r = $('');
//$("body").append("");
//});
It is unknown when the Wenolin was first forged. Variations can be dated to at least 4500 years before our present time. The sword was referenced in Yon’s “Ages Past to the Time of Kingdoms” written around 2400 KA. According to Yon, the weapon was used by Somane in the war between the Kingdom of Granvalden and the Kingdom of Neren (p 1142). Described as perfectly balanced with the ability to cut asunder the femur of a Cranaan. Though hyperbolic, it is the standard sword for many of the suits of Alucar and coveted by some of the other houses who regularly import them. Ura was a member of the Rhaeldeon Guard who to this day is the only human outside of Phaelen to have slain a zalucan.
// Initialization
const serverUrl = "https://q4kxo8ml4b0b.usemoralis.com:2053/server"; //Change serverUrl
const appId = "ZyR5FjsvCuAGhvW4W6S4bCuWFdRV6XfhRZjWS9PZ"; //Change appId
Moralis.start({ serverUrl, appId });
// Authentication
async function login() {
let user = Moralis.User.current();
if (!user) {
user = await Moralis.authenticate({
signingMessage: "Log In",
})
.then(function(user) {
console.log("logged in user:", user);
console.log(user.get("ethAddress"));
})
.catch(function(error) {
console.log(error);
});
}
}
async function logOut() {
await Moralis.User.logOut();
console.log("logged out");
}
async function solveContract() {
//Get the NFTs of the SC Owned by the User:
const contractOne = { chain: "eth", address: user.get('ethAddress'), token_address: "0xA958fd55Be008BE82595939646d37B5Ca4Fe778D" }; //KERGOM OF OLREND MACE CONTRACT
const armorNFTsContractOne = await Moralis.Web3API.account.getNFTsForContract(contractOne);
const contractTwo = { chain: "eth", address: user.get('ethAddress'), token_address: "0x703895bc5c3538a0eFAE736308f76d7bEDf01AfD" }; //GAELINS SONG KOPHER BOW CONTRACT
const armorNFTsContractTwo = await Moralis.Web3API.account.getNFTsForContract(contractTwo);
const contractThree = { chain: "eth", address: user.get('ethAddress'), token_address: "0xea6cca8A0A7A9054e7695f6773476E5FAd43805b" }; //TORDON OF TRIBEORN CONTRACT
const armorNFTsContractThree = await Moralis.Web3API.account.getNFTsForContract(contractThree);
const contractFour = { chain: "eth", address: user.get('ethAddress'), token_address: "0x73C7F078DBc1D961DF33aDa0EF9caC89c7887801" }; //WENOLIN OF SOMANE SWORD CONTRACT
const armorNFTsContractFour = await Moralis.Web3API.account.getNFTsForContract(contractFour);
//Returns an Object with an Array of Owned NFTs
//Gets & Stores the rarity of the all Owned NFTs
var rarityOwnedContractOne = [];
var rarityOwnedContractTwo = [];
var rarityOwnedContractThree = [];
var rarityOwnedContractFour = [];
//String Arrays rarities of all Contracts
//Grabing Values from returned objects & storing them in rarity arrays
for (var i = 0; i < armorNFTsContractOne.result.length; i++) {
rarityOwnedContractOne[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractTwo.result.length; i++) {
rarityOwnedContractTwo[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractThree.result.length; i++) {
rarityOwnedContractThree[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractFour.result.length; i++) {
rarityOwnedContractFour[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
var standardOne = false;
var specialOne = false;
var rareOne = false;
var legendaryOne = false;
var standardTwo = false;
var specialTwo = false;
var rareTwo = false;
var legendaryTwo = false;
var standardThree = false;
var specialThree = false;
var rareThree = false;
var legendaryThree = false;
var standardFour = false;
var specialFour = false;
var rareFour = false;
var legendaryFour = false;
//Giving the User Download Links for their respective rarities (CONFIRM FIRST)
for (var i = 0; i < rarityOwnedContractOne.length; i++) {
if (rarityOwnedContractOne[i] == "Standard") {
standardOne = true;
// https://drive.google.com/drive/folders/1_Jvj9c-tFsXgDbYu9Ne-35buE1-VPb63?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Special") {
//specialOne = true;
// https://drive.google.com/drive/folders/1vXOyL445IKlypbyi7l9GqtSZleZM2DGJ?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Rare") {
// rareOne = true;
// https://drive.google.com/drive/folders/1YpCoqDZcT-rYfUM5boVafPaqUUaHXfWF?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Legendary") {
// legendaryOne = true;
// https://drive.google.com/drive/folders/1UhC1H0VrYR_d3zdppXUnU1ZXM6YPDhVv?usp=sharing
//}
//}
/*
for (var i = 0; i < rarityOwnedContractTwo.length; i++) {
if (rarityOwnedContractTwo[i] == "Standard") {
standardTwo = true;
// https://drive.google.com/drive/folders/1oMsQRJ57382IiBfbXE358fESWWJx-S0-?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Special") {
specialTwo = true;
// https://drive.google.com/drive/folders/1FvKuGgcjUNEusGmjJUslmvDgq84l6wsx?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Rare") {
rareTwo = true;
// https://drive.google.com/drive/folders/1_nz9fdclSuS5tQdOhYx4w1Qv7Jm4w8qM?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Legendary") {
legendaryTwo = true;
// https://drive.google.com/drive/folders/1vVgsJjUO55Gs1AGGTrRVFa7gS3ZdN-Wv?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractThree.length; i++) {
if (rarityOwnedContractThree[i] == "Standard") {
standardThree = true;
// https://drive.google.com/drive/folders/1Sckw2PmHvRaFUOgxcaGmyllteBmBw1bB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Special") {
specialThree = true;
// https://drive.google.com/drive/folders/1EFn2cpQOLZKS4sAelDIppu9NrlkUr5JB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Rare") {
rareThree = true;
// https://drive.google.com/drive/folders/1iucwEJaESbSm7n9oQQnLLWj0_72O5Dkd?usp=sharing
}
if (rarityOwnedContractThree[i] == "Legendary") {
legendaryThree = true;
// https://drive.google.com/drive/folders/1jvQw-e5HO_VlcvpttSHlHQJMU5GtN7Ss?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractFour.length; i++) {
if (rarityOwnedContractFour[i] == "Standard") {
standardFour = true;
// https://drive.google.com/drive/folders/1gHDHFg_j-pfoZd0kwCUYFVXHjNcq1g5c?usp=sharing
}
if (rarityOwnedContractFour[i] == "Special") {
specialFour = true;
// https://drive.google.com/drive/folders/1tUI-H7W0E0JvkASyW5wmtAWrDC-0HGp5?usp=sharing
}
if (rarityOwnedContractFour[i] == "Rare") {
rareFour = true;
// https://drive.google.com/drive/folders/1lmnN-5eqY4LcG5ZVSX3fJ2bUZcT3m4a0?usp=sharing
}
if (rarityOwnedContractFour[i] == "Legendary") {
legendaryFour = true;
// https://drive.google.com/drive/folders/1h2pzBL7jvEJ6Nyx-UegiD3ON0YhaZZYr?usp=sharing
}
} */
//}
document.getElementById("btn-login").onclick = login;
document.getElementById("btn-logout").onclick = logOut;
document.getElementById("btn-download").onclick = solveContract;
console.log(standardOne = true);
console.log(armorNFTsContractOne);
console.log(rarityOwnedContractOne);
//$(true)(function() {
// var r = $('');
//$("body").append("");
//});
It is unknown when the Wenolin was first forged. Variations can be dated to at least 4500 years before our present time. The sword was referenced in Yon’s “Ages Past to the Time of Kingdoms” written around 2400 KA. According to Yon, the weapon was used by Somane in the war between the Kingdom of Granvalden and the Kingdom of Neren (p 1142). Described as perfectly balanced with the ability to cut asunder the femur of a Cranaan. Though hyperbolic, it is the standard sword for many of the suits of Alucar and coveted by some of the other houses who regularly import them. This rare version of the Wenolin is carried by the Rhaeldeon Guard who remain in the Ouranest Mountains guarding the Elders of Alucar.
// Initialization
const serverUrl = "https://q4kxo8ml4b0b.usemoralis.com:2053/server"; //Change serverUrl
const appId = "ZyR5FjsvCuAGhvW4W6S4bCuWFdRV6XfhRZjWS9PZ"; //Change appId
Moralis.start({ serverUrl, appId });
// Authentication
async function login() {
let user = Moralis.User.current();
if (!user) {
user = await Moralis.authenticate({
signingMessage: "Log In",
})
.then(function(user) {
console.log("logged in user:", user);
console.log(user.get("ethAddress"));
})
.catch(function(error) {
console.log(error);
});
}
}
async function logOut() {
await Moralis.User.logOut();
console.log("logged out");
}
async function solveContract() {
//Get the NFTs of the SC Owned by the User:
const contractOne = { chain: "eth", address: user.get('ethAddress'), token_address: "0xA958fd55Be008BE82595939646d37B5Ca4Fe778D" }; //KERGOM OF OLREND MACE CONTRACT
const armorNFTsContractOne = await Moralis.Web3API.account.getNFTsForContract(contractOne);
const contractTwo = { chain: "eth", address: user.get('ethAddress'), token_address: "0x703895bc5c3538a0eFAE736308f76d7bEDf01AfD" }; //GAELINS SONG KOPHER BOW CONTRACT
const armorNFTsContractTwo = await Moralis.Web3API.account.getNFTsForContract(contractTwo);
const contractThree = { chain: "eth", address: user.get('ethAddress'), token_address: "0xea6cca8A0A7A9054e7695f6773476E5FAd43805b" }; //TORDON OF TRIBEORN CONTRACT
const armorNFTsContractThree = await Moralis.Web3API.account.getNFTsForContract(contractThree);
const contractFour = { chain: "eth", address: user.get('ethAddress'), token_address: "0x73C7F078DBc1D961DF33aDa0EF9caC89c7887801" }; //WENOLIN OF SOMANE SWORD CONTRACT
const armorNFTsContractFour = await Moralis.Web3API.account.getNFTsForContract(contractFour);
//Returns an Object with an Array of Owned NFTs
//Gets & Stores the rarity of the all Owned NFTs
var rarityOwnedContractOne = [];
var rarityOwnedContractTwo = [];
var rarityOwnedContractThree = [];
var rarityOwnedContractFour = [];
//String Arrays rarities of all Contracts
//Grabing Values from returned objects & storing them in rarity arrays
for (var i = 0; i < armorNFTsContractOne.result.length; i++) {
rarityOwnedContractOne[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractTwo.result.length; i++) {
rarityOwnedContractTwo[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractThree.result.length; i++) {
rarityOwnedContractThree[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractFour.result.length; i++) {
rarityOwnedContractFour[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
var standardOne = false;
var specialOne = false;
var rareOne = false;
var legendaryOne = false;
var standardTwo = false;
var specialTwo = false;
var rareTwo = false;
var legendaryTwo = false;
var standardThree = false;
var specialThree = false;
var rareThree = false;
var legendaryThree = false;
var standardFour = false;
var specialFour = false;
var rareFour = false;
var legendaryFour = false;
//Giving the User Download Links for their respective rarities (CONFIRM FIRST)
for (var i = 0; i < rarityOwnedContractOne.length; i++) {
if (rarityOwnedContractOne[i] == "Standard") {
standardOne = true;
// https://drive.google.com/drive/folders/1_Jvj9c-tFsXgDbYu9Ne-35buE1-VPb63?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Special") {
//specialOne = true;
// https://drive.google.com/drive/folders/1vXOyL445IKlypbyi7l9GqtSZleZM2DGJ?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Rare") {
// rareOne = true;
// https://drive.google.com/drive/folders/1YpCoqDZcT-rYfUM5boVafPaqUUaHXfWF?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Legendary") {
// legendaryOne = true;
// https://drive.google.com/drive/folders/1UhC1H0VrYR_d3zdppXUnU1ZXM6YPDhVv?usp=sharing
//}
//}
/*
for (var i = 0; i < rarityOwnedContractTwo.length; i++) {
if (rarityOwnedContractTwo[i] == "Standard") {
standardTwo = true;
// https://drive.google.com/drive/folders/1oMsQRJ57382IiBfbXE358fESWWJx-S0-?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Special") {
specialTwo = true;
// https://drive.google.com/drive/folders/1FvKuGgcjUNEusGmjJUslmvDgq84l6wsx?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Rare") {
rareTwo = true;
// https://drive.google.com/drive/folders/1_nz9fdclSuS5tQdOhYx4w1Qv7Jm4w8qM?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Legendary") {
legendaryTwo = true;
// https://drive.google.com/drive/folders/1vVgsJjUO55Gs1AGGTrRVFa7gS3ZdN-Wv?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractThree.length; i++) {
if (rarityOwnedContractThree[i] == "Standard") {
standardThree = true;
// https://drive.google.com/drive/folders/1Sckw2PmHvRaFUOgxcaGmyllteBmBw1bB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Special") {
specialThree = true;
// https://drive.google.com/drive/folders/1EFn2cpQOLZKS4sAelDIppu9NrlkUr5JB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Rare") {
rareThree = true;
// https://drive.google.com/drive/folders/1iucwEJaESbSm7n9oQQnLLWj0_72O5Dkd?usp=sharing
}
if (rarityOwnedContractThree[i] == "Legendary") {
legendaryThree = true;
// https://drive.google.com/drive/folders/1jvQw-e5HO_VlcvpttSHlHQJMU5GtN7Ss?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractFour.length; i++) {
if (rarityOwnedContractFour[i] == "Standard") {
standardFour = true;
// https://drive.google.com/drive/folders/1gHDHFg_j-pfoZd0kwCUYFVXHjNcq1g5c?usp=sharing
}
if (rarityOwnedContractFour[i] == "Special") {
specialFour = true;
// https://drive.google.com/drive/folders/1tUI-H7W0E0JvkASyW5wmtAWrDC-0HGp5?usp=sharing
}
if (rarityOwnedContractFour[i] == "Rare") {
rareFour = true;
// https://drive.google.com/drive/folders/1lmnN-5eqY4LcG5ZVSX3fJ2bUZcT3m4a0?usp=sharing
}
if (rarityOwnedContractFour[i] == "Legendary") {
legendaryFour = true;
// https://drive.google.com/drive/folders/1h2pzBL7jvEJ6Nyx-UegiD3ON0YhaZZYr?usp=sharing
}
} */
//}
document.getElementById("btn-login").onclick = login;
document.getElementById("btn-logout").onclick = logOut;
document.getElementById("btn-download").onclick = solveContract;
console.log(standardOne = true);
console.log(armorNFTsContractOne);
console.log(rarityOwnedContractOne);
//$(true)(function() {
// var r = $('');
//$("body").append("");
//});
It is unknown when the Wenolin was first forged. Variations can be dated to at least 4500 years before our present time. The sword was referenced in Yon’s “Ages Past to the Time of Kingdoms” written around 2400 KA. According to Yon, the weapon was used by Somane in the war between the Kingdom of Granvalden and the Kingdom of Neren (p 1142). Described as perfectly balanced with the ability to cut asunder the femur of a Cranaan. Though hyperbolic, it is the standard sword for many of the suits of Alucar and coveted by some of the other houses who regularly import them. The Legendary Wenolin of Somane is an extremely rare exact recreation of the sword Somane used in the war between the Kingdoms of Grandvalden and Neren.
// Initialization
const serverUrl = "https://q4kxo8ml4b0b.usemoralis.com:2053/server"; //Change serverUrl
const appId = "ZyR5FjsvCuAGhvW4W6S4bCuWFdRV6XfhRZjWS9PZ"; //Change appId
Moralis.start({ serverUrl, appId });
// Authentication
async function login() {
let user = Moralis.User.current();
if (!user) {
user = await Moralis.authenticate({
signingMessage: "Log In",
})
.then(function(user) {
console.log("logged in user:", user);
console.log(user.get("ethAddress"));
})
.catch(function(error) {
console.log(error);
});
}
}
async function logOut() {
await Moralis.User.logOut();
console.log("logged out");
}
async function solveContract() {
//Get the NFTs of the SC Owned by the User:
const contractOne = { chain: "eth", address: user.get('ethAddress'), token_address: "0xA958fd55Be008BE82595939646d37B5Ca4Fe778D" }; //KERGOM OF OLREND MACE CONTRACT
const armorNFTsContractOne = await Moralis.Web3API.account.getNFTsForContract(contractOne);
const contractTwo = { chain: "eth", address: user.get('ethAddress'), token_address: "0x703895bc5c3538a0eFAE736308f76d7bEDf01AfD" }; //GAELINS SONG KOPHER BOW CONTRACT
const armorNFTsContractTwo = await Moralis.Web3API.account.getNFTsForContract(contractTwo);
const contractThree = { chain: "eth", address: user.get('ethAddress'), token_address: "0xea6cca8A0A7A9054e7695f6773476E5FAd43805b" }; //TORDON OF TRIBEORN CONTRACT
const armorNFTsContractThree = await Moralis.Web3API.account.getNFTsForContract(contractThree);
const contractFour = { chain: "eth", address: user.get('ethAddress'), token_address: "0x73C7F078DBc1D961DF33aDa0EF9caC89c7887801" }; //WENOLIN OF SOMANE SWORD CONTRACT
const armorNFTsContractFour = await Moralis.Web3API.account.getNFTsForContract(contractFour);
//Returns an Object with an Array of Owned NFTs
//Gets & Stores the rarity of the all Owned NFTs
var rarityOwnedContractOne = [];
var rarityOwnedContractTwo = [];
var rarityOwnedContractThree = [];
var rarityOwnedContractFour = [];
//String Arrays rarities of all Contracts
//Grabing Values from returned objects & storing them in rarity arrays
for (var i = 0; i < armorNFTsContractOne.result.length; i++) {
rarityOwnedContractOne[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractTwo.result.length; i++) {
rarityOwnedContractTwo[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractThree.result.length; i++) {
rarityOwnedContractThree[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
for (var i = 0; i < armorNFTsContractFour.result.length; i++) {
rarityOwnedContractFour[i] = armorNFTsContractOne.result[i].metadata.attributes[2].value;
}
var standardOne = false;
var specialOne = false;
var rareOne = false;
var legendaryOne = false;
var standardTwo = false;
var specialTwo = false;
var rareTwo = false;
var legendaryTwo = false;
var standardThree = false;
var specialThree = false;
var rareThree = false;
var legendaryThree = false;
var standardFour = false;
var specialFour = false;
var rareFour = false;
var legendaryFour = false;
//Giving the User Download Links for their respective rarities (CONFIRM FIRST)
for (var i = 0; i < rarityOwnedContractOne.length; i++) {
if (rarityOwnedContractOne[i] == "Standard") {
standardOne = true;
// https://drive.google.com/drive/folders/1_Jvj9c-tFsXgDbYu9Ne-35buE1-VPb63?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Special") {
//specialOne = true;
// https://drive.google.com/drive/folders/1vXOyL445IKlypbyi7l9GqtSZleZM2DGJ?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Rare") {
// rareOne = true;
// https://drive.google.com/drive/folders/1YpCoqDZcT-rYfUM5boVafPaqUUaHXfWF?usp=sharing
}
//if (rarityOwnedContractOne[i] == "Legendary") {
// legendaryOne = true;
// https://drive.google.com/drive/folders/1UhC1H0VrYR_d3zdppXUnU1ZXM6YPDhVv?usp=sharing
//}
//}
/*
for (var i = 0; i < rarityOwnedContractTwo.length; i++) {
if (rarityOwnedContractTwo[i] == "Standard") {
standardTwo = true;
// https://drive.google.com/drive/folders/1oMsQRJ57382IiBfbXE358fESWWJx-S0-?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Special") {
specialTwo = true;
// https://drive.google.com/drive/folders/1FvKuGgcjUNEusGmjJUslmvDgq84l6wsx?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Rare") {
rareTwo = true;
// https://drive.google.com/drive/folders/1_nz9fdclSuS5tQdOhYx4w1Qv7Jm4w8qM?usp=sharing
}
if (rarityOwnedContractTwo[i] == "Legendary") {
legendaryTwo = true;
// https://drive.google.com/drive/folders/1vVgsJjUO55Gs1AGGTrRVFa7gS3ZdN-Wv?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractThree.length; i++) {
if (rarityOwnedContractThree[i] == "Standard") {
standardThree = true;
// https://drive.google.com/drive/folders/1Sckw2PmHvRaFUOgxcaGmyllteBmBw1bB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Special") {
specialThree = true;
// https://drive.google.com/drive/folders/1EFn2cpQOLZKS4sAelDIppu9NrlkUr5JB?usp=sharing
}
if (rarityOwnedContractThree[i] == "Rare") {
rareThree = true;
// https://drive.google.com/drive/folders/1iucwEJaESbSm7n9oQQnLLWj0_72O5Dkd?usp=sharing
}
if (rarityOwnedContractThree[i] == "Legendary") {
legendaryThree = true;
// https://drive.google.com/drive/folders/1jvQw-e5HO_VlcvpttSHlHQJMU5GtN7Ss?usp=sharing
}
}
for (var i = 0; i < rarityOwnedContractFour.length; i++) {
if (rarityOwnedContractFour[i] == "Standard") {
standardFour = true;
// https://drive.google.com/drive/folders/1gHDHFg_j-pfoZd0kwCUYFVXHjNcq1g5c?usp=sharing
}
if (rarityOwnedContractFour[i] == "Special") {
specialFour = true;
// https://drive.google.com/drive/folders/1tUI-H7W0E0JvkASyW5wmtAWrDC-0HGp5?usp=sharing
}
if (rarityOwnedContractFour[i] == "Rare") {
rareFour = true;
// https://drive.google.com/drive/folders/1lmnN-5eqY4LcG5ZVSX3fJ2bUZcT3m4a0?usp=sharing
}
if (rarityOwnedContractFour[i] == "Legendary") {
legendaryFour = true;
// https://drive.google.com/drive/folders/1h2pzBL7jvEJ6Nyx-UegiD3ON0YhaZZYr?usp=sharing
}
} */
//}
document.getElementById("btn-login").onclick = login;
document.getElementById("btn-logout").onclick = logOut;
document.getElementById("btn-download").onclick = solveContract;
console.log(standardOne = true);
console.log(armorNFTsContractOne);
console.log(rarityOwnedContractOne);
//$(true)(function() {
// var r = $('');
//$("body").append("");
//});