Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Dispatcher from './Dispatcher';
- import HaapiConnection from './HaapiConnection';
- import Network from './Network';
- import movement from './movement';
- import DTConstants from './DTConstants';
- export default class data {
- public haapi: HaapiConnection;
- public network: Network;
- public dis: Dispatcher;
- public Movement = new movement();
- public key: number[];
- public salt: string;
- public ticket: string;
- public login: string;
- public username: string;
- public password: string;
- public sequence = 0;
- public subscriber = false;
- public createdCamp = false;
- public characterId = 0;
- public currentCell = 0;
- public serverId = 403
- public mapId = 0;
- public createNew = false; // si il est a false on en créé pas
- public blackList = [];
- public tutoGroupe = -4618;
- public tutoInventory = [];
- public itemId = 0;
- public canScrap = true;
- public canScrap2 = true;
- public allId = {};
- public weCanBuy = true;
- public alreadyHDV = true;
- public inventoryHDV = {};
- public crafted = false;
- public idCraft = 100
- public alreadyOnMap = false
- public async init(username, password, serverId) {
- this.haapi = new HaapiConnection();
- this.username = username;
- this.password = password;
- this.serverId = serverId;
- await this.haapi.processHaapi(username, password, serverId);
- this.dis = new Dispatcher();
- this.network = new Network(this.dis);
- this.network.connect(DTConstants.config.sessionId, DTConstants.config.dataUrl);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement