Code Any example ext for restrictions with conditions?

fa1thDEV

Knight
Customer
Hello, my idea is that to have access to the entire server, the user must first complete a quest, otherwise he will not be able to access anything related to shop, npc default, gk, etc..

But I have no idea about this, if you have any idea, more than welcome to experiment a way to achieve the task.
 
просто сделай проверку у нпц на наличии итема дял его использования, за пример возьми премиум раздел от бафера) сделай итем в квест рюкзаке и сделай задание для его получения
Java:
// Get if _255_Tutorial quest is completed
boolean isQuestCompleted = player.isQuestCompleted("_255_Tutorial");

if(isQuestcompleted){
    //Do something
}


I have a theory about logic:

When creating the character start with a quest, if the server checks that this player has not completed the quest, then he will not have access to anything on the server, otherwise if the player manages to complete the quest, he will have access to the entire server, it would be like an “anti trolls” or detector of real players.
 
Back
Top