sendMissionAccept() public method

public sendMissionAccept ( WorldClient client, UInt16 contactId, ushort missionId ) : void
client WorldClient
contactId System.UInt16
missionId ushort
return void
Ejemplo n.º 1
0
        public void processMissionaccept(ref byte[] packet)
        {
            byte[] contactBytes = { packet[0], packet[1] };
            UInt16 contactId    = NumericalUtils.ByteArrayToUint16(contactBytes, 1);
            ushort missionId    = packet[2];

            Output.WriteRpcLog("Mission Accept Data:" + StringUtils.bytesToString(packet));
            ServerPackets pak = new ServerPackets();

            pak.sendMissionAccept(Store.currentClient, contactId, missionId);
            pak.sendSetMissionObjective(1, 0, "This is the test Mission, mate", Store.currentClient);
            pak.sendSetMissionObjective(2, 0, "Success", Store.currentClient);
            //pak.sendSetMissionObjective(3, 2, "Failed Remain", Store.currentClient);
            //pak.sendSetMissionObjective(4, 3, "Failed Clear", Store.currentClient);
        }