foxfly1
03-29-2012, 11:37 AM
I'm having issues with crashing smart after the 6 hour limit. I've got the batch file perfected, easily done. and I have the plugin replaced by the mod.
this is the begining of the script it's correct I'm sure:
program FantasticFletcher;
{$DEFINE SMART}
{$DEFINE CRASHSMART}
{$IFDEF SMART}
{$i SRL/SRL/Misc/Smart.simba}
{$ENDIF}
{$i SRL/SRL.simba}
{$i SRL/SRL/Misc/Paintsmart.simba}
I put this directly after declare players, correct me If I'm wrong.
procedure CrashSMART;
begin
Writeln('You are using CRASHSMART, so we are going to reload your client after the RS update!');
SmartgetFieldObject(1488,'crash'); // will crash SMART (and Simba).
// IF THIS DOES NOT CRASH YOUR SIMBA, YOU ARE NOT USING THE PROPER PLUGIN
// AN ACCESS VIOLATION HERE IS NOT THE CRASH; MAKE SURE YOU MOVED THE EDITED PLUGIN
Wait(5000);
WriteLn('CRASHSMART Failed: Make sure you are using the proper plugin!');
WriteLn('Read more about this feature at villavu.com/forum/showthread.php?t=67864');
TerminateScript;
end;
and of course this:
SetupSRL;
SRL_Procs[srl_OnRSUpdate] := @CrashSMART;
DeclarePlayers;
LoadGlobals;
Is this correct? I'm guessing it's not because it failed crash simba. Sorry Harry, I keep posting about this but it's got me confused.some day I'll get it.
this is the begining of the script it's correct I'm sure:
program FantasticFletcher;
{$DEFINE SMART}
{$DEFINE CRASHSMART}
{$IFDEF SMART}
{$i SRL/SRL/Misc/Smart.simba}
{$ENDIF}
{$i SRL/SRL.simba}
{$i SRL/SRL/Misc/Paintsmart.simba}
I put this directly after declare players, correct me If I'm wrong.
procedure CrashSMART;
begin
Writeln('You are using CRASHSMART, so we are going to reload your client after the RS update!');
SmartgetFieldObject(1488,'crash'); // will crash SMART (and Simba).
// IF THIS DOES NOT CRASH YOUR SIMBA, YOU ARE NOT USING THE PROPER PLUGIN
// AN ACCESS VIOLATION HERE IS NOT THE CRASH; MAKE SURE YOU MOVED THE EDITED PLUGIN
Wait(5000);
WriteLn('CRASHSMART Failed: Make sure you are using the proper plugin!');
WriteLn('Read more about this feature at villavu.com/forum/showthread.php?t=67864');
TerminateScript;
end;
and of course this:
SetupSRL;
SRL_Procs[srl_OnRSUpdate] := @CrashSMART;
DeclarePlayers;
LoadGlobals;
Is this correct? I'm guessing it's not because it failed crash simba. Sorry Harry, I keep posting about this but it's got me confused.some day I'll get it.