Beispiel #1
0
 public string GenerateIn(InRespawnType respawnType = InRespawnType.NoEffect)
 {
     if (!IsDisabled)
     {
         return(StaticPacketHelper.In(UserType.Npc, NpcVNum, MapNpcId, MapX, MapY, Position, 100, 100, Dialog, respawnType, IsSitting));
     }
     return(string.Empty);
 }
Beispiel #2
0
 public string GenerateIn()
 {
     if (IsAlive && !IsDisabled)
     {
         return(StaticPacketHelper.In(UserType.Monster, MonsterVNum, MapMonsterId, MapX, MapY, Position, (int)((float)CurrentHp / (float)MaxHp * 100), (int)((float)CurrentMp / (float)MaxMp * 100), 0, NoAggresiveIcon ? InRespawnType.NoEffect : InRespawnType.TeleportationEffect, false));
     }
     return(string.Empty);
 }
Beispiel #3
0
        public string GenerateIn(InRespawnType respawnType = InRespawnType.NoEffect)
        {
            NpcMonster npcinfo = ServerManager.GetNpcMonster(NpcVNum);

            if (npcinfo == null || IsDisabled || !IsAlive)
            {
                return("");
            }
            IsOut = false;
            return(StaticPacketHelper.In(UserType.Npc, Npc.OriginalNpcMonsterVNum > 0 ? Npc.OriginalNpcMonsterVNum : NpcVNum, MapNpcId, MapX, MapY, Position, 100, 100, Dialog, respawnType, IsSitting, string.IsNullOrEmpty(Name) ? "-" : Name, Invisible));
        }
Beispiel #4
0
 public string GenerateIn() => StaticPacketHelper.In(Domain.UserType.Object, State ? EnabledVNum : DisabledVNum, MapButtonId, PositionX, PositionY, 1, 0, 0, 0, 0, false);
Beispiel #5
0
 public string GenerateIn() => StaticPacketHelper.In(Domain.UserType.Object, ItemVNum, TransportId, PositionX, PositionY, this is MonsterMapItem monsterMapItem && monsterMapItem.GoldAmount > 1 ? monsterMapItem.GoldAmount : Amount, 0, 0, 0, 0, false, "-", false);