Commit 5132bac15e34b1cab11b901db9854d35a44b8b44
1 parent
4cf5dec9
挂机选定关卡时,指定新手引导步骤
Showing
1 changed file
with
11 additions
and
0 deletions
Show diff stats
src/actions/HangAction.lua
... | ... | @@ -156,6 +156,17 @@ function _M.startRpc( agent, data ) |
156 | 156 | end |
157 | 157 | role:updateProperty({field = "hangInfo", value = hangInfo}) |
158 | 158 | |
159 | + -- 指定当前引导的步骤 | |
160 | + if carbonId == 10101 then | |
161 | + role:saveGuide(5,11) | |
162 | + elseif carbonId == 10102 then | |
163 | + role:saveGuide(8,2) | |
164 | + elseif carbonId == 10103 then | |
165 | + role:saveGuide(9,2) | |
166 | + elseif carbonId == 10220 then | |
167 | + role:saveGuide(22,1) | |
168 | + end | |
169 | + | |
159 | 170 | SendPacket(actionCodes.Hang_startRpc, '') |
160 | 171 | return true |
161 | 172 | end | ... | ... |