mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-08-23 09:30:56 +02:00
Started implementing retainers. Added a instanced retainer spawn. Documented retainer scripts.
This commit is contained in:
parent
b5054debea
commit
f437b36f5a
19 changed files with 313 additions and 34 deletions
31
FFXIVClassic Map Server/actors/chara/npc/Retainer.cs
Normal file
31
FFXIVClassic Map Server/actors/chara/npc/Retainer.cs
Normal file
|
@ -0,0 +1,31 @@
|
|||
using FFXIVClassic_Map_Server.actors.chara.player;
|
||||
using FFXIVClassic_Map_Server.Actors;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FFXIVClassic_Map_Server.actors.chara.npc
|
||||
{
|
||||
class Retainer : Npc
|
||||
{
|
||||
public Retainer(uint id, string retainerName, ActorClass actorClass, Player player, float posX, float posY, float posZ, float rot)
|
||||
: base(0, actorClass, String.Format("_rtnre{0:x7}", id), player.GetZone(), posX, posY, posZ, rot, 0, 0, retainerName)
|
||||
{
|
||||
this.actorId = 0xD0000000 | id;
|
||||
}
|
||||
|
||||
public void SendBazaarItems(Player player)
|
||||
{
|
||||
Inventory bazaar = new Inventory(this, 4, Inventory.RETAINER_BAZAAR);
|
||||
bazaar.SendFullInventory(player);
|
||||
}
|
||||
|
||||
public void SendStorageItems(Player player)
|
||||
{
|
||||
Inventory storage = new Inventory(this, 4, 1);
|
||||
storage.SendFullInventory(player);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue