Table dbscripts_on_creature_movement has no unique ids for primary key
If you look into table dbscripts_on_creature_movement you will notice a problem with the primary keys. To best honest, there are none.
SELECT COUNT(ID) FROM dbscripts_on_creature_movement;
tells you that there are 672 IDs found but this query
SELECT COUNT(DISTINCT ID) FROM dbscripts_on_creature_movement;
tells you that there are just 246 unique IDs so a lot of the primary keys are threefold or even more existing in the table. This could be because the primary key field id isn't set as a primary key too!
According to this docs: [url]http://docs.getmangos.com/en/latest/database/world/creature-movement.html[/url]
This ids are used for this purpose:
[quote]script_id
If a script should be executed, this references the “dbscripts_on_creature_movement” table tables unique ID for which the entry is valid. If not, set the value to zero.[/quote]
You see that the IDs should be unique but in fact they are far away from this. I'm not sure what Mangos does when it tries to execute one of the ids which exist multiple times.
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now