Jump to content
  • Felwood Corrupted Plants


    Chucksta
    • Status: Completed
      Main Category: Quests
      Sub-Category: Quest
      Version: 2.0.11 Milestone: 20 Priority: Low
      Implemented Version: 0.20

    This thread is for the Corrupted Night Dragon, Corrupted Songflower, and Corrupted Windblossom

    :) [COLOR="#FF0000"][SIZE=4]IGNORE THIS THREAD[/SIZE][/COLOR] :)

    I have created this thread so that I have a clear and empty area to put together the fixes for the other Felwood corrupted plants, even though due to the spawn issue, the fix is not absolute. Better than nothing, though :)

    This thread will be divided into:

    1) SQL scipt fixes

    2) SD2 script fixes

    3) Eluna script fixes

    This is primarily for the plants: Corrupted Night Dragon, Corrupted Songflower, and Corrupted Windblossom
    Although the scripts may be written to also include the Whipper Root, which is in the thread: [url]https://www.getmangos.eu/issue.php?issueid=653[/url]

    ==================================================================================================================

    Corrupted Whipper Root
    gameobject_template table: 164888, 173284, 174605, 174606, 174607, 174686

    Cleansed Whipper Root
    gameobject_template table: 164883, 174622, 174623, 174624, 174625, 174687

    Corrupted Night Dragon
    gameobject_template table: 164885, 173324, 174608, 174684

    Cleansed Night Dragon
    gameobject_template table: 164881, 173325, 174609, 174685

    Corrupted Windblossom
    gameobject_template table: 164887, 173327, 174599, 174600, 174601, 174602, 174603, 174604, 174708, 174709

    Cleansed Windblossom
    gameobject_template table: 164884, 173326, 174616, 174617, 174618, 174619, 174620, 174621, 174710, 174711

    Corrupted Songflower
    gameobject_template table: 164886, 171939, 171942, 174594, 174595, 174596, 174598, 174712, 174713

    Cleansed Songflower ([COLOR="#FF0000"]I think this gives a buff - cast spell on player character when interacted with[/COLOR])
    gameobject_template table: 164882, 171940, 171943, 174610, 174612, 174613, 174614, 174615, 174714, 174715
    These do buff the player character, and appear to be mostly correct in the gameobject_template table.
    Casts spell 15366 - [url]http://www.wowhead.com/spell=15366[/url]


    User Feedback

    Recommended Comments

    ***** [B][COLOR="#FF0000"]SQL scripts to go here[/COLOR][/B] *****

    Corrupted plants had been made lootable, but it should be the cleansed plants.


    [B][SIZE=3][COLOR="#0000FF"]Cleansed Windblossom[/COLOR][/SIZE][/B]

    [B]-- Delete Corrupted Windblossom entries[/B]
    [COLOR="#0000FF"]DELETE FROM gameobject_loot_template where item = 11950;[/COLOR]

    -- New [B]gameobject_loot_template[/B] records for Cleansed Windblossom

    -- Cleansed Windblossom ([B]gameobject_template[/B]: 164884, 173326, 174616, 174617, 174618, 174619, 174620, 174621, 174710, 174711)
    [COLOR="#0000FF"]INSERT INTO gameobject_loot_template (entry, item, ChanceOrQuestChance, groupid, mincountOrRef, maxcount, condition_id) VALUES (164884, 11950, 100, 0, 1, 3, 0);[/COLOR]

    -- Replace Cleansed Windblossom [B][B]gameobject_template [/B][/B]records
    -- the plants will now be lootable
    [COLOR="#0000FF"]UPDATE gameobject_template SET type= 3, data0 = 43, data1 = 164884, data2 = 0, data3 = 1, data4 = 1, data5 = 1, data10 = 0 WHERE entry = 164884;
    UPDATE gameobject_template SET type= 3, data0 = 43, data1 = 173326, data2 = 0, data3 = 1, data4 = 1, data5 = 1, data10 = 0 WHERE entry = 173326;
    UPDATE gameobject_template SET type= 3, data0 = 43, data1 = 174616, data2 = 0, data3 = 1, data4 = 1, data5 = 1, data10 = 0 WHERE entry = 174616;
    UPDATE gameobject_template SET type= 3, data0 = 43, data1 = 174617, data2 = 0, data3 = 1, data4 = 1, data5 = 1, data10 = 0 WHERE entry = 174617;
    UPDATE gameobject_template SET type= 3, data0 = 43, data1 = 174618, data2 = 0, data3 = 1, data4 = 1, data5 = 1, data10 = 0 WHERE entry = 174618;
    UPDATE gameobject_template SET type= 3, data0 = 43, data1 = 174619, data2 = 0, data3 = 1, data4 = 1, data5 = 1, data10 = 0 WHERE entry = 174619;
    UPDATE gameobject_template SET type= 3, data0 = 43, data1 = 174620, data2 = 0, data3 = 1, data4 = 1, data5 = 1, data10 = 0 WHERE entry = 174620;
    UPDATE gameobject_template SET type= 3, data0 = 43, data1 = 174621, data2 = 0, data3 = 1, data4 = 1, data5 = 1, data10 = 0 WHERE entry = 174621;
    UPDATE gameobject_template SET type= 3, data0 = 43, data1 = 174710, data2 = 0, data3 = 1, data4 = 1, data5 = 1, data10 = 0 WHERE entry = 174710;
    UPDATE gameobject_template SET type= 3, data0 = 43, data1 = 174711, data2 = 0, data3 = 1, data4 = 1, data5 = 1, data10 = 0 WHERE entry = 174711;[/COLOR]

    -- Assign a script to each of the corrupted Windblossom gameobject_template records
    [COLOR="#0000FF"]UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='164887';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='173327';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='174599';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='174600';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='174601';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='174602';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='174603';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='174604';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='174708';[/COLOR]

    -- Delete all cleansed Windblossom [B]gameobject [/B]records (not required because the script spawns them)
    [COLOR="#0000FF"]DELETE FROM gameobject WHERE id IN (164884, 173326, 174616, 174617, 174618, 174619, 174620, 174621, 174710, 174711);[/COLOR]

    -- Delete all but one cleansed Windblossom record from [B]gameobject_template [/B](we only need one)
    [COLOR="#0000FF"]DELETE FROM gameobject_template WHERE entry IN (173326, 174616, 174617, 174618, 174619, 174620, 174621, 174710, 174711);[/COLOR]

    [B][SIZE=3][COLOR="#0000FF"]Cleansed Night Dragon[/COLOR][/SIZE][/B]

    [B]-- Delete Corrupted Night Dragon entries[/B]
    [COLOR="#0000FF"]DELETE FROM gameobject_loot_template where item = 11952;[/COLOR]

    -- New [B]gameobject_loot_template [/B]records for Cleansed Night Dragon

    -- Cleansed Night Dragon ([B]gameobject_template[/B]: 164881, 173325, 174609, 174685)
    [COLOR="#0000FF"]INSERT INTO gameobject_loot_template (`entry`, `item`, `ChanceOrQuestChance`, `groupid`, `mincountOrRef`, `maxcount`, `condition_id`) VALUES ('164881', '11952', '100', '0', '1', '3', '0');[/COLOR]

    -- Replace Cleansed Night Dragon [B]gameobject_template [/B]records
    -- the plants will now be lootable
    [COLOR="#0000FF"]UPDATE gameobject_template SET type= 3, data0 = 43, data1 = 164881, data2 = 0, data3 = 1, data4 = 1, data5 = 1, data10 = 0 WHERE entry = 164881;
    UPDATE gameobject_template SET type= 3, data0 = 43, data1 = 173325, data2 = 0, data3 = 1, data4 = 1, data5 = 1, data10 = 0 WHERE entry = 173325;
    UPDATE gameobject_template SET type= 3, data0 = 43, data1 = 174609, data2 = 0, data3 = 1, data4 = 1, data5 = 1, data10 = 0 WHERE entry = 174609;
    UPDATE gameobject_template SET type= 3, data0 = 43, data1 = 174685, data2 = 0, data3 = 1, data4 = 1, data5 = 1, data10 = 0 WHERE entry = 174685;[/COLOR]

    -- Assign a script to each of the corrupted Night Dragon gameobject_template records
    [COLOR="#0000FF"]UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='164885';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='173324';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='174608';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='174684';[/COLOR]

    -- Delete all cleansed Night Dragon [B]gameobject [/B]records (not required because the script spawns them)
    [COLOR="#0000FF"]DELETE FROM gameobject WHERE id IN (164881, 173325, 174609, 174685);[/COLOR]

    -- Delete all but one cleansed Night Dragon record from [B]gameobject_template [/B](we only need one)
    [COLOR="#0000FF"]DELETE FROM gameobject_template WHERE entry IN (173325, 174609, 174685);[/COLOR]


    [B][SIZE=3][COLOR="#0000FF"]Cleansed Songflower[/COLOR][/SIZE][/B]

    -- Assign a script to each of the corrupted songflower gameobject_template records
    [COLOR="#0000FF"]UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='164886';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='171939';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='171942';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='174594';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='174595';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='174596';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='174598';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='174712';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='174713';[/COLOR]

    -- Delete the CompleteQuest script (set to 0) for the corrupted songflower quest (the above assigned script will now deal with this)
    [COLOR="#0000FF"]UPDATE `mangosZero`.`quest_template` SET `CompleteScript`='0' WHERE `entry`='2523';[/COLOR]

    Delete the dbscripts_on_quest_end record too ????

    I am going to script the looting of the cleansed songflower as the DB script is not working.
    Original record: '164882', '10', '3232', 'Cleansed Songflower', '0', '0', '2', '259', '0', '4059', '0', '0', '0', '0', '0', '0', '0', '15366', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', ''

    -- Assign a script to the cleansed songflower gameobject_template record
    [COLOR="#0000FF"]UPDATE gameobject_template SET `data2`='0', `data10`='0', `ScriptName`= 'go_cleansed_plant' WHERE `entry`='164882';[/COLOR]

    -- Delete all cleansed songflower [B]gameobject [/B]records (not required because the script spawns them)
    [COLOR="#0000FF"]DELETE FROM gameobject WHERE id IN (164882, 171940, 171943, 174610, 174612, 174613, 174614, 174615, 174714, 174715);[/COLOR]

    -- Delete all but one cleansed songflower record from [B]gameobject_template [/B](we only need one)
    [COLOR="#0000FF"]DELETE FROM gameobject_template WHERE entry IN (171940, 171943, 174610, 174612, 174613, 174614, 174615, 174714, 174715);[/COLOR]

    [B][COLOR="#0000FF"]That worked perfectly[/COLOR][/B] :) Corrupted Songflower now completed!


    [B][SIZE=3][COLOR="#0000FF"]Cleansed Whipper Root[/COLOR][/SIZE][/B]

    -- Delete Corrupted Windblossom entries
    [COLOR="#0000FF"]DELETE FROM gameobject_loot_template where item = 11950;[/COLOR]

    -- [B]REMOVE UNWANTED CLEANSED WHIPPER ROOT RECORDS[/B] (there are 2 of each, but only one of each is needed/correct - see above table)
    [COLOR="#0000FF"]DELETE FROM gameobject WHERE `guid`='17660';[/COLOR]
    [COLOR="#0000FF"]DELETE FROM gameobject WHERE `guid`='17662';[/COLOR]
    [COLOR="#0000FF"]DELETE FROM gameobject WHERE `guid`='17664';[/COLOR]
    [COLOR="#0000FF"]DELETE FROM gameobject WHERE `guid`='18176';[/COLOR]
    [COLOR="#0000FF"]DELETE FROM gameobject WHERE `guid`='18178';[/COLOR]
    [COLOR="#0000FF"]DELETE FROM gameobject WHERE `guid`='18180';[/COLOR]

    -- [B]New gameobject_loot_template records for Cleansed Whipper Root[/B]

    -- Cleansed Whipper Root (gameobject_template: 164883, 174622, 174623, 174624, 174625, 174687)
    [COLOR="#0000FF"]DELETE FROM gameobject_loot_template WHERE item = 11951;
    INSERT INTO gameobject_loot_template (`entry`, `item`, `ChanceOrQuestChance`, `groupid`, `mincountOrRef`, `maxcount`, `condition_id`) VALUES ('164883', '11951', '100', '0', '1', '3', '0');[/COLOR]

    -- Replace Cleansed Whipper Root [B]gameobject_template[/B] records
    -- the plants will now be lootable
    [COLOR="#0000FF"]DELETE FROM gameobject_template where name = "Cleansed Whipper Root";[/COLOR]
    [COLOR="#0000FF"]INSERT INTO gameobject_template (`entry`, `type`, `displayId`, `name`, `faction`, `flags`, `size`, `data0`, `data1`, `data2`, `data3`, `data4`, `data5`, `data6`, `data7`, `data8`, `data9`, `data10`, `data11`, `data12`, `data13`, `data14`, `data15`, `data16`, `data17`, `data18`, `data19`, `data20`, `data21`, `data22`, `data23`, `mingold`, `maxgold`, `ScriptName`) VALUES ('164883', '3', '3255', 'Cleansed Whipper Root', '0', '0', '2', '43', '164883', '0', '1', '1', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', ''),('174622', '3', '3255', 'Cleansed Whipper Root', '0', '0', '2', '43', '174622', '0', '1', '1', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', ''),('174623', '3', '3255', 'Cleansed Whipper Root', '0', '0', '2', '43', '174623', '0', '1', '1', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', ''),('174624', '3', '3255', 'Cleansed Whipper Root', '0', '0', '2', '43', '174624', '0', '1', '1', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', ''),('174625', '3', '3255', 'Cleansed Whipper Root', '0', '0', '2', '43', '174625', '0', '1', '1', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', ''),('174687', '3', '3255', 'Cleansed Whipper Root', '0', '0', '2', '43', '174687', '0', '1', '1', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '');[/COLOR]

    -- [B]INCORRECT GUID USED FOR SPAWNING CLEANSED WHIPPER ROOT[/B]
    [COLOR="#0000FF"]UPDATE dbscripts_on_quest_end SET datalong = 48882 WHERE id = 4443;[/COLOR]

    -- Assign a script to each of the corrupted Whipper Root gameobject_template records
    [COLOR="#0000FF"]UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='164888';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='173284';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='174605';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='174606';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='174607';
    UPDATE gameobject_template SET `ScriptName`= 'go_corrupted_plant' WHERE `entry`='174686';[/COLOR]

    -- Delete all cleansed songflower gameobject records (not required because the script spawns them)
    [COLOR="#0000FF"]DELETE FROM gameobject WHERE id IN (164883, 174622, 174623, 174624, 174625, 174687);[/COLOR]

    -- Delete all but one cleansed songflower record from gameobject_template (we only need one)
    [COLOR="#0000FF"]DELETE FROM gameobject_template WHERE entry IN (174622, 174623, 174624, 174625, 174687);[/COLOR]

    -- remove scripts
    [COLOR="#0000FF"]UPDATE quest_template SET CompleteScript = 0 WHERE entry IN (996, 998, 1514, 2523, 2878, 3363, 4113, 4114, 4115, 4116, 4117, 4118, 4119, 4221, 4222, 4343, 4401, 4403, 4443, 4444, 4445, 4446, 4447, 4448, 4461, 4462, 4464, 4465, 4466, 4467);[/COLOR]
    -- These are handled by scripdev scripts, therefore can be deleted
    [COLOR="#0000FF"]DELETE FROM dbscripts_on_quest_end WHERE id IN (996, 998, 1514, 2523, 2878, 3363, 4113, 4114, 4115, 4116, 4117, 4118, 4119, 4221, 4222, 4343, 4401, 4403, 4443, 4444, 4445, 4446, 4447, 4448, 4461, 4462, 4464, 4465, 4466, 4467);[/COLOR]

    Link to comment
    Share on other sites

    ***** [B][COLOR="#FF0000"]SD2 scripts to go here[/COLOR][/B] *****

    [PHP]

    /*######
    ## go_corrupted_plant
    ######*/

    enum
    {
    FAILED_TO_LOCATE_QUEST = 0,
    QUEST_CORRUPTED_SONGFLOWER = 1,
    QUEST_CORRUPTED_NIGHT_DRAGON = 2,
    QUEST_CORRUPTED_WINDBLOSSOM = 3,
    QUEST_CORRUPTED_WHIPPER_ROOT = 4,

    GO_CLEANSED_SONGFLOWER = 164882,
    SPELL_SONGFLOWER_SERENADE = 15366,

    GO_CLEANSED_NIGHT_DRAGON = 164881,
    GO_CLEANSED_WINDBLOSSOM = 164884,
    GO_CLEANSED_WHIPPER_ROOT = 174687,

    PLANT_SPAWN_DURATION = 60
    };

    static const uint32 aCorruptedSongflowerQuestId[] =
    { 2278, 2523, 3363, 4113, 4116, 4118, 4401, 4464, 4465 }; // Corrupted Songflower
    static const uint32 aCorruptedNightDragonQuestId[] =
    { 4119, 4447, 4448, 4462 }; // Corrupted Night Dragon
    static const uint32 aCorruptedWindblossomQuestId[] =
    { 996, 998, 1514, 4115, 4221, 4222, 4343, 4403, 4466, 4466, 4467 }; // Corrupted Windblossom
    static const uint32 aCorruptedWhipperRootQuestId[] =
    { 4117, 4443, 4444, 4445, 4446, 4461 }; // Corrupted Whipper Root

    uint32 locateQuestId(uint32 uQuestToSearchFor, uint32 uQuestId)
    {
    int index = 0;
    if (uQuestToSearchFor == QUEST_CORRUPTED_SONGFLOWER)
    {
    // check Cleansed Songflower Quest IDs
    for (index = 0; index {
    if (uQuestId == aCorruptedSongflowerQuestId[index])
    return QUEST_CORRUPTED_SONGFLOWER;
    }
    }
    else if (uQuestToSearchFor == QUEST_CORRUPTED_NIGHT_DRAGON)
    {
    // check Cleansed Night Dragon Quest IDs
    for (int index = 0; index {
    if (uQuestId == aCorruptedNightDragonQuestId[index])
    return QUEST_CORRUPTED_NIGHT_DRAGON;
    }
    }
    else if (uQuestToSearchFor == QUEST_CORRUPTED_WINDBLOSSOM)
    {
    // check Cleansed Windblossom Quest IDs
    for (int index = 0; index {
    if (uQuestId == aCorruptedWindblossomQuestId[index])
    return QUEST_CORRUPTED_WINDBLOSSOM;
    }
    }
    else if (uQuestToSearchFor == QUEST_CORRUPTED_WHIPPER_ROOT)
    {
    // check Cleansed Whipper Root Quest IDs
    for (int index = 0; index {
    if (uQuestId == aCorruptedWhipperRootQuestId[index])
    return QUEST_CORRUPTED_WHIPPER_ROOT;
    }
    }

    return FAILED_TO_LOCATE_QUEST; // quest ID not located
    }

    void DespawnCorruptedPlant(GameObject* pGo)
    {
    pGo->SetSpawnedByDefault(false);
    pGo->SetRespawnTime(1);
    }

    bool QuestRewarded_go_corrupted_plant(Player* pPlayer, GameObject* pGo, const Quest* pQuest)
    {
    // acquire plant's coordinates
    float fX, fY, fZ;
    pGo->GetPosition(fX, fY, fZ);

    uint32 uQuestId = pQuest->GetQuestId();

    if (locateQuestId(QUEST_CORRUPTED_SONGFLOWER, uQuestId) == QUEST_CORRUPTED_SONGFLOWER)
    {
    // despawn corrupted plant
    DespawnCorruptedPlant(pGo);
    // spawn cleansed plant
    pPlayer->SummonGameObject(GO_CLEANSED_SONGFLOWER, fX, fY, fZ, 0.0f, PLANT_SPAWN_DURATION);
    }
    else if (locateQuestId(QUEST_CORRUPTED_NIGHT_DRAGON, uQuestId) == QUEST_CORRUPTED_NIGHT_DRAGON)
    {
    // despawn corrupted plant
    DespawnCorruptedPlant(pGo);
    // spawn cleansed plant
    pPlayer->SummonGameObject(GO_CLEANSED_NIGHT_DRAGON, fX, fY, fZ, 0.0f, PLANT_SPAWN_DURATION);
    }
    else if (locateQuestId(QUEST_CORRUPTED_WINDBLOSSOM, uQuestId) == QUEST_CORRUPTED_WINDBLOSSOM)
    {
    // despawn corrupted plant
    DespawnCorruptedPlant(pGo);
    // spawn cleansed plant
    pPlayer->SummonGameObject(GO_CLEANSED_WINDBLOSSOM, fX, fY, fZ, 0.0f, PLANT_SPAWN_DURATION);
    }
    else if (locateQuestId(QUEST_CORRUPTED_WHIPPER_ROOT, uQuestId) == QUEST_CORRUPTED_WHIPPER_ROOT)
    {
    // despawn corrupted plant
    DespawnCorruptedPlant(pGo);
    // spawn cleansed plant
    pPlayer->SummonGameObject(GO_CLEANSED_WHIPPER_ROOT, fX, fY, fZ, 0.0f, PLANT_SPAWN_DURATION);
    }
    else
    return false;

    return true;
    }

    // This is only used for the Corrupted Songflower quest; actually for when interacting with the cleansed songflower
    bool GOUse_go_cleansed_plant(Player* pPlayer, GameObject* pGo)
    {
    // cast spell on player
    pPlayer->CastSpell(pPlayer, SPELL_SONGFLOWER_SERENADE, true);

    return true;
    }

    void AddSC_felwood()
    {
    Script* pNewScript;

    pNewScript = new Script;
    pNewScript->Name = "go_corrupted_plant";
    pNewScript->pQuestRewardedGO = &QuestRewarded_go_corrupted_plant;
    pNewScript->RegisterSelf();

    pNewScript = new Script;
    pNewScript->Name = "go_cleansed_plant";
    pNewScript->pGOUse = &GOUse_go_cleansed_plant;
    pNewScript->RegisterSelf();

    }[/PHP]

    This script, once completed, will deal with all types of corrupted plants (Felwood quests).

    [B][COLOR="#0000FF"]FULLY IMPLENTED SO FAR:[/COLOR][/B]
    [LIST]
    [*]Corrupted Songflower
    [*]Corrupted Night Dragon
    [*]Corrupted Windblossom
    [*]Corrupted Whipper Root
    [/LIST]

    [B][COLOR="#FF0000"]STILL TOO DO[/COLOR][/B][LIST]
    [*]ALL DONE, TIME TO PR THE FIX :D
    [/LIST]

    Link to comment
    Share on other sites

    [B][SIZE=3][COLOR="#008000"]Pull Request had been made with the SD2 scripts:[/COLOR][/SIZE][/B]

    [url]https://github.com/mangoszero/server/pull/275[/url]

    [B][SIZE=3][COLOR="#008000"]Pull Request has now been made for the SQL scripts:[/COLOR][/SIZE][/B]

    [url]https://github.com/mangoszero/database/pull/187[/url]

    They have both now been merged :D

    ------------------------------------------------------------------------------------

    [B][SIZE=3][COLOR="#800080"]IMPLEMENTED SO FAR ON[/COLOR][/SIZE][/B]

    [B]ZERO, ONE[/B]

    Link to comment
    Share on other sites



    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 account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use