I don't know if anybody else has this issue, but I did, and I fixed the wall hack script. When I tried to turn off wall hack and then re-load to a new map, my game would crash. This script allows you to turn wall hack on or off without crashing.
My Script: (doesn't put walls back, but lets you stop using wall hack if you're going to DF or something)
My Script: (doesn't put walls back, but lets you stop using wall hack if you're going to DF or something)
Bottomy's Script (allows turn-off, and puts walls back to original):Quote:
[ENABLE]
alloc(Wall,64)
label(ReturnWall)
00768533: //8D BC 24 88 00 00 00
jmp Wall
nop
nop
ReturnWall:
Wall:
lea edi,ss:[esp+00000088]
cmp [eax+00000402],5f626577
je ReturnWall
mov [eax+00000402],5f626577
mov [eax+00000406],67616d69
mov [eax+0000040a],616d2e65
mov [eax+0000040e],00000063
jmp ReturnWall
[DISABLE]
dealloc(Wall)
00768533:
lea edi,[esp+00000088]
Quote:
[ENABLE]
alloc(Wall,64)
label(ReturnWall)
00768533: //8D BC 24 88 00 00 00
jmp Wall
nop
nop
ReturnWall:
Wall:
lea edi,ss:[esp+00000088]
cmp [eax+00000402],5f626577
je ReturnWall
mov [eax+00000402],5f626577
mov [eax+00000406],67616d69
mov [eax+0000040a],616d2e65
mov [eax+0000040e],00000063
jmp ReturnWall
[DISABLE]
dealloc(Wall)
alloc(NormalWall,64)
label(ReturnWall)
label(WriteMac)
00768533: //8D BC 24 88 00 00 00
jmp NormalWall
nop
nop
ReturnWall:
NormalWall:
mov di, word ptr [eax+202]
cmp word ptr [eax+402],di
lea edi,[esp+00000088]
je ReturnWall
pushad
sub ecx,ecx
cmp byte ptr [eax],11 //Avalon id
jnz WriteMac
mov byte ptr [eax+ecx+402],41
inc ecx
WriteMac:
mov dl, byte ptr [eax+ecx+202] //value for .mol
mov byte ptr [eax+ecx+402],dl
inc ecx
cmp byte ptr [eax+ecx+202],6d
jnz WriteMac
mov dword ptr [eax+ecx+402],0063616d
popad
jmp ReturnWall