Replaced both buffer NPCs with interlude version.

This commit is contained in:
MobiusDev
2018-05-02 17:00:40 +00:00
parent 9644070693
commit 880fa75439
28 changed files with 1014 additions and 2948 deletions

View File

@@ -0,0 +1,10 @@
#=============================================================
# Buffer
#=============================================================
# Also check data\SchemeBufferSkills.xml
# Maximum number of available schemes per player.
BufferMaxSchemesPerChar = 4
# Static cost of buffs ; override skills price if different of -1.
BufferStaticCostPerBuff = -1

View File

@@ -0,0 +1,69 @@
<?xml version='1.0' encoding='utf-8'?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="xsd/SchemeBufferSkills.xsd">
<category type="Buffs">
<buff id="1035" price="0" desc="Increases resistance to mental attacks." /> <!-- Mental Shield -->
<buff id="1036" price="0" desc="Increases M. Def." /> <!-- Magic Barrier -->
<buff id="1040" price="0" desc="Increases P. Def." /> <!-- Shield -->
<buff id="1045" price="0" desc="Increases maximum HP." /> <!-- Blessed Body -->
<buff id="1048" price="0" desc="Increases maximum MP." /> <!-- Blessed Soul -->
<buff id="1059" price="0" desc="Increases M. Atk." /> <!-- Empower -->
<buff id="1062" price="0" desc="Reduces def. and increase atk. power." /> <!-- Berserker Spirit -->
<buff id="1068" price="0" desc="Increases P. Atk." /> <!-- Might -->
<buff id="1077" price="0" desc="Increases critical attack rate." /> <!-- Focus -->
<buff id="1078" price="0" desc="Increases magic concentration." /> <!-- Concentration -->
<buff id="1085" price="0" desc="Increases Casting Spd." /> <!-- Acumen -->
<buff id="1086" price="0" desc="Increases Atk. Spd." /> <!-- Haste -->
<buff id="1087" price="0" desc="Increases Evasion." /> <!-- Agility -->
<buff id="1204" price="0" desc="Increases Speed." /> <!-- Wind Walk -->
<buff id="1240" price="0" desc="Increases Accuracy." /> <!-- Guidance -->
<buff id="1242" price="0" desc="Increases critical attack." /> <!-- Death Whisper -->
<buff id="1243" price="0" desc="Increases shield defense rate." /> <!-- Bless Shield -->
<buff id="1259" price="0" desc="Increases resistance to stun attack." /> <!-- Resist Shock -->
<buff id="1268" price="0" desc="Restores HP using inflicted damage." /> <!-- Vampiric Rage -->
<buff id="1303" price="0" desc="Increases crit. rate of magic attacks." /> <!-- Wild Magic -->
<buff id="1304" price="0" desc="Increases shield defense power." /> <!-- Advanced Block -->
<buff id="1352" price="0" desc="Increases resistance to atures." /> <!-- Elemental Protection -->
<buff id="1353" price="0" desc="Increases resistance to dark attack." /> <!-- Divine Protection -->
<buff id="1354" price="0" desc="Increases resistance to de-buff attack." /> <!-- Arcane Protection -->
<buff id="1355" price="0" desc="Increases mage abilities." /> <!-- Prophecy of Water -->
<buff id="1356" price="0" desc="Increases fighter abilities." /> <!-- Prophecy of Fire -->
<buff id="1357" price="0" desc="Increases dagger abilities." /> <!-- Prophecy of Wind -->
<buff id="1363" price="0" desc="Increases combat abilities." /> <!-- Chant of Victory -->
<buff id="1388" price="0" desc="Increases P. Atk." /> <!-- Greater Might -->
<buff id="1389" price="0" desc="Increases P. Def." /> <!-- Greater Shield -->
<buff id="1390" price="0" desc="Increases P. Atk." /> <!-- War Chant -->
<buff id="1391" price="0" desc="Increases P. Def." /> <!-- Earth Chant -->
<buff id="1397" price="0" desc="Decreases MP consumption rate." /> <!-- Clarity -->
<buff id="1413" price="0" desc="Increases mage abilities." /> <!-- Magnus' Chant -->
</category>
<category type="Dances">
<buff id="271" price="0" desc="Increases P. Atk." /> <!-- Dance of the Warrior -->
<buff id="272" price="0" desc="Increases Accuracy." /> <!-- Dance of Inspiration -->
<buff id="273" price="0" desc="Increases M. Atk." /> <!-- Dance of the Mystic -->
<buff id="274" price="0" desc="Increases critical damage." /> <!-- Dance of Fire -->
<buff id="275" price="0" desc="Increases attack speed." /> <!-- Dance of Fury -->
<buff id="276" price="0" desc="Increases Casting Spd." /> <!-- Dance of Concentration -->
<buff id="277" price="0" desc="Sacred power to physical attack." /> <!-- Dance of Light -->
<buff id="307" price="0" desc="Increases water resistance." /> <!-- Dance of Aqua Guard -->
<buff id="309" price="0" desc="Increases earth resistance." /> <!-- Dance of Earth Guard -->
<buff id="310" price="0" desc="Restores HP by inflicted damage." /> <!-- Dance of the Vampire -->
<buff id="311" price="0" desc="Increases resistance to terrain damage." /> <!-- Dance of Protection -->
<buff id="365" price="0" desc="Increases rate of magic crit. damage." /> <!-- Siren's Dance -->
</category>
<category type="Songs">
<buff id="264" price="0" desc="Increases P. Def." /> <!-- Song of Earth -->
<buff id="265" price="0" desc="Increases HP regeneration." /> <!-- Song of Life -->
<buff id="266" price="0" desc="Increases Evasion." /> <!-- Song of Water -->
<buff id="267" price="0" desc="Increases M. Def." /> <!-- Song of Warding -->
<buff id="268" price="0" desc="Increases movement." /> <!-- Song of Wind -->
<buff id="269" price="0" desc="Increases critical rate." /> <!-- Song of Hunter -->
<buff id="270" price="0" desc="Increases resistance to dark magic." /> <!-- Song of Invocation -->
<buff id="304" price="0" desc="Increases maximum HP." /> <!-- Song of Vitality -->
<buff id="305" price="0" desc="Reflects damage received." /> <!-- Song of Vengeance -->
<buff id="306" price="0" desc="Increases resistance to fire." /> <!-- Song of Flame Guard -->
<buff id="308" price="0" desc="Increases resistance to wind." /> <!-- Song of Storm Guard -->
<buff id="349" price="0" desc="Decreases re-use time." /> <!-- Song of Renewal -->
<buff id="363" price="0" desc="Increases MP regeneration rate." /> <!-- Song of Meditation -->
<buff id="364" price="0" desc="Decreases re-use time of physical skills." /> <!-- Song of Champion -->
</category>
</list>

View File

@@ -1,23 +0,0 @@
<html><title>Core NPC Buffer</title>
<body>
<center>
<img src="L2UI_CH3.herotower_deco" width=256 height=32><br><br>
Please tell me the buff you would like.<br><br>
<a action="bypass -h npc_%objectId%_Buff 530">Dance of Alignment</a><br>
<a action="bypass -h npc_%objectId%_Buff 307">Dance of Aqua Guard</a><br>
<a action="bypass -h npc_%objectId%_Buff 276">Dance of Concentration</a><br>
<a action="bypass -h npc_%objectId%_Buff 309">Dance of Earth Guard</a><br>
<a action="bypass -h npc_%objectId%_Buff 274">Dance of Fire</a><br>
<a action="bypass -h npc_%objectId%_Buff 275">Dance of Fury</a><br>
<a action="bypass -h npc_%objectId%_Buff 272">Dance of Inspiration</a><br>
<a action="bypass -h npc_%objectId%_Buff 277">Dance of Light</a><br>
<a action="bypass -h npc_%objectId%_Buff 311">Dance of Protection</a><br>
<a action="bypass -h npc_%objectId%_Buff 366">Dance of Shadows</a><br>
<a action="bypass -h npc_%objectId%_Buff 273">Dance of the Mystic</a><br>
<a action="bypass -h npc_%objectId%_Buff 310">Dance of the Vampire</a><br>
<a action="bypass -h npc_%objectId%_Buff 271">Dance of the Warrior</a><br><br>
<button action="bypass -h npc_%objectId%_Chat 0" value="Back" width=200 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br><br>
<img src="L2UI_CH3.herotower_deco" width=256 height=32><br>
</center>
</body>
</html>

View File

@@ -1,35 +0,0 @@
<html><title>Core NPC Buffer</title>
<body>
<center>
<img src="L2UI_CH3.herotower_deco" width=256 height=32><br><br>
Please tell me the buff you would like.<br><br>
<a action="bypass -h npc_%objectId%_Buff 1085">Acumen</a><br>
<a action="bypass -h npc_%objectId%_Buff 1062">Berserk Spirit</a><br>
<a action="bypass -h npc_%objectId%_Buff 1243">Bless Shield</a><br>
<a action="bypass -h npc_%objectId%_Buff 1045">Bless the Body</a><br>
<a action="bypass -h npc_%objectId%_Buff 1048">Bless the Soul</a><br>
<a action="bypass -h npc_%objectId%_Buff 1078">Concentration</a><br>
<a action="bypass -h npc_%objectId%_Buff 1397">Clarity</a><br>
<a action="bypass -h npc_%objectId%_Buff 1242">Death Whisper</a><br>
<a action="bypass -h npc_%objectId%_Buff 1059">Empower</a><br>
<a action="bypass -h npc_%objectId%_Buff 1077">Focus</a><br>
<a action="bypass -h npc_%objectId%_Buff 1240">Guidance</a><br>
<a action="bypass -h npc_%objectId%_Buff 1086">Haste</a><br>
<a action="bypass -h npc_%objectId%_Buff 1043">Holy Weapon</a><br>
<a action="bypass -h npc_%objectId%_Buff 1032">Invigor</a><br>
<a action="bypass -h npc_%objectId%_Buff 1036">Magic Barrier</a><br>
<a action="bypass -h npc_%objectId%_Buff 1035">Mental Shield</a><br>
<a action="bypass -h npc_%objectId%_Buff 1068">Might</a><br>
<a action="bypass -h npc_%objectId%_Buff 1044">Regeneration</a><br>
<a action="bypass -h npc_%objectId%_Buff 1182">Resist Aqua</a><br>
<a action="bypass -h npc_%objectId%_Buff 1191">Resist Fire</a><br>
<a action="bypass -h npc_%objectId%_Buff 1033">Resist Poison</a><br>
<a action="bypass -h npc_%objectId%_Buff 1189">Resist Wind</a><br>
<a action="bypass -h npc_%objectId%_Buff 1040">Shield</a><br>
<a action="bypass -h npc_%objectId%_Buff 1303">Wild Magic</a><br>
<a action="bypass -h npc_%objectId%_Buff 1204">Wind Walk</a><br><br>
<button action="bypass -h npc_%objectId%_Chat 0" value="Back" width=200 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br><br>
<img src="L2UI_CH3.herotower_deco" width=256 height=32><br>
</center>
</body>
</html>

View File

@@ -1,25 +0,0 @@
<html><title>Core NPC Buffer</title>
<body>
<center>
<img src="L2UI_CH3.herotower_deco" width=256 height=32><br><br>
Please tell me the buff you would like.<br><br>
<a action="bypass -h npc_%objectId%_Buff 364">Song of Champion</a><br>
<a action="bypass -h npc_%objectId%_Buff 264">Song of Earth</a><br>
<a action="bypass -h npc_%objectId%_Buff 529">Song of Elemental</a><br>
<a action="bypass -h npc_%objectId%_Buff 306">Song of Flame Guard</a><br>
<a action="bypass -h npc_%objectId%_Buff 269">Song of Hunter</a><br>
<a action="bypass -h npc_%objectId%_Buff 270">Song of Invocation</a><br>
<a action="bypass -h npc_%objectId%_Buff 265">Song of Life</a><br>
<a action="bypass -h npc_%objectId%_Buff 363">Song of Meditation</a><br>
<a action="bypass -h npc_%objectId%_Buff 349">Song of Renewal</a><br>
<a action="bypass -h npc_%objectId%_Buff 308">Song of Storm Guard</a><br>
<a action="bypass -h npc_%objectId%_Buff 305">Song of Vengeance</a><br>
<a action="bypass -h npc_%objectId%_Buff 304">Song of Vitality</a><br>
<a action="bypass -h npc_%objectId%_Buff 267">Song of Warding</a><br>
<a action="bypass -h npc_%objectId%_Buff 266">Song of Water</a><br>
<a action="bypass -h npc_%objectId%_Buff 268">Song of Wind</a><br><br>
<button action="bypass -h npc_%objectId%_Chat 0" value="Back" width=200 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br><br>
<img src="L2UI_CH3.herotower_deco" width=256 height=32><br>
</center>
</body>
</html>

View File

@@ -1,12 +0,0 @@
<html><title>Core NPC Buffer</title>
<body>
<center>
<img src="L2UI_CH3.herotower_deco" width=256 height=32><br><br>
Please tell me the player style you are so I can give you 20 recommended buffs.<br><br>
<button action="bypass -h npc_%objectId%_Buff 264 266 268 269 271 274 275 304 310 1036 1040 1045 1062 1068 1077 1086 1240 1242" value="Fighter" width=200 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br><br>
<button action="bypass -h npc_%objectId%_Buff 264 266 268 273 276 304 1035 1040 1045 1048 1062 1085 1240" value="Mage" width=200 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br><br>
<button action="bypass -h npc_%objectId%_Chat 0" value="Back" width=200 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br><br>
<img src="L2UI_CH3.herotower_deco" width=256 height=32><br>
</center>
</body>
</html>

View File

@@ -1,22 +0,0 @@
<html><title>NPC Buffer</title>
<body>
<center>
<img src="L2UI_CH3.herotower_deco" width=256 height=32><br><br>
</center>
Hello,<br>
Please have your Express Credit Card ready for this transaction.<br><br>
Oh, wait you play on a Server, that means you can put away that<br>
Express Credit Card, and use your pocket change to pay for these buffs...<br><br>
I'd normally charge you 200 adena per buff, but since I think you're cute, I'll charge half off<br><br>
That means you pay 100 adena per buff only.<br><br>
*wink*Aren't I nice...<br><br>
<center>
What type of buffs would you like?<br><br>
<button action="bypass -h npc_%objectId%_Chat 1" value="Dance" width=200 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br>
<button action="bypass -h npc_%objectId%_Chat 2" value="Prophet" width=200 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br>
<button action="bypass -h npc_%objectId%_Chat 3" value="Song" width=200 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br>
<button action="bypass -h npc_%objectId%_Chat 4" value="Preset" width=200 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br>
<img src="L2UI_CH3.herotower_deco" width=256 height=32><br>
</center>
</body>
</html>

View File

@@ -0,0 +1,14 @@
<html><body>
<font color="LEVEL">You can create up to %max_schemes% schemes.</font> Is it clear for you?<br1>
If not, read until you get it! I can't afford idiots...<br>
You can register a new scheme filling this form, here!
<center><table width=220>
<tr>
<td width="140"><edit var="name" width=140 height=15></td>
<td width="60"><button value="Create" action="bypass -h npc_%objectId%_createscheme $name" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
</tr>
</table></center><br>
Here are listed your schemes and their fee.<br>
%schemes%<br>
<a action="bypass -h npc_%objectId%_menu">Back</a>
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>
<font color="LEVEL">%schemename%</font> scheme holds %count% buffs.<br>
<center>
%typesframe%<br>
%skilllistframe%<br>
</center>
<a action="bypass -h npc_%objectId%_support">Back</a>
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>
Hello stranger!<br>
Yup, you're right, I decided to share some of my powerful buffs in order to improve your pew-pew-bum-zap abilities.<br>
What can I do for you?<br>
<a action="bypass -h npc_%objectId%_support">Magic support</a><br>
<a action="bypass -h npc_%objectId%_heal">Heal me and my pet</a><br1>
<a action="bypass -h npc_%objectId%_cleanup">Cleanup all effects on me and my pet</a>
</body></html>

View File

@@ -21,9 +21,8 @@ import java.util.List;
import java.util.logging.Level;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.data.sql.impl.NpcBufferTable;
import com.l2jmobius.gameserver.data.sql.impl.NpcBufferTable.NpcBufferData;
import com.l2jmobius.gameserver.data.xml.impl.MultisellData;
import com.l2jmobius.gameserver.data.xml.impl.SkillData;
import com.l2jmobius.gameserver.handler.IBypassHandler;
import com.l2jmobius.gameserver.model.actor.L2Character;
import com.l2jmobius.gameserver.model.actor.L2Npc;
@@ -283,16 +282,10 @@ public class OlympiadManagerLink implements IBypassHandler
return false;
}
final NpcBufferData npcBuffGroupInfo = NpcBufferTable.getInstance().getSkillInfo(target.getId(), BUFFS[index]);
if (npcBuffGroupInfo == null)
{
LOGGER.warning("Olympiad Buffer Warning: npcId = " + target.getId() + " Location: " + target.getX() + ", " + target.getY() + ", " + target.getZ() + " Player: " + activeChar.getName() + " has tried to use skill group (" + params[1] + ") not assigned to the NPC Buffer!");
return false;
}
if (buffCount > 0)
{
final Skill skill = npcBuffGroupInfo.getSkill().getSkill();
// TODO: Add allowed buff list check?
final Skill skill = SkillData.getInstance().getSkill(target.getId(), BUFFS[index]);
if (skill != null)
{
target.setTarget(activeChar);

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/npcs.xsd">
<npc id="12" displayId="32226" name="Neonin" usingServerSideName="true" title="Scheme Buffer" usingServerSideTitle="true">
<npc id="50008" displayId="32226" type="L2SchemeBuffer" name="Neonin" usingServerSideName="true" title="Scheme Buffer" usingServerSideTitle="true">
<collision>
<radius normal="11" />
<height normal="22.25" />

View File

@@ -52,10 +52,4 @@
<height normal="12.5" />
</collision>
</npc>
<npc id="1000003" displayId="32226" name="Shiela" usingServerSideName="true" title="NPC Buffer" usingServerSideTitle="true" type="L2NpcBuffer">
<collision>
<radius normal="11" />
<height normal="22.25" />
</collision>
</npc>
</list>

View File

@@ -0,0 +1,32 @@
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="list">
<xs:complexType>
<xs:sequence>
<xs:element name="category" maxOccurs="unbounded" minOccurs="0">
<xs:annotation>
<xs:documentation>Magnus' Chant Siren's Dance Song of Champion</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="buff" maxOccurs="unbounded" minOccurs="0">
<xs:annotation>
<xs:documentation>Mental Shield Magic Barrier Shield Blessed Body Blessed Soul Empower Berserker Spirit Might Focus Concentration Acumen Haste Agility Wind Walk Guidance Death Whisper Bless Shield Resist Shock Vampiric Rage Wild Magic Advanced Block Elemental Protection Divine Protection Arcane Protection Prophecy of Water Prophecy of Fire Prophecy of Wind Chant of Victory Greater Might Greater Shield War Chant Earth Chant Clarity Dance of the Warrior Dance of Inspiration Dance of the Mystic Dance of Fire Dance of Fury Dance of Concentration Dance of Light Dance of Aqua Guard Dance of Earth Guard Dance of the Vampire Dance of Protection Song of Earth Song of Life Song of Water Song of Warding Song of Wind Song of Hunter Song of Invocation Song of Vitality Song of Vengeance Song of Flame Guard Song of Storm Guard Song of Renewal Song of Meditation</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:short" name="id" use="optional"/>
<xs:attribute type="xs:byte" name="price" use="optional"/>
<xs:attribute type="xs:string" name="desc" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute type="xs:string" name="type" use="optional"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>