Thread: keyring
View Single Post
  #5  
Old 09-14-2008, 07:55 AM
James76
Sarnak
 
Join Date: Sep 2008
Location: Canada
Posts: 53
Default

ok I think I can just call database.RunQuery, I thought I was crashing my zone because of the database query (I was trying to force RunQuery to work by inheriting SharedDB in Doors class definition, lol) but now I think it is crashing because of an sprintf statement, I'm used to using %n for integers, but now I realize I should probably try %i.... which solved the problem. Its been a while since I did anything in linux c++.

OK its adding to keyring...

OK it can open the door from the keyring..

OK it won't open the door without a key and without keyring..

Works. Now just going to get the /key command to work..

One final thought before I post my code, this is accessing the database directly, without the zone dumping the database to shared memory or anything for any synchro.. Is that a problem? Or should I go that extra step?
Reply With Quote