server-master/srcs/_plugins/WingsEmu.Plugins.BasicImplementation/NpcDialogs/Teleport/TeleportGrenigasSquareHandler.cs
2026-02-10 18:21:30 +01:00

29 lines
No EOL
965 B
C#

using System.Threading.Tasks;
using WingsEmu.Game._NpcDialog;
using WingsEmu.Game._NpcDialog.Event;
using WingsEmu.Game.Networking;
using WingsEmu.Packets.Enums;
namespace WingsEmu.Plugins.BasicImplementations.NpcDialogs.Teleport;
public class TeleportGrenigasSquareHandler : INpcDialogAsyncHandler
{
public NpcRunType[] NpcRunTypes => new[] { NpcRunType.TELEPORT_GRENIGAS_SQUARE };
public async Task Execute(IClientSession session, NpcDialogEvent e)
{
/*INpcEntity npcEntity = session.CurrentMapInstance.GetNpcById(e.NpcId);
if (npcEntity == null || !session.PlayerEntity.HasItem((short)ItemVnums.RUNE_PIECE))
{
return;
}
if (session.CurrentMapInstance.MapInstanceType != MapInstanceType.BaseMapInstance)
{
return;
}
session.ChangeMap(2536, 26, 31);
await session.EmitEventAsync(new InventoryRemoveItemEvent((short)ItemVnums.RUNE_PIECE));*/
}
}