/// <summary> /// Called when a player enters the arena /// </summary> public void playerEnterArena(Player player) { if (Script_Multi._bPvpHappyHour) { player.sendMessage(0, "&PvP Happy hour is currently active, Enjoy!"); } else { TimeSpan remaining = _baseScript.timeTo(Settings._pvpHappyHourStart); player.sendMessage(0, String.Format("&PvP Happy hour starts in {0} hours & {1} minutes", remaining.Hours, remaining.Minutes)); } //Obtain the Co-Op skill.. SkillInfo coopskillInfo = _arena._server._assets.getSkillByID(200); //Add the skill! if (player.findSkill(200) != null) { player._skills.Remove(200); } //Obtain the Powerup skill.. SkillInfo powerupskillInfo = _arena._server._assets.getSkillByID(201); //Add the skill! if (player.findSkill(201) != null) { player._skills.Remove(201); } }
public void playerEnterArena(Player player) { player.sendMessage(0, String.Format("Welcome to Cooperative mode, {0}", player._alias)); if (Script_Multi._bCoopHappyHour) { player.sendMessage(0, "&Co-Op Happy hour is currently active, Enjoy!"); } else { TimeSpan remaining = _baseScript.timeTo(Settings._coopHappyHourStart); player.sendMessage(0, String.Format("&Co-Op Happy hour starts in {0} hours & {1} minutes", remaining.Hours, remaining.Minutes)); } //Obtain the Co-Op skill.. SkillInfo coopskillInfo = _arena._server._assets.getSkillByID(200); //Add the skill! if (player.findSkill(200) == null) { player.skillModify(coopskillInfo, 1); } //Add the skill! if (player.findSkill(203) != null) { player._skills.Remove(203); } //Add the skill! if (player.findSkill(202) != null) { player._skills.Remove(202); } if (_botDifficulty <= 6) { player.sendMessage(2, String.Format("Powerups are enabled for this difficulty, {0}", player._alias)); //Obtain the Co-Op skill.. SkillInfo powerupskillInfo = _arena._server._assets.getSkillByID(201); //Add the skill! if (player.findSkill(201) == null) { player.skillModify(powerupskillInfo, 1); } } else { player.sendMessage(2, String.Format("Powerups are disabled for this difficulty, {0}", player._alias)); //Obtain the Powerup skill.. SkillInfo powerupskillInfo2 = _arena._server._assets.getSkillByID(201); //Add the skill! if (player.findSkill(201) != null) { player._skills.Remove(201); } } }
/// <summary> /// Called when a player enters the arena /// </summary> public void playerEnterArena(Player player) { if (Script_Multi._bPvpHappyHour) { player.sendMessage(0, "&PvP Happy hour is currently active, Enjoy!"); } else { TimeSpan remaining = _baseScript.timeTo(Settings._pvpHappyHourStart); player.sendMessage(0, String.Format("&PvP Happy hour starts in {0} hours & {1} minutes", remaining.Hours, remaining.Minutes)); } //Obtain the Co-Op skill.. SkillInfo coopskillInfo = _arena._server._assets.getSkillByID(200); //Add the skill! if (player.findSkill(200) != null) { player._skills.Remove(200); } //Obtain the Powerup skill.. SkillInfo powerupskillInfo = _arena._server._assets.getSkillByID(201); //Add the skill! if (player.findSkill(201) != null) { player._skills.Remove(201); } //Add the skill! if (player.findSkill(202) != null) { player._skills.Remove(202); } //Add the New Player Skill if Points under 200k , remove if over if (player.Points > 1000000) { if (player.findSkill(253) != null) { player._skills.Remove(253); } } else if (player.findSkill(253) == null) { //Obtain the New Player Skill.. SkillInfo newPlayerSkill = _arena._server._assets.getSkillByID(253); //Add the skill! player.skillModify(newPlayerSkill, 1); } //Add the Weekly Class Test Skill if (player.findSkill(254) == null) { //Obtain the Weekly Class Test Skill.. SkillInfo weeklyClassSkill = _arena._server._assets.getSkillByID(254); //Add the skill! player.skillModify(weeklyClassSkill, 1); } player.syncState(); }