Ganhador do Duelo: Ganha 10 golds, 2 Emblem of Conqueror e 100 Honor Points.
Perdedor do Duelo: Perde 10 golds e não ganha nada.
Ao término do duelo: HP resetado, Cooldowns resetados, Attack stop (Não podem mais se atacar), cast stop (Aquelas magias que ficam retirando seu life de pouco em pouco e que podem te matar somem), etc.
[Tens de ter uma conta e sessão iniciada para poderes visualizar esta imagem]
Última edição por Erictemponi em Seg 30 Jun 2014 - 4:30, editado 1 vez(es)
Perdedor do Duelo: Perde 10 golds e não ganha nada.
Ao término do duelo: HP resetado, Cooldowns resetados, Attack stop (Não podem mais se atacar), cast stop (Aquelas magias que ficam retirando seu life de pouco em pouco e que podem te matar somem), etc.
[Tens de ter uma conta e sessão iniciada para poderes visualizar esta imagem]
Código:
/*Duel Reset info.
-------------------------------------------------------------------------------------
/* Made by SymbolixDEV
Script for: On Duel End Reset Hp , Cooldowns , cast stop , attack stop etc..
Working on 19.3.2014 REV
Compile Success
Working : Test and work 100%
What is good on this script ?
izgubi = losser
pobeditel = winner
_________________________
pobeditel->CastStop(); - Stop Cast on Duel End and give Evade
pobeditel->Attackstop(); - Stop Attack on duel end !
pobeditel->SetHealth(Losser->GetMaxHealth()); - set winner health to max
pobeditel->RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE); - Remove Auras on Duel End
pobeditel->RemoveAllSpellCooldown(); - Remove All Cooldowns on Duel End Again
NOT CHANSE FOR DIE PEOPLE WITH THIS DUEL SCRIPT
http://github.com/SymbolixDEV
Thanks !
--------------------------------------------------------------------------------------
*/
// SymbolxiDEV Start !
// Please all remove my credits don't remove Credits !
//Thanks SYMBOLIXDEV !
#include "ScriptPCH.h"
#include "Map.h"
/*Buffs - Start*/
#define BUFF_MARK_OF_THE_WILD 48469
#define BUFF_BLESSING_OF_WISDOM 48938
#define BUFF_BLESSING_OF_KINGS 25898
#define BUFF_BLESSING_OF_SANCTUARY 25899
#define BUFF_BLESSING_OF_MIGHT 48932
#define BUFF_POWER_WORD_FORTITUDE 48161
/*Buff - End*/
class Reset_OnDuelEnd : public PlayerScript
{
public:
Reset_OnDuelEnd() : PlayerScript("Reset_OnDuelEnd") {}
void OnDuelStart(Player * pobeditel, Player * izgubi)
{
if (pobeditel->getPowerType() == POWER_ENERGY)
pobeditel->SetPower(POWER_ENERGY, pobeditel->GetMaxPower(POWER_ENERGY));
if (pobeditel->getPowerType() == POWER_RAGE)
pobeditel->SetPower(POWER_RAGE, 0);
}
void OnDuelEnd(Player *pobeditel, Player *izgubi/*, Player *pet* SymbolixDEV */, DuelCompleteType type)
{
//Set Max Healt [START] //
pobeditel->SetHealth(pobeditel->GetMaxHealth());
izgubi->SetHealth(izgubi->GetMaxHealth());
if ( pobeditel->getPowerType() == POWER_MANA )
pobeditel->SetPower(POWER_MANA, pobeditel->GetMaxPower(POWER_MANA));
if ( izgubi->getPowerType() == POWER_MANA )
izgubi->SetPower(POWER_MANA, izgubi->GetMaxPower(POWER_MANA));
//Set Max Healt [END]
// Cast And Attack Stop [Start] //
pobeditel->CastStop();
izgubi->CastStop();
pobeditel->AttackStop();
izgubi->AttackStop();
// Cast And Attack Stop [END]
//Remove Cooldowns [START]
pobeditel->RemoveAllSpellCooldown();
izgubi->RemoveAllSpellCooldown();
//Remove Cooldowns [END}
//Combat Stop [START]
pobeditel->CombatStop();
izgubi->CombatStop();
//Combat Stop [END]
//Start Remove Auras and etc
//aura
pobeditel->RemoveAura(15007);
izgubi->RemoveAura(15007);
//buffs
pobeditel->CastSpell(pobeditel, BUFF_POWER_WORD_FORTITUDE, false);
izgubi->CastSpell(pobeditel, BUFF_POWER_WORD_FORTITUDE, false);
pobeditel->CastSpell(pobeditel, BUFF_BLESSING_OF_KINGS, false);
izgubi->CastSpell(pobeditel, BUFF_BLESSING_OF_KINGS, false);
izgubi->CastSpell(izgubi, 31719, true);
//add badge
pobeditel->AddItem(45624, 2);
//winer - give +100000 money (10 golds) / looser -100000 (10 golds)
izgubi->ModifyMoney(-100000);
pobeditel->ModifyMoney(+100000);
// Winner 100 honor Reward
pobeditel->ModifyHonorPoints(100);
pobeditel->CastSpell(pobeditel, 11543, 1);
pobeditel->PlayDirectSound(11530, pobeditel);
izgubi->DurabilityRepairAll(false, 0, false);
pobeditel->DurabilityRepairAll(false, 0, false);
pobeditel->RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE);
izgubi->RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE);
// Debuffs
pobeditel->RemoveAura(57723);
pobeditel->RemoveAura(57724);
pobeditel->RemoveAura(25771);
pobeditel->RemoveAura(41425);
pobeditel->RemoveAura(61987);
pobeditel->RemoveAura(66233);
pobeditel->RemoveAura(11196);
pobeditel->RemoveAura(47986);
izgubi->RemoveAura(57723);
izgubi->RemoveAura(57724);
izgubi->RemoveAura(25771);
izgubi->RemoveAura(41425);
izgubi->RemoveAura(61987);
izgubi->RemoveAura(66233);
izgubi->RemoveAura(11196);
izgubi->RemoveAura(47986);
}
};
void AddSC_Reset()
{
new Reset_OnDuelEnd;
}
Última edição por Erictemponi em Seg 30 Jun 2014 - 4:30, editado 1 vez(es)