SRL Archive - Help

Looting function


Ilya

2012-11-29 16:23:05

What are the current looting functions that are working?
Thanks in advance!

Enslaved

2012-11-29 16:26:30

there are not any looting functions, currently to closest thing to it is using object finding functions and check for uptext

Ilya

2012-12-01 01:29:04

So basically FindObj?

YoHoJo

2012-12-01 04:11:19

You can also check out all of the variations of FindObj too (there are quite a few) to make it a bit more specific to your needs.
Or better yet make your own!
Always best (or funner/more customizeable/more efficient) to make your own functions from scratch!

Ilya

2012-12-03 10:11:41

Thanks,
Color+ uptext is doing wonders for me.

footballjds

2012-12-03 11:59:16

From: Ilya
Thanks,
Color+ uptext is doing wonders for me.


When you get a bit more experience might I suggest making your own function using TPA's and ATPA's? :)

Ilya

2012-12-03 12:29:36

From: footballjds
When you get a bit more experience might I suggest making your own function using TPA's and ATPA's? :)


I've looked into it, but seems to me it would take a few non-stop hours to learn, and a few days to implement them into a script. I just don't have that kind of time. Maybe over xmas break, i'll learn them and apply to SRL members again =)
:D

footballjds

2012-12-03 12:53:11

From: Ilya
I've looked into it, but seems to me it would take a few non-stop hours to learn, and a few days to implement them into a script. I just don't have that kind of time. Maybe over xmas break, i'll learn them and apply to SRL members again =)
:D


More power to you! It will take about 1 hour if you're really trying hard to grasp the concept. Please let me know of any questions you have. I may even be able to teach you them sometime on some form of chat or other. (:

Ilya

2012-12-08 14:27:34

From: footballjds
More power to you! It will take about 1 hour if you're really trying hard to grasp the concept. Please let me know of any questions you have. I may even be able to teach you them sometime on some form of chat or other. (:


What would be most efficient for looting a variety of different items?
Would it be best and most fail-safed to make DTM's to make sure every item that you want to get picked up gets picked up?
Also, i have made a private script that runs the 6 hour limit, but it won't reload after.
I have this:
Begin
SRL_SIXHOURFIX := TRUE;
SMART_FIXSPEED := TRUE;

setupSRL();

DeclarePlayers;
LoginPlayer;
ClickNorth(SRL_ANGLE_NONE);
SetAngle(0);
at the beginning of the main loop. What else do I need to do to make sure it re-starts?

Ian

2012-12-08 14:44:01

From: Ilya
What would be most efficient for looting a variety of different items?
Would it be best and most fail-safed to make DTM's to make sure every item that you want to get picked up gets picked up?
Also, i have made a private script that runs the 6 hour limit, but it won't reload after.
I have this:
Begin
SRL_SIXHOURFIX := TRUE;
SMART_FIXSPEED := TRUE;

setupSRL();

DeclarePlayers;
LoginPlayer;
ClickNorth(SRL_ANGLE_NONE);
SetAngle(0);
at the beginning of the main loop. What else do I need to do to make sure it re-starts?


For the 6 hours thing, at beginning of every procedure/function put
if not LoggedIn then LoginPlayer;
This will stop it from getting stuck usually. If you still have problems, try adding it in more places :)

Ilya

2012-12-08 16:35:51

Brilliant. Thank You so much!
+1

Ian

2012-12-08 16:46:09

From: Ilya
Brilliant. Thank You so much!
+1


It's what riwu told me when I asked him :)

footballjds

2012-12-08 17:11:56

IIRC, which i commonly do, the six hour fix should be place after setupSRL, no?

Ian

2012-12-08 17:15:59

From: footballjds
IIRC, which i commonly do, the six hour fix should be place after setupSRL, no?


I have it before setupSRL in my script and it runs well past 6 hours. Maybe both work.

footballjds

2012-12-08 17:16:44

From: BMWxi
I have it before setupSRL in my script and it runs well past 6 hours. Maybe both work.


maybe i'm wrong :P