Page 1 of 1

Check if have AT

Posted: Wed Aug 18, 2010 5:36 am
by swietlowka
Is there anyway that i could check for having Arcane Transmutor? like if the quest got done or something else?
I can't see anything like that, and i'd like to make the bot go to complete that quest when lvl 10 and then get but when it was, but without that kind of check i just can't do it once only loop (for each run when im still lvl 10) and this would be a waste of time :)

Re: Check if have AT

Posted: Wed Aug 18, 2010 7:02 am
by swietlowka
http://theromwiki.com/index.php?title=A ... &redlink=1
found something, but i just dunno how to check how and if it does work, any help?

Re: Check if have AT

Posted: Wed Aug 18, 2010 7:46 am
by rock5
swietlowka wrote:http://theromwiki.com/index.php?title=A ... &redlink=1
found something, but i just dunno how to check how and if it does work, any help?
IsMagicBoxEnable() will return 'true' if you have the Arcane Transmutor and 'false' if you don't.

So you could do something like this;

Code: Select all

if RoMScript("IsMagicBoxEnable()") then
    ....
else
    ....
end

Re: Check if have AT

Posted: Wed Aug 18, 2010 12:24 pm
by romvn
IsMagicBoxEnable() doesn't work at least with VN client.
You can use GetMagicBoxEnergy() instead. It will return number of charges you have.
For your case, activated = 10, not activated = 0

Re: Check if have AT

Posted: Thu Aug 19, 2010 5:26 am
by swietlowka
thanks a lot ill check it asap
will have to be carefull no to let it drop to "0" though

Re: Check if have AT

Posted: Sun Aug 22, 2010 4:01 am
by MiesterMan
swietlowka wrote:Is there anyway that i could check for having Arcane Transmutor? like if the quest got done or something else?
I can't see anything like that, and i'd like to make the bot go to complete that quest when lvl 10 and then get but when it was, but without that kind of check i just can't do it once only loop (for each run when im still lvl 10) and this would be a waste of time :)
Here's what I used:

Code: Select all

	local questCompleted = RoMScript("CheckQuest(421457);");
	if questCompleted == 2 then
		printf("Character has activated the arcane transmuter!\n");
	end