Package gwlpr.protocol.gameserver.outbound

Examples of gwlpr.protocol.gameserver.outbound.P074_NPCGeneral


        AgentIdentifiers agentIDs = entity.get(AgentIdentifiers.class);
        NPCData npc = entity.get(NPCData.class);
        CharData charData = entity.get(CharData.class);
       
        // send the messages...
        P074_NPCGeneral genStats = new P074_NPCGeneral();
        genStats.init(channel);
        genStats.setLocalID(agentIDs.localID);
        genStats.setNPCFile(npc.fileID);
        genStats.setScale(npc.scale << 24);
        genStats.setFlags(npc.flags);
        genStats.setProfession((byte) charData.primary.ordinal());
        genStats.setLevel((byte) charData.level);
        genStats.setTexture(npc.texture);
        genStats.setName(npc.hashedName);
        genStats.setUnknown1(0);

        channel.writeAndFlush(genStats);
       
        // prepare NPC model file hash
        P075_NPCModel.NestedModelFile[] modelFile = new P075_NPCModel.NestedModelFile[npc.modelHashes.length];
View Full Code Here

TOP

Related Classes of gwlpr.protocol.gameserver.outbound.P074_NPCGeneral

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.