当前位置: 首页>>代码示例>>C#>>正文


C# ZoneCharacter.DropMessage方法代码示例

本文整理汇总了C#中Zepheus.Zone.Game.ZoneCharacter.DropMessage方法的典型用法代码示例。如果您正苦于以下问题:C# ZoneCharacter.DropMessage方法的具体用法?C# ZoneCharacter.DropMessage怎么用?C# ZoneCharacter.DropMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zepheus.Zone.Game.ZoneCharacter的用法示例。


在下文中一共展示了ZoneCharacter.DropMessage方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SpawnMobT

 private void SpawnMobT(ZoneCharacter character, params string[] param)
 {
     ushort id = ushort.Parse(param[1]);
     int count = 1;
     if (param.Length >= 3)
     {
         count = int.Parse(param[2]);
     }
     if (DataProvider.Instance.MobsByID.ContainsKey(id))
     {
         for (int i = 0; i < count; i++)
         {
             Mob mob = new Mob(id, new Vector2(character.Position));
             character.Map.FullAddObject(mob);
         }
     }
     else character.DropMessage("Monster ID not found.");
 }
开发者ID:Zepheus,项目名称:Zepheus_Fiesta,代码行数:18,代码来源:CommandHandler.cs

示例2: Test

 private void Test(ZoneCharacter character, params string[] param)
 {
     ushort skillid = ushort.Parse(param[1]);
     if (!DataProvider.Instance.ActiveSkillsByID.ContainsKey(skillid))
     {
         character.DropMessage("Unknown skill.");
     }
     else if (character.SkillsActive.ContainsKey(skillid))
     {
         character.DropMessage("You already have that skill");
     }
     else
     {
         character.SkillsActive.Add(skillid, new Skill(character, skillid));
         Handler18.SendSkillLearnt(character, skillid);
     }
 }
开发者ID:Zepheus,项目名称:Zepheus_Fiesta,代码行数:17,代码来源:CommandHandler.cs

示例3: Pos

 private void Pos(ZoneCharacter character, params string[] param)
 {
     character.DropMessage("Map= {0} ({1}); Pos= {2}:{3};",
         character.Map.MapID,
         character.Map.MapInfo.FullName,
         character.Position.X,
         character.Position.Y);
 }
开发者ID:Zepheus,项目名称:Zepheus_Fiesta,代码行数:8,代码来源:CommandHandler.cs

示例4: SpawnMob

 private void SpawnMob(ZoneCharacter character, params string[] param)
 {
     ushort id = ushort.Parse(param[1]);
     if (DataProvider.Instance.MobsByID.ContainsKey(id))
     {
         Mob mob = new Mob((ushort)(param.Length == 2 ? id : 1045), new Vector2(character.Position));
         character.Map.FullAddObject(mob);
     }
     else character.DropMessage("Monster ID not found.");
 }
开发者ID:Zepheus,项目名称:Zepheus_Fiesta,代码行数:10,代码来源:CommandHandler.cs

示例5: List

 private void List(ZoneCharacter character, params string[] param)
 {
     character.DropMessage("Your l33t commands:");
     foreach (var kvp in commands)
     {
         if (kvp.Value.GmLevel <= character.Client.Admin)
         {
             character.DropMessage("{0} {1}", kvp.Key, string.Join(" ", kvp.Value.Parameters));
         }
     }
 }
开发者ID:Zepheus,项目名称:Zepheus_Fiesta,代码行数:11,代码来源:CommandHandler.cs

示例6: Performance

 private void Performance(ZoneCharacter character, params string[] param)
 {
     character.DropMessage("Ticks per second on this zone: {0}", Worker.Instance.TicksPerSecond);
 }
开发者ID:Zepheus,项目名称:Zepheus_Fiesta,代码行数:4,代码来源:CommandHandler.cs

示例7: IsGay

        private void IsGay(ZoneCharacter character, params string[] param)
        {
            ZoneClient otherclient = ClientManager.Instance.GetClientByName(param[1]);
            if (otherclient == null || otherclient.Character == null)
            {
                character.DropMessage("Character not found.");
            }
            ZoneCharacter other = otherclient.Character;

            Question question = new Question("Are you gay?", new QuestionCallback(AnswerGay), character);
            question.Add("Yes", "No", "Boobs!");
            other.Question = question;
            question.Send(other);
        }
开发者ID:Zepheus,项目名称:Zepheus_Fiesta,代码行数:14,代码来源:CommandHandler.cs

示例8: ItemCommand

        private void ItemCommand(ZoneCharacter character, params string[] param)
        {
            ushort id = ushort.Parse(param[1]);
            byte amount = 1;
            if (param.Length > 2)
            {
                amount = byte.Parse(param[2]);
            }

            switch (character.GiveItem(id, amount))
            {
                case FiestaLib.InventoryStatus.FULL:
                    Handler12.InventoryFull(character);
                    return;
                case FiestaLib.InventoryStatus.NOT_FOUND:
                    character.DropMessage("Item not found.");
                    return;
            }
        }
开发者ID:Zepheus,项目名称:Zepheus_Fiesta,代码行数:19,代码来源:CommandHandler.cs

示例9: CommandParam

 private void CommandParam(ZoneCharacter character, params string[] param)
 {
     string input = param[1];
     string request;
     if (!input.StartsWith("&"))
     {
         request = "&" + input;
     }
     else request = input;
     CommandInfo info;
     if (commands.TryGetValue(request, out info))
     {
         string output = request + ": ";
         if (info.Parameters.Length > 0)
         {
             foreach (var par in info.Parameters)
             {
                 output += "[" + par + "] ";
             }
         }
         else output += "None";
         character.DropMessage(output);
     }
     else character.DropMessage("Command not found.");
 }
开发者ID:Zepheus,项目名称:Zepheus_Fiesta,代码行数:25,代码来源:CommandHandler.cs

示例10: ChangeMap

        private void ChangeMap(ZoneCharacter character, params string[] param)
        {
            ushort mapid = 0;
            if (!ushort.TryParse(param[1], out mapid))
            {
                param[1] = param[1].ToLower();
                var map = DataProvider.Instance.MapsByID.Values.ToList().Find(m => m.ShortName.ToLower() == param[1]);
                if (map != null)
                {
                    mapid = map.ID;
                }
                else
                {
                    character.DropMessage("Map not found");
                    return;
                }
            }
            else
            {
                if (!DataProvider.Instance.MapsByID.ContainsKey(mapid))
                {
                    character.DropMessage("Map not found");
                    return;
                }
            }

            if (param.Length > 2)
            {
                int x = int.Parse(param[2]);
                int y = int.Parse(param[3]);
                character.ChangeMap(mapid, x, y);
            }
            character.ChangeMap(mapid);
        }
开发者ID:Zepheus,项目名称:Zepheus_Fiesta,代码行数:34,代码来源:CommandHandler.cs

示例11: AdminLevel

 private void AdminLevel(ZoneCharacter character, params string[] param)
 {
     Log.WriteLine(LogLevel.Debug, "GM {0} authenticated ingame.", character.Name);
     character.DropMessage("Admin level is {0}", character.Client.Admin);
     InterHandler.SendWorldMessage(FiestaLib.WorldMessageTypes.Level20, "Fun!");
 }
开发者ID:Zepheus,项目名称:Zepheus_Fiesta,代码行数:6,代码来源:CommandHandler.cs

示例12: SpawnMobT

 private void SpawnMobT(ZoneCharacter character, params string[] param)
 {
     string mobName = param[1];
     int count = 1;
     if (param.Length >= 3)
     {
         count = int.Parse(param[2]);
     }
     if (DataProvider.Instance.MobsByName.ContainsKey(mobName))
     {
         ushort mobID = DataProvider.Instance.MobsByName[mobName].ID;
         for (int i = 0; i < count; i++)
         {
             Mob mob = new Mob(mobID, new Vector2(character.Position));
             character.Map.FullAddObject(mob);
         }
     }
     else character.DropMessage("Monster Name not found.");
 }
开发者ID:Canic,项目名称:Zepheus_2k15,代码行数:19,代码来源:CommandHandler.cs

示例13: AdminLevel

 private void AdminLevel(ZoneCharacter character, params string[] param)
 {
     Log.WriteLine(LogLevel.Debug, "GM {0} authenticated ingame.", character.Name);
     character.DropMessage("Admin level is {0}", character.Client.Admin);
 }
开发者ID:Canic,项目名称:Zepheus_2k15,代码行数:5,代码来源:CommandHandler.cs


注:本文中的Zepheus.Zone.Game.ZoneCharacter.DropMessage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。