Quote:
Originally Posted by cbkbud
Independant functions are nice because they can be reused. Public functions in DB NPCs are also extremely useful.
|
Yeah, I'm using a public function here.
Quote:
|
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.
|
I'm didn't use 'client.length'? Unless you're reffering to my 'client.size' variable.
[QUOTE]
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();
[QUOTE]
I'm pretty sure that using ' "" ' rather than 'NULL' would not delete the array. I was scripting something similar to this and while using NULL it deleted the array but with the quotations it didn't. :o
Quote:
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
|
Yeah, I've long since fixed that thing you're reffering to about the assigning tokenize to something.
Thanks.