• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# Network.WorldClient类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Aura.World.Network.WorldClient的典型用法代码示例。如果您正苦于以下问题:C# WorldClient类的具体用法?C# WorldClient怎么用?C# WorldClient使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



WorldClient类属于Aura.World.Network命名空间,在下文中一共展示了WorldClient类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: AgeIncrease

        /// <summary>
        /// Sends Age Increase Packet
        /// </summary>
        /// <param name="client"></param>
        /// <param name="creature"></param>
        /// <param name="age"></param>
        public static void AgeIncrease(WorldClient client, MabiPC player, ushort age)
        {
            var p = new MabiPacket(Op.AgeIncrease, player.Id);
            p.PutShort(age);

            client.Send(p);
        }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:13,代码来源:Send.Character.cs


示例2: OnTalk

    public override IEnumerable OnTalk(WorldClient c)
    {
        Msg(c, Options.FaceAndName, "With his rough skin, menacing face, and his constant hard-breathing,<br/>he has the sure look of a Goblin.<br/>Yet, there is something different about this one.<br/>Strangely, it appears to have a sense of noble demeanor that does not match its rugged looks.");

        Msg(c, "How can I help you?", Button("Start Conversation", "@talk"), Button("Shop", "@shop"));

        var r = Select(c);
        switch (r)
        {
            case "@talk":
            {
                Msg(c, "Welcome, what a smart man you are.<br/>My name is Goro.<br/>Ah, do not be surprised. I have no intention of hurting you.");

            L_Keywords:
                Msg(c, Options.Name, "(Goro is looking at me)");
                ShowKeywords(c);

                var keyword = Select(c);

                Msg(c, "Can we change the subject?");
                goto L_Keywords;
            }

            case "@shop":
            {
                Msg(c, "What do you need?<br/>You must be fully prepared if you wish to enter the Battle Arena.");
                OpenShop(c);
                End();
            }
        }
    }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:31,代码来源:goro.cs


示例3: OnTalk

    public override IEnumerable OnTalk(WorldClient c)
    {
        Msg(c, Options.FaceAndName, "Under the wide brim of the Mongo hat, her lovely blonde hair dances in the gentle breeze.<br/>Her delicate neck stretches out of the lace collar of her intricately tailored rosy-pink dress.<br/>Her big, bright jade eyes twinkle<br/>and her round face, like porcelain, is so fair that it looks pale.");
        Msg(c, "Do you have something to say?", Button("Start Conversation", "@talk"));

        var r = Select(c);
        switch (r)
        {
            case "@talk":
            {
                Msg(c, "You must be a visitor in this town, aren't you?");
                Msg(c, "<username/>..");
                Msg(c, "Me... I'm Ibbie.");

            L_Keywords:
                Msg(c, Options.Name, "(Ibbie is slowly looking me over.)");
                ShowKeywords(c);

                var keyword = Select(c);

                Msg(c, "Can we change the subject?");
                goto L_Keywords;
            }
        }
    }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:25,代码来源:ibbie.cs


示例4: OnTouch

 public void OnTouch(WorldClient c, MabiPC cr, MabiProp pr)
 {
     var r = RandomProvider.Get();
     var p = _revivalLocations[r.Next(_revivalLocations.Length)];
     // Just warp them for now
     c.Warp(29, p.X, p.Y);
 }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:7,代码来源:arena.cs


示例5: OnTalk

    public override IEnumerable OnTalk(WorldClient c)
    {
        Msg(c, Options.FaceAndName, "Many intricate tattoos cover his dark, tanned skin.<br/>Beneath his shimmering white hair beams a calm, friendly smile.");
        Msg(c, "Do you have business with me?", Button("Start Conversation", "@talk"), Button("Disembark", "@disembark"));

        var r = Select(c);
        switch (r)
        {
            case "@talk":
            {
                Msg(c, "I'm Karis, the younger brother of Captain Carasek.<br/>It's good to meet you.<br/>Shall we set sail?");

            L_Keywords:
                Msg(c, Options.Name, "(Karis is waiting for me to say something.)");
                ShowKeywords(c);

                var keyword = Select(c);

                Msg(c, "Can we change the subject?");
                goto L_Keywords;
            }
            case "@disembark":
            {
                Msg(c, "(Unimplemented)");
                End();
            }
        }
    }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:28,代码来源:carys_to_iria_model.cs


示例6: OnTalk

    public override IEnumerable OnTalk(WorldClient c)
    {
        Msg(c, Options.FaceAndName, "He has the provocative complexion of dark rum and has a detailed tattoo on him<br/>And with his white hair like the foam of the ocean waters<br/>he smiles a gentle smile that is much like the wet sand on the beach.");
        Msg(c, "Seems like you want to talk to me about something.", Button("Start Conversation", "@talk"), Button("Disembark", "@disembark"));

        var r = Select(c);
        switch (r)
        {
            case "@talk":
            {
                Msg(c, "I'm Carasek, the captain of this ship. Welcome aboard. Let's set sail!");

            L_Keywords:
                Msg(c, Options.Name, "(Carasek is paying attention to me.)");
                ShowKeywords(c);

                var keyword = Select(c);

                Msg(c, "Can we change the subject?");
                goto L_Keywords;
            }
            case "@disembark":
            {
                Msg(c, "(Unimplemented)");
                End();
            }
        }
    }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:28,代码来源:carasek_cobh_model.cs


示例7: OnTalk

    public override IEnumerable OnTalk(WorldClient c)
    {
        Msg(c, Options.FaceAndName, "(A crystal ball is placed on a small table.<br/>While staring at the marble, I hear someone speak.)");
        Msg(c, "This is the place where your world and your memories co-exist.<br/>It is where the knowledge and history of Erinn stays alive,<br/>while it is also a place where your past journeys are found.");

        // TODO: Filter based on G completion

        MsgSelect(c, "Use this powerful crystal ball to<br/>see your experiences in Erinn unfold right before your eyes.<br/>You will have to pay a little to view this.<br/>Which memory would you like to see?",
            Button("Chapter 1 (G1-3)", "@c1"), Button("Chapter 2 (G4-8)", "@c2"), Button("Chapter 3 (G9-12)", "@c3"), Button("Chapter 4 (G13-17)", "@g4"), Button("Quit", "@end"));

        var r = Wait();

        switch (r)
        {
            case "@c1":
                SubTalk(C1(c));
                break;
            case "@c2":
                SubTalk(C2(c));
                break;
            case "@c3":
                SubTalk(C3(c));
                break;
            case "@c4":
                SubTalk(C4(c));
                break;
        }

        End();
    }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:30,代码来源:crystal_ball_base.cs


示例8: TalkDuncan

    public IEnumerable TalkDuncan(WorldClient c, NPCScript n)
    {
        if (QuestActive(c, this.Id))
        {
            FinishQuestObjective(c, this.Id, "talk_duncan");

            n.Msg(c, Options.Name, "(You hand Nao's Letter of Introduction to Duncan.)");
            n.Msg(c, "Ah, a letter from Nao.<br/>Hard to believe that little<br/>tomboy's all grown up...");
            n.Msg(c, Options.Name, "(Duncan folds the letter in half and puts it in his pocket.)");
            n.Msg(c, "So, you're <username/>.<br/>I'm Duncan, the chief of this town.<br/>Welcome to Tir Chonaill.");
            n.Msg(c, "Would you like to learn how to complete quests?");
            n.Msg(c, n.Image("npctalk_questwindow", true, 272, 235), n.Text("Press the "), n.Hotkey("QuestView"), n.Text(" key or<br/>press the Quest button at the bottom of your screen.<br>The quest window will appear and display your current quests."));

            while (true)
            {
                n.Msg(c, n.Text("Press the "), n.Hotkey("QuestView"), n.Text(" key or<br/>press the Quest button at the bottom of your screen."), n.Button("I pressed the Quest button", "@pressed"), n.Button("$hidden", "@quest_btn_clicked", "autoclick_QuestView"));
                var r = n.Select(c);
                if (r != "@pressed")
                    break;
                n.Msg(c, "Hmm... Are you sure you pressed the Quest button?<br/>It's possible that the Quest Window was already open, so<br/>try pressing it again.");
            }

            n.Msg(c, "Well done. See the list of quests?<br/>Clicking on a quest brings up the quest's details.<br/>Quests will show a yellow Complete button<br/>next to their names when you finish them.");
            n.Msg(c, "Try pressing the Complete button now.<br/>As important as it is to complete quests,<br/>it's just as important to press the \"Complete\" button<br/>afterwards to recieve your rewards.");
            n.Msg(c, "(Duncan looks at you with his benevolent hazel eyes.)");
            n.Msg(c, "You've just learned one very basic skill<br/>to survive in Erinn.");
            n.Msg(c, "Soon, you will recieve a quest from an owl.<br/>Then, you will be able to start your training for real.");

            Break();
        }

        End();
    }
开发者ID:nvrlcky,项目名称:aura,代码行数:33,代码来源:uladh.cs


示例9: OnTalk

    public override IEnumerable OnTalk(WorldClient c)
    {
        Msg(c, Options.FaceAndName, "His straight posture gives him a strong, resolute impression even though he's only slightly taller than average height. Clean shaven, well groomed hair, spotless appearance and dark green vest make him look like a dandy.<br/>His neat looks, dark and thick eyebrows and the strong jaw line harmonized with the deep baritone voice complete the impression of an affable gentleman.");

        Msg(c, "Welcome to my Inn.", Button("Start Conversation", "@talk"), Button("Shop", "@shop"));

        var r = Select(c);
        switch (r)
        {
            case "@talk":
            {
                Msg(c, "Hello, nice to meet you.<br/>I am Piaras.");

            L_Keywords:
                Msg(c, Options.Name, "(Piaras is waiting for me to say something.)");
                ShowKeywords(c);

                var keyword = Select(c);

                Msg(c, "I'd love to listen to you, but about something else.");
                goto L_Keywords;
            }

            case "@shop":
            {
                Msg(c, "May I ask what you're looking for?");
                OpenShop(c);
                End();
            }
        }
    }
开发者ID:nvrlcky,项目名称:aura,代码行数:31,代码来源:piaras.cs


示例10: CharacterLock

        /// <summary>
        /// Sends lock for creature.
        /// </summary>
        /// <param name="client"></param>
        /// <param name="creature"></param>
        /// <param name="lockType"></param>
        public static void CharacterLock(WorldClient client, MabiCreature creature, uint lockType = 0xEFFFFFFE)
        {
            var p = new MabiPacket(Op.CharacterLock, creature.Id);
            p.PutInt(lockType);
            p.PutInt(0);

            client.Send(p);
        }
开发者ID:nvrlcky,项目名称:aura,代码行数:14,代码来源:Send.Character.cs


示例11: Check

    public override bool Check(WorldClient c, MabiPC cr, MabiProp prop)
    {
        // Wand
        if(cr.RightHand != null && cr.RightHand.Info.Class >= 40038 && cr.RightHand.Info.Class <= 40041)
            return true;

        return false;
    }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:8,代码来源:sealstones.cs


示例12: Close

 public virtual void Close(WorldClient client, string message = "<end/>")
 {
     var p = new MabiPacket(Op.NPCTalkEndR, client.Character.Id);
     p.PutByte(1);
     p.PutLong(client.NPCSession.Target.Id);
     p.PutString(message);
     client.Send(p);
 }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:8,代码来源:NPCScript.cs


示例13: CompleteQuest

        /// <summary>
        /// Completes the given quest.
        /// </summary>
        /// <param name="client"></param>
        /// <param name="id"></param>
        protected void CompleteQuest(WorldClient client, uint id)
        {
            var quest = (client.Character as MabiPC).GetQuestOrNull(id);
            if (quest == null)
                return;

            quest.State = MabiQuestState.Complete;
            WorldManager.Instance.CreatureCompletesQuest(client.Character, quest, true);
        }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:14,代码来源:BaseScript.Quests.cs


示例14: GetMailsResponse

        public static void GetMailsResponse(WorldClient client, IEnumerable<MabiMail> mails)
        {
            var p = new MabiPacket(Op.GetMailsR, client.Character.Id);
            foreach (var mail in mails)
                p.Add(mail);
            p.PutLong(0);

            client.Send(p);
        }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:9,代码来源:Send.Mail.cs


示例15: Play

        /// <summary>
        /// Starts the cutscene.
        /// Sends: EntityDisappears, EntitiesDisappear, Lock, CutsceneStart
        /// </summary>
        /// <param name="client"></param>
        public void Play(WorldClient client)
        {
            client.Character.Temp.CurrentCutscene = this;

            Send.EntityDisappears(client.Character);
            Send.EntitiesDisappear(client, WorldManager.Instance.GetCreaturesInRange(client.Character));
            Send.CharacterLock(client, client.Character);
            Send.CutsceneStart(client, this);
        }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:14,代码来源:MabiCutscene.cs


示例16: ConfirmMailRecipentResponse

        public static void ConfirmMailRecipentResponse(WorldClient client, bool success, ulong recipientId)
        {
            var packet = new MabiPacket(Op.ConfirmMailRecipentR, client.Character.Id);
            packet.PutByte(success);
            if (success)
                packet.PutLong(recipientId);

            client.Send(packet);
        }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:9,代码来源:Send.Mail.cs


示例17: NPCTalkStartResponse

        public static void NPCTalkStartResponse(WorldClient client, bool success, ulong npcId)
        {
            var packet = new MabiPacket(Op.NPCTalkStartR, client.Character.Id);
            packet.PutByte(success);
            if (success)
                packet.PutLong(npcId);

            client.Send(packet);
        }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:9,代码来源:Send.NPC.cs


示例18: NPCTalkKeywordResponse

        public static void NPCTalkKeywordResponse(WorldClient client, bool success, string keyword)
        {
            var packet = new MabiPacket(Op.NPCTalkKeywordR, client.Character.Id);
            packet.PutByte(success);
            if (success)
                packet.PutString(keyword);

            client.Send(packet);
        }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:9,代码来源:Send.NPC.cs


示例19: OnTalk

    public override IEnumerable OnTalk(WorldClient c)
    {
        Msg(c,
            "Your wine is aging, your wine is aging!<br/>Buy interesting goods and trade in Bandit Badges!",
            Button("Trade", "@shop"), Button("Trade In Bandit Badges", "@trade"),
            Button("Exchange Bandit Badges","@exchange"), Button("Repair Fomor Weapons",
            "@repair"), Button("Ferment wine", "@ferment"), Button("End Conversation", "@end")
        );

        var r = Select(c);
        switch (r)
        {
            case "@shop":
            {
                Msg(c, "What are you looking for?");
                OpenShop(c);
                End();
            }

            case "@trade":
            {
                Msg(c, "So, were you able to catch plenty of those bandits?<br/>I'll give you some Ducats for proof that you took care of them.");

                // selection window

                Msg(c, "I'll be seeing you, then.");
                End();
            }

            case "@exchange":
            {
                Msg(c, "So, were you able to catch plenty of those bandits?<br/>Hey, if you're sick of carrying all those badges, I'll trade you<br/>for a better one. I know how heavy they can get.");

                // selection window

                Msg(c, "I'll be seeing you, then.");
                End();
            }

            case "@repair":
            {
                Msg(c, "If it's a Fomor weapon, just leave it to me.");

                // selection window

                Msg(c, "If it breaks again, come to me for repairs. Just me. Not the others. Me.");
                End();
            }

            case "@ferment":
            {
                Msg(c, "(Unimplmented)");
                End();
            }
        }
    }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:56,代码来源:imp_base.cs


示例20: OnTalk

 public override IEnumerable OnTalk(WorldClient c)
 {
     switch(RandomProvider.Get().Next(0, 2))
     {
         case 0: Msg(c, "Whoa, the clothes you're wearing seem fancy!<br/>Would you like me to sell them to me?"); break;
         case 1: Msg(c, "Honesty and trust should be the basis for all business.<br/>Just so long as people don't end up like Madoc."); break;
         case 2: Msg(c, "I haven't been able to conduct<br/>business in peace because of those blasted pirates."); break;
     }
     End();
 }
开发者ID:nvrlcky,项目名称:aura,代码行数:10,代码来源:tamon.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# World.MabiCreature类代码示例发布时间:2022-05-24
下一篇:
C# Network.Packet类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap