Noticias:

Debes de estar registrado para poder ver el contenido indicado. Registrate o Conectate

Menú Principal

Titulos personalizados - PvP Points

Iniciado por Swarlog, Ago 12, 2022, 01:21 AM

Tema anterior - Siguiente tema

Swarlog

Con este code, podemos hacer que el titulo de los personajes del servidor cambien de forma automatica al alcanzar un numero de muertes pvp. Por ejemplo:

- PvP Rank by 20 PvP - Newbie Killer
- PvP Rank By 50 PvP - Professional Killer
- PvP Rank by 150 PvP - Full Killer
- PvP Rank by 350 PvP - The Killer
- PvP Rank By 650 PvP - Expert Killer
- PvP Rank by 1000 PvP - HitMan

// PvP Rank by 20 PvP
if (activeChar.getPvpKills() >= 20)
{
activeChar.setTitle("Newbie Killer");
activeChar.sendMessage("Congratulation You Reach 20 Kills");
activeChar.sendMessage("You Promoted to Newbie Killer Rank");
}
// PvP Rank by 50 PVP
if (activeChar.getPvpKills() >= 50)
{
activeChar.setTitle("Professional Killer");
activeChar.sendMessage("Congratulation You Reach 50 Kills");
activeChar.sendMessage("You Promoted to Professional Killer Rank");
}
// PvP Rank by 150 PVP
if (activeChar.getPvpKills() >= 150)
{
activeChar.setTitle("Full Killer");
    activeChar.sendMessage("Congratulation You Reach 150 Kills");
activeChar.sendMessage("You Promoted to Full Killer Rank");
}
//PvP Rank by 350 PVP
if (activeChar.getPvpKills() >= 350)
{
activeChar.setTitle("The Killer");
    activeChar.sendMessage("Congratulation You Reach 350 Kills");
activeChar.sendMessage("You Promoted to The Killer Rank");
}
// PvP Rank by 650 PVP
if (activeChar.getPvpKills() >= 650)
{
activeChar.setTitle("Expert Killer");
activeChar.sendMessage("Congratulation You Reach 650 Kills");
activeChar.sendMessage("You Promoted to Expert Killer Rank");
}
// PvP Rank by 1000 PVP
if (activeChar.getPvpKills() >= 1000)
{
activeChar.setTitle("HitMan");
activeChar.sendMessage("Congratulation You Reach 1000 Kills");
activeChar.sendMessage("You Promoted to HitMan Rank");
}

Creditos: MentaL