View Single Post
  #5  
Old 05-18-2006, 11:57 AM
Cripp's Avatar
Cripp
Discordant
 
Join Date: Oct 2003
Location: The Shire
Posts: 474
Unhappy

sorry, didnt have enough time when i replied first time then forgot about it , my bad.
here it is...


change
Code:
	//set the player's coordinates in the new zone so they have them
	//when they zone into it
	x_pos = dest_x; //these coordinates will now be saved when ~client is called
	y_pos = dest_y;
	z_pos = dest_z;
	
	m_pp.heading = dest_h;
	m_pp.zone_id = zone_id;
	
	//Force a save so its waiting for them when they zone
	
	Save();
to...

Code:
	//set the player's coordinates in the new zone so they have them
	//when they zone into it
	x_pos = dest_x; //these coordinates will now be saved when ~client is called
	y_pos = dest_y;
	z_pos = dest_z;
	heading = dest_h;
	m_pp.heading = dest_h;
	m_pp.zone_id = zone_id;
	
	//Force a save so its waiting for them when they zone
	SendPosUpdate();
	Save();

very simple. This works on 6.6 havent fully tested on 7.0.
__________________
Nug Blazers - ServerOP / founder
^^comming... later!

www.nugblazers.com
Reply With Quote