Page 1 of 4

BlubBlab's Lyliya

Posted: Sat Oct 05, 2013 12:18 am
by BlubBlab
I think it works even it is some still some work to do like count&log the shells and move the hammer in to the IS bag
So here is my 1.0.8 version.

-added move hammer to IS bag
-move slowly in 10 steps if the object is upwards more than 15 grids over the char
-added a 2th break condition
-added a try to unstick if the character/chat get stuck on the balcony
-added a return path if object is upwards more than 15 grids over the char
-changed the filter so that only object of type 4 will count to make it more reliable.
-multi language support
-Take account of the change through the buy options

I should now work in 99% of all case.

You need the userfunction teleport http://solarstrike.net/phpBB3/viewtopic ... t=teleport
and swimhack http://solarstrike.net/phpBB3/viewtopic ... t=wallhack

Credits:
dr-nuker for the idea and the base script

Re: BlubBlab's Lyliya

Posted: Sat Oct 05, 2013 8:56 am
by wiedzmin97

Code: Select all

3:49pm - ...cromacro/micromacro/scripts/rom/classes/waypointlist.lua:83: Failed
to compile and run Lua code for waypointlist onLoad event.
something is wrong?

Re: BlubBlab's Lyliya

Posted: Sat Oct 05, 2013 9:16 am
by rock5
If Blubblab ran it 3 times before posting it and he posted a version that doesn't work then I suspect he did a last second edit before posting which broke it. I suspect all he did was add

Code: Select all

v1.0 by BlubBlab
on the 4th line. Try changing it to

Code: Select all

-- v1.0 by BlubBlab

Re: BlubBlab's Lyliya

Posted: Sat Oct 05, 2013 11:48 am
by Vengefulmilk
Adding in the -- V1 worked. Now the bot crashes after memorizing the room. It will teleport the the first item on the list of changed items. Then post all the positions of the changed items. Then Pawn Fading Offset error.

Re: BlubBlab's Lyliya

Posted: Sat Oct 05, 2013 12:12 pm
by rock5
What's the error? That it equals nil? If so it might be because you are using a version of the bot older than 764. If you can do an svn update then update. If you need to use an old bot then try adding this to the addresses.lua file

Code: Select all

	pawnFading_offset = 0x68,
Or if you don't want to edit the addresses.lua you can add this to the Lyliya waypoint file,

Code: Select all

addresses.pawnFading_offset = 0x68

Re: BlubBlab's Lyliya

Posted: Sat Oct 05, 2013 2:07 pm
by Vengefulmilk
[string "..."]:53: attempt to perform arithmetic on field 'pawnFading_offset' <a nil value>

Later tonight after work Ill update and try it out and if that doesnt work ill add in your coding as well Rock.

Re: BlubBlab's Lyliya

Posted: Sat Oct 05, 2013 6:10 pm
by BlubBlab
Sry I it like Rock's said I did last minutes changes and end up to forgot comment out the Version Number
I reuploaded it should be fine now

Re: BlubBlab's Lyliya

Posted: Sun Oct 06, 2013 4:47 am
by lolita
Nicely done BlubBlab, just there is some little glitch.
It sometimes fail to teleport to item at upper flour. I think this happen when first item is there, maybe it's to far or something , idk.
Maybe to put some failsafe, if warrnig message show more than 3 times, to change position and try again, or something like that

Re: BlubBlab's Lyliya

Posted: Sun Oct 06, 2013 5:52 am
by BlubBlab
That should be fixed with the last update I made I let the distance check too far because originally I checked on the object instead of the new coordinates.

Under normal conditions the bot tries 3 times to teleport their if it fails ,then the bot tries to make moveTo and at least a teleport again

What I could do if this isn't enough is recheck again after this and skip the object if it is still out of range.

So report me

Re: BlubBlab's Lyliya

Posted: Sun Oct 06, 2013 7:24 am
by rido_knight
dude this macro is awesome so u are awesome :D but i dont understand what is Lylia's Colorful Glass Bead? what does it do ?

Re: BlubBlab's Lyliya

Posted: Sun Oct 06, 2013 8:12 am
by lolita
I tested v1.0.2 with 3 chars, finished with no error.
If there will be some bugs, ill let you know

Re: BlubBlab's Lyliya

Posted: Sun Oct 06, 2013 10:29 am
by mowit
Works awesome for me. Used it 2 times, finished it flawlessly. But, om my gf's pc it does the same thing Vengeful is saying. It will teleport the the first item on the list of changed items. Then post all the positions of the changed items. Then Pawn Fading Offset error. Everything is updated.

Re: BlubBlab's Lyliya

Posted: Sun Oct 06, 2013 11:03 am
by rock5
What is the pawn fading error?

Re: BlubBlab's Lyliya

Posted: Sun Oct 06, 2013 12:30 pm
by mowit
attempt to perform arithmetic on field 'pawnFading_offset' <a nil value>

Re: BlubBlab's Lyliya

Posted: Sun Oct 06, 2013 1:11 pm
by rock5
Then I find it hard to believe you have everything updated. The address is definitely include in the latest Bot. Maybe you have corrupt files. Try doing a revert on the 'rom' folder.

Re: BlubBlab's Lyliya

Posted: Sun Oct 06, 2013 8:43 pm
by Sasuke
i have another problem,bot when start say me "attempt to call global teleport a nil value"

Re: BlubBlab's Lyliya

Posted: Sun Oct 06, 2013 8:46 pm
by Bill D Cat
Sasuke wrote:i have another problem,bot when start say me "attempt to call global teleport a nil value"
Then you probably don't have the userfunction_teleport installed.

http://www.solarstrike.net/phpBB3/viewt ... =27&t=2721

Re: BlubBlab's Lyliya

Posted: Sun Oct 06, 2013 10:37 pm
by Vengefulmilk
Updated everything and had to delete a few things here and there and she works beautifully.

Re: BlubBlab's Lyliya

Posted: Mon Oct 07, 2013 3:53 am
by BlubBlab
The script teleport the character/char now first upwards if needed that should now solve the balcony issues upwards, its run now much smoother, the only problem that it could make is if your character/char is very large.
I also recheck if it is was successful and skip the object if not.

Todo:
Put the Master's Simple Repair Hammer in the IS bag
Log the shells like in the other scripts.
add char change options
add option when the game was already done.


Wait to find out the trading option (my guess furniture)
Redesign the code because their are some wrong assumption made in the original script by dr-nuker that I copied.
The code now is really ugly because of this.

Re: BlubBlab's Lyliya

Posted: Mon Oct 07, 2013 7:01 am
by Aron
Thanks, great job once again, works perfectly.