Page 1 of 1

MagicBox Extraction ?

Posted: Mon Aug 12, 2013 9:20 am
by wps
I wrote a script to do extraction,
but "MagicBoxRequest()" is not working.

After "MagicBoxRequest()" is executed, the confirm button will not be grey out, and the extraction doesn't happen.

I use script to put the items in slots, and click the button manually, and it works.

I checked the API, but found nothing.

I test with and without advance magic box.

Does any one know how to trigger the extraction?

Thanks.

Re: MagicBox Extraction ?

Posted: Mon Aug 12, 2013 10:28 am
by rock5
Try "MagicBoxDrawStone()".

Re: MagicBox Extraction ?

Posted: Mon Aug 12, 2013 11:26 am
by wps
tyvm

I didn't see this command in any API on the internet.
It's amazing that you know this.

Re: MagicBox Extraction ?

Posted: Mon Aug 12, 2013 12:08 pm
by rock5
:)

I have the "interface/worldxml" folder from inside the "interface.fdb" file, where most of the interface code can be found, extracted. I seem to remember from previous work I've done that the fusion and extraction are handled by different code and functions. I did a search in the extracted folder for "MagicBoxRequest" and found the following code

Code: Select all

function MagicBoxFrameOkayButton_OnClick()
	if(  MagicBoxFrame.sw==true )then
		MagicBoxRequest();
	else
		MagicBoxDrawStone();	
	end
end
Simple. Of course it's not always that simple but this one was. This is how I usually find new functions or how to use the functions without documentation.