Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NPC][master] Silvermoon Guardian duplicate #18944

Closed
ArcaneFox opened this issue Jan 24, 2017 · 4 comments
Closed

[NPC][master] Silvermoon Guardian duplicate #18944

ArcaneFox opened this issue Jan 24, 2017 · 4 comments

Comments

@ArcaneFox
Copy link

Description:
Silvermoon Guardian spawned two times:
guid 56875 and 375662

Current behaviour: (Tell us what happens.)
Silvermoon Guardian spawned two times

Expected behaviour: (Tell us what should happen instead.)
Spawn only one Silvermoon Guardian

Steps to reproduce the problem:

  1. Go to 9513.57 -6842.83 16.6175 (xyz)

Branch(es): master

TC rev. hash/commit: 1c00f0b

TDB version: 703.00 + updates

Operating system: Windows 10 64-bit

Possible Fix:
DELETE FROM creature WHERE guid=375662;

@Aokromes
Copy link
Member

i cannot test on master db, but at least on 4.3.4 those creatures are on diff coordinates.

@ArcaneFox
Copy link
Author

i checked the characters in the TDB_full_434.09_2014_10_19 and here is the 56875 npc:
(56875,16221,530,0,0,1,1,0,0,0,0,9513.57,-6842.83,16.6175,1.16937,300,0,0,1124,0,0,0,0,0,0)

but i could not find coordinates for the 375662

@ghost
Copy link

ghost commented Jan 24, 2017

TrinityCore rev. c36f831 2017-01-24 00:08:12 +0100 / TDB 703.00 + updates

SELECT * FROM `creature` WHERE `guid` IN (56875,375662);
  guid      id     map  zoneId  areaId  spawnMask  PhaseId  PhaseGroup  modelid  equipment_id  position_x  position_y  position_z  orientation  spawntimesecs  spawndist  currentwaypoint  curhealth  curmana  MovementType  npcflag  unit_flags  dynamicflags  VerifiedBuild
------  ------  ------  ------  ------  ---------  -------  ----------  -------  ------------  ----------  ----------  ----------  -----------  -------------  ---------  ---------------  ---------  -------  ------------  -------  ----------  ------------  -------------
 56875   16221     530       0       0          1        0           0        0             0     9513.57    -6842.83     16.6175      1.16937            300          0                0       1124        0             0        0           0             0              0
375662   16221     530       0       0          1        0           0        0             0     9513.53    -6842.88     16.5768      1.16937            120          0                0          0        0             0        0           0             0          20886

Looks like the curhealth of 375662 is 0 ("He's dead, Jim.") -- is that the one which should be deleted?

@ArcaneFox
Copy link
Author

ArcaneFox commented Jan 25, 2017

yes it should be deleted/updated and there are 6 npc with 0 health and different spawntimesecs

SELECT * FROM `creature` WHERE `id` = 16221 AND `curhealth` = 0;

375660	16221	530	0	0	1	0	0	0	0	9308.29	-7134.01	16.308	5.08281	120	0	0	0	0	0	0	0	0	20886
375661	16221	530	0	0	1	0	0	0	0	9309.98	-7133.21	16.4483	5.14132	120	0	0	0	0	0	0	0	0	20886
375662	16221	530	0	0	1	0	0	0	0	9513.53	-6842.88	16.5768	1.16937	120	0	0	0	0	0	0	0	0	20886
375663	16221	530	0	0	1	0	0	0	0	9700.91	-6652.96	6.55616	3.67324	120	0	0	0	0	0	0	0	0	20886
85652	16221	530	0	0	1	0	0	0	0	9363.16	-7314.13	7.11649	5.64581	120	0	0	0	0	0	0	0	0	20886

when i have a little time i will check them ingame

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants