Page 2 of 2
Re: Error Calling "onHitMonster"
Posted: Sun Nov 23, 2014 8:33 pm
by NutJob
cameronC wrote:o.item:addConnector("onEquipitem", "lib", "aaa")
lowercase "item"?
You'd think it was that, but I
accidentally left it like that as one of my hundreds of iterations to make it work. =)
I had it as onEquipItem originally.
Re: Error Calling "onHitMonster"
Posted: Sun Nov 23, 2014 9:32 pm
by NutJob
So should I submit the addConnector method with either onEquipItem or onUnequipItem produces an error?
Would anyone mind taking one, maybe two minutes, to confirm this doesn't or does work?
Re: Error Calling "onHitMonster"
Posted: Mon Nov 24, 2014 1:04 am
by MrChoke
The problem with the hook callback is you cannot name the function starting with "on". No idea why but I had the same problem. Rename the "onHitMonster" function to something like "hitMonsterFN". I bet it fixes the problem.