mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-05 06:50:04 +00:00
d3ca93a9b8
* Sanity checks + Starting level changes - Item movement handler checks to make sure items aren't moved from equipment slot to equipment slot. - Item give command checks to make sure an out of bounds item is not spawned (Below iType 0 or above iType 8) - Players now begin at level 36, consequently the item give command does not level you up now. * Initial Trade Implementation * Taros and Trading * working trading system * Trading system code pointerified - It works with the recent pointer changes needed.
34 lines
667 B
C++
34 lines
667 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <cstring>
|
|
|
|
#include "CNProtocol.hpp"
|
|
#include "CNStructs.hpp"
|
|
|
|
struct Player {
|
|
int64_t SerialKey;
|
|
int32_t iID;
|
|
uint64_t FEKey;
|
|
|
|
int level;
|
|
int HP;
|
|
int slot; // player slot, not nano slot
|
|
int32_t money;
|
|
sPCStyle PCStyle;
|
|
sPCStyle2 PCStyle2;
|
|
sNano Nanos[37]; // acquired nanos
|
|
int equippedNanos[3];
|
|
int activeNano; // active nano (index into Nanos)
|
|
int8_t iPCState;
|
|
|
|
int x, y, z, angle;
|
|
sItemBase Equip[AEQUIP_COUNT];
|
|
sItemBase Inven[AINVEN_COUNT];
|
|
sItemTrade Trade[12];
|
|
int32_t moneyInTrade;
|
|
bool IsTrading;
|
|
bool IsTradeConfirm;
|
|
bool IsGM;
|
|
};
|