#spawnfix -- fixed!
The #spawnfix command in its current implementation has some shortcomings. Main one being that it tries to search the spawn2 database based on the mob's current x,y,z,heading - which means that
(1) if the mob starts moving or turns to face another direction, you can't use #spawnfix after that (2) because of imprecision in the way floats are saved to the database, you effectively get to use #spawnfix ONCE per mob, and after that it will give you the "duplicate spawns detected" if you ever try to fix that same mob spawn again. This rewritten #spawnfix command gets rid of those limitations by using the mob's spawn ID number from the database, instead of trying to query based on the mob's current position. In zone/command.cpp, seek to where the "command_spawnfix" function is defined. Remove it completely, and replace it with this function: Code:
void command_spawnfix(Client *c, const Seperator *sep) |
sweet, I hated getting that "duplicate spawns" error...
|
OMG you rule all, F what Melwin owns.
Just Kidding Melwin. Melwin = King of all |
Quote:
|
lol why are you so obsessed with melwin
|
All times are GMT -4. The time now is 11:36 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.