mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
- regex'd in mysqlexception logging - servers can now specify server_port, log_path, log_file - added scripts to import/export all tables (exporting will export a handful of garbage table names, open and check for structure before deleting) - fixed packet logging (thanks deviltti)
51 lines
1.7 KiB
C#
51 lines
1.7 KiB
C#
using FFXIVClassic_Map_Server.packets;
|
|
using FFXIVClassic_Map_Server.Actors;
|
|
using FFXIVClassic_Map_Server.lua;
|
|
using FFXIVClassic_Map_Server.packets.send.actor;
|
|
using System.Collections.Generic;
|
|
|
|
namespace FFXIVClassic_Map_Server.actors.director
|
|
{
|
|
class Director : Actor
|
|
{
|
|
Player owner;
|
|
|
|
public Director(Player owner, uint id) : base(id)
|
|
{
|
|
this.owner = owner;
|
|
}
|
|
|
|
public virtual BasePacket getSpawnPackets(uint playerActorId, uint spawnType)
|
|
{
|
|
List<SubPacket> subpackets = new List<SubPacket>();
|
|
subpackets.Add(createAddActorPacket(playerActorId, 0));
|
|
subpackets.AddRange(getEventConditionPackets(playerActorId));
|
|
subpackets.Add(createSpeedPacket(playerActorId));
|
|
subpackets.Add(createSpawnPositonPacket(playerActorId, 0));
|
|
subpackets.Add(createNamePacket(playerActorId));
|
|
subpackets.Add(createStatePacket(playerActorId));
|
|
subpackets.Add(createIsZoneingPacket(playerActorId));
|
|
subpackets.Add(createScriptBindPacket(playerActorId));
|
|
return BasePacket.createPacket(subpackets, true, false);
|
|
}
|
|
|
|
public override BasePacket getInitPackets(uint playerActorId)
|
|
{
|
|
SetActorPropetyPacket initProperties = new SetActorPropetyPacket("/_init");
|
|
initProperties.addTarget();
|
|
return BasePacket.createPacket(initProperties.buildPacket(playerActorId, actorId), true, false);
|
|
}
|
|
|
|
public void onTalked(Npc npc)
|
|
{
|
|
LuaEngine.doDirectorOnTalked(this, owner, npc);
|
|
}
|
|
|
|
public void onCommand(Command command)
|
|
{
|
|
LuaEngine.doDirectorOnCommand(this, owner, command);
|
|
}
|
|
|
|
}
|
|
}
|