implemented initial HackMessage during WSA login phase on building id

This commit is contained in:
FateJH 2018-03-05 23:49:34 -05:00
parent 33a7636f5e
commit 4973e8df29
2 changed files with 3 additions and 2 deletions

View file

@ -47,6 +47,8 @@ object HackState extends Enumeration {
* Upon the hack's completion, the target on the client will automatically revert back to its original state, if possible.
* (It will still be necessary to alert this change from the server's perspective.)
* @param unk1 na;
* 0 commonly;
* 3 for building objects during login phase;
* hack type?
* @param target_guid the target of the hack
* @param player_guid the player

View file

@ -3136,13 +3136,12 @@ class WorldSessionActor extends Actor with MDCContextAware {
def configZone(zone : Zone) : Unit = {
zone.Buildings.foreach({case (id, building) =>
sendResponse(SetEmpireMessage(PlanetSideGUID(id), building.Faction))
//TODO HackMessage() ?
building.Amenities.foreach(amenity => {
val amenityId = amenity.GUID
//TODO HackMessage() ?
sendResponse(PlanetsideAttributeMessage(amenityId, 50, 0))
sendResponse(PlanetsideAttributeMessage(amenityId, 51, 0))
})
sendResponse(HackMessage(3, PlanetSideGUID(id), PlanetSideGUID(0), 0, 3212836864L, HackState.HackCleared, 8))
})
}