Noticias:

No tienes permiso para ver los enlaces. Para poder verlos Registrate o Conectate.

Menú Principal

Titulos personalizados mediante pvp points

Iniciado por Swarlog, Jun 25, 2025, 09:32 PM

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