Me.Inventory ???

Suicide

Active Member
if ${Me.Inventory[Manastone].IsReady}
{
Me.Inventory[Manastone]:Use
wait 5
}
I am trying to get the script to use my manastone that is in my bags and not on my character in a charm spot.

I have looked to see how the Me.Inventory command works and I can only see it as a way to destroy items but not to use the items.
 

Amadeus

The Maestro
Staff member
That should work IF you can actually "use" it from your inventory. Are you sure that you can do that...or does it require you to have it equipped when using it in the UI?

If you can actually right click and use it from your inventory, then that means that either IsReady or :Use is broken and I'll need to fix them. Or, something along those lines.
 

Suicide

Active Member
I can right click it from inventory and use. I can also drap it to a hotbar and click it to use as well.

I would assume :use would be broke if anything as Isready tends to work when checking a spell.
 

Amadeus

The Maestro
Staff member
I tested this using a totem of the chameleon AND a "Glowing Azure Shard" ..both worked perfectly.

> echo ${Me.Inventory[Chameleon].IsReady}
..returned TRUE or FALSE correctly

> Me.Inventory[Chameleon]:Use
...worked perfectly.


Try your commands from the console. ...if they work there, then it's your script that is the problem. I entered these commands in the console rather than using a script.
 

Suicide

Active Member
echo ${Me.Inventory[Manastone].IsReady}

returns NULL

i wonder if it coded as a different name. I tested with a essence of clarity and it worked, so its just something to do with the manastone. Wonder if its tagged differently because its a hertiage item.
 

Amadeus

The Maestro
Staff member
What do echo ${Me.Inventory[Manastone].Name} and echo ${Me.Inventory[Manastone].Type} return?
 

Suicide

Active Member
echo ${Me.Inventory[Manastone].Name}

returns NULL

echo ${Me.Inventory[Manastone].Type}

Returns Container
 

Amadeus

The Maestro
Staff member
Try the same thing but:

echo ${Me.Inventory[ExactName,Manastone].Name}

echo ${Me.Inventory[ExactName,Manastone].Type}

..I bet you have a shroud of the manastone or something in your inventory.
 

Suicide

Active Member
echo ${Me.Inventory[ExactName,Manastone].Name}

returns Manastone

echo ${Me.Inventory[ExactName,Manastone].Type}

Returns activateable

its odd becasue i dont think i have a shroud of the manastone in my inventory or my bank. but i am guessing thats what it was.

After i did the echo ${Me.Inventory[ExactName,Manastone].Type} and it returned activateable, i changed the line in my script and it works like a charm.

Thanks Amadeus for all the help
 
Last edited:
Top Bottom