Sync with L2JServer Jan 24th 2015.

This commit is contained in:
mobius
2015-01-24 20:02:32 +00:00
parent d349bd3924
commit 1c6301c46d
1012 changed files with 23069 additions and 6307 deletions

View File

@ -2980,7 +2980,7 @@ public class Quest extends AbstractScript implements IIdentifiable
*/
public void addCondIsNotSubClassActive(String html)
{
getStartConditions().put(p -> !p.isSubClassActive(), html);
getStartConditions().put(p -> !p.isSubClassActive() && !p.isDualClassActive(), html);
}
/**
@ -2992,4 +2992,14 @@ public class Quest extends AbstractScript implements IIdentifiable
{
getStartConditions().put(p -> p.isInCategory(categoryType), html);
}
/**
* Adds a clan level start condition to the quest.
* @param clanLevel the clan level
* @param html the HTML to display if the condition is not met
*/
public void addCondClanLevel(int clanLevel, String html)
{
getStartConditions().put(p -> (p.getClan() != null) && (p.getClan().getLevel() > clanLevel), html);
}
}