ce吧 关注:196,581贴子:3,801,851

回复:vb第四课,实现设计图召唤,实现技能call打团!

取消只看楼主收藏回复



我圈出来的这段就是技能call结构体了
结构如下
指针 阵营 代码 代码伤害系数
保留 保留 X轴 Y轴
Z轴 保留 保留 参数数1(未知)
保留 **10101 保留 保留
保留 保留 保留 保留
保留 FFFFFFFF 0101 14
技能大小 FFFF FFFF 未知
保留 保留 保留 保留
保留 保留 保留 保留
保留 保留 保留 保留
翻译成VB源代码形式是
'结构体
Private Type SkillStruct
pBase As Long
Team As Long
SkillID As Long
SkillLevel As Long
Reserve1 As Long
Reserve2 As Long
X As Long
Y As Long
Z As Long
Reserve3 As Long
Reserve4 As Long
Reserve5 As Long '1
Reserve6 As Long
Reserve7 As Long '&H10101
Reserve8 As Long
Reserve9 As Long
Reserve10 As Long
Reserve11 As Long
Reserve12 As Long
Reserve13 As Long
Reserve14 As Long
Reserve15 As Long '&Hffffffff
Reserve16 As Long '&H180101
Reserve17 As Long '&H14
Size As Single
Reserve18 As Long '&Hffff
Reserve19 As Long '&Hffff
Reserve20 As Long
Reserve21 As Long
Reserve22 As Long
Reserve23 As Long
Reserve24 As Long
Reserve25 As Long
Reserve26 As Long
Reserve27 As Long
Reserve28 As Long
Reserve29 As Long
Reserve30 As Long
Reserve31 As Long
End Type
新建一个模块名为 SkillClass并添加


17楼2019-07-10 03:00
回复
    常量表添加一个常量 人物基址
    Public Const Figure As Long = &H651C040
    待会用到


    18楼2019-07-10 03:01
    回复

      VB实现技能call就是那么简单,什么申请内存,找空白地址,统统不用,编译器帮我们搞定!!!


      19楼2019-07-10 03:06
      收起回复

        编译一个上游戏看看效果


        20楼2019-07-10 03:08
        回复

          这个x y 要改成100 给他固定值,不然编译不通过,等大家学到了,如何取怪物坐标就可以填怪物的XY这样子就是技能全屏了


          21楼2019-07-10 03:11
          收起回复

            效果图,本课结束,大家打团用什么代码,自己写,我只是写个例子,我不打团,也不知道用什么代码,我只喜欢写代码不喜欢玩游戏


            22楼2019-07-10 03:18
            收起回复