View Single Post
  #1  
Old 06-30-2003, 01:38 AM
KainM0rbid KainM0rbid is offline
Registered User
Join Date: Jun 2003
Location: Centreville, VA. U.S.A.
Posts: 4
KainM0rbid is on a distinguished road
Send a message via AIM to KainM0rbid
Exclamation NPC-Server DB NPC List....

Whenever the NPC Server is disconnected then called back everything is restored BUT the DB NPCs are only visible through the levels they're in (you can't see them in the DB NPC List) the only way I have found to be able to put them back in the list is to delete them locally with the following code
NPC Code:

if (playerenters) {
for (i=0; i<npcscount; i++) {
with (npcs[i]) {
if (strequals(#N,<db npc's name>)) {
destroy;
}
}
}
}


and then re-adding them to the DB NPC List.
also, if you try adding the NPCs BACK into the list without the code above in the level they're in, it says that there is already one of that name, but still doesn't show the npc in the db npcs list.

This is a real pain in the arse and should be fixed.

---Kain Morbid
__________________
"...and God said let there be Graal,
and there was Graal."
~Me
Reply With Quote