Advertisement
Guest User

Untitled

a guest
Sep 20th, 2018
889
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.22 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE list SYSTEM "../bypass.dtd">
  3.  
  4. <list>
  5.     <group name="olympiadManager">
  6.         <reply name="main" path="olympiad/manager/mainNoble.htm">
  7.             <requirements>
  8.                 <configValue fileName="olympiad" configName="AllowOlympiad" expectedValue="true" replyPath="VOID"/>
  9.                 <nobless replyPath="olympiad/manager/mainNotNoble.htm"/>
  10.             </requirements>
  11.         </reply>
  12.        
  13.         <reply name="info" path="${path}">
  14.             <parameter name="pageId" type="Integer"/>
  15.            
  16.             <function name="path">
  17.                 olympiad/manager/info_${pageId}.htm
  18.             </function>
  19.         </reply>
  20.  
  21.         <reply name="competitionList" path="olympiad/manager/competitionList.htm">
  22.             <requirements>
  23.                 <olympiadRegistrationOpen replyPath="1651"/>
  24.             </requirements>
  25.         </reply>
  26.        
  27.         <reply name="ranking" path="olympiad/manager/ranking.htm"/>
  28.         <reply name="classRanking" path="olympiad/manager/classRanking.htm">
  29.             <parameter name="classId" type="ClassId"/>
  30.         </reply>
  31.  
  32.         <reply name="registerPage" path="olympiad/manager/register.htm">
  33.             <requirements>
  34.                 <olympiadRegistrationOpen replyPath="1651"/>
  35.             </requirements>
  36.         </reply>
  37.        
  38.         <registerToOlympiad name="register" type="${type}">
  39.             <parameter name="type" type="String"/>
  40.            
  41.             <requirements>
  42.                 <or>
  43.                     <not><string value="${type}" expectedValue="CLASS_FREE" replyPath="Olympiad.TypeDisabled"/></not>
  44.                     <configValue fileName="olympiad" configName="AllowClassFreeCompetition" expectedValue="true" replyPath="Olympiad.TypeDisabled"/>
  45.                 </or>
  46.                 <or>
  47.                     <not><string value="${type}" expectedValue="CLASS_INDIVIDUAL" replyPath="Olympiad.TypeDisabled"/></not>
  48.                     <configValue fileName="olympiad" configName="AllowClassBasedCompetition" expectedValue="true" replyPath="Olympiad.TypeDisabled"/>
  49.                 </or>
  50.             </requirements>
  51.  
  52.             <result type="REGISTRATION_CLOSED" replyPath="1651"/>
  53.             <result type="TYPE_DISABLED" replyPath="Olympiad.TypeDisabled"/>
  54.             <result type="NOT_NOBLE" replyPath="1501"/>
  55.             <result type="IN_DUEL" replyPath="1599"/>
  56.             <result type="NOT_BASE_CLASS" replyPath="1500"/>
  57.             <result type="TOO_LOW_CLASS" replyPath="1500"/>
  58.             <result type="ALREADY_REGISTERED" replyPath="1502"/>
  59.             <result type="INVENTORY_FULL" replyPath="1691"/>
  60.             <result type="CURSED_WEAPON" replyPath="1857;${player.activeWeaponItem.name}"/>
  61.             <result type="NO_POINTS" replyPath="olympiad/manager/noPointsToRegister.htm"/>
  62.             <result type="NOT_ALLOWED_CLASS" replyPath="Olympiad.ClassNotAllowed"/>
  63.             <result type="SAME_HWID_REGISTERED" replyPath="Olympiad.SameHwidRegistered"/>
  64.             <result type="SAME_IP_REGISTERED" replyPath="Olympiad.SameIpRegistered"/>
  65.  
  66.             <result type="SUCCESS" replyPath="olympiadManager#registerSuccessMsg;${type}"/>
  67.         </registerToOlympiad>
  68.        
  69.         <single name="registerSuccessMsg">
  70.             <parameter name="type" type="String"/>
  71.             <actions>
  72.                 <reply path="1503">
  73.                     <requirements>
  74.                         <string value="${type}" expectedValue="CLASS_INDIVIDUAL" replyPath="VOID"/>
  75.                     </requirements>
  76.                 </reply>
  77.                 <reply path="1504"/>
  78.             </actions>
  79.         </single>
  80.        
  81.         <unregisterFromOlympiad name="unregister">
  82.             <requirements>
  83.                 <olympiadRegistrationOpen replyPath="1651"/>
  84.             </requirements>
  85.            
  86.             <result type="NOT_REGISTERED" replyPath="1506"/>
  87.             <result type="SUCCESS" replyPath="1505"/>
  88.         </unregisterFromOlympiad>
  89.  
  90.         <reply name="exchangeMenu" path="olympiad/manager/exchange.htm"/>
  91.        
  92.         <multipleActions name="exchangePointsForPasses">
  93.            
  94.             <function name="points">
  95.                 &lt;!bypassImport class="l2.gameserver.model.entity.oly.NobleHolder"/>
  96.                 ${NobleHolder.getNoblessePasses(player)}
  97.             </function>
  98.             <function name="rewardId">
  99.                 ${config("olympiad.RewardItemId")}
  100.             </function>
  101.            
  102.             <requirements>
  103.                 <integer value="${points}" min="1" replyPath="olympiad/manager/noPointsToExchange.htm"/>
  104.             </requirements>
  105.             <actions>
  106.                 <reply path="olympiadManager#showPointsExchanged;${points}"/>
  107.                 <giveItem itemId="${rewardId}" itemAmount="${points}"/>
  108.                 <clearOlympiadPointsToExchange/>
  109.             </actions>
  110.         </multipleActions>
  111.        
  112.         <reply name="showPointsExchanged" path="olympiad/manager/exchangedPoints.htm">
  113.             <parameter name="amount" type="Integer"/>
  114.         </reply>
  115.        
  116.         <multisell name="multisellExchange" path="olympiad"/>
  117.     </group>
  118. </list>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement