
- UID
- 296159
- 帖子
- 685
- 精华
- 1
- 威望
- 10
- 阅读权限
- 100
- 性别
- 女
- 来自
- Sakray
- 注册时间
- 2005-6-28
|
本人汇编不及格...掩面逃离t.t
function OnMOVE_CMD (x,y)
TraceAI ("OnMOVE_CMD"
if ( x == MyDestX and y == MyDestY and MOTION_MOVE == GetV(V_MOTION,MyID)) then
return
end
local curX, curY = GetV (V_POSITION,MyID)
if (math.abs(x-curX)+math.abs(y-curY) > 15) then
List.pushleft (ResCmdList,{MOVE_CMD,x,y})
x = math.floor((x+curX)/2)
y = math.floor((y+curY)/2)
end
Move (MyID,x,y)
MyState = MOVE_CMD_ST
MyDestX = x
MyDestY = y
MyEnemy = 0
MySkill = 0
end
其中的一个函数 |
|