I'm trying to make a quest to kill X mobs and give you a reward. I already have it ready, or so I think.
Now I would like to add the function of making it daily or weekly. I've tried to control this in the same java file of the quest, but I haven't been able to...
I was thinking of putting a marker on the quest so that it is "daily" or "weekly" and ¿generating another java program? that is in charge of restarting all the quests with the daily marker at 9 in the morning every day and on Wednesdays at 9 every Wednesday.
Since I'm new to java programming (I had already programmed in bash) and developing l2j I don't know where I should create that program. Could it be in the java folder with a name like "org.l2jmobius.xxx.xxx"?
I don't know how to approach it because I don't understand the logic of the files and that how runs every day to reset quest with marker.
Could anyone help me understand this and explain how I should do it? I'm not asking for ready-made code, I can do that myself, but how to deal with it
I also don't know if this method is better or in the java file itself (but I haven't managed to do it this way).
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
The stats you see in game are corrected by their relative factors (for example the mob's STR will influence his P.Atk etc.)
The stats you see in the XML are the base stats.
NPC information in the game does not match the XML. The values are set higher than in the XML. All monsters are set this way. Where can I find information about this? There is no option in the server config files to change this. Please help.
Question
gripao
Hello!!
I'm trying to make a quest to kill X mobs and give you a reward. I already have it ready, or so I think.
Now I would like to add the function of making it daily or weekly. I've tried to control this in the same java file of the quest, but I haven't been able to...
I was thinking of putting a marker on the quest so that it is "daily" or "weekly" and ¿generating another java program? that is in charge of restarting all the quests with the daily marker at 9 in the morning every day and on Wednesdays at 9 every Wednesday.
Since I'm new to java programming (I had already programmed in bash) and developing l2j I don't know where I should create that program. Could it be in the java folder with a name like "org.l2jmobius.xxx.xxx"?
I don't know how to approach it because I don't understand the logic of the files and that how runs every day to reset quest with marker.
Could anyone help me understand this and explain how I should do it? I'm not asking for ready-made code, I can do that myself, but how to deal with it
I also don't know if this method is better or in the java file itself (but I haven't managed to do it this way).
See you guys and thanks for all.
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.