Acerd Posted January 19, 2016 Share Posted January 19, 2016 if i want to only attack one of them what should i do? Quote Link to comment Share on other sites More sharing options...
BurritoBug Posted January 19, 2016 Share Posted January 19, 2016 id? Quote Link to comment Share on other sites More sharing options...
Bobrocket Posted January 19, 2016 Share Posted January 19, 2016 getCombatLevel() Quote Link to comment Share on other sites More sharing options...
Oliver Posted January 19, 2016 Share Posted January 19, 2016 (edited) id? getCombatLevel() I am no scripter at all but grab the ID and use the ID instead of the Name ? (Different Levels have different ID's) You can get the ID under settings on the client. (Same is used if you want to interact with a door, inventory and so) Edited January 19, 2016 by Oliver 1 Quote Link to comment Share on other sites More sharing options...
Molly Posted January 19, 2016 Share Posted January 19, 2016 getCombatLevel() That's what I did when making my thieving script compatible with guards on DMM. I'd shy away from using ids as Sentende mentioned, only because Jagex in the past has changed them and could easily do so again. Not a super big deal but it is annoying to have to go grab new ids to change your script. 2 Quote Link to comment Share on other sites More sharing options...
Acerd Posted January 19, 2016 Author Share Posted January 19, 2016 getCombatLevel() thx Quote Link to comment Share on other sites More sharing options...
Bobrocket Posted January 19, 2016 Share Posted January 19, 2016 I am no scripter at all but grab the ID and use the ID instead of the Name ? (Different Levels have different ID's) You can get the ID under settings on the client. (Same is used if you want to interact with a door, inventory and so) Check Molly's post underneath. Using ID's to grab the correct NPC is like trying to kill someone with a plastic knife. That's what I did when making my thieving script compatible with guards on DMM. I'd shy away from using ids as Sentende mentioned, only because Jagex in the past has changed them and could easily do so again. Not a super big deal but it is annoying to have to go grab new ids to change your script. Haven't touched RS since december, but DMM guards don't have the "Pickpocket" option? Could you not just check npc.hasAction("Pickpocket")? Could always be wrong. Also OP: seems as if getCombatLevel() isn't a thing; use getLevel() 1 Quote Link to comment Share on other sites More sharing options...
Molly Posted January 19, 2016 Share Posted January 19, 2016 (edited) Check Molly's post underneath. Using ID's to grab the correct NPC is like trying to kill someone with a plastic knife. Haven't touched RS since december, but DMM guards don't have the "Pickpocket" option? Could you not just check npc.hasAction("Pickpocket")? Could always be wrong. Also OP: seems as if getCombatLevel() isn't a thing; use getLevel() Honestly I don't recall if they have the pickpocket option, but yeah you could always check for action of course, assuming they don't. Edited January 19, 2016 by Molly Quote Link to comment Share on other sites More sharing options...
The Hero of Time Posted January 19, 2016 Share Posted January 19, 2016 ID lol? obviously :lol: Quote Link to comment Share on other sites More sharing options...