SRL Archive - First Scripts

Hill Giants


Chubbychekka

2012-04-22 02:27:51

This is my first script.. if you can call it that. It is supposed to kill hill giants and bury the bones. First of all i don't know how to set camera angle to as high as it goes, pretty sure the looting and burying doesn't do anything right now but i haven't done much work on it. Also i want to know how to make it log in to a certain world. Just wanted some help seeing as i suck at this haha..
thanks

Total

2012-04-22 02:30:52

SetAngle(SRL_ANGLE_HIGH) to set the angle to the highest, as for the other things you maybe should have thrown this in the help section instead of first scripts. :p Also if your script is small, putting it in Simba tags would be easier for people to help you.

Caotom

2012-04-22 04:08:20

You may have left your password in the script? I tried to change it for you and pm you the new one but it appears to be invalid (either someone has already changed it or that is a fake one :P).

TIPS:
- At the moment, you have an endless loop with very little/no breakout fail safes. If the script were to end up somewhere that there are no hill giants it would just sit there trying to find them.
- Have you considered adding a walk to default location procedure in the case that it ends up in a corner where it can't see any hills?
- You should consider adding
if not LoggedIn then Exit;
FindNormalRandoms;
at the start of some of you procedures.

A couple of minor standard slip ups but nothing big, you standards are pretty good for a first script. Nice to see that you are using Colour TPA functions instead of FindObj, although make sure you understand how the functions work, it is no use skipping ahead to the advanced stuff if you just copy and paste from a tut without understanding it (not saying you did this, just a piece of advice :) ).


Good Effort
~Caotom

Imanoobbot

2012-04-22 04:42:21

Oh, you left your password in the script :S. Happened to me too one time. Hopefully you will get it back.

Whatever, nice usage of the Autocolor Functions. Not bad for your first script.

Chubbychekka

2012-04-22 11:35:00

i realized i left it in the script after i uploaded it so i changed it myself haha.. such a noob