mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-16 17:05:03 +01:00
Merge branch 'main' into main
This commit is contained in:
@@ -9,7 +9,8 @@ CREATE DOMAIN uint16 AS integer
|
|||||||
CREATE TABLE users (
|
CREATE TABLE users (
|
||||||
id serial NOT NULL PRIMARY KEY,
|
id serial NOT NULL PRIMARY KEY,
|
||||||
username text UNIQUE NOT NULL,
|
username text UNIQUE NOT NULL,
|
||||||
password text NOT NULL
|
password text NOT NULL,
|
||||||
|
item_box bytea
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE characters (
|
CREATE TABLE characters (
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ package mhfpacket
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/Solenataris/Erupe/network/clientctx"
|
|
||||||
"github.com/Solenataris/Erupe/network"
|
|
||||||
"github.com/Andoryuuta/byteframe"
|
"github.com/Andoryuuta/byteframe"
|
||||||
|
"github.com/Solenataris/Erupe/network"
|
||||||
|
"github.com/Solenataris/Erupe/network/clientctx"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MsgMhfEnumerateUnionItem represents the MSG_MHF_ENUMERATE_UNION_ITEM
|
// MsgMhfEnumerateUnionItem represents the MSG_MHF_ENUMERATE_UNION_ITEM
|
||||||
|
|||||||
@@ -3,11 +3,18 @@ package mhfpacket
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/Solenataris/Erupe/network/clientctx"
|
|
||||||
"github.com/Solenataris/Erupe/network"
|
|
||||||
"github.com/Andoryuuta/byteframe"
|
"github.com/Andoryuuta/byteframe"
|
||||||
|
"github.com/Solenataris/Erupe/network"
|
||||||
|
"github.com/Solenataris/Erupe/network/clientctx"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type Item struct {
|
||||||
|
Unk0 uint32
|
||||||
|
ItemId uint16
|
||||||
|
Amount uint16
|
||||||
|
Unk1 uint32
|
||||||
|
}
|
||||||
|
|
||||||
// MsgMhfUpdateUnionItem represents the MSG_MHF_UPDATE_UNION_ITEM
|
// MsgMhfUpdateUnionItem represents the MSG_MHF_UPDATE_UNION_ITEM
|
||||||
type MsgMhfUpdateUnionItem struct {
|
type MsgMhfUpdateUnionItem struct {
|
||||||
AckHandle uint32
|
AckHandle uint32
|
||||||
|
|||||||
@@ -2,12 +2,14 @@ package channelserver
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"encoding/binary"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
|
|
||||||
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"math/bits"
|
"math/bits"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"fmt"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/Andoryuuta/byteframe"
|
"github.com/Andoryuuta/byteframe"
|
||||||
@@ -405,6 +407,11 @@ func handleMsgMhfAcquireTitle(s *Session, p mhfpacket.MHFPacket) {}
|
|||||||
|
|
||||||
func handleMsgMhfEnumerateTitle(s *Session, p mhfpacket.MHFPacket) {}
|
func handleMsgMhfEnumerateTitle(s *Session, p mhfpacket.MHFPacket) {}
|
||||||
|
|
||||||
|
type Item struct {
|
||||||
|
ItemId uint16
|
||||||
|
Amount uint16
|
||||||
|
}
|
||||||
|
|
||||||
func handleMsgMhfEnumerateUnionItem(s *Session, p mhfpacket.MHFPacket) {
|
func handleMsgMhfEnumerateUnionItem(s *Session, p mhfpacket.MHFPacket) {
|
||||||
pkt := p.(*mhfpacket.MsgMhfEnumerateUnionItem)
|
pkt := p.(*mhfpacket.MsgMhfEnumerateUnionItem)
|
||||||
var boxContents []byte
|
var boxContents []byte
|
||||||
|
|||||||
Reference in New Issue
Block a user