501 AnimSay(hero.gear, loc("Haven't found it yet..."), SAY_THINK, 5000) |
501 AnimSay(hero.gear, loc("Haven't found it yet..."), SAY_THINK, 5000) |
502 cratesFound = cratesFound + 1 |
502 cratesFound = cratesFound + 1 |
503 elseif cratesFound == 1 then |
503 elseif cratesFound == 1 then |
504 -- end game |
504 -- end game |
505 saveCompletedStatus(5) |
505 saveCompletedStatus(5) |
506 AnimSay(hero.gear, loc("Hoo Ray!!!"), SAY_SHOUT, 5000) |
506 AnimSay(hero.gear, loc("Hoorah!!!"), SAY_SHOUT, 5000) |
507 SendStat(siGameResult, loc("Congratulations, you won!")) |
507 SendStat(siGameResult, loc("Congratulations, you won!")) |
508 SendStat(siCustomAchievement, loc("To win the game you had to collect the 2 crates with no specific order")) |
508 SendStat(siCustomAchievement, loc("To win the game you had to collect the 2 crates with no specific order")) |
509 SendStat(siPlayerKills,'1',teamC.name) |
509 SendStat(siPlayerKills,'1',teamC.name) |
510 SendStat(siPlayerKills,'0',teamB.name) |
510 SendStat(siPlayerKills,'0',teamB.name) |
511 EndGame() |
511 EndGame() |