totalschaden
Active Member
- Joined
- Feb 16, 2010
- Messages
- 1,146
- Reaction score
- 1
The return values of CraftItems and UseSkill() are not working properly when cast is canceled. If you Craft or Cast something, and cancel it by moving for example, both will return true.
Example Code will return "Successfully crafted Tradepack." even though nothing was crafted, same with UseSkill().
For Crafting Tradepacks its not as bad as for UseSkill, as i could check if I have a tradepack on back.
I tryed to fix this using OnSkillCasting to detect cast, but it has the same false positiv report.
Code:
if (CraftItems(tradePackID, 1))
{
Log("Successfully crafted Tradepack.", Color.Green);
tradepacksCrafted++;
}
else
Log(GetLastError().ToString());
Example Code will return "Successfully crafted Tradepack." even though nothing was crafted, same with UseSkill().
For Crafting Tradepacks its not as bad as for UseSkill, as i could check if I have a tradepack on back.
I tryed to fix this using OnSkillCasting to detect cast, but it has the same false positiv report.
Last edited: