Package be.demmel.jgws.packets.gameserver.outbound

Examples of be.demmel.jgws.packets.gameserver.outbound.P395_InstanceLoadDistrictInfo


        P371_InstanceLoadCharName instanceLoadCharName = new P371_InstanceLoadCharName();
        instanceLoadCharName.setCharName(character.getName());
        ctx.write(instanceLoadCharName);

        P395_InstanceLoadDistrictInfo instanceLoadDistrictInfo = new P395_InstanceLoadDistrictInfo();
        instanceLoadDistrictInfo.setCharAgent(character.getLocalID());
        instanceLoadDistrictInfo.setMapID(map.getGameMapID());
        instanceLoadDistrictInfo.setDistrictAndRegion((character.isIsOutpost() ? map.getDistrictNumber() : 0)
            | (character.isIsOutpost() ? map.getDistrictCountry() : 0));
        instanceLoadDistrictInfo.setIsExplorable(character.isIsOutpost() ? (short) 1 : 0);
        instanceLoadDistrictInfo.setIsObserver((byte) 0);
        instanceLoadDistrictInfo.setLanguage(character.isIsOutpost() ? 0 : (short) 3);

        ctx.write(instanceLoadDistrictInfo);
      }
    });
  }
View Full Code Here

TOP

Related Classes of be.demmel.jgws.packets.gameserver.outbound.P395_InstanceLoadDistrictInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.