Page 4 of 6

Re: Secret Garden Ideas

Posted: Fri Mar 28, 2014 11:34 am
by latino18fr
lisa wrote:Seems last patch made it so the 6 chests don't stay at the end, so can remove that part of the WP.
I thought it was weird that 6 stayed and just happened to be the 6 out of memory range when it started, there was probably an exploit of some sort to make more stay *shrug*

On a side note I updated a faster PC and it had the same file missing, what are the odds.
So I tweaked faster PC and it got to 42 chests but was borderline for cast being interupted, also noticed that the ping on screen spiked to 1100 once but it kept on opening chests with the same yrest times, so I don't think adding a ping check is a good idea because it would have sat there for an extra 700 on each chest.

Also I found Jamie, he moves fast sometimes lol
i can test for u my ping is 15ms ^^ (if u post the WP)

Re: Secret Garden Ideas

Posted: Fri Mar 28, 2014 8:14 pm
by lisa
latino18fr wrote:i can test for u my ping is 15ms ^^ (if u post the WP)
--=== sg2 posted down a few posts ===--

I just did up a WP for it now, I'm not happy with getting Jamie just yet but I will post a sg2 soonish with a better way to get Jamie.

Re: Secret Garden Ideas

Posted: Fri Mar 28, 2014 9:28 pm
by lisa
Most of the time I tested this Jamie was nearer to Keke, so hopefully it works when he is far far away.
--=== sg3 version a few posts down ===--

This is much more complicated than just a wp to get to jamie though so don't be to upset if you can't understand the code in it.

The points used look like this.
jamiepoints.jpg
Usual relog options at top.

Code: Select all


	When_Finished = "relog"
		-- "end" to end script, "relog" to log next character, "charlist" to log next in 'charlist' and "waypointfilename" to load that waypointfile.

	CharList = {
			{account=1,chars={}},
			{account=2,chars={1,2,3}},
	}
Tweak option at top.

Code: Select all

	local tweakit = 80
	--if cast bar never gets inturupted then reduce number, you can go negative numbers aswell,i.e -50 -100. 
	--If you are getting cast bar inturupted then increase number.

That's about it for me on this 1, if any errors I'll fix them but yeah I just ran through 24 chars without any issues.

Re: Secret Garden Ideas

Posted: Sat Mar 29, 2014 7:32 am
by lisa
sg2 downloaded 17 times and no replies, I'll just assume it works then ;)

Re: Secret Garden Ideas

Posted: Sat Mar 29, 2014 10:34 am
by Eggman1414
Yes it worked for me, other than the lag spike with this waypoint, it ran it just fine. some more tuning on my end and it should be good to go

Re: Secret Garden Ideas

Posted: Sat Mar 29, 2014 1:42 pm
by huejorgen
I am getting this error when trying to find Jamie...
1:35pm - [string "..."]:6: attempt to index local 'jam' (a nil value)

Re: Secret Garden Ideas

Posted: Sat Mar 29, 2014 2:26 pm
by N1ghtmare
huejorgen wrote:I am getting this error when trying to find Jamie...
1:35pm - [string "..."]:6: attempt to index local 'jam' (a nil value)
Sorry lisa i downloaded earlier but only just got around to testing, im getting the same as the post above mine.

Re: Secret Garden Ideas

Posted: Sat Mar 29, 2014 6:12 pm
by lisa
Hmm forgot to change that part, error would only occur when jamie is initially out of memory range, this should fix it.

line 352 had this

Code: Select all

	until travel({jam.X,jam.Z,jam.Y},true)
can either just change it to this

Code: Select all

	until jam and travel({jam.X,jam.Z,jam.Y},true)
or d/l sg3, all I changed for sg3 was that 1 thing.

--=== sg4 posted a few posts later ===--

Re: Secret Garden Ideas

Posted: Sun Mar 30, 2014 10:09 am
by CanceR
i am trying to build WP for porting to house, unload specific items to IS bank page, and get back at entrance. (after several runs in garden - IS bag is full)
how to search items in IS bagpack, if they are in the list and move only them to bank? my chars has default only page 1 & 2 in bagpack
i am trying with following list

Code: Select all

ISitems_array = {
"231893", -- Powerfull basic talent charm 1k
"231885", -- Pet experience charm 10k
"231886", -- Pet training charm 1k
"231887" -- Powerfull basic experience charm 10k
}
the general idea is: to make WP, which to be started from time to time to move all IS items from bag to bank.

Re: Secret Garden Ideas

Posted: Sun Mar 30, 2014 10:58 am
by latino18fr
hello SG3 work perfectly but still slow to loot (only 38 chests) , with speek hack (500 speed) i can loot 42 chests.

Re: Secret Garden Ideas

Posted: Sun Mar 30, 2014 5:44 pm
by lisa
latino18fr wrote:with speek hack (500 speed) i can loot 42 chests.
I'll just assume you mean by manually playing and watching the cast bar and always moving when cast bar is roughly 90% across.
Play around with the tweakit setting at the top of file but yeah that sort of human behaviour is difficult to mimik with the bot, if I had an exact amount for cast bar % like you see on screen then maybe but basically the bot is doing it as if it can't see the cast bar at all. Try getting 42 chests manually with your eyes closed ;)

Re: Secret Garden Ideas

Posted: Sun Mar 30, 2014 5:58 pm
by lisa
CanceR wrote:i am trying to build WP for porting to house, unload specific items to IS bank page, and get back at entrance. (after several runs in garden - IS bag is full)
how to search items in IS bagpack, if they are in the list and move only them to bank? my chars has default only page 1 & 2 in bagpack
i am trying with following list

Code: Select all

ISitems_array = {
"231893", -- Powerfull basic talent charm 1k
"231885", -- Pet experience charm 10k
"231886", -- Pet training charm 1k
"231887" -- Powerfull basic experience charm 10k
}
the general idea is: to make WP, which to be started from time to time to move all IS items from bag to bank.

this is what I use to move the items to your IS space.

Code: Select all

		for slot = 61, 240 do
			item = inventory.BagSlot[slot]
			if item and item.ItemShopItem then
				item:moveTo("itemshop")
			end;
		end;
So you would do something like this when you have your bank open.

Code: Select all

local ISitems_array = {
231893, -- Powerfull basic talent charm 1k
231885, -- Pet experience charm 10k
231886, -- Pet training charm 1k
231887, -- Powerfull basic experience charm 10k
}

for slot = 1, 60 do
	item = inventory.BagSlot[slot]
	if item then
		for k,v in pairs(ISitems_array) do
			if item.Id == v then
				item:moveTo("isbank")
				break
			end
		end
	end;
end;
Untested but something like that should work.

Re: Secret Garden Ideas

Posted: Sun Mar 30, 2014 7:50 pm
by rock5
You can also use the often forgotten function table.contains.

Code: Select all

for slot = 1, 60 do
   item = inventory.BagSlot[slot]
   if table.contains(ISitems_array, item.Id) then
      item:moveTo("isbank")
      break
   end;
end
Don't forget to do your list as numbers, like Lisa showed you, not strings.

Re: Secret Garden Ideas

Posted: Wed Apr 02, 2014 7:34 am
by lisa
Ok for those farming this religiously I have found a way to squeeze in some more chests in the time limit.

Add this in the onload, I added it near the top on mine.

Code: Select all

teleport_SetStepPause(100)
You can play around with the value, default value is 500.
With it set at 100 I did 49 chests and 3 were inturupted, so 46 realistically but then this is on my laptop, so on main PC I could prob drop it to (50) and might squeeze 50 chests in.

I'll add the file anyway even though it is purely just 1 line I added.
sg4.xml
(10.97 KiB) Downloaded 393 times

--=== Added ===--
Used main PC and made adjustments to suit and it consistantly got 52-53 chests and opened all, except the very first chest which it always skips, purely because the chests aren't even in game when it starts off.

Re: Secret Garden Ideas

Posted: Wed Apr 02, 2014 10:20 am
by CanceR
lisa wrote:

Code: Select all

local ISitems_array = {
231893, -- Powerfull basic talent charm 1k
231885, -- Pet experience charm 10k
231886, -- Pet training charm 1k
231887, -- Powerfull basic experience charm 10k
}

for slot = 1, 60 do
	item = inventory.BagSlot[slot]
	if item then
		for k,v in pairs(ISitems_array) do
			if item.Id == v then
				item:moveTo("isbank")
				break
			end
		end
	end;
end;
Untested but something like that should work.
if i understand correctly bellow code will search in slots from 1 to 60, which is usually unlocked first and second page from bagpack (out of total 6 pages)

Code: Select all

for slot = 1, 60 do
	item = inventory.BagSlot[slot]
i already do this way to put all IS items to ItemShopBagpack slots, but how to move from 50 slots of ItemShopBagpack to ItemShopBank slots, same code?
if

Code: Select all

inventory.BagSlot[slot]
returns 60 unlocked slots of Bagpack + 50 slots of ItemShop Bagpack - i am ok with it, but 60+50 does not make "1, 60"

Re: Secret Garden Ideas

Posted: Wed Apr 02, 2014 10:32 am
by rock5
Actually bagslots 1-50 are itemshop bag, 51-60 are transmutor and bags start from 61. Lisa probably just made a mistake. She did say "Untested but something like that should work". Actually, it looks like I missed that too when I did posted my code using table.contains. Oh well...

Re: Secret Garden Ideas

Posted: Wed Apr 02, 2014 7:03 pm
by lisa
you said you wanted to do it as a seperate WP afterwards so I assumed you were using the WP which moved the items to IS bag already, so yeah when you went to put them in your bank it would need to get them from IS bag.
If you want just change it to 1,300 and that will get everything.

As rock said,
1-50 is Item Shop bag
51-60 is transmutor (with some not even used)
61+ is bag space.

Re: Secret Garden Ideas

Posted: Wed Apr 02, 2014 8:10 pm
by rock5
lisa wrote:51-60 is transmutor (with some not even used)
They are if you use AdvancedMagicBox. Although, you don't need AdvancedMagicBox for the bot to use them, you just wont see the items in 56-60 when looking at the magicbox manually.

Re: Secret Garden Ideas

Posted: Wed Apr 02, 2014 8:58 pm
by spyfromsiochain
Working nicely for me lisa gz.

no crashes and 49 chests its very nice :D

regards

Re: Secret Garden Ideas

Posted: Thu Apr 03, 2014 4:58 pm
by huejorgen
Thanks so much for all the work on this and of course all the other excellent scripts here.
I have been using sg3 which I have been getting various crashes on but the main issue I am having is that it is not switch accounts, it does move between characters within an account, here is what i have for the account list part.. am I missing something?
One other thing. I would like the job to not just move items to the IS back pack but also to delete the pet charms and the potions that stay for only 5 days.
I would like to keep the charges, the runes, the tp and xp charms that are unbound once filled and of course the chests and keys. What would I insert before the movement to the IS back pack to delete certain items?

When_Finished = "relog"
-- "end" to end script, "relog" to log next character, "charlist" to log next in 'charlist' and "waypointfilename" to load that waypointfile.

CharList = {
{account=01, chars= {1,2,3,4,5,6,7,8}},
{account=02, chars= {1,2,3,4,5,6,7,8}},
{account=03, chars= {1,2,3,4,5,6,7,8}},
{account=04, chars= {1,2,3,4,5,6,7,8}},
{account=05, chars= {1,2,3,4,5,6,7,8}},
{account=06, chars= {1,2,3,4,5,6,7,8}},
{account=07, chars= {1,2,3,4,5,6,7,8}},
{account=08, chars= {1,2,3,4,5,6,7,8}},
{account=09, chars= {1,2,3,4,5,6,7,8}},
{account=10, chars= {1,2,3,4,5,6,7,8}},
{account=11, chars= {1,2,3,4,5,6,7,8}},
{account=12, chars= {1,2,3,4,5,6,7,8}},
{account=13, chars= {1,2,3,4,5,6,7,8}},
{account=14, chars= {1,2,3,4,5,6,7,8}},
{account=15, chars= {1,2,3,4,5,6,7,8}},
{account=16, chars= {1,2,3,4,5,6,7,8}},
{account=17, chars= {1,2,3,4,5,6,7,8}},
{account=18, chars= {1,2,3,4,5,6,7,8}},
{account=19, chars= {1,2,3,4,5,6,7,8}},
{account=21, chars= {1,2,3,4,5,6,7,8}},
{account=22, chars= {1,2,3,4,5,6,7,8}},
}




function checkRelog()
flyoff()