吾爱尚玩资源基地

标题: 最新的335T端单机竞技场的重置脚本 [打印本页]

作者: admin    时间: 2016-5-4 22:40
标题: 最新的335T端单机竞技场的重置脚本
1、重置血量,恢复到最高血量
2、竞技场技能冷却时间重置
3、恢复法力,怒气,能量等
4、胜利者获得一个奖励的BUFF
5、失败者惩罚,失去金币,同时,胜利者获得金币
6、包括其他的一些功能


7、你也可以根据你的需求,增加一些功能!

            /*--WINNER STUFF BEGIN--*/
            winner->SetHealth(winner->GetMaxHealth());
            winner->RemoveAllArenaSpellCooldowns(); //Resets CDs under 10 minutes; Death-Knights spam Army of the Dead, and crash server.
            if(winner->GetPowerType() == POWER_MANA)
                winner->SetPower(POWER_MANA, winner->GetMaxPower(POWER_MANA));
            if(winner->GetPowerType() == POWER_RAGE)
                winner->SetPower(POWER_RAGE, winner->GetMaxPower(POWER_RAGE));
            if(winner->GetPowerType() == POWER_ENERGY)
                winner->SetPower(POWER_ENERGY, winner->GetMaxPower(POWER_ENERGY));
            for(int i = 0; i < 7; i++)
                winner->AddAura(auras, winner);
            winner->GetSession()->SendNotification("You have been buffed and earned 1 gold for winning a duel! Keep going champion!");
            winner->SetMoney(winner->GetMoney() + 10000); //1 gold
            winner->AddAura(6119, winner); //Mounts winner on black war bear

            /*--LOSER STUFF BEGIN--*/
            loser->SetHealth(loser->GetMaxHealth());
            loser->RemoveAllArenaSpellCooldowns();
            //Gives casters full mana, warriors full rage, and rogues full energy, so they can easily get back into the fights, and dominate.
            if(loser->GetPowerType() == POWER_MANA)
                loser->SetPower(POWER_MANA, loser->GetMaxPower(POWER_MANA));
            if(loser->GetPowerType() == POWER_RAGE)
                loser->SetPower(POWER_RAGE, loser->GetMaxPower(POWER_RAGE));
            if(loser->GetPowerType() == POWER_ENERGY)
                loser->SetPower(POWER_ENERGY, loser->GetMaxPower(POWER_ENERGY));
                    loser->SetMoney(loser->GetMoney() + 5000); //50 silver
                loser->GetSession()->SendNotification("Don't be sad you lost! You still earned a hefty 50 silver for trying!");

完整脚本看这里






欢迎光临 吾爱尚玩资源基地 (http://bbs.523play.com/) Powered by Discuz! X3.4