public sendSetMissionObjective ( ushort id, ushort state, string missionObjective, |
||
id | ushort | |
state | ushort | |
missionObjective | string | |
client | ||
Результат | void |
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); }