Jump to content

Rank by two conditions


imnemina

Recommended Posts

I have a little problem in my VA. I searched in the forum but i not found this case.

In Aerolineas Argentinas virtual, pilots ascend for two conditions. Hours and a examination.

A pilot only can take the examination for the next rank if he has the required hours. But, if the pilot fails the examination, he remains in the range that has now.

In the pilot profile says "You have X hours left until your promotion to next rank"

X is a number and next rank is one of the ranks on my VA

This is a code on core/templates/profile_main.tpl

<p>You have <?php echo ($nextrank->minhours - $pilot_hours)?> hours

left until your promotion to <?php echo $nextrank->rank?></p>

The information is wrong because the system only considers the hours needed, not the actually rank.

Example:

Ranks and hours required in Aerolineas Argentinas Virtual

National FO - 1 hs

National Capt - 40 hs

Regional FO - 80 hs

Regional Capt - 150 hs

International FO - 300 hs

International Capt - 500 hs

Chief of Airline - 1000 hs

Chief of Fleet - 1500 hs

Every ascend requieres hours and examination, most difficult every time.

In my case, my rank is International FO, and i have 995 hours right now. The system should show: "You have the hours needed to examination for International Capt", this because it reaches 500 hours but I took the examination to International Capt.

But shows "You have 5 hours left until your promotion to Chief of Airline", this is not possible until i render the examination to International Capt first.

Obviously this is because the system only considers the hours, not the current range of the pilot.

Any idea to modify this?

Best regards

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...