/**
* Method TakeAdventurersArmorCoupon.
*/
public void TakeAdventurersArmorCoupon()
{
final Player player = getSelf();
if (player == null)
{
return;
}
if (!Config.ALT_ALLOW_SHADOW_WEAPONS)
{
show(new CustomMessage("common.Disabled", player), player);
return;
}
if ((player.getLevel() > 39) || (player.getClassLevel() > 2))
{
show("Your level is too high!", player);
return;
}
if ((player.getLevel() < 20) || (player.getClassLevel() < 2))
{
show("Your level is too low!", player);
return;
}
if (player.getVarB("newbiearmor"))
{
show("Your already got your newbie weapon!", player);
return;
}
addItem(player, 7833, 1);
player.setVar("newbiearmor", "true", -1);
}