mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-24 19:38:26 +02:00
Began working on server zone changes.
This commit is contained in:
parent
5370f13b2b
commit
58fda93b45
9 changed files with 186 additions and 17 deletions
|
@ -8,6 +8,7 @@ using System.IO;
|
|||
using FFXIVClassic_Map_Server.packets.send.actor;
|
||||
using FFXIVClassic_Map_Server.packets.send;
|
||||
using FFXIVClassic_Map_Server.lua;
|
||||
using FFXIVClassic_Map_Server.Actors;
|
||||
|
||||
namespace FFXIVClassic_Map_Server
|
||||
{
|
||||
|
@ -74,7 +75,9 @@ namespace FFXIVClassic_Map_Server
|
|||
if (cmd.Any())
|
||||
{
|
||||
// if client isnt null, take player to be the player actor
|
||||
var player = session.GetActor();
|
||||
Player player = null;
|
||||
if (session != null)
|
||||
player = session.GetActor();
|
||||
|
||||
if (cmd.Equals("help"))
|
||||
{
|
||||
|
|
|
@ -37,6 +37,18 @@ namespace FFXIVClassic_Map_Server
|
|||
//Normal Game Opcode
|
||||
switch (subpacket.gameMessage.opcode)
|
||||
{
|
||||
//World Server - End Session
|
||||
case 0x1000:
|
||||
session.GetActor().CleanupAndSave();
|
||||
break;
|
||||
//World Server - End Session and Zone
|
||||
case 0x1001:
|
||||
|
||||
session.GetActor().CleanupAndSave();
|
||||
break;
|
||||
//World Server - Begin Session
|
||||
case 0x1002:
|
||||
break;
|
||||
//Ping
|
||||
case 0x0001:
|
||||
//subpacket.DebugPrintSubPacket();
|
||||
|
@ -86,7 +98,7 @@ namespace FFXIVClassic_Map_Server
|
|||
//Update Position
|
||||
case 0x00CA:
|
||||
//Update Position
|
||||
//subpacket.DebugPrintSubPacket();
|
||||
subpacket.DebugPrintSubPacket();
|
||||
UpdatePlayerPositionPacket posUpdate = new UpdatePlayerPositionPacket(subpacket.data);
|
||||
session.UpdatePlayerActorPosition(posUpdate.x, posUpdate.y, posUpdate.z, posUpdate.rot, posUpdate.moveState);
|
||||
session.GetActor().SendInstanceUpdate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue