Thread: Suggestion!
View Single Post
  #23  
Old 07-13-2007, 05:08 PM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
Quote:
Originally Posted by Gambet View Post
It returns an object but it's unecessary considering you don't need the object to be returned in this case to access the function. You can call the database directly via obj.function();
As twinny said, since it is compiled into bytecode, there is no inefficiency in terms of runtime, so the only thing you can be complaining about is perhaps, at most, saving typing.

So you would do like
dbnpcname.var1 = hi;
dbnpcname.var2 = cool;
dbnpcname.var3 = "sweet";
dbnpcname.var4 = 4;
dbnpcname.var5 = 6;

Since you are all about typing it directly
but oh man check it
n = findnpc("dbnpcname");
n.var1 = hi;
n.var2 = cool;
n.var3 = "sweet";
n.var4 = 4;
n.var5 = 6;
__________________

Last edited by Skyld; 07-13-2007 at 06:04 PM..
Reply With Quote