#Help!
1 messages · Page 1 of 1 (latest)
thats the index
heres the wheat.js
import { QuestBase } from '../QuestBase';
export class WheatQuest extends QuestBase {
id = 'Wheat'; // The id of the Quest
displayName = 'Collect 5 Wheat'; // The name of the Quest
goal = 5; // The amount required to complete the Quest
rewardExperience = 1; // The xp that will be given upon completion
// Add more args here that you need like `execute(player, item) {}` or whatever else
execute(player, item) {
if (item !== 'wheat')
return;
if (!this.getStatus(player))
return;
this.finalize(player);
}
}
//code
.
so what do you need help with?
oh I see
What’s the problem with adding the quest then?
ok
my apologies i was cleaing up
@upper panther the problem is im not calculating the kills anymore so i need a different event to register off of like a event that check if the player has the items or something
btw this system is for i wont have a bandit beater i want more flexible quest like collect apples or collect wheat stuff in that nature
like fish or something
yk
so in the quests are you tracking progress? like amount of kills or smth
Sure