Nex 2546 Posted June 2, 2017 isAttackable() do we have this? if so please tell me cause i cannot find it would be used to see if a npc has a attack option if not can we get this added?
Nex 2546 Author Posted June 2, 2017 Well why would it not work, also edited my post NPC port = getNpcs().closest(n -> n != null && getMap().canReach(n) && n.hasAction("Attack") && n.getName().equals("Portal")); Using this line and that doesnt seem to be working
Manly 879 Posted June 2, 2017 The reason why it may not be working is because has action is returning null. I had the same problem trying to get a gameobject's actions whilst creating my agility script. One of the obstacles just returned null everytime i called get actions on it so I had to do it another way.
Nex 2546 Author Posted June 2, 2017 The reason why it may not be working is because has action is returning null. I had the same problem trying to get a gameobject's actions whilst creating my agility script. One of the obstacles just returned null everytime i called get actions on it so I had to do it another way. yea im getting nulled, trying other stuff now
Dorkinator 64 Posted June 2, 2017 https://dreambot.org/forums/index.php/topic/10130-charactercanattack-returns-wrong-value/ Doesn't work all the time.
Dorkinator 64 Posted June 3, 2017 Can you tell me any object or npc that doesn't work. #NoMemberPlayers at the duel arena.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.