View Single Post
  #3  
Old 07-08-2009, 01:35 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Ok,

When you create a new NPC in the NPCs section (has a lizard man picture), it is called a DBNPC: not a Control-NPC. Control-NPC is a specialized default DBNPC.

Now, I don't understand why you would need 2 DBNPCs for a bank...surely they could just be joined?

From the credit card weapon, you can call BankDB.publicfunction() serverside

soo....

PHP Code:
//BankDB
public function test()
{
  echo(
"Public Function Reached!");
  return 
true;

PHP Code:
//Credit Card Weapon
//blah blah

temp.test BankDB.test();
if (
temp.test)
  
player.chat "woo!";
else
  
player.chat "dammit =("
Of course, you could access the BankDB variables straight from the Credit card weapon using the BankDB.variable method but it depends what types of security you implement.
Reply With Quote