#Help!

1 messages · Page 1 of 1 (latest)

solemn mortar
#

Trying To Change Or Add ANother Event That Checks If Player Has Wheat

#

i have both kaizoku quest done because its a kill event

tidal anvil
#

```js
//code
```

#

better

solemn mortar
#

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
solemn mortar
#

.

upper panther
#

so what do you need help with?

#

oh I see

#

What’s the problem with adding the quest then?

solemn mortar
#

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

upper panther
#

so in the quests are you tracking progress? like amount of kills or smth

solemn mortar
#

uhh i can show you the file you can vc?

#

its a whole system

upper panther