I think this is the code that moves the PC if the door is clicked...
Code:
if (opentype == 58 && strncmp(dest_zone,"NONE",strlen("NONE")) != 0 ){ // Teleport door!
if ( strncmp(dest_zone,zone_name,strlen(zone_name)) == 0) {
//dunno why, but this dosent seem to work all the time:
//sender->GMMove(dest_x,dest_y,dest_z);
sender->MovePC((const char*) NULL, dest_x, dest_y, dest_z);
}
else {
sender->MovePC(dest_zone, dest_x, dest_y, dest_z);
}
Edit: The code looks sound, so I don't know why it's not working... Maybe there's something wrong with the destination zones in the DB or the way the db code reads the destination zone...