Menu

增加灵魂火炉的制造和全新Help菜单

根据玩家需求的整理,更新了help菜单。将以前的help菜单替换,制作了全新的help菜单。

以前的样子:

现在的样子:

第一个选项是新人状态下的玩家,可以无限制的返回Haven这个城镇。

第二个选项是如果是活着的玩家,可以返回到Haven这个城的月门,但是每一次使用的间隔在1个小时,1个小时内只能使用1次。

第三个选项是死亡的玩家,既幽灵状态下,可以无限制的返回到Haven这个城的月门。至于要去哪复活,由玩家决定。

然后更新了一个flurry这个怪物无法显示的问题。目前已经可以显示了:

然后就是在木工制作的列表中,增加了灵魂火炉的契约制造。

需求和官方的一样:

然后在木工制造中,可以看到新的选项:

需求如下:

以上就是这次版本更新将会提交上服务器的内容。

其中,代码分享:

目前本站help的核心代码如下:

case 0:
                    {
                        if (IsYoung(from))
                        {
                            if (from.Region.IsPartOf(typeof(Regions.Jail)))
                            {
                                from.SendLocalizedMessage(1041530, "", 0x35); // You'll need a better jailbreak plan then that!
                            }
                            else if (from.Region.IsPartOf("Haven Island"))
                            {
                                from.SendLocalizedMessage(1041529); // You're already in Haven
                            }
                            else
                            {
                                from.MoveToWorld(new Point3D(3503, 2574, 14), Map.Trammel);
                            }
                        }
                        else
                        {
                            from.SendMessage("You are not young player , so you do not use it!");
                        }

                        break;
                    }
                case 1:
                    {
                        if (pm.Alive)
                        {

                            TimeSpan timeSpan1 = new TimeSpan(DateTime.Now.Ticks);
                            TimeSpan timeSpan2 = new TimeSpan(pm.LastUseBackHome.Ticks);

                            if (timeSpan2.TotalMinutes == 0)
                            {
                                pm.LastUseBackHome = DateTime.Now;

                                from.MoveToWorld(new Point3D(3450, 2679, 27), Map.Trammel);
                            }
                            else if (timeSpan2.Subtract(timeSpan1).TotalMinutes >= 60)
                            {
                                pm.LastUseBackHome = DateTime.Now;

                                from.MoveToWorld(new Point3D(3450, 2679, 27), Map.Trammel);
                            }
                            else
                            {
                                int minutes = (int)timeSpan2.Subtract(timeSpan1).TotalMinutes;
                                pm.SendMessage("Use it you must be wait " + (60 - minutes).ToString() + " minutes !" );
                            }
                        }
                        else
                        {
                            pm.SendMessage("You do not alive !");
                        }

                        break;
                    }
                case 2:
                    {
                        if (!pm.Alive)
                        {
                            from.MoveToWorld(new Point3D(3450, 2679, 27), Map.Trammel);
                        }
                        else
                        {
                            pm.SendMessage("Use it you must be die !");
                        }
                        break;
                    }

然后新增灵魂火炉的代码:

//modify by garfield
            
            index = AddCraft(typeof(SoulForgeDeed), 1044296, "soul forge deed", 100.0, 120.0, typeof(Log), 1044041, 150, 1044351);
            AddSkill(index, SkillName.Imbuing, 75.0, 120.0);
            AddRes(index, typeof(IronIngot), 1044036, 150, 1044037);
            AddRes(index, typeof(RelicFragment), "Relic Fragments", 1, "You do not have relic fragment!");
            SetNeededExpansion(index, Expansion.SA);

            //modify end

嗯嗯,希望我的代码能够帮助到你:)

Categories:   Garfield's Diary

Comments