Quote:
Originally Posted by Inverness
First, if the npc name is ItemCache then you can simply use ItemCache.varname rather than findnpc("ItemCache").varname.
|
I prefer declaring findNPC() manually for code readability. Doesn't really matter.
Quote:
Originally Posted by Inverness
Second, would be a bit more efficient to check if an object is existing by using varname.type() == 2 rather than varname.objecttype() == "TStaticVar".
|
I honestly don't think it makes any difference.