-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Award based on PIREP DEP & ARR Airport? #860
Comments
I think this might need to be another "Award Class", I just need a little help with how to full the PIREP info |
Yes that would be an award class. Docs are here: https://docs.phpvms.net/developers/awards |
Yup it looks like it has enough info in that Document to get me started creating another Award Class, to grab the PIREP info, I'll have a play around with some code and see if I can get it going. |
You can also add a PIREPAccepted EventListener for your Tour assuming that it is inside your modules folder. |
Like @YashGovekar said, an award class for this probably isn't the best way, though you could do it but it would require a lot of setup. The tour module could just assign a user an award based on some parameters. I might have to expand on this a bit, I have to think about it. I might just change the |
Describe the solution you'd like
I would like to create some Awards, that is given if a PIREP is created based on a specific Departure and Arrival Airport.
Additional context
I have a bunch "Tours" that are 3 or 5 Legs long,
I want my pilots to be able to fly 1 or more of the legs, and for each
leg they get an Award ONLY if the flight has the correct Departure and Arrival Airports.
The text was updated successfully, but these errors were encountered: