Sync with L2JServer Jan 24th 2015.
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user