What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Check for wand

Don't know of a way to do it, only see mainhand and offhand checks.
 
public WoWItem Mainhand { get; } will return null if you have nothing in mainhand
public WoWItem Offhand { get; } does the same thing

But I don't see a function in here to return if there is anything equipped in the range slot.
 
Last edited by a moderator:
public WoWItem Mainhand { get; } will return null if you have nothing in mainhand
public WoWItem Offhand { get; } does the same thing

But I don't see a function in here to return if there is anything equipped in the range slot.

I saw this too. Making now my own CC for learning(Really nice stuff in it that I hadn't see in other CC's )

I only need to check if someone has a wand otherwise the exp/hr will be much lower.

Bossland is it possible that in next build also a WoWItem RangeSlot will be implement?
 
I saw this too. Making now my own CC for learning(Really nice stuff in it that I hadn't see in other CC's )

I only need to check if someone has a wand otherwise the exp/hr will be much lower.

Bossland is it possible that in next build also a WoWItem RangeSlot will be implement?

You can probably use a SpellManager.CanCastSpell("Shoot");, it should be greyed if no wand.
 
erenion used this in ePriest:

bool haveWandEquipped;
private void HaveWandCheck()
{
Lua.DoString("textureWand = GetInventoryItemTexture(\"player\", 18)");
string textureWand = Lua.GetLocalizedText("textureWand", _me.BaseAddress);
if (textureWand == "nil")
{
haveWandEquipped = false;
}
else
{
haveWandEquipped = true;
}
}
<input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden">
 
Or just:
Lua.LuaGetReturnValue("return HasWandEquipped()", "Foo.lua").
 
Back
Top