callmephil
Respected Member
hello i've got a quite annoying bug with Spell_linked_spell
this script is applying a buff when other buff fade.
all buff are linked together.
however when i disconnect it try to remove both buff in the same time and this is creating infinite buff. i tried to fix in many way so far but i couldn't figure out a solution.
btw i need to always keep one of two linked aura.
example :
if aura 95000 is active and player go in battleground then 95000 fade and 95006 is applied
when player get out of battleground 95006 will fade and 95000 will be active
i'm using OnUpdateZone to handle zone checks.
if player disconnect and not in battleground and aura 95006 is active on login back 95006 will fade and 95000 will be applied
anyone got an idea/solution for it?
would be appreciated thanks.
Code:
DELETE FROM `Spell_Linked_Spell` WHERE `spell_effect` BETWEEN 95000 AND 95011;
INSERT INTO `Spell_Linked_Spell` (spell_trigger, spell_effect, TYPE, COMMENT) VALUES (-95000, 95006, 0, "");
INSERT INTO `Spell_Linked_Spell` (spell_trigger, spell_effect, TYPE, COMMENT) VALUES (95006, -95000, 0, "");
INSERT INTO `Spell_Linked_Spell` (spell_trigger, spell_effect, TYPE, COMMENT) VALUES (-95001, 95007, 0, "");
INSERT INTO `Spell_Linked_Spell` (spell_trigger, spell_effect, TYPE, COMMENT) VALUES (95007, -95001, 0, "");
INSERT INTO `Spell_Linked_Spell` (spell_trigger, spell_effect, TYPE, COMMENT) VALUES (-95002, 95008, 0, "");
INSERT INTO `Spell_Linked_Spell` (spell_trigger, spell_effect, TYPE, COMMENT) VALUES (95008, -95002, 0, "");
INSERT INTO `Spell_Linked_Spell` (spell_trigger, spell_effect, TYPE, COMMENT) VALUES (-95003, 95009, 0, "");
INSERT INTO `Spell_Linked_Spell` (spell_trigger, spell_effect, TYPE, COMMENT) VALUES (95009, -95003, 0, "");
INSERT INTO `Spell_Linked_Spell` (spell_trigger, spell_effect, TYPE, COMMENT) VALUES (-95004, 95010, 0, "");
INSERT INTO `Spell_Linked_Spell` (spell_trigger, spell_effect, TYPE, COMMENT) VALUES (95010, -95004, 0, "");
INSERT INTO `Spell_Linked_Spell` (spell_trigger, spell_effect, TYPE, COMMENT) VALUES (-95005, 95011, 0, "");
INSERT INTO `Spell_Linked_Spell` (spell_trigger, spell_effect, TYPE, COMMENT) VALUES (95011, -95005, 0, "l");
this script is applying a buff when other buff fade.
all buff are linked together.
however when i disconnect it try to remove both buff in the same time and this is creating infinite buff. i tried to fix in many way so far but i couldn't figure out a solution.
btw i need to always keep one of two linked aura.
example :
if aura 95000 is active and player go in battleground then 95000 fade and 95006 is applied
when player get out of battleground 95006 will fade and 95000 will be active
i'm using OnUpdateZone to handle zone checks.
if player disconnect and not in battleground and aura 95006 is active on login back 95006 will fade and 95000 will be applied
anyone got an idea/solution for it?
would be appreciated thanks.
Last edited: