well what you can do is...
Code:
[ENABLE]
alloc(DetectGM,512)
label(CrashFlag)
label(CrashSkip)
label(ReturnName)
registersymbol(DetectGM)
DetectGM:
cmp [eax+70],5D4D475B //[GM]
jne CrashSkip
//umm I guess here you put procedures for changing map or chaing coords
inc [CrashFlag]
CrashSkip:
mov [esi+0c],00000000
jmp ReturnName
CrashFlag:
db 00 00 00 00
00553763: //C7 46 0C 00 00 00 00 89 47 04
jmp DetectGM
nop
nop
ReturnName:
[DISABLE]
dealloc(DetectGM)
unregistersymbol(DetectGM)
00553763:
mov [esi+0c],00000000
uh so yea... I checked it and it doesn't have any syntax errors but of course atm it will only CRASH and it wont teleport you
I'm not sure what you have to write in the crashing section of the script but I have some ideas
EDIT: lol I just read the script over and um I think it will only work after you see 2 GMs
so you will need to use the Flag on the actual section of code that teleports you