new version commit
This commit is contained in:
102
modules/mod-mxwow-bounty/src/ZoneManager.cpp
Normal file
102
modules/mod-mxwow-bounty/src/ZoneManager.cpp
Normal file
@@ -0,0 +1,102 @@
|
||||
#include "ZoneManager.h"
|
||||
#include "Configuration/Config.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "Player.h"
|
||||
#include "Chat.h"
|
||||
#include <WorldSessionMgr.h>
|
||||
|
||||
uint32 ZoneManager::RandomZoneId(uint32 rand) {
|
||||
switch (rand) {
|
||||
// Borean Tundra
|
||||
case 0:
|
||||
return 3537;
|
||||
// Sholazar Basin
|
||||
case 1:
|
||||
return 3711;
|
||||
// Icecrown
|
||||
case 2:
|
||||
return 210;
|
||||
// The Storm Peaks
|
||||
case 3:
|
||||
return 67;
|
||||
// Zul'Drak
|
||||
case 4:
|
||||
return 66;
|
||||
// Grizzly Hills
|
||||
case 5:
|
||||
return 394;
|
||||
// Howling Fjord
|
||||
case 6:
|
||||
return 495;
|
||||
// Dragonblight
|
||||
case 7:
|
||||
return 65;
|
||||
// Crystalsong Forest
|
||||
case 8:
|
||||
return 2817;
|
||||
}
|
||||
}
|
||||
|
||||
std::string ZoneManager::RandomZoneNameLocale_enUS(uint32 rand) {
|
||||
switch (rand) {
|
||||
// Borean Tundra
|
||||
case 0:
|
||||
return "Borean Tundra";
|
||||
// Sholazar Basin
|
||||
case 1:
|
||||
return "Sholazar Basin";
|
||||
// Icecrown
|
||||
case 2:
|
||||
return "Icecrown";
|
||||
// The Storm Peaks
|
||||
case 3:
|
||||
return "The Storm Peaks";
|
||||
// Zul'Drak
|
||||
case 4:
|
||||
return "Zul'Drak";
|
||||
// Grizzly Hills
|
||||
case 5:
|
||||
return "Grizzly Hills";
|
||||
// Howling Fjord
|
||||
case 6:
|
||||
return "Howling Fjord";
|
||||
// Dragonblight
|
||||
case 7:
|
||||
return "Dragonblight";
|
||||
// Crystalsong Forest
|
||||
case 8:
|
||||
return "Crystalsong Forest";
|
||||
}
|
||||
}
|
||||
|
||||
std::string ZoneManager::RandomZoneNameLocale_frFR(uint32 rand) {
|
||||
switch (rand) {
|
||||
// Borean Tundra
|
||||
case 0:
|
||||
return "Toundra Boréenne";
|
||||
// Sholazar Basin
|
||||
case 1:
|
||||
return "Bassin de Sholazar";
|
||||
// Icecrown
|
||||
case 2:
|
||||
return "La Couronne de glace";
|
||||
// The Storm Peaks
|
||||
case 3:
|
||||
return "Les Pics Foudroyés";
|
||||
// Zul'Drak
|
||||
case 4:
|
||||
return "Zul'Drak";
|
||||
// Grizzly Hills
|
||||
case 5:
|
||||
return "Les Grisonnes";
|
||||
// Howling Fjord
|
||||
case 6:
|
||||
return "Fjord Hurlant";
|
||||
// Dragonblight
|
||||
case 7:
|
||||
return "Désolation des dragons";
|
||||
// Crystalsong Forest
|
||||
case 8:
|
||||
return "Chant de cristal";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user