Jump to content

2 npc's with same name but different levels


Acerd

Recommended Posts

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 by Oliver
  • Like 1
Link to comment
Share on other sites

 

 

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.

  • Like 2
Link to comment
Share on other sites

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()

  • Like 1
Link to comment
Share on other sites

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 by Molly
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...