If you are motivated and you need it, its possible to catch the RecastType value for create some timer based on
Natively it is not supported in releases of mq2. but not impossible. look this little patch.
You can also make a new plugin for that
Code: Select all
case RecastType:
if (!pItem->Item->Clicky.SpellID)
{
return false;
}
if (pItem->Item->Clicky.RecastType == -1)
{
Dest.Ptr = "-1";
Dest.Type = pStringType;
return true;
}
else if (pItem->Item->Clicky.RecastType != -1)
{
Dest.DWord = pItem->Item->Clicky.RecastType;
Dest.Type = pIntType;
return true;
}
return false;
So after compilation it gives with the macro:
Code: Select all
/echo ${FindItem2[Ares, Shield of Immortality].RecastType}
return 34
A small sample for create timer based on:
- Create a generic Timer Based on the Clicky Name
- If RecastType found, set a common Timer Based on
Code: Select all
| Declare TimerName
| Generic timer name
/if (${CastCheckName.Find[,]}) {
/if (!${Defined[i]}) /declare i int local
/for i 1 to ${CastCheckName.Count[,]}
/varset CastCheckName ${CastCheckName.Left[${Math.Calc[${CastCheckName.Find[,]}-1]}]}${CastCheckName.Right[-${CastCheckName.Find[,]}]}
/next i
}
/declare TimerName string local "${CastCheckName.Replace[ ,].Replace[',]}Timer"
| RecastType timer name
/if (${FindItem2} && ${CastCheckType.Equal[bag]}) {
/if (${FindItem2[${CastCheckName}].RecastType} > 0) /varset TimerName Type${FindItem2[${CastCheckName}].RecastType}Timer
}
| Create Timer
/declare ${TimerName} timer global ${RecastTime}