Strings vs. ID
#1
I am currently building a plank making script, and I'm trying to make it a bit more robust, functional and fast. I am also very new to the Script Factory, so I don't necessarily know what I am doing. Currently, I am trying to get the mouse to hover over a particular NPC "if visible", but I must enter a value that is either a string or ID. 

What do these terms mean (I'm assuming ID is the basic NPC ID)? What is a string? Where could I find these NPC IDs? 

Please let me know if you need a copy of the script to help.
  Reply
#2
A string refers to the name of the entity. The ID refers to the ID of the entity.

Example: Gold is callled “Coins”. So the string is “Coins”. The ID is 995z
OSRS Script Factory
  Reply
#3
(10-16-2020, 09:02 PM)Project Wrote: A string refers to the name of the entity. The ID refers to the ID of the entity.

Example: Gold is callled “Coins”. So the string is “Coins”. The ID is 995z

Well that's going to make new scripts a lot easier! Is it the exact same as the "Name" option for NPCs?
  Reply
#4
(10-17-2020, 04:18 PM)Diesal Wrote:
(10-16-2020, 09:02 PM)Project Wrote: A string refers to the name of the entity. The ID refers to the ID of the entity.

Example: Gold is callled “Coins”. So the string is “Coins”. The ID is 995z

Well that's going to make new scripts a lot easier! Is it the exact same as the "Name" option for NPCs?

Yes! Make sure to type it exactly as it appears in game.
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)