Quote:
Originally Posted by killerogue
P.S. I'm considering creating functions for each part. But Hell Raven has taught me it's best to make independent functions. Tho, I have not done so here.
|
Independant functions are nice because they can be reused. Public functions in DB NPCs are also extremely useful.
Very nice script, though a little long for what it is. Also, I notice 'client.length'? Not quite sure what that is supposed to do, but I'm pretty sure that won't return anything.
Also, the onCreated function ... there's no need to delete the outfits, unless you were testing. And to delete an array it is best to use obj.clear();
And lastly, as far as I can tell, player.chat.tokenize(); I'm not sure how you'd get that to work. You need to assign that to something ...
NPC Code:
tokens = player.chat.tokenize(); // tokens is an array ... tokens[0], tokens[1], etc