View Single Post
  #8  
Old 01-28-2013, 09:06 AM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

i'm at a loss as to why you wouldn't want to use qglobals, but at the very least, you probably want to keep the connection persistent for the lifetime of the npc. maybe set a timer to where it closes the connection after a certain amount of inactivity. perhaps look into caching the results as well. you don't want to give players the opportunity to create new database connections (or load perl modules, for that matter) at the press of a button.
__________________
I muck about @ The Forge.
say(rand 99>49?'try '.('0x'.join '',map{unpack 'H*',chr rand 256}1..2):'incoherent nonsense')while our $Noport=1;
Reply With Quote