最新的335T端单机竞技场的重置脚本
2013-10-08 14:28:58 作者:www.10cpop.com 来源: 浏览次数:0
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[i], 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!");
 
完整脚本看这里: duel_reset完整脚本.txt


相关报道:

[关闭] [返回顶部]


  返回首页 | 最新资讯 | 游戏下载 | 魔兽图片 | 魔兽单机 | 视频攻略 | 最新更新

 
Copyright © 2014 - 2016 10CPOP Corporation, All Rights Reserved


十城魔兽世界私服