Custom Provisional Clan Hall implementation.

This commit is contained in:
MobiusDevelopment
2020-09-20 11:39:18 +00:00
parent f4f20ca9b7
commit d1feb43afd
700 changed files with 13930 additions and 110 deletions

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="550" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
</list>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="550" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
</list>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="500" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
<item id="5858" price="110000" count="1" restock_delay="60" /> <!-- Blessed Scroll of Escape: Clan Hall -->
<item id="735" price="1320" count="1" restock_delay="60" /> <!-- Haste Potion -->
<item id="6035" price="2640" count="1" restock_delay="60" /> <!-- Magic Haste Potion -->
<item id="6036" price="6600" count="1" restock_delay="60" /> <!-- Greater Magic Haste Potion -->
<item id="5235" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion A -->
<item id="5236" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion B -->
<item id="5237" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion C -->
<item id="5238" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion A -->
<item id="5239" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion B -->
<item id="5240" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion C -->
<item id="5241" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion D -->
<item id="5242" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion A -->
<item id="5243" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion B -->
<item id="5244" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion C -->
<item id="5245" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion D -->
<item id="5246" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion E -->
<item id="5247" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion F -->
<item id="5248" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion G -->
<item id="5234" price="11000" count="1" restock_delay="60" /> <!-- Mysterious Potion -->
<item id="5593" price="55000" count="10" restock_delay="60" /> <!-- SP Scroll (Low-grade) -->
<item id="5594" price="330000" count="10" restock_delay="60" /> <!-- SP Scroll (Mid-grade) -->
</list>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="550" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
</list>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="550" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
</list>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="500" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
<item id="5858" price="110000" count="1" restock_delay="60" /> <!-- Blessed Scroll of Escape: Clan Hall -->
<item id="735" price="1320" count="1" restock_delay="60" /> <!-- Haste Potion -->
<item id="6035" price="2640" count="1" restock_delay="60" /> <!-- Magic Haste Potion -->
<item id="6036" price="6600" count="1" restock_delay="60" /> <!-- Greater Magic Haste Potion -->
<item id="5235" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion A -->
<item id="5236" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion B -->
<item id="5237" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion C -->
<item id="5238" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion A -->
<item id="5239" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion B -->
<item id="5240" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion C -->
<item id="5241" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion D -->
<item id="5242" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion A -->
<item id="5243" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion B -->
<item id="5244" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion C -->
<item id="5245" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion D -->
<item id="5246" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion E -->
<item id="5247" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion F -->
<item id="5248" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion G -->
<item id="5234" price="11000" count="1" restock_delay="60" /> <!-- Mysterious Potion -->
<item id="5593" price="55000" count="10" restock_delay="60" /> <!-- SP Scroll (Low-grade) -->
<item id="5594" price="330000" count="10" restock_delay="60" /> <!-- SP Scroll (Mid-grade) -->
</list>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="550" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
</list>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="550" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
</list>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="500" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
<item id="5858" price="110000" count="1" restock_delay="60" /> <!-- Blessed Scroll of Escape: Clan Hall -->
<item id="735" price="1320" count="1" restock_delay="60" /> <!-- Haste Potion -->
<item id="6035" price="2640" count="1" restock_delay="60" /> <!-- Magic Haste Potion -->
<item id="6036" price="6600" count="1" restock_delay="60" /> <!-- Greater Magic Haste Potion -->
<item id="5235" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion A -->
<item id="5236" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion B -->
<item id="5237" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion C -->
<item id="5238" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion A -->
<item id="5239" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion B -->
<item id="5240" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion C -->
<item id="5241" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion D -->
<item id="5242" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion A -->
<item id="5243" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion B -->
<item id="5244" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion C -->
<item id="5245" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion D -->
<item id="5246" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion E -->
<item id="5247" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion F -->
<item id="5248" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion G -->
<item id="5234" price="11000" count="1" restock_delay="60" /> <!-- Mysterious Potion -->
<item id="5593" price="55000" count="10" restock_delay="60" /> <!-- SP Scroll (Low-grade) -->
<item id="5594" price="330000" count="10" restock_delay="60" /> <!-- SP Scroll (Mid-grade) -->
</list>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="550" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
</list>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="550" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
</list>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="500" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
<item id="5858" price="110000" count="1" restock_delay="60" /> <!-- Blessed Scroll of Escape: Clan Hall -->
<item id="735" price="1320" count="1" restock_delay="60" /> <!-- Haste Potion -->
<item id="6035" price="2640" count="1" restock_delay="60" /> <!-- Magic Haste Potion -->
<item id="6036" price="6600" count="1" restock_delay="60" /> <!-- Greater Magic Haste Potion -->
<item id="5235" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion A -->
<item id="5236" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion B -->
<item id="5237" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion C -->
<item id="5238" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion A -->
<item id="5239" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion B -->
<item id="5240" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion C -->
<item id="5241" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion D -->
<item id="5242" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion A -->
<item id="5243" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion B -->
<item id="5244" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion C -->
<item id="5245" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion D -->
<item id="5246" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion E -->
<item id="5247" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion F -->
<item id="5248" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion G -->
<item id="5234" price="11000" count="1" restock_delay="60" /> <!-- Mysterious Potion -->
<item id="5593" price="55000" count="10" restock_delay="60" /> <!-- SP Scroll (Low-grade) -->
<item id="5594" price="330000" count="10" restock_delay="60" /> <!-- SP Scroll (Mid-grade) -->
</list>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="550" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
</list>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="550" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
</list>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="500" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
<item id="5858" price="110000" count="1" restock_delay="60" /> <!-- Blessed Scroll of Escape: Clan Hall -->
<item id="735" price="1320" count="1" restock_delay="60" /> <!-- Haste Potion -->
<item id="6035" price="2640" count="1" restock_delay="60" /> <!-- Magic Haste Potion -->
<item id="6036" price="6600" count="1" restock_delay="60" /> <!-- Greater Magic Haste Potion -->
<item id="5235" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion A -->
<item id="5236" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion B -->
<item id="5237" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion C -->
<item id="5238" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion A -->
<item id="5239" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion B -->
<item id="5240" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion C -->
<item id="5241" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion D -->
<item id="5242" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion A -->
<item id="5243" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion B -->
<item id="5244" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion C -->
<item id="5245" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion D -->
<item id="5246" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion E -->
<item id="5247" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion F -->
<item id="5248" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion G -->
<item id="5234" price="11000" count="1" restock_delay="60" /> <!-- Mysterious Potion -->
<item id="5593" price="55000" count="10" restock_delay="60" /> <!-- SP Scroll (Low-grade) -->
<item id="5594" price="330000" count="10" restock_delay="60" /> <!-- SP Scroll (Mid-grade) -->
</list>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="550" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
</list>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="550" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
</list>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="500" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
<item id="5858" price="110000" count="1" restock_delay="60" /> <!-- Blessed Scroll of Escape: Clan Hall -->
<item id="735" price="1320" count="1" restock_delay="60" /> <!-- Haste Potion -->
<item id="6035" price="2640" count="1" restock_delay="60" /> <!-- Magic Haste Potion -->
<item id="6036" price="6600" count="1" restock_delay="60" /> <!-- Greater Magic Haste Potion -->
<item id="5235" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion A -->
<item id="5236" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion B -->
<item id="5237" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion C -->
<item id="5238" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion A -->
<item id="5239" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion B -->
<item id="5240" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion C -->
<item id="5241" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion D -->
<item id="5242" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion A -->
<item id="5243" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion B -->
<item id="5244" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion C -->
<item id="5245" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion D -->
<item id="5246" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion E -->
<item id="5247" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion F -->
<item id="5248" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion G -->
<item id="5234" price="11000" count="1" restock_delay="60" /> <!-- Mysterious Potion -->
<item id="5593" price="55000" count="10" restock_delay="60" /> <!-- SP Scroll (Low-grade) -->
<item id="5594" price="330000" count="10" restock_delay="60" /> <!-- SP Scroll (Mid-grade) -->
</list>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="550" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
</list>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="550" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
</list>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="500" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
<item id="5858" price="110000" count="1" restock_delay="60" /> <!-- Blessed Scroll of Escape: Clan Hall -->
<item id="735" price="1320" count="1" restock_delay="60" /> <!-- Haste Potion -->
<item id="6035" price="2640" count="1" restock_delay="60" /> <!-- Magic Haste Potion -->
<item id="6036" price="6600" count="1" restock_delay="60" /> <!-- Greater Magic Haste Potion -->
<item id="5235" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion A -->
<item id="5236" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion B -->
<item id="5237" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion C -->
<item id="5238" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion A -->
<item id="5239" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion B -->
<item id="5240" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion C -->
<item id="5241" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion D -->
<item id="5242" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion A -->
<item id="5243" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion B -->
<item id="5244" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion C -->
<item id="5245" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion D -->
<item id="5246" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion E -->
<item id="5247" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion F -->
<item id="5248" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion G -->
<item id="5234" price="11000" count="1" restock_delay="60" /> <!-- Mysterious Potion -->
<item id="5593" price="55000" count="10" restock_delay="60" /> <!-- SP Scroll (Low-grade) -->
<item id="5594" price="330000" count="10" restock_delay="60" /> <!-- SP Scroll (Mid-grade) -->
</list>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="550" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
</list>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="550" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
</list>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="500" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
<item id="5858" price="110000" count="1" restock_delay="60" /> <!-- Blessed Scroll of Escape: Clan Hall -->
<item id="735" price="1320" count="1" restock_delay="60" /> <!-- Haste Potion -->
<item id="6035" price="2640" count="1" restock_delay="60" /> <!-- Magic Haste Potion -->
<item id="6036" price="6600" count="1" restock_delay="60" /> <!-- Greater Magic Haste Potion -->
<item id="5235" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion A -->
<item id="5236" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion B -->
<item id="5237" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion C -->
<item id="5238" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion A -->
<item id="5239" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion B -->
<item id="5240" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion C -->
<item id="5241" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion D -->
<item id="5242" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion A -->
<item id="5243" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion B -->
<item id="5244" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion C -->
<item id="5245" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion D -->
<item id="5246" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion E -->
<item id="5247" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion F -->
<item id="5248" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion G -->
<item id="5234" price="11000" count="1" restock_delay="60" /> <!-- Mysterious Potion -->
<item id="5593" price="55000" count="10" restock_delay="60" /> <!-- SP Scroll (Low-grade) -->
<item id="5594" price="330000" count="10" restock_delay="60" /> <!-- SP Scroll (Mid-grade) -->
</list>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="550" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
</list>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="550" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
</list>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/buylist.xsd">
<npcs>
<npc>33360</npc> <!-- Maid -->
</npcs>
<item id="1829" price="500" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall -->
<item id="5858" price="110000" count="1" restock_delay="60" /> <!-- Blessed Scroll of Escape: Clan Hall -->
<item id="735" price="1320" count="1" restock_delay="60" /> <!-- Haste Potion -->
<item id="6035" price="2640" count="1" restock_delay="60" /> <!-- Magic Haste Potion -->
<item id="6036" price="6600" count="1" restock_delay="60" /> <!-- Greater Magic Haste Potion -->
<item id="5235" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion A -->
<item id="5236" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion B -->
<item id="5237" price="22000" count="1" restock_delay="60" /> <!-- Facelifting Potion C -->
<item id="5238" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion A -->
<item id="5239" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion B -->
<item id="5240" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion C -->
<item id="5241" price="22000" count="1" restock_delay="60" /> <!-- Dye Potion D -->
<item id="5242" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion A -->
<item id="5243" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion B -->
<item id="5244" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion C -->
<item id="5245" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion D -->
<item id="5246" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion E -->
<item id="5247" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion F -->
<item id="5248" price="22000" count="1" restock_delay="60" /> <!-- Hair Style Change Potion G -->
<item id="5234" price="11000" count="1" restock_delay="60" /> <!-- Mysterious Potion -->
<item id="5593" price="55000" count="10" restock_delay="60" /> <!-- SP Scroll (Low-grade) -->
<item id="5594" price="330000" count="10" restock_delay="60" /> <!-- SP Scroll (Mid-grade) -->
</list>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/clanHall.xsd">
<clanHall id="187" name="Ellia Hall 1" grade="GRADE_B" type="OTHER">
<auction minBid="0" lease="0" deposit="0" />
<npcs>
<npc id="33360" /> <!-- Maid -->
</npcs>
<ownerRestartPoint x="-122200" y="-116552" z="-5798" />
<banishPoint x="-83246" y="242118" z="-3730" />
</clanHall>
</list>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/clanHall.xsd">
<clanHall id="190" name="Ellia Hall 2" grade="GRADE_B" type="OTHER">
<auction minBid="0" lease="0" deposit="0" />
<npcs>
<npc id="33360" /> <!-- Maid -->
</npcs>
<ownerRestartPoint x="-117080" y="-116551" z="-5771" />
<banishPoint x="-83246" y="242118" z="-3730" />
</clanHall>
</list>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/clanHall.xsd">
<clanHall id="193" name="Ellia Hall 3" grade="GRADE_B" type="OTHER">
<auction minBid="0" lease="0" deposit="0" />
<npcs>
<npc id="33360" /> <!-- Maid -->
</npcs>
<ownerRestartPoint x="-111717" y="-116550" z="-5773" />
<banishPoint x="-83246" y="242118" z="-3730" />
</clanHall>
</list>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/clanHall.xsd">
<clanHall id="188" name="Laurell Hall 1" grade="GRADE_B" type="OTHER">
<auction minBid="0" lease="0" deposit="0" />
<npcs>
<npc id="33360" /> <!-- Maid -->
</npcs>
<ownerRestartPoint x="-121864" y="-111240" z="-6014" />
<banishPoint x="-83246" y="242118" z="-3730" />
</clanHall>
</list>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/clanHall.xsd">
<clanHall id="191" name="Laurell Hall 2" grade="GRADE_B" type="OTHER">
<auction minBid="0" lease="0" deposit="0" />
<npcs>
<npc id="33360" /> <!-- Maid -->
</npcs>
<ownerRestartPoint x="-117074" y="-111237" z="-5989" />
<banishPoint x="-83246" y="242118" z="-3730" />
</clanHall>
</list>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/clanHall.xsd">
<clanHall id="194" name="Laurell Hall 3" grade="GRADE_B" type="OTHER">
<auction minBid="0" lease="0" deposit="0" />
<npcs>
<npc id="33360" /> <!-- Maid -->
</npcs>
<ownerRestartPoint x="-121864" y="-111230" z="-5989" />
<banishPoint x="-83246" y="242118" z="-3730" />
</clanHall>
</list>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/clanHall.xsd">
<clanHall id="186" name="Orchid Hall 1" grade="GRADE_B" type="OTHER">
<auction minBid="0" lease="0" deposit="0" />
<npcs>
<npc id="33360" /> <!-- Maid -->
</npcs>
<ownerRestartPoint x="-122264" y="-122392" z="-5870" />
<banishPoint x="-83246" y="242118" z="-3730" />
</clanHall>
</list>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/clanHall.xsd">
<clanHall id="189" name="Orchid Hall 2" grade="GRADE_B" type="OTHER">
<auction minBid="0" lease="0" deposit="0" />
<npcs>
<npc id="33360" /> <!-- Maid -->
</npcs>
<ownerRestartPoint x="-117000" y="-122052" z="-5845" />
<banishPoint x="-83246" y="242118" z="-3730" />
</clanHall>
</list>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/clanHall.xsd">
<clanHall id="192" name="Orchid Hall 3" grade="GRADE_B" type="OTHER">
<auction minBid="0" lease="0" deposit="0" />
<npcs>
<npc id="33360" /> <!-- Maid -->
</npcs>
<ownerRestartPoint x="-111726" y="-122378" z="-5845" />
<banishPoint x="-83246" y="242118" z="-3730" />
</clanHall>
</list>

View File

@@ -0,0 +1,10 @@
<html><body>Greetings, my lord.<br1>
I am at your service.<br>
<center>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest ClanHallManager expel">Expel an outsider</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest ClanHallManager useFunctions">Clan Hall function</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest ClanHallManager warehouse">Clan Warehouse</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest ClanHallManager manageFunctions">Manage Clan Hall</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest ProvisionalHalls leave">See you later</Button>
</center>
</body></html>

View File

@@ -0,0 +1,9 @@
<html><body><br>
<font color="LEVEL">[Manage Clan Hall]</font><br>
<center>
<br><button action="bypass -h Quest ClanHallManager manageFunctions recovery" value="Recovery" width=80 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
<br><button action="bypass -h Quest ClanHallManager manageFunctions other" value="Other" width=80 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
<br>
<br><button action="bypass -h Quest ClanHallManager index" value="Main Screen" width=80 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
</center>
</body></html>

View File

@@ -62,6 +62,7 @@ public class ClanHallManager extends AbstractNpcAI
36721, 36723, 36725, 36727, // Gludio Outskirts
36729, 36731, 36733, 36735, // Dion Outskirts
36737, 36739, // Floran Village
33360, // Talking Island
};
// @formatter:on
// Misc
@@ -109,7 +110,21 @@ public class ClanHallManager extends AbstractNpcAI
{
case "index":
{
htmltext = isOwningClan(player, npc) ? "ClanHallManager-01.html" : "ClanHallManager-03.html";
if (isOwningClan(player, npc))
{
if (npc.getId() == 33360) // Provisional Hall Manager
{
htmltext = "ClanHallManager-01b.html";
}
else if (clanHall.getCostFailDay() == 0)
{
htmltext = "ClanHallManager-01.html";
}
}
else
{
htmltext = "ClanHallManager-03.html";
}
break;
}
case "manageDoors":
@@ -248,7 +263,14 @@ public class ClanHallManager extends AbstractNpcAI
case 2:
case 3:
{
((MerchantInstance) npc).showBuyWindow(player, Integer.parseInt(npc.getId() + "0" + (itemLevel - 1)));
if (npc.getId() == 33360) // Provisional Hall Manager
{
((MerchantInstance) npc).showBuyWindow(player, Integer.parseInt(clanHall.getResidenceId() + "0" + (itemLevel - 1)));
}
else
{
((MerchantInstance) npc).showBuyWindow(player, Integer.parseInt(npc.getId() + "0" + (itemLevel - 1)));
}
break;
}
default:
@@ -280,7 +302,14 @@ public class ClanHallManager extends AbstractNpcAI
{
if (!st.hasMoreTokens())
{
htmltext = "ClanHallManager-11.html";
if (npc.getId() == 33360) // Provisional Hall Manager
{
htmltext = "ClanHallManager-11b.html";
}
else
{
htmltext = "ClanHallManager-11.html";
}
}
else
{
@@ -426,7 +455,11 @@ public class ClanHallManager extends AbstractNpcAI
final ClanHall clanHall = npc.getClanHall();
if (isOwningClan(player, npc))
{
if (clanHall.getCostFailDay() == 0)
if (npc.getId() == 33360) // Provisional Hall Manager
{
htmltext = "ClanHallManager-01b.html";
}
else if (clanHall.getCostFailDay() == 0)
{
htmltext = "ClanHallManager-01.html";
}

View File

@@ -0,0 +1,13 @@
<html><body><br><br><br>
Ah, hello!<br><br>
I am the Clan Hall Gatekeeper, Kerry. It's an honor to serve you.<br>
Do you need help with the <font color="FFFB99">Provisional Clan Hall</font>?<br>
<br><br>
<center>
<button action="bypass -h Quest ProvisionalHalls enter" value="Enter the Clan Hall" width=180 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
<br>
<button action="bypass -h Quest ProvisionalHalls 33359-03.html" value="Buy a Clan Hall" width=180 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
<br>
<button action="bypass -h Quest ProvisionalHalls 33359-02.html" value="Learn more" width=180 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
<br>
</body></html>

View File

@@ -0,0 +1,12 @@
<html><body>
<br><br>
<center>
Participant,<br>
<center>
Aw, sorry, but you didn't win a <font color="FFFB99">Provisional Clan Hall</font>.<br><br>
The auction takes place every 2 weeks,<br>
between 00:01 Saturday and 23:59 Sunday.<br>
<br>
<center>
Better luck at the next auction!<br>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body><br><br><br>
The <font color="FFFB99">Provisional Clan Hall</font> will cost you 50.000.000 adena, are you sure?<br>
<br><br>
<center>
<button action="bypass -h Quest ProvisionalHalls buy" value="Buy the Clan Hall" width=180 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
</body></html>

View File

@@ -0,0 +1,199 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package ai.others.ProvisionalHalls;
import java.util.Calendar;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Map.Entry;
import org.l2jmobius.gameserver.data.xml.impl.ClanHallData;
import org.l2jmobius.gameserver.instancemanager.GlobalVariablesManager;
import org.l2jmobius.gameserver.model.Location;
import org.l2jmobius.gameserver.model.actor.Npc;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import org.l2jmobius.gameserver.model.entity.ClanHall;
import ai.AbstractNpcAI;
/**
* Custom implementation for Provisional Clan Halls.
* @author Mobius
*/
public class ProvisionalHalls extends AbstractNpcAI
{
// NPCs
private static final int KERRY = 33359;
private static final int MAID = 33360;
// Misc
private static final int HALL_PRICE = 50000000;
private static final long TWO_WEEKS = 1209600000;
private static final Map<Integer, Location> CLAN_HALLS = new LinkedHashMap<>();
static
{
CLAN_HALLS.put(187, new Location(-122200, -116552, -5798, 1779));
CLAN_HALLS.put(186, new Location(-122264, -122392, -5870, 15229));
CLAN_HALLS.put(188, new Location(-121864, -111240, -6014, 30268));
CLAN_HALLS.put(190, new Location(-117080, -116551, -5771, 1779));
CLAN_HALLS.put(189, new Location(-117000, -122052, -5845, 15229));
CLAN_HALLS.put(191, new Location(-117074, -111237, -5989, 30268));
CLAN_HALLS.put(193, new Location(-111717, -116550, -5773, 1779));
CLAN_HALLS.put(192, new Location(-111726, -122378, -5845, 15229));
CLAN_HALLS.put(194, new Location(-111158, -111230, -5989, 30268));
}
private static final String HALL_OWNER_VAR = "PCH_OWNER_";
private static final String HALL_TIME_VAR = "PCH_TIME_";
private static final String HALL_RESET_VAR = "PCH_RESET_";
private static final String HALL_RETURN_VAR = "PCH_RETURN";
private static final Object LOCK = new Object();
private ProvisionalHalls()
{
addStartNpc(KERRY);
addFirstTalkId(KERRY);
addTalkId(KERRY);
for (int id : CLAN_HALLS.keySet())
{
final long resetTime = GlobalVariablesManager.getInstance().getLong(HALL_TIME_VAR + id, 0);
if (resetTime > 0)
{
cancelQuestTimers(HALL_RESET_VAR + id);
startQuestTimer(HALL_RESET_VAR + id, Math.max(1000, (TWO_WEEKS - (System.currentTimeMillis() - resetTime) - 30000)), null, null);
}
}
}
@Override
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
{
if ((npc.getId() != KERRY) && (npc.getId() != MAID))
{
return null;
}
String htmltext = null;
if (event.equals("33359-01.html") || event.equals("33359-02.html") || event.equals("33359-03.html"))
{
htmltext = event;
}
else if (event.equals("buy"))
{
synchronized (LOCK)
{
final Calendar calendar = Calendar.getInstance();
final int dayOfWeek = calendar.get(Calendar.DAY_OF_WEEK);
if ((player.getClan() == null) || (player.getClan().getLeaderId() != player.getObjectId()))
{
player.sendMessage("You need to be a clan leader in order to proceed.");
}
else if ((player.getClan().getHideoutId() > 0))
{
player.sendMessage("You already own a hideout.");
}
else if ((dayOfWeek != Calendar.SATURDAY) && (dayOfWeek != Calendar.SUNDAY))
{
htmltext = "33359-02.html";
}
else if (player.getAdena() < HALL_PRICE)
{
player.sendMessage("You need " + HALL_PRICE + " adena in order to proceed.");
}
else
{
if (dayOfWeek != Calendar.SATURDAY)
{
calendar.add(Calendar.DAY_OF_WEEK, -1);
}
calendar.set(Calendar.HOUR_OF_DAY, 0);
calendar.set(Calendar.MINUTE, 1);
calendar.set(Calendar.SECOND, 0);
calendar.set(Calendar.MILLISECOND, 0);
for (int id : CLAN_HALLS.keySet())
{
if ((GlobalVariablesManager.getInstance().getInt(HALL_OWNER_VAR + id, 0) == 0) && ((GlobalVariablesManager.getInstance().getLong(HALL_TIME_VAR + id, 0) + TWO_WEEKS) < System.currentTimeMillis()))
{
player.reduceAdena("ProvisionalHall", HALL_PRICE, player, true);
GlobalVariablesManager.getInstance().set(HALL_OWNER_VAR + id, player.getClanId());
GlobalVariablesManager.getInstance().set(HALL_TIME_VAR + id, calendar.getTimeInMillis());
final ClanHall clanHall = ClanHallData.getInstance().getClanHallById(id);
if (clanHall != null)
{
clanHall.setOwner(player.getClan());
}
player.sendMessage("Congratulations! You now own a provisional clan hall!");
startQuestTimer("RESET_ORCHID_HALL", TWO_WEEKS - (System.currentTimeMillis() - calendar.getTimeInMillis()), null, null);
return null;
}
}
player.sendMessage("I am sorry, all halls have been taken.");
}
}
}
else if (event.equals("enter"))
{
final int playerClanId = player.getClanId();
for (Entry<Integer, Location> hall : CLAN_HALLS.entrySet())
{
if (playerClanId == GlobalVariablesManager.getInstance().getInt(HALL_OWNER_VAR + hall.getKey(), -1))
{
player.getVariables().set(HALL_RETURN_VAR, player.getX() + "," + player.getY() + "," + player.getZ() + "," + player.getHeading());
player.teleToLocation(hall.getValue());
return null;
}
}
htmltext = "33359-02.html";
}
else if (event.equals("leave"))
{
final String[] location = player.getVariables().getString(HALL_RETURN_VAR, "-83246,242118,-3730,-1").split(",");
player.teleToLocation(Integer.parseInt(location[0]), Integer.parseInt(location[1]), Integer.parseInt(location[2]), Integer.parseInt(location[3]));
}
else if (event.startsWith(HALL_RESET_VAR))
{
final String id = event.replace(HALL_RESET_VAR, "");
if (((GlobalVariablesManager.getInstance().getLong(HALL_TIME_VAR + id, 0) + TWO_WEEKS) - 60000) <= System.currentTimeMillis())
{
final int clanId = GlobalVariablesManager.getInstance().getInt(HALL_OWNER_VAR + id, 0);
if (clanId > 0)
{
final ClanHall clanHall = ClanHallData.getInstance().getClanHallById(Integer.parseInt(id));
if (clanHall != null)
{
clanHall.setOwner(null);
}
}
GlobalVariablesManager.getInstance().remove(HALL_TIME_VAR + id);
GlobalVariablesManager.getInstance().remove(HALL_OWNER_VAR + id);
}
}
return htmltext;
}
@Override
public String onFirstTalk(Npc npc, PlayerInstance player)
{
return npc.getId() + "-01.html";
}
public static void main(String[] args)
{
new ProvisionalHalls();
}
}

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/spawns.xsd">
<spawn name="ProvisionalClanHalls">
<group>
<npc id="33360" x="-122368" y="-122595" z="-5845" heading="16383" respawnTime="60sec" /> <!-- Maid -->
<npc id="33360" x="-122668" y="-116440" z="-5735" heading="60699" respawnTime="60sec" /> <!-- Maid -->
<npc id="33360" x="-121444" y="-111321" z="-5981" heading="32767" respawnTime="60sec" /> <!-- Maid -->
<npc id="33360" x="-117093" y="-122599" z="-5845" heading="16383" respawnTime="60sec" /> <!-- Maid -->
<npc id="33360" x="-117517" y="-116408" z="-5735" heading="60699" respawnTime="60sec" /> <!-- Maid -->
<npc id="33360" x="-116239" y="-111343" z="-5981" heading="32767" respawnTime="60sec" /> <!-- Maid -->
<npc id="33360" x="-111817" y="-122608" z="-5845" heading="16383" respawnTime="60sec" /> <!-- Maid -->
<npc id="33360" x="-112199" y="-116413" z="-5735" heading="60699" respawnTime="60sec" /> <!-- Maid -->
<npc id="33360" x="-110897" y="-111348" z="-5981" heading="32767" respawnTime="60sec" /> <!-- Maid -->
</group>
</spawn>
</list>

View File

@@ -29,7 +29,7 @@
<height normal="20" />
</collision>
</npc>
<npc id="33360" level="85" type="Npc" name="Maid" title="Provisional Clan Hall Manager">
<npc id="33360" level="85" type="Merchant" name="Maid" title="Provisional Clan Hall Manager">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<parameters>
<param name="MoveAroundSocial" value="0" />

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/teleporterData.xsd">
<npc id="33360"> <!-- Maid -->
<teleport name="tel1" type="OTHER">
<location npcStringId="1010023" x="147450" y="28081" z="-2294" /> <!-- Town of Aden -->
<location npcStringId="1010007" x="81749" y="149171" z="-3464" /> <!-- The Town of Giran -->
</teleport>
<teleport name="tel2" type="OTHER">
<location npcStringId="1010614" x="5106" y="126916" z="-3664" feeCount="2000" /> <!-- Cruma Marshlands (Lv. 25) -->
<location npcStringId="1010113" x="47382" y="111278" z="-2104" feeCount="2000" /> <!-- Fortress of Resistance (Lv. 23) -->
<location npcStringId="1010111" x="630" y="179184" z="-3720" feeCount="2000" /> <!-- Plains of Dion (Lv. 23) -->
<location npcStringId="1010115" x="60374" y="164301" z="-2856" feeCount="2000" /> <!-- Tanor Canyon (Lv. 46) -->
<location npcStringId="1010036" x="17430" y="170103" z="-3506" feeCount="10000" /> <!-- Entrance to Floran Village -->
<location npcStringId="1010023" x="147450" y="28081" z="-2294" /> <!-- Town of Aden -->
<location npcStringId="1010007" x="81749" y="149171" z="-3464" /> <!-- The Town of Giran -->
</teleport>
</npc>
</list>

View File

@@ -70,7 +70,7 @@
<xs:restriction base="xs:token">
<xs:enumeration value="AUCTIONABLE" />
<xs:enumeration value="SIEGEABLE" />
<xs:enumeration value="INSTANCED" />
<xs:enumeration value="OTHER" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>

View File

@@ -418,4 +418,40 @@
<node X="17736" Y="170870" />
<node X="17736" Y="170592" />
</zone>
<zone name="orchid_hall_1" type="ClanHallZone" shape="Cylinder" minZ="-5900" maxZ="-5300" rad="1000">
<stat name="clanHallId" val="186" />
<node X="-122331" Y="-122122" />
</zone>
<zone name="ellia_hall_1" type="ClanHallZone" shape="Cylinder" minZ="-5800" maxZ="-5200" rad="1000">
<stat name="clanHallId" val="187" />
<node X="-121845" Y="-116549" />
</zone>
<zone name="laurell_hall_1" type="ClanHallZone" shape="Cylinder" minZ="-6000" maxZ="-5400" rad="1000">
<stat name="clanHallId" val="188" />
<node X="-122044" Y="-111229" />
</zone>
<zone name="orchid_hall_2" type="ClanHallZone" shape="Cylinder" minZ="-5900" maxZ="-5300" rad="1000">
<stat name="clanHallId" val="189" />
<node X="-117013" Y="-122052" />
</zone>
<zone name="ellia_hall_2" type="ClanHallZone" shape="Cylinder" minZ="-5800" maxZ="-5200" rad="1000">
<stat name="clanHallId" val="190" />
<node X="-116605" Y="-116554" />
</zone>
<zone name="laurell_hall_2" type="ClanHallZone" shape="Cylinder" minZ="-6000" maxZ="-5400" rad="1000">
<stat name="clanHallId" val="191" />
<node X="-116837" Y="-111230" />
</zone>
<zone name="orchid_hall_3" type="ClanHallZone" shape="Cylinder" minZ="-5900" maxZ="-5300" rad="1000">
<stat name="clanHallId" val="192" />
<node X="-111721" Y="-122062" />
</zone>
<zone name="ellia_hall_3" type="ClanHallZone" shape="Cylinder" minZ="-5800" maxZ="-5200" rad="1000">
<stat name="clanHallId" val="193" />
<node X="-111388" Y="-116559" />
</zone>
<zone name="laurell_hall_3" type="ClanHallZone" shape="Cylinder" minZ="-6000" maxZ="-5400" rad="1000">
<stat name="clanHallId" val="194" />
<node X="-111505" Y="-111229" />
</zone>
</list>

View File

@@ -86,6 +86,8 @@ import org.l2jmobius.gameserver.model.spawns.NpcSpawnTemplate;
import org.l2jmobius.gameserver.model.stats.Formulas;
import org.l2jmobius.gameserver.model.variables.NpcVariables;
import org.l2jmobius.gameserver.model.zone.ZoneId;
import org.l2jmobius.gameserver.model.zone.ZoneType;
import org.l2jmobius.gameserver.model.zone.type.ClanHallZone;
import org.l2jmobius.gameserver.model.zone.type.TaxZone;
import org.l2jmobius.gameserver.network.NpcStringId;
import org.l2jmobius.gameserver.network.SystemMessageId;
@@ -553,6 +555,20 @@ public class Npc extends Creature
public ClanHall getClanHall()
{
if (getId() == 33360) // Provisional Hall Manager
{
for (ZoneType zone : ZoneManager.getInstance().getZones(this))
{
if (zone instanceof ClanHallZone)
{
final ClanHall clanHall = ClanHallData.getInstance().getClanHallById(((ClanHallZone) zone).getResidenceId());
if (clanHall != null)
{
return clanHall;
}
}
}
}
return ClanHallData.getInstance().getClanHallByNpcId(getId());
}

View File

@@ -93,6 +93,3 @@ Customs:
-Newbie Helper buff support until 40 level
-Test Server Helper NPCs
-Fake players engine
TODO:
-Provisional Clan Halls