From 10b4bfe74e3452f830115ab71a316102733b7122 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期一, 12 十一月 2018 19:56:58 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/Message/RichNormalEvent.cs | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/System/Message/RichNormalEvent.cs b/System/Message/RichNormalEvent.cs
index 9aff702..f9f4cc5 100644
--- a/System/Message/RichNormalEvent.cs
+++ b/System/Message/RichNormalEvent.cs
@@ -15,6 +15,7 @@
RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.TIP, this);
RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.GetWay, this);
RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.JOINTEAM, this);
+ RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.AncientRobotName, this);
}
public override bool Execute(RichTextEventEnum type, RichTextMgr.HrefInfo href)
@@ -112,6 +113,24 @@
public override string GetDisplay(RichTextEventEnum type, Dictionary<string, string> dic)
{
+ switch (type)
+ {
+ case RichTextEventEnum.AncientRobotName:
+ {
+ if (dic.ContainsKey("objid") && dic.ContainsKey("npcid"))
+ {
+ var objId = 0;
+ var npcId = 0;
+ if (int.TryParse(dic["objid"], out objId)
+ && int.TryParse(dic["npcid"], out npcId))
+ {
+ var model = ModelCenter.Instance.GetModel<ActivityModel>();
+ return model.GetAncientRobotName(objId, npcId);
+ }
+ }
+ }
+ break;
+ }
return string.Empty;
}
}
--
Gitblit v1.8.0