SRL Archive - Help

Crashing smart and restarting


foxfly1

2012-03-29 07:37:32

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.

Grihmm

2012-03-29 08:28:33

Use the search bar at the top and search for "SmartManager". Read the thread. It's way easier.

foxfly1

2012-03-29 09:14:10

thanks man I didn't know that the SmartManager was released yet. it's working now many thanks!

Grihmm

2012-03-29 09:20:22

Not a problem.