Anemone Client

Forum for alternative clients, mods & discussions on the same.

Moderator: Phades

mvgulik
Posts: 4088
Joined: Fri May 21, 2010 2:29 am

Re: Anemone Client

Post by mvgulik »

Mmm. It seems maid.waitForItemDestroy() in not that useful (!failsave) when it comes to waiting for the actual inventory-data update in the client. (Learned that hard way ;) )

Test-case output that's showing this:

Code: Select all

        used_item_s:2 == haven.Item@19dee2 // Item to be droped.
rcvmsg  id: 129 msg:drop (200, 150) // dropping it & waiting for waitForItemDestroy()
destroy id: 129
        waitForItemDestroy() == haven.Item@19dee2 // (returned waitForItemDestroy() data)
        Timer == 78 // wait time.
>> waitForItemDestroy2() // checker part.
used_item_s == haven.Item@19dee2
baileout:0 == 20
        baileout:1 == 20
        il == [haven.Item@1dfa638, haven.Item@19dee2, haven.Item@14eec41, haven.Item@78a533] // maid.getItems(maid.getInventory())
        Still Found. // There you go.
        baileout:1 == 19
        il == [haven.Item@1dfa638, haven.Item@14eec41, haven.Item@78a533]
        Not Found anymore.
Timer == 250 // (250 == min sleep time in this case)
<< waitForItemDestroy2()
mvgulik
Posts: 4088
Joined: Fri May 21, 2010 2:29 am

Re: Anemone Client

Post by mvgulik »

Darn, I did not see this one coming. (not use to variable timings) :|

Using maid.waitForTask() followed by a maid.waitForItemDestroy() is a troublesome combination.
As the used item(s) might actually be deleted just before the waitForTask returns control.

*scratches head* Time to rethink some stuff on my end.
yalnajja
Posts: 24
Joined: Sun Jun 09, 2013 3:27 pm

Re: Anemone Client

Post by yalnajja »

I'd like to know who to build things,
i use
maid.doAction("act", "bp","minesupport");
but i don't know how to place it, can someone help me please, this would be awesome.
mvgulik
Posts: 4088
Joined: Fri May 21, 2010 2:29 am

Re: Anemone Client

Post by mvgulik »

Well, after a bit of digging ... I found something that might be of some use:

Code: Select all

maid.getWidget(MapView.class).wdgmsg("place", <Coord parm>, 1, 0)
yalnajja
Posts: 24
Joined: Sun Jun 09, 2013 3:27 pm

Re: Anemone Client

Post by yalnajja »

thank you =)
mvgulik
Posts: 4088
Joined: Fri May 21, 2010 2:29 am

Re: Anemone Client

Post by mvgulik »

yw. :)
mvgulik
Posts: 4088
Joined: Fri May 21, 2010 2:29 am

Re: Anemone Client

Post by mvgulik »

(nm)
Last edited by mvgulik on Wed Aug 26, 2015 11:50 pm, edited 1 time in total.
twolf
Posts: 11
Joined: Fri May 01, 2015 2:52 am

Re: Anemone Client

Post by twolf »

How do I run scripts?
What I did:
I've installed client, it works fine. I can see Misc tab and some basic options there such as alerts.
I put scripts in scripts folder.
Restarted client
I can't find where all the scripts are located.
mvgulik
Posts: 4088
Joined: Fri May 21, 2010 2:29 am

Re: Anemone Client

Post by mvgulik »

[Shift]+[F1]..[F12] : for running groovy script file "f1.groovy".."f12.groovy".
[Shift]+[ESC] : Stop active user script.
[:]bot myScript : for running groovy script "myScript.groovy".

[:] -> pressing colon key opens the client-console input line. [ENTER] to commit. [ESC] to back out.
twolf
Posts: 11
Joined: Fri May 01, 2015 2:52 am

Re: Anemone Client

Post by twolf »

Thanks mvgulik, you're the best! 8-)

Return to “The Wizards' Tower”