1.0.2
This commit is contained in:
44
eigeen_modules/dragon_riding_jump.lua
Normal file
44
eigeen_modules/dragon_riding_jump.lua
Normal file
@@ -0,0 +1,44 @@
|
||||
local ToWayPosition = false
|
||||
local Camera = false
|
||||
local function setMotionState(stateFlag) -- 人物状态
|
||||
local stateAddress = GetAddress(0x145011760,{0x50,0xE470}) + 0x0B
|
||||
if stateAddress then
|
||||
local stateData = SetAddressData(stateAddress,'byte',stateFlag)
|
||||
end
|
||||
end
|
||||
|
||||
local function onTime(ctx)
|
||||
local Data_Player = ctx.playerData
|
||||
local Data_World = ctx.worldData
|
||||
if Data_Player.Action.fsm.fsmID == 639 or Data_Player.Action.fsm.fsmID == 640 then
|
||||
setMotionState(0x8A)
|
||||
end
|
||||
if Data_Player.Action.lmtID == 12707 or Data_Player.Action.lmtID == 12708 then
|
||||
SetCameraData(true, Data_Player.Position.cntrposition.x, Data_Player.Position.cntrposition.y, Data_Player.Position.cntrposition.z)
|
||||
Camera = true
|
||||
elseif Camera then
|
||||
Camera = false
|
||||
SetCameraData(false,0,0,0)
|
||||
end
|
||||
|
||||
if Data_Player.Action.lmtID == 12708 then
|
||||
if not ToWayPosition then
|
||||
ToWayPosition = true
|
||||
if not (Data_World.Position.wayPosition.x == 0 and Data_World.Position.wayPosition.y == 0 and Data_World.Position.wayPosition.z == 0) then
|
||||
Data_Player.Position.position = Data_World.Position.wayPosition
|
||||
Data_Player.Position.reposition = Data_World.Position.wayPosition
|
||||
end
|
||||
end
|
||||
elseif ToWayPosition then
|
||||
ToWayPosition = false
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
return {
|
||||
version = 1,
|
||||
name = "dragon_riding_jump",
|
||||
onTime = onTime,
|
||||
conditions = nil,
|
||||
priority = 0,
|
||||
}
|
||||
35
eigeen_modules/fast_gathering.lua
Normal file
35
eigeen_modules/fast_gathering.lua
Normal file
@@ -0,0 +1,35 @@
|
||||
-- 加速挖素材 8273 8274
|
||||
-- 挖矿 8377-8379
|
||||
-- 采集 8276-8278,8281
|
||||
local GATHERING_LMT_ID = {8273, 8274, 8377, 8378, 8379, 8276, 8277, 8278, 8281}
|
||||
|
||||
local function isIn(tbl, target)
|
||||
for key, value in pairs(tbl) do
|
||||
if target == value then
|
||||
return true
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
local function isGatheringLmtID(lmtID)
|
||||
return isIn(GATHERING_LMT_ID, lmtID)
|
||||
end
|
||||
|
||||
local function onTime(ctx)
|
||||
local playerData = ctx.playerData
|
||||
|
||||
if isGatheringLmtID(playerData.Action.lmtID) then
|
||||
ctx.Speed:setSpeedMutex(5, "加速挖素材")
|
||||
else
|
||||
ctx.Speed:resetSpeedMutex("加速挖素材")
|
||||
end
|
||||
end
|
||||
|
||||
return {
|
||||
version = 1,
|
||||
name = "fast_gathering",
|
||||
onTime = onTime,
|
||||
conditions = nil,
|
||||
priority = 10
|
||||
}
|
||||
Reference in New Issue
Block a user