返回列表 发帖
夜桜,2005-11-27, 22:28:02
不要打击我了  
是象VB……汇编是SO烦琐的……

TOP

夜桜,2005-11-27, 22:17:26
本人汇编不及格...掩面逃离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


其中的一个函数
……绝对就是VB,寒~难道RO和PAL2一样是VB编饿……

TOP

返回列表