Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void PassengerBoarded(Unit* passenger, int8 /*seatId*/, bool /*apply*/)
- {
- if (Player *player = passenger->ToPlayer())
- {
- printf("Player jest Playerem\n");
- int wave_count = 0;
- if (player->GetReqKillOrCastCurrentCount(QUEST_ID, OBJECTIVE_1))
- wave_count++;
- if (player->GetReqKillOrCastCurrentCount(QUEST_ID, OBJECTIVE_2))
- wave_count++;
- if (player->GetReqKillOrCastCurrentCount(QUEST_ID, OBJECTIVE_3))
- wave_count++;
- if (player->GetReqKillOrCastCurrentCount(QUEST_ID, OBJECTIVE_4))
- wave_count++;
- std::cout << "Fale zrobione przez gracza: " << wave_count << "\n";
- SetData(1, wave_count);
- printf("Przeslane do set data\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment