View Single Post
  #5  
Old 06-10-2005, 09:57 PM
SuedeWorthey
Sarnak
 
Join Date: Jan 2005
Posts: 64
Default I think I found the code...

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...

Last edited by SuedeWorthey; 06-11-2005 at 06:09 AM..
Reply With Quote