mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-03-01 00:35:36 +08:00
完善ScriptLib
This commit is contained in:
@@ -163,6 +163,7 @@ func (g *GMCmd) GMAddQuest(userId uint32, questId uint32) {
|
||||
}
|
||||
dbQuest := player.GetDbQuest()
|
||||
dbQuest.AddQuest(questId)
|
||||
dbQuest.StartQuest(questId)
|
||||
ntf := &proto.QuestListUpdateNotify{
|
||||
QuestList: make([]*proto.Quest, 0),
|
||||
}
|
||||
@@ -390,6 +391,9 @@ func (g *GMCmd) ServerAnnounce(announceId uint32, announceMsg string, isRevoke b
|
||||
}
|
||||
|
||||
func (g *GMCmd) SendMsgToPlayer(cmdName string, userId uint32, msgJson string) {
|
||||
if cmdProtoMap == nil {
|
||||
cmdProtoMap = cmd.NewCmdProtoMap()
|
||||
}
|
||||
cmdId := cmdProtoMap.GetCmdIdByCmdName(cmdName)
|
||||
if cmdId == 0 {
|
||||
logger.Error("cmd name not found")
|
||||
|
||||
Reference in New Issue
Block a user