TwMS v151_ICS_怪物左右+掉落+跟隨
//TwMS v151_ICS_WalkToChar|MobLR+WalkJmp
//Author: whocare?
//Rewrite: kkmomo
//Update: 趴趴熊
[Enable]
Alloc(MobLR,256)
Alloc(JmpDown,4)
Alloc(LRControl,4)
Alloc(WalkToChar,4)
Alloc(Type,4)
Label(WalkToLeft)
Label(WalkToRight)
Label(Continuous)
WalkToChar:
DD 01 //0關閉1開啟
LRControl: // -1左 0定 1右 請採用16進制 FFFFFFFF=-1 00=0 01=1
DD 01
JmpDown:
DD 01
MobLR:
PUSH EBP
MOV EBP,ESP
SUB ESP,20
MOV EAX,[EBP+8]
PUSH EBX
PUSH ESI
MOV ESI,[00E92000]
CMP [WalkToChar],00
MOV EBX,[LRControl]
MOV [Type],EBX
JE Continuous
MOV EBX,[00E8DA4C]
MOV EBX,[EBX+7928]
CMP EBX,[ECX+0224]
jg WalkToRight
//CMP EBX,[ECX+0224]
jl WalkToLeft
MOV [Type],0
JMP Continuous
WalkToRight:
MOV [Type],1
JMP Continuous
WalkToLeft:
MOV [Type],-1
//JMP Continuous
Continuous:
PUSH [Type]
POP [ECX+FC]
mov [Type],ecx
MOV EBX,ECX
PUSH EDI
CMP [JmpDown], 01
Je 009c3063
JMP 009C2916
00CF51B8:
DD MobLR
[Disable]
00CF51B8:
DD 009C2902
DeAlloc(MobLR)
DeAlloc(JmpDown)
DeAlloc(LRControl)
DeAlloc(WalkToChar)
DeAlloc(Type)
請問這要如何使用
回覆刪除我不知道要複製多少
回覆刪除如何開啟也是一大問題.....