2020-08-25 18:42:52 +00:00
|
|
|
#pragma once
|
|
|
|
|
2020-08-18 20:42:30 +00:00
|
|
|
#include <string>
|
|
|
|
#include <cstring>
|
|
|
|
|
|
|
|
#include "CNProtocol.hpp"
|
|
|
|
#include "CNStructs.hpp"
|
|
|
|
|
2020-09-10 16:40:38 +00:00
|
|
|
#define ACTIVE_MISSION_COUNT 6
|
|
|
|
|
2020-09-15 14:46:52 +00:00
|
|
|
#define PC_MAXHEALTH(level) (925 + 75 * (level))
|
|
|
|
|
2020-08-18 20:42:30 +00:00
|
|
|
struct Player {
|
2020-09-01 22:37:09 +00:00
|
|
|
int accountId;
|
2020-08-18 20:42:30 +00:00
|
|
|
int64_t SerialKey;
|
|
|
|
int32_t iID;
|
|
|
|
uint64_t FEKey;
|
|
|
|
|
|
|
|
int level;
|
|
|
|
int HP;
|
2020-08-23 00:52:54 +00:00
|
|
|
int slot; // player slot, not nano slot
|
2020-08-26 17:40:10 +00:00
|
|
|
int32_t money;
|
2020-08-27 20:16:52 +00:00
|
|
|
int32_t fusionmatter;
|
2020-09-14 14:27:52 +00:00
|
|
|
int32_t batteryW;
|
|
|
|
int32_t batteryN;
|
2020-08-18 20:42:30 +00:00
|
|
|
sPCStyle PCStyle;
|
|
|
|
sPCStyle2 PCStyle2;
|
2020-08-24 21:04:56 +00:00
|
|
|
sNano Nanos[37]; // acquired nanos
|
2020-08-23 00:52:54 +00:00
|
|
|
int equippedNanos[3];
|
2020-08-24 21:04:56 +00:00
|
|
|
int activeNano; // active nano (index into Nanos)
|
|
|
|
int8_t iPCState;
|
2020-09-13 20:26:16 +00:00
|
|
|
int32_t iWarpLocationFlag;
|
|
|
|
int64_t aSkywayLocationFlag[2];
|
2020-09-18 07:10:30 +00:00
|
|
|
int32_t iConditionBitFlag;
|
2020-08-18 20:42:30 +00:00
|
|
|
|
|
|
|
int x, y, z, angle;
|
|
|
|
sItemBase Equip[AEQUIP_COUNT];
|
2020-08-21 02:10:14 +00:00
|
|
|
sItemBase Inven[AINVEN_COUNT];
|
2020-09-09 20:42:55 +00:00
|
|
|
sItemBase Bank[ABANK_COUNT];
|
2020-08-26 17:40:10 +00:00
|
|
|
sItemTrade Trade[12];
|
|
|
|
int32_t moneyInTrade;
|
2020-08-27 02:35:13 +00:00
|
|
|
bool isTrading;
|
|
|
|
bool isTradeConfirm;
|
2020-08-21 20:09:52 +00:00
|
|
|
bool IsGM;
|
2020-09-10 13:01:35 +00:00
|
|
|
|
2020-09-13 18:45:51 +00:00
|
|
|
int64_t aQuestFlag[16];
|
2020-09-10 16:40:38 +00:00
|
|
|
int tasks[ACTIVE_MISSION_COUNT];
|
2020-09-10 13:01:35 +00:00
|
|
|
sItemBase QInven[AQINVEN_COUNT];
|
2020-08-18 20:42:30 +00:00
|
|
|
};
|