Anemone Client

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

Moderator: Phades

Re: Anemone Client

Postby mvgulik » Thu Jul 16, 2015 4:55 am

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: 3742
Joined: Fri May 21, 2010 2:29 am

Re: Anemone Client

Postby mvgulik » Fri Jul 17, 2015 10:39 pm

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.
mvgulik
 
Posts: 3742
Joined: Fri May 21, 2010 2:29 am

Re: Anemone Client

Postby yalnajja » Sat Jul 18, 2015 1:19 am

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.
yalnajja
 
Posts: 19
Joined: Sun Jun 09, 2013 3:27 pm

Re: Anemone Client

Postby mvgulik » Sat Jul 18, 2015 7:01 pm

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)
mvgulik
 
Posts: 3742
Joined: Fri May 21, 2010 2:29 am

Re: Anemone Client

Postby yalnajja » Tue Jul 21, 2015 5:16 pm

thank you =)
yalnajja
 
Posts: 19
Joined: Sun Jun 09, 2013 3:27 pm

Re: Anemone Client

Postby mvgulik » Tue Jul 21, 2015 7:47 pm

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

Re: Anemone Client

Postby mvgulik » Tue Jul 21, 2015 7:49 pm

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

Re: Anemone Client

Postby twolf » Tue Aug 04, 2015 6:19 pm

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.
twolf
 
Posts: 9
Joined: Fri May 01, 2015 2:52 am

Re: Anemone Client

Postby mvgulik » Tue Aug 04, 2015 7:20 pm

[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.
mvgulik
 
Posts: 3742
Joined: Fri May 21, 2010 2:29 am

Re: Anemone Client

Postby twolf » Wed Aug 05, 2015 12:53 am

Thanks mvgulik, you're the best! 8-)
twolf
 
Posts: 9
Joined: Fri May 01, 2015 2:52 am

PreviousNext

Return to The Wizards' Tower

Who is online

Users browsing this forum: No registered users and 1 guest