View Single Post
  #4  
Old 03-13-2007, 08:13 PM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
Quote:
Originally Posted by cbkbud View Post
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.
__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote