Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE list SYSTEM "../bypass.dtd">
- <list>
- <group name="olympiadManager">
- <reply name="main" path="olympiad/manager/mainNoble.htm">
- <requirements>
- <configValue fileName="olympiad" configName="AllowOlympiad" expectedValue="true" replyPath="VOID"/>
- <nobless replyPath="olympiad/manager/mainNotNoble.htm"/>
- </requirements>
- </reply>
- <reply name="info" path="${path}">
- <parameter name="pageId" type="Integer"/>
- <function name="path">
- olympiad/manager/info_${pageId}.htm
- </function>
- </reply>
- <reply name="competitionList" path="olympiad/manager/competitionList.htm">
- <requirements>
- <olympiadRegistrationOpen replyPath="1651"/>
- </requirements>
- </reply>
- <reply name="ranking" path="olympiad/manager/ranking.htm"/>
- <reply name="classRanking" path="olympiad/manager/classRanking.htm">
- <parameter name="classId" type="ClassId"/>
- </reply>
- <reply name="registerPage" path="olympiad/manager/register.htm">
- <requirements>
- <olympiadRegistrationOpen replyPath="1651"/>
- </requirements>
- </reply>
- <registerToOlympiad name="register" type="${type}">
- <parameter name="type" type="String"/>
- <requirements>
- <or>
- <not><string value="${type}" expectedValue="CLASS_FREE" replyPath="Olympiad.TypeDisabled"/></not>
- <configValue fileName="olympiad" configName="AllowClassFreeCompetition" expectedValue="true" replyPath="Olympiad.TypeDisabled"/>
- </or>
- <or>
- <not><string value="${type}" expectedValue="CLASS_INDIVIDUAL" replyPath="Olympiad.TypeDisabled"/></not>
- <configValue fileName="olympiad" configName="AllowClassBasedCompetition" expectedValue="true" replyPath="Olympiad.TypeDisabled"/>
- </or>
- </requirements>
- <result type="REGISTRATION_CLOSED" replyPath="1651"/>
- <result type="TYPE_DISABLED" replyPath="Olympiad.TypeDisabled"/>
- <result type="NOT_NOBLE" replyPath="1501"/>
- <result type="IN_DUEL" replyPath="1599"/>
- <result type="NOT_BASE_CLASS" replyPath="1500"/>
- <result type="TOO_LOW_CLASS" replyPath="1500"/>
- <result type="ALREADY_REGISTERED" replyPath="1502"/>
- <result type="INVENTORY_FULL" replyPath="1691"/>
- <result type="CURSED_WEAPON" replyPath="1857;${player.activeWeaponItem.name}"/>
- <result type="NO_POINTS" replyPath="olympiad/manager/noPointsToRegister.htm"/>
- <result type="NOT_ALLOWED_CLASS" replyPath="Olympiad.ClassNotAllowed"/>
- <result type="SAME_HWID_REGISTERED" replyPath="Olympiad.SameHwidRegistered"/>
- <result type="SAME_IP_REGISTERED" replyPath="Olympiad.SameIpRegistered"/>
- <result type="SUCCESS" replyPath="olympiadManager#registerSuccessMsg;${type}"/>
- </registerToOlympiad>
- <single name="registerSuccessMsg">
- <parameter name="type" type="String"/>
- <actions>
- <reply path="1503">
- <requirements>
- <string value="${type}" expectedValue="CLASS_INDIVIDUAL" replyPath="VOID"/>
- </requirements>
- </reply>
- <reply path="1504"/>
- </actions>
- </single>
- <unregisterFromOlympiad name="unregister">
- <requirements>
- <olympiadRegistrationOpen replyPath="1651"/>
- </requirements>
- <result type="NOT_REGISTERED" replyPath="1506"/>
- <result type="SUCCESS" replyPath="1505"/>
- </unregisterFromOlympiad>
- <reply name="exchangeMenu" path="olympiad/manager/exchange.htm"/>
- <multipleActions name="exchangePointsForPasses">
- <function name="points">
- <!bypassImport class="l2.gameserver.model.entity.oly.NobleHolder"/>
- ${NobleHolder.getNoblessePasses(player)}
- </function>
- <function name="rewardId">
- ${config("olympiad.RewardItemId")}
- </function>
- <requirements>
- <integer value="${points}" min="1" replyPath="olympiad/manager/noPointsToExchange.htm"/>
- </requirements>
- <actions>
- <reply path="olympiadManager#showPointsExchanged;${points}"/>
- <giveItem itemId="${rewardId}" itemAmount="${points}"/>
- <clearOlympiadPointsToExchange/>
- </actions>
- </multipleActions>
- <reply name="showPointsExchanged" path="olympiad/manager/exchangedPoints.htm">
- <parameter name="amount" type="Integer"/>
- </reply>
- <multisell name="multisellExchange" path="olympiad"/>
- </group>
- </list>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement