• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

C++ Shoot fire work at 80

Tommy

Founder
Future advice, clean up the script's spaces/indent. It's better coding/cleaning practice.


Example:
Code:
class FireWorksOnLevelUp : public PlayerScript
{
public:
    FireWorksOnLevelUp() : PlayerScript("FireWorksOnLevelUp") { }

    void OnLevelChanged(Player * player, uint8 oldLevel)
    {
        if (oldLevel == 79)
            player->CastSpell(player, 11541, true); 
    }
};

void AddSC_FireWorksOnLevelUp()
{
    new FireWorksOnLevelUp();
}

Regardless of that, thanks for sharing!
 
Top