SRL Archive - First Scripts

Elvis's King Citadel


Elvis

2012-11-29 01:04:50

I was going to make a chopper, but I figured adjusting scripts from tutorials instead of just doing what they did will help me learn more, and will be more useful to people then a chopper because there are already a lot of woodcutting scripts, but I can't find citadel scripts here.

Currently only has loom support. If you could test it on non t7 tiers then that would be great, I'll get to it eventually though. If anyone knows other ways to make sure it finds what's closer to you first then that would be great. Will be AIO eventually.

xtrapsp

2012-11-29 11:33:10

This is really simple, add some waits and look into TPA's

Elvis

2012-11-29 13:32:34

Yep I know, I'm adding a lot tomorrow when I have time. I'd like to see the progress as the script grows so I decided to add the earliest working version.

Mark

2012-11-30 11:41:19

Is great idea todo just that may'b update you first post with your future thought/ideas you have planned to work on or currently are working on.

Also like mentioned use tpa's or something other than findObject to much of easy function and you'll learn a lot more without. Basically I think its not good practice your cutting a lot of valuable learning corners using it.

Elvis

2012-11-30 19:19:21

Will do ^^ And yea, atm I'm just lookin at video tuts and changing it to work in citadel. Will be looking at tuts all night tonight, hope to get a lot better.

Austin

2012-11-30 19:37:21

Nice, does this support all tiers?

Elvis

2012-11-30 19:44:11

It's bad at the moment, it'll work, but it's not good. And it will eventually. I'm working on loom(t5-7) 1st.


currently trying to find how to make a repeat..until xpgained if it's possible. gunna try searching.

Austin

2012-11-30 20:18:39

From: Elvis
It's bad at the moment, it'll work, but it's not good. And it will eventually. I'm working on loom(t5-7) 1st.


currently trying to find how to make a repeat..until xpgained if it's possible. gunna try searching.

Well good luck. It would be nice to finally have a full citadel script ;)

Elvis

2012-12-01 00:41:53

Ok I've made the base script for loom, v1.1. It's still not very good, but it should be fine for now. I'm going to work on it all night and hopefully make it a lot more human like and failsafe.

TehNeonFishy

2012-12-01 07:47:43

Damn, just got kicked out of my clan for botting, otherwise I would of helped you test it. I'll try get in another. :D

What tiers does it currently support?

Elvis

2012-12-01 17:43:25

Loom ATM, so 5-7 loom.

[XoL]

2013-01-10 20:22:36

It is a great idea to say the least, I made something that looks identical to this for my own personal use a couple weeks ago (Because really who is going to report you inside your own citadel :p)

chongc

2013-01-10 22:33:27

I will totally try this next tick. fealty 3 gets u epic xp, and free!

digitalninja

2013-01-12 03:02:56

Wicked script! Nice release!

digitalninja

2013-01-17 00:47:22

I was wondering if anyone got this to work? For some reason it couldnt load SMART (I even added SMART8) and had some http issues with globalstats? Line 336 I believe …

[XoL]

2013-01-17 01:22:09

Whats the error message?

digitalninja

2013-01-17 01:34:23

From: [XoL]
Whats the error message?


I got it to load simba (had to get rid of the //in front of the define stuff) now it will click the loom once got and try to log out immediately and then kick the error code below -

Thank you for using King Citadel by Elvis!
SRL Compiled in 16 msec
Paired with SMART[1604]
Current player:
King Citadel set to option: Loom!
Error: Out Of Range at line 368
HTTPClient[0] has not been freed in the script, freeing it now.
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, SRL - NavBar Bitmap, SRL - Options Bitmap]

[XoL]

2013-01-17 12:30:45

Update SRL

digitalninja

2013-01-17 22:33:32

Hey Xol,

Thanks … that would have made sense but there were no updates -

No SPS update available.
No MSI update available.
No Plugins update available.
No SRL update available.
No Extensions update available.

It looks like the issue is with the globalstats form and the http issue … the SPS issues came up after logout so I dont think they were causing the script to not function.

=================

Update - I removed the global stats call from the script and it still just clicked the loom once and went straight for logout. It can only be the failsafe procedure which seems to indicate it cant find the loom even though im standing right there. Any other ideas? I will continue to try to troubleshoot it though … -

procedure FailSafe(reason: string);
begin
Players[CurrentPlayer].loc:= reason;
Logout;
WriteLn(reason);
//ProgressReport;
TerminateScript;
end;

digitalninja

2013-01-30 12:46:01

This is really simple, add some waits and look into TPA's


Sorry could someone point me in the right direction to learn more about TPA's? I am not sure how this would help this script run better …

Update - Found this page (http://docs.villavu.com/simba/scriptref/tpa.html) but still not entirely sure how this would be utilized to make the script better :p