From d61a1539486fdabcc679c989bed67177c7032c94 Mon Sep 17 00:00:00 2001 From: by <123456@qq.com> Date: Sat, 7 Sep 2024 16:22:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=95=E5=B8=81=E5=90=8E=E5=90=91=E5=89=8D?= =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gamesrv/clawdoll/action_clawdoll.go | 2 ++ machine/action/action_server.go | 7 ------- machine/machinedoll/command.go | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/gamesrv/clawdoll/action_clawdoll.go b/gamesrv/clawdoll/action_clawdoll.go index 76e7758..fab8d37 100644 --- a/gamesrv/clawdoll/action_clawdoll.go +++ b/gamesrv/clawdoll/action_clawdoll.go @@ -76,6 +76,8 @@ func MSDollMachineoCoinResultHandler(session *netlib.Session, packetId int, data case 1: if msg.Result == 1 { logger.Logger.Tracef("上分成功!!!!!!!!!!!!snid = ", msg.Snid) + //发送向前移动指令 + sceneEx.OnPlayerSMPerateOp(p.SnId, int32(sceneEx.machineId), rule.ButtonFront) } else { logger.Logger.Tracef("上分失败!!!!!!!!!!!!snid = ", msg.Snid) } diff --git a/machine/action/action_server.go b/machine/action/action_server.go index bbbac92..2eb245c 100644 --- a/machine/action/action_server.go +++ b/machine/action/action_server.go @@ -119,13 +119,6 @@ func SMDollMachinePerateHandler(session *netlib.Session, packetId int, data inte Process(conn, f1, f2) case 5: //投币 - /* f1 := []func(){ - func() { machinedoll.Coin(conn) }, - } - f2 := []func(){ - func() {}, - } - Process(conn, f1, f2)*/ machinedoll.Coin(conn) go DollMachineGrabResult(session, conn, msg.Snid, msg.GetId()) } diff --git a/machine/machinedoll/command.go b/machine/machinedoll/command.go index 5ed8a95..bab7a18 100644 --- a/machine/machinedoll/command.go +++ b/machine/machinedoll/command.go @@ -382,7 +382,7 @@ var data = []byte{ 0x65, //0 几币几玩 0x00, //1 几币几玩占用位 0x2D, //2 游戏时间 - 0x00, //3 出奖模式0 无概率 1 随机模式 2 固定模式 3 冠兴模式 + 0x01, //3 出奖模式0 无概率 1 随机模式 2 固定模式 3 冠兴模式 0x0F, //4 出奖概率 0x00, //5 出奖概率占用位 0x00, //6 空中抓物 0关闭 1开启