View Single Post
  #27  
Old 06-11-2005, 01:05 AM
SuedeWorthey
Sarnak
 
Join Date: Jan 2005
Posts: 64
Default I found the error!

I wanna try this Junior Dev Stuff...
Alright, there is a problem in zoning.cpp.
Looks like a copy, paste error.

Original Code: zoning.cpp line 318
Code:
void Client::MovePC(const char* zonename, float x, float y, float z, int8 ignorerestrictions, bool summoned, ZoneMode zm) {
	MovePC(zone->GetZoneID(), x, y, z, ignorerestrictions, summoned, zm);
}
Changed to:
Code:
void Client::MovePC(const char* zonename, float x, float y, float z, int8 ignorerestrictions, bool summoned, ZoneMode zm) {
	//MovePC(zone->GetZoneID(), x, y, z, ignorerestrictions, summoned, zm);
	MovePC(database.GetZoneID(zonename), x, y, z, ignorerestrictions, summoned, zm);
}
I will update my links on my website with the new code in approximately 10 minutes... I will also test the code.

Edit 1:
Upload complete. Testing begins...
Edit 2:
Code works great, just need to update DB for proper coords. I zoned right inside the qeynos stone when I zoned.

-Suede-

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