I've been mulling over this script for a while now and can't get this section of it to work:
getunitdata($@mobgid,UDT_HP,.@hp);
if (.@hp > 3000000 && .@hp < 4900000)
donpcevent("#testing::OnStart1");
else if (.@hp > 10000 && .@hp < 2500001)
donpcevent("#testing::OnStart2");
If I comment out the HP check lines, it works 100% fine. I've tried UDT_HP and UDT_MAXHP, this script also uses setunitdata which has been working just fine with the mob's HP (same variable and everything, it is used before this part of the script). I've also tried: .@hp = getunitdata($@mobgid,UDT_HP);, as well as skipping the variable and just using UDT_HP, and that didn't work either.
I've been mulling over this script for a while now and can't get this section of it to work:
getunitdata($@mobgid,UDT_HP,.@hp); if (.@hp > 3000000 && .@hp < 4900000) donpcevent("#testing::OnStart1"); else if (.@hp > 10000 && .@hp < 2500001) donpcevent("#testing::OnStart2");
If I comment out the HP check lines, it works 100% fine. I've tried UDT_HP and UDT_MAXHP, this script also uses setunitdata which has been working just fine with the mob's HP (same variable and everything, it is used before this part of the script). I've also tried: .@hp = getunitdata($@mobgid,UDT_HP);, as well as skipping the variable and just using UDT_HP, and that didn't work either.
Share this post
Link to post
Share on other sites