I am trying to understand why the crashes happen. Would we get a crash at some point if we manually kept making characters and deleting them after the candy trade?Quote:
You could replace it with this code to prevent crashes
Code:SendKey=confirm delete; Delay=3000; _IFMemPtrRead=%AddrConfirmDelete,0x5E0/0x370/0x0,WCHAR[32,=confirm delete; MemPtrWrite=%AddrConfirmDelete,0x5E0/0x370/0x0,Confirm Delete,WCHAR[32]; #ELSE SendKey=0x1B; <-- should close the confirm delete window, probably replace with Mouse=x,y; but can't get coords at the moment due to maintenance Delay=15; SendKey=0x1B; <-- should close the confirm delete window, probably replace with Mouse=x,y; but can't get coords at the moment due to maintenance #EXECUTE=DeleteCharacter; #Return #ENDIF Delay=500;
If yes, then the bot has absolutely nothing to do with the crashes. And what could possibly happen in the character creation screen and made the client "get out of resources"
Because if I make one or two or ten characters manually I won't get a crash, but the same happens with the script, you will get a crash after many new chars made.
~~~~~~
So which code should I replace with the above code you made?
Here is the whole code for the delete dialog function.
Code:
start_DeleteDialog; SendKey=%WRnd%WRnd%WRnd%WRnd%WRnd%WRnd%WRnd%WRnd%WRnd%WRnd%WRnd%WRnd%WRnd%WRnd%WRnd; Delay=3000; MemPtrWrite=%AddrConfirmDelete,0x5E0/0x370/0x0,Confirm Delete,WCHAR[32]; Delay=1000; MemWrite=%AddrFreeMem10,1,BYTE; #DO=999999999; _IFFrameVisible=528; confirm delete window SendKey=0x0D; Delay=1000; #ELSE MemWrite=%AddrFreeMem10,0,BYTE; #ENDIF Delay=1000; _UNTILMemRead=%AddrFreeMem10,BYTE,=0; MemWrite=%AddrFreeMem10,0,BYTE; #DO=999999999; _IFFrameVisible=508; confirm window MemWrite=%AddrFreeMem10,1,BYTE; #ENDIF Delay=1000; _UNTILMemRead=%AddrFreeMem10,BYTE,=1; MemWrite=%AddrFreeMem10,1,BYTE; #DO=999999999; _IFFrameVisible=508; confirm window SendKey=0x0D; Delay=1000; #ELSE MemWrite=%AddrFreeMem10,0,BYTE; #ENDIF Delay=1000; _UNTILMemRead=%AddrFreeMem10,BYTE,=0; _IFFrameVisible=567; NA 5.8 #EXECUTE=PINCheck; #ENDIF end_DeleteDialog;