SRL Archive - S.M.A.R.T. Tutorials

How To Take Out/Insert SMART


P1nky

2008-10-20 23:40:19


This Tutorial will teach you how to take out/Insert SMART(made by BenLand1000)


NOTE: now you can do it by your self and not ask the creator to do it for you!


Step 1)
Press CTRL-F

Step 2)
Type in "LoadSMART" into the Find Box.

Step 3)
it should take you to the line where it says:
  LoadSMART(world, True, False);

Step 4)
Take it out.

NOW YOUR DONE WITH THAT!

NOW LETS SEE HOW TO ADD SMART INTO A SCRIPT:

Step 1)
go to your mainloop or to a proc that is called beginning of a main loop(example SetPlayer;):
Procedure SetPlayer;
Begin
LoadSMART(world, True, False);
dochats;
SetRun(true);
setangle(true);
MakeCompass('N');
End;


//MAIN LOOP
begin
ClearDebug;
ClearReport;
Writeln('Waiting For SMART to Start...');
//OR LoadSMART(world, True, False); OVER HERE INSTEAD INSIDE OF SETPLAYER
SetPlayer;
end;


Now lets see how to Replace the New SMART with the old SMART:


source from:http://www.villavu.com/forum/showthread.php?t=36898 By Nava/BenLand1000.
From: Nava2

To Load SMART, just call LoadSMART in your script, after replacing the SMART.scar with the one posted here and replacing the Embedded_SMART.dll with the one attached.

Usage:

In most scripts, you need to replace something like:
SmartSetupEx(RandomWorld(false), true, true, false); // or SmartSetup('world2', True, True, False);
wait(5000);
SetTargetDC(SmartGetDC);
repeat
wait(100);
until(SmartGetColor(253, 233)<>1118604);
with:
Here are the Parameters: LoadSMART(WorldNum : Integer; Signed, Free : Boolean);
Here is an example of it being called.
LoadSMART(2, True, False);

Alrite, for more info how to setup/or get new smart go to this LINK:
http://www.villavu.com/forum/showthread.php?t=36898
-Nava's thread.

THanks alot guys
REP ME IF YOU LOVE ME AND READ MY OTHER GUIDES THANKS !

Blumblebee

2008-10-20 23:54:52

ncie guide, would probably be more useful in tut island and not in srl members tuts, as most people with scripting knowledge know how to do this, as its kinda common sense. For people who have no idea how to script properly/ get rid of smart, this would be a perfect guide :)
and btw, I Reped ya just kuz i love ya ;)

-Blumblebee

P1nky

2008-10-21 00:01:30

thanks lol; yeah this is meant in beginners section in tut island. i dont have permission to post it there so i reported it to get it moved to tut island :P

sorry forgot to mention that l0l

Boreas

2008-10-21 00:12:53

Moved.
Edit: Moved back, apparently I don't have perms either.
Edit: Nvm, got it right the first time lol.

NiCbaZ

2008-10-21 04:32:36

Nice, You should also szy that SMART is not working atm tho.

Wizzup?

2008-10-21 05:15:03

It works, if you keep it minimized. Also, mind that LoadSmart might not be the used procedure/function in the new SRL.

P1nky

2008-10-21 08:11:50

From: Boreas
Moved.
Edit: Moved back, apparently I don't have perms either.
Edit: Nvm, got it right the first time lol.


From: NiCbaZ
Nice, You should also szy that SMART is not working atm tho.


From: Wizzup?
It works, if you keep it minimized. Also, mind that LoadSmart might not be the used procedure/function in the new SRL.


Thanks Boreas :P haven't seen you for a while, glad to see your back

and NiCbaz it is working just not 100% properly.

and wizzup?
thanks ill quote that up there.

theo

2008-10-21 09:51:58

tnx i really needed to know how to remove smart from a script cuz atm smart doesn't work..

Nava2

2008-11-02 15:45:43

You should have told me you wrote this. I would have linked.

BUT, I fixed it up to use the future SMART procedure…

Update Pl0x

E: Btw, you messed up the quote tag ;)

noidea

2008-11-02 16:34:14

Tell them to add/get rid off {.include srl/srl/misc/smart.scar}

vikrant60

2008-11-02 17:38:22

Thank you sooo much ^.^ i kinda didn't realy know what to do :P
Rep ++

kindkiller

2008-11-05 17:07:57

So SMART is currently working just not 100%? Or is not working? Ah so many different sides.

I was trying to work a script then read it wasn't working so assumed thats why script wouldn't work. If it is working, I'd like to keep troubleshooting.

jumbosped

2008-12-05 22:15:00

Where should i be searching in the first place?i opened smart.scar and searched for LoadSMART and nothing showed up? but i already replaced my smart.scar with Nava2's. So do i still need to do something? and do i use LoadSMART in my scripts or do i use SmartSetupEx? Because here it says use LoadSMART but in Nava's tutorial it says use SmartSetupEx.