Attempt to fix broken squash events.

This commit is contained in:
MobiusDev 2018-11-30 22:38:48 +00:00
parent b87dffe6ef
commit b98d14ef2a
64 changed files with 1284 additions and 704 deletions

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>33888</npc> <!-- Santa -->
</npcs>
<item>
<ingredient id="37543" count="10" /> <!-- Snowy Squash Nectar -->
<production id="38923" count="1" /> <!-- Squash Seed -->
</item>
<item>
<ingredient id="37543" count="20" /> <!-- Snowy Squash Nectar -->
<production id="38924" count="1" /> <!-- Large Squash Seed -->
</item>
</list>

View File

@ -0,0 +1,26 @@
<?xml version='1.0' encoding='utf-8'?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>33888</npc> <!-- Santa -->
</npcs>
<item>
<ingredient id="37543" count="100" /> <!-- Snowy Squash Nectar -->
<production id="4202" count="1" /> <!-- Chrono Cithara -->
</item>
<item>
<ingredient id="37543" count="150" /> <!-- Snowy Squash Nectar -->
<production id="5133" count="1" /> <!-- Chrono Unitus-->
</item>
<item>
<ingredient id="37543" count="200" /> <!-- Snowy Squash Nectar -->
<production id="5817" count="1" /> <!-- Chrono Campana -->
</item>
<item>
<ingredient id="37543" count="250" /> <!-- Snowy Squash Nectar -->
<production id="7058" count="1" /> <!-- Chrono Darubka -->
</item>
<item>
<ingredient id="37543" count="300" /> <!-- Snowy Squash Nectar -->
<production id="8350" count="1" /> <!-- Chrono Marakas -->
</item>
</list>

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>31860</npc> <!-- Buzz the Cat -->
</npcs>
<item>
<ingredient id="6391" count="10" /> <!-- Nectar -->
<production id="6389" count="1" /> <!-- Squash Seed -->
</item>
<item>
<ingredient id="6391" count="20" /> <!-- Nectar -->
<production id="6390" count="1" /> <!--Large Squash Seed -->
</item>
</list>

View File

@ -0,0 +1,26 @@
<?xml version='1.0' encoding='utf-8'?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>31860</npc> <!-- Buzz the Cat -->
</npcs>
<item>
<ingredient id="6391" count="100" /> <!-- Nectar -->
<production id="4202" count="1" /> <!-- Chrono Cithara -->
</item>
<item>
<ingredient id="6391" count="150" /> <!-- Nectar -->
<production id="5133" count="1" /> <!-- Chrono Unitus-->
</item>
<item>
<ingredient id="6391" count="200" /> <!-- Nectar -->
<production id="5817" count="1" /> <!-- Chrono Campana -->
</item>
<item>
<ingredient id="6391" count="250" /> <!-- Nectar -->
<production id="7058" count="1" /> <!-- Chrono Darubka -->
</item>
<item>
<ingredient id="6391" count="300" /> <!-- Nectar -->
<production id="8350" count="1" /> <!-- Chrono Marakas -->
</item>
</list>

View File

@ -1,14 +0,0 @@
<html><head><body>Buzz the Cat:<br>
Squash grow up by taking in nectar. After planting a seed, drip nectar on it and it will grow quickly! <br1>
After taking enough nectar, the squash will evolve. If you hit it with a weapon, the squash will crack open!<br1>
Be careful, there are several things you should look out for.<br1>
<font color="LEVEL">First of all, if you hit it before it's fully grown,</font> it will wilt from lack of nutrition. <br1>
Also, since <font color="LEVEL">a squash tends to flee</font>, you should try to crack it open before it gets out of hand!
Young squash that are not fully grown will run off in <font color="LEVEL">3 minutes</font> and fully grown squash will run away in <font color="LEVEL">a minute and 30 seconds</font>! <br1>
<font color="LEVEL">Also, a large squash can't be opened with a regular weapon! </font> I heard that there are <font color="LEVEL">chrono weapons</font> that produce musical sounds when you hit it against something.
You will only be able to hit large squash with weapons of this type. <br1>
<font color="LEVEL">One last thing! Since it's not easy to open a large squash by yourself,</font> you should find a friend who can help you open it.<br1>
Do you understand everything I've told you?<br1>
Posible rewards you can get: <font color="LEVEL">Adena, Fireworks, Large Fireworks, Life Stones, Gems A and S grades, Crystals A and S grades, Giant Codex, Lunargent and Hellfire Oil, Blessed Scroll of Escape, Quick Healing Potions, Large Lucky Cubs, Ancient Enchant Scrolls A-grade, Vitality Ginseng or powerful herbs.</font><br><br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Back</Button>
</body></html>

View File

@ -1,10 +1,8 @@
<html>
<body>Buzz the Cat:<br>
Nice to meet you! I'm Buzz the Cat, faithful employee to Gardener Fordson of Floran. My boss is one of the greatest agricultural geniuses in all of Aden. After such a successful summer, Gardener Fordson has reinvested in a new lot of improved magical squash seeds. He has decided to grow them for the Fall season. Fortunately for you, we still have more seeds than we know what to do with. We would love more nectar to develop full grown squashes to meet our increased customer demands.<br>
Would you like to help me out? <br> I will trade you seeds for nectar. You can get nectar by killing any monsters near your level all throughout the world.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3388800">Exchange nectar for squash seed.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3388801">Exchange nectar for a chrono weapon.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">Tell me more about event.</Button><br><br>
Plant the seed by double-clicking on it! Raise it well and claim your prizes! Good luck! <br>
</body>
</html>
<html><body>Santa Claus:<br>
Nice to meet you! I'm Santa Claus! Every year I come to give presents to all the good people of Elmoreaden. But this year some goblins stole all my presents and put them in enchanted squash seeds!<br>
Would you like to help me out? Use seeds with nectar to raise squashes and attack them with chrono weapons!<br>
I will trade you seeds for nectar. You can get nectar by killing any monsters all throughout the world.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3388801">Exchange nectar for squash seed.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3388802">Exchange nectar for a chrono weapon.</Button>
Plant the seed by double-clicking on it! Raise it well and claim your presents! Good luck!
</body></html>

View File

@ -20,11 +20,13 @@ import java.util.Arrays;
import java.util.List;
import com.l2jmobius.commons.util.Rnd;
import com.l2jmobius.gameserver.datatables.ItemTable;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.model.L2Object;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2MonsterInstance;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.items.type.CrystalType;
import com.l2jmobius.gameserver.model.quest.LongTimeEvent;
import com.l2jmobius.gameserver.model.skills.Skill;
import com.l2jmobius.gameserver.network.serverpackets.CreatureSay;
@ -39,7 +41,7 @@ public class MerrySquashmas extends LongTimeEvent
private static final int SNOWY_NECTAR_SKILL = 17110;
private static final List<Integer> SQUASH_LIST = Arrays.asList(13399, 13400, 13401, 13402, 13403, 13404, 13405, 13406);
private static final List<Integer> LARGE_SQUASH_LIST = Arrays.asList(13400, 13401, 13404, 13405);
private static final List<Integer> LARGE_SQUASH_LIST = Arrays.asList(13403, 13404, 13405, 13406);
private static final List<Integer> CHRONO_LIST = Arrays.asList(4202, 5133, 5817, 7058, 8350);
//@formatter:off
@ -573,27 +575,27 @@ public class MerrySquashmas extends LongTimeEvent
private static final void dropItem(L2Npc mob, L2PcInstance player)
{
final int npcId = mob.getId();
final int chance = Rnd.get(100);
for (int[] drop : DROPLIST)
{
if (npcId == drop[0])
{
if (chance < drop[2])
if (getRandomBoolean())
{
if (drop[1] > 6000)
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
}
else
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
}
continue;
}
}
if (npcId < drop[0])
{
return;
if (Rnd.get(100) < drop[2])
{
if (ItemTable.getInstance().getTemplate(drop[1]).getCrystalType() != CrystalType.NONE)
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
break;
}
((L2MonsterInstance) mob).dropItem(player, drop[1], (getRandom(1, 3)));
if (getRandomBoolean())
{
break;
}
}
}
}
}

View File

@ -1,14 +0,0 @@
<html><head><body>Buzz the Cat:<br>
Squash grow up by taking in nectar. After planting a seed, drip nectar on it and it will grow quickly! <br1>
After taking enough nectar, the squash will evolve. If you hit it with a weapon, the squash will crack open!<br1>
Be careful, there are several things you should look out for.<br1>
<font color="LEVEL">First of all, if you hit it before it's fully grown,</font> it will wilt from lack of nutrition. <br1>
Also, since <font color="LEVEL">a squash tends to flee</font>, you should try to crack it open before it gets out of hand!
Young squash that are not fully grown will run off in <font color="LEVEL">3 minutes</font> and fully grown squash will run away in <font color="LEVEL">a minute and 30 seconds</font>! <br1>
<font color="LEVEL">Also, a large squash can't be opened with a regular weapon! </font> I heard that there are <font color="LEVEL">chrono weapons</font> that produce musical sounds when you hit it against something.
You will only be able to hit large squash with weapons of this type. <br1>
<font color="LEVEL">One last thing! Since it's not easy to open a large squash by yourself,</font> you should find a friend who can help you open it.<br1>
Do you understand everything I've told you?<br1>
Posible rewards you can get: <font color="LEVEL">Adena, Fireworks, Large Fireworks, Life Stones, Gems A and S grades, Crystals A and S grades, Giant Codex, Lunargent and Hellfire Oil, Blessed Scroll of Escape, Quick Healing Potions, Large Lucky Cubs, Ancient Enchant Scrolls A-grade, Vitality Ginseng or powerful herbs.</font><br><br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Back</Button>
</body></html>

View File

@ -1,10 +1,7 @@
<html>
<body>Buzz the Cat:<br>
<html><body>Buzz the Cat:<br>
Nice to meet you! I'm Buzz the Cat, faithful employee to Gardener Fordson of Floran. My boss is one of the greatest agricultural geniuses in all of Aden. After such a successful summer, Gardener Fordson has reinvested in a new lot of improved magical squash seeds. He has decided to grow them for the Fall season. Fortunately for you, we still have more seeds than we know what to do with. We would love more nectar to develop full grown squashes to meet our increased customer demands.<br>
Would you like to help me out? <br> I will trade you seeds for nectar. You can get nectar by killing any monsters near your level all throughout the world.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 90318600">Exchange nectar for squash seed.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 90318601">Exchange nectar for a chrono weapon.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">Tell me more about event.</Button><br><br>
Plant the seed by double-clicking on it! Raise it well and claim your prizes! Good luck! <br>
</body>
</html>
Plant the seed by double-clicking on it! Raise it well and claim your prizes! Good luck!<br>
</body></html>

View File

@ -20,11 +20,13 @@ import java.util.Arrays;
import java.util.List;
import com.l2jmobius.commons.util.Rnd;
import com.l2jmobius.gameserver.datatables.ItemTable;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.model.L2Object;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2MonsterInstance;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.items.type.CrystalType;
import com.l2jmobius.gameserver.model.quest.LongTimeEvent;
import com.l2jmobius.gameserver.model.skills.Skill;
import com.l2jmobius.gameserver.network.serverpackets.CreatureSay;
@ -37,8 +39,8 @@ public class SquashEvent extends LongTimeEvent
private static final int MANAGER = 31860;
private static final int NECTAR_SKILL = 2005;
private static final List<Integer> SQUASH_LIST = Arrays.asList(12774, 12776, 12775, 12777, 12778, 12779, 13016, 13017);
private static final List<Integer> LARGE_SQUASH_LIST = Arrays.asList(12777, 12778, 12779, 13017);
private static final List<Integer> SQUASH_LIST = Arrays.asList(12774, 12775, 12776, 12777, 12778, 12779, 13016, 13017);
private static final List<Integer> LARGE_SQUASH_LIST = Arrays.asList(12778, 12779, 13016, 13017);
private static final List<Integer> CHRONO_LIST = Arrays.asList(4202, 5133, 5817, 7058, 8350);
//@formatter:off
@ -572,27 +574,27 @@ public class SquashEvent extends LongTimeEvent
private static final void dropItem(L2Npc mob, L2PcInstance player)
{
final int npcId = mob.getId();
final int chance = Rnd.get(100);
for (int[] drop : DROPLIST)
{
if (npcId == drop[0])
{
if (chance < drop[2])
if (getRandomBoolean())
{
if (drop[1] > 6000)
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
}
else
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
}
continue;
}
}
if (npcId < drop[0])
{
return;
if (Rnd.get(100) < drop[2])
{
if (ItemTable.getInstance().getTemplate(drop[1]).getCrystalType() != CrystalType.NONE)
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
break;
}
((L2MonsterInstance) mob).dropItem(player, drop[1], (getRandom(1, 3)));
if (getRandomBoolean())
{
break;
}
}
}
}
}

View File

@ -3,15 +3,27 @@
<item id="38923" name="Squash Seed" type="EtcItem">
<!-- Double-click and a Young or Defective Squash (Solo) will appear. Will be removed after the event is over. -->
<set name="icon" val="icon.etc_gourd_i00" />
<set name="default_action" val="SKILL_MAINTAIN" />
<set name="default_action" val="SKILL_REDUCE" />
<set name="material" val="PAPER" />
<set name="is_stackable" val="true" />
<set name="is_oly_restricted" val="true" />
<set name="handler" val="ItemSkills" />
<set name="commissionItemType" val="OTHER_ITEM" />
<skills>
<skill id="17111" level="1" /> <!-- Squash Seed -->
</skills>
</item>
<item id="38924" name="Large Squash Seed" type="EtcItem">
<!-- Double-click and a High Quality Large or Defective Large Squash (Solo) will appear. Will be removed after the event is over. -->
<set name="icon" val="icon.etc_gourd_i01" />
<set name="default_action" val="SKILL_MAINTAIN" />
<set name="default_action" val="SKILL_REDUCE" />
<set name="material" val="PAPER" />
<set name="is_stackable" val="true" />
<set name="is_oly_restricted" val="true" />
<set name="handler" val="ItemSkills" />
<set name="commissionItemType" val="OTHER_ITEM" />
<skills>
<skill id="17112" level="1" /> <!-- Large Squash Seed -->
</skills>
</item>
</list>

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="12774" level="1" type="L2Npc" name="Young Squash">
<npc id="12774" level="1" type="L2Monster" name="Young Squash">
<race>ETC</race>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
@ -102,7 +102,7 @@
<height normal="16" />
</collision>
</npc>
<npc id="12777" level="1" type="L2Npc" name="Large Young Squash">
<npc id="12777" level="1" type="L2Monster" name="Large Young Squash">
<race>ETC</race>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">

View File

@ -1,25 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/npcs.xsd">
<npc id="13399" level="1" type="L2Npc" name="Snowy Young Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<npc id="13399" level="1" type="L2Monster" name="Snowy Young Squash">
<race>ETC</race>
<sex>FEMALE</sex>
<stats str="88" int="79" dex="55" wit="78" con="82" men="78">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="6.1428012082644" critical="1" attackSpeed="253" range="40" />
<defence physical="40" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="true" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="10" />
<height normal="10.5" />

View File

@ -1,175 +1,238 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/npcs.xsd">
<npc id="13400" level="1" type="L2Monster" name="Snowy Ripe Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<race>ETC</race>
<sex>FEMALE</sex>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="23" />
<height normal="25" />
</collision>
</npc>
<npc id="13401" level="1" type="L2Monster" name="Snowy Rotten Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<race>ETC</race>
<sex>FEMALE</sex>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="15" />
<height normal="16" />
</collision>
</npc>
<npc id="13402" level="1" type="L2Monster" name="Snowy Royal Ripe Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<race>ETC</race>
<sex>FEMALE</sex>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="true" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
</skill_list>
<collision>
<radius normal="34" />
<height normal="30" />
</collision>
</npc>
<npc id="13403" level="1" type="L2Npc" name="Snowy Large Young Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<race>ETC</race>
<sex>FEMALE</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="6.1428012082644" critical="1" attackSpeed="253" range="40" />
<defence physical="40" magical="24.202420242024" />
</stats>
<status attackable="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="23" />
<height normal="25" />
</collision>
</npc>
<npc id="13404" level="1" type="L2Monster" name="Snowy Large Ripe Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<npc id="13403" level="1" type="L2Monster" name="Snowy Large Young Squash">
<race>ETC</race>
<sex>FEMALE</sex>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="34" />
<height normal="30" />
<height normal="40" />
</collision>
</npc>
<npc id="13405" level="1" type="L2Monster" name="Snowy Large Rotten Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<npc id="13404" level="1" type="L2Monster" name="Snowy Large Ripe Squash">
<race>ETC</race>
<sex>FEMALE</sex>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="28" />
<height normal="31" />
</collision>
</npc>
<npc id="13406" level="1" type="L2Monster" name="Snowy Royal Large Ripe Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<npc id="13405" level="80" type="L2Monster" name="Snowy Large Rotten Squash">
<race>ETC</race>
<sex>FEMALE</sex>
<sex>MALE</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="80.58" mp="40" mpRegen="3.09" />
<attack physical="1578.5" magical="1211.7" random="50" critical="1" accuracy="9" attackSpeed="278" type="FIST" range="40" distance="80" width="120" />
<defence physical="373.8" magical="303.1" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="23" />
<height normal="25" />
</collision>
</npc>
<npc id="13406" level="81" type="L2Monster" name="Snowy Royal Large Ripe Squash">
<race>ETC</race>
<sex>MALE</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="80.58" mp="40" mpRegen="3.09" />
<attack physical="1578.5" magical="1211.7" random="50" critical="1" accuracy="9" attackSpeed="278" type="FIST" range="40" distance="80" width="120" />
<defence physical="373.8" magical="303.1" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<abnormalResist physical="10" magical="10" />
</stats>
<status undying="false" />
<skill_list>
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="34" />
<height normal="40" />

View File

@ -114,9 +114,13 @@
<condition name="OpTargetNpc">
<npcIds>
<item>12774</item>
<item>12775</item>
<item>12776</item>
<item>12777</item>
<item>13271</item>
<item>13275</item>
<item>12778</item>
<item>12779</item>
<item>13016</item>
<item>13017</item>
</npcIds>
</condition>
</conditions>

View File

@ -44,7 +44,13 @@
<condition name="OpTargetNpc">
<npcIds>
<item>13399</item>
<item>13400</item>
<item>13401</item>
<item>13402</item>
<item>13403</item>
<item>13404</item>
<item>13405</item>
<item>13406</item>
</npcIds>
</condition>
</conditions>
@ -56,7 +62,7 @@
<reuseDelay>10000</reuseDelay>
<isMagic>2</isMagic> <!-- Static Skill -->
<itemConsumeCount>1</itemConsumeCount>
<itemConsumeId>37552</itemConsumeId> <!-- Snowy Squash Seed -->
<itemConsumeId>38923</itemConsumeId> <!-- Snowy Squash Seed -->
<magicLvl>1</magicLvl>
<rideState>NONE;STRIDER;WYVERN;WOLF</rideState>
<magicCriticalRate>5</magicCriticalRate>
@ -81,7 +87,7 @@
<reuseDelay>10000</reuseDelay>
<isMagic>2</isMagic> <!-- Static Skill -->
<itemConsumeCount>1</itemConsumeCount>
<itemConsumeId>37553</itemConsumeId> <!-- Snowy Large Squash Seed -->
<itemConsumeId>38924</itemConsumeId> <!-- Snowy Large Squash Seed -->
<magicLvl>1</magicLvl>
<rideState>NONE;STRIDER;WYVERN;WOLF</rideState>
<magicCriticalRate>5</magicCriticalRate>

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>33888</npc> <!-- Santa -->
</npcs>
<item>
<ingredient id="37543" count="10" /> <!-- Snowy Squash Nectar -->
<production id="38923" count="1" /> <!-- Squash Seed -->
</item>
<item>
<ingredient id="37543" count="20" /> <!-- Snowy Squash Nectar -->
<production id="38924" count="1" /> <!-- Large Squash Seed -->
</item>
</list>

View File

@ -0,0 +1,26 @@
<?xml version='1.0' encoding='utf-8'?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>33888</npc> <!-- Santa -->
</npcs>
<item>
<ingredient id="37543" count="100" /> <!-- Snowy Squash Nectar -->
<production id="4202" count="1" /> <!-- Chrono Cithara -->
</item>
<item>
<ingredient id="37543" count="150" /> <!-- Snowy Squash Nectar -->
<production id="5133" count="1" /> <!-- Chrono Unitus-->
</item>
<item>
<ingredient id="37543" count="200" /> <!-- Snowy Squash Nectar -->
<production id="5817" count="1" /> <!-- Chrono Campana -->
</item>
<item>
<ingredient id="37543" count="250" /> <!-- Snowy Squash Nectar -->
<production id="7058" count="1" /> <!-- Chrono Darubka -->
</item>
<item>
<ingredient id="37543" count="300" /> <!-- Snowy Squash Nectar -->
<production id="8350" count="1" /> <!-- Chrono Marakas -->
</item>
</list>

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>31860</npc> <!-- Buzz the Cat -->
</npcs>
<item>
<ingredient id="6391" count="10" /> <!-- Nectar -->
<production id="6389" count="1" /> <!-- Squash Seed -->
</item>
<item>
<ingredient id="6391" count="20" /> <!-- Nectar -->
<production id="6390" count="1" /> <!--Large Squash Seed -->
</item>
</list>

View File

@ -0,0 +1,26 @@
<?xml version='1.0' encoding='utf-8'?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>31860</npc> <!-- Buzz the Cat -->
</npcs>
<item>
<ingredient id="6391" count="100" /> <!-- Nectar -->
<production id="4202" count="1" /> <!-- Chrono Cithara -->
</item>
<item>
<ingredient id="6391" count="150" /> <!-- Nectar -->
<production id="5133" count="1" /> <!-- Chrono Unitus-->
</item>
<item>
<ingredient id="6391" count="200" /> <!-- Nectar -->
<production id="5817" count="1" /> <!-- Chrono Campana -->
</item>
<item>
<ingredient id="6391" count="250" /> <!-- Nectar -->
<production id="7058" count="1" /> <!-- Chrono Darubka -->
</item>
<item>
<ingredient id="6391" count="300" /> <!-- Nectar -->
<production id="8350" count="1" /> <!-- Chrono Marakas -->
</item>
</list>

View File

@ -1,14 +0,0 @@
<html><head><body>Buzz the Cat:<br>
Squash grow up by taking in nectar. After planting a seed, drip nectar on it and it will grow quickly! <br1>
After taking enough nectar, the squash will evolve. If you hit it with a weapon, the squash will crack open!<br1>
Be careful, there are several things you should look out for.<br1>
<font color="LEVEL">First of all, if you hit it before it's fully grown,</font> it will wilt from lack of nutrition. <br1>
Also, since <font color="LEVEL">a squash tends to flee</font>, you should try to crack it open before it gets out of hand!
Young squash that are not fully grown will run off in <font color="LEVEL">3 minutes</font> and fully grown squash will run away in <font color="LEVEL">a minute and 30 seconds</font>! <br1>
<font color="LEVEL">Also, a large squash can't be opened with a regular weapon! </font> I heard that there are <font color="LEVEL">chrono weapons</font> that produce musical sounds when you hit it against something.
You will only be able to hit large squash with weapons of this type. <br1>
<font color="LEVEL">One last thing! Since it's not easy to open a large squash by yourself,</font> you should find a friend who can help you open it.<br1>
Do you understand everything I've told you?<br1>
Posible rewards you can get: <font color="LEVEL">Adena, Fireworks, Large Fireworks, Life Stones, Gems A and S grades, Crystals A and S grades, Giant Codex, Lunargent and Hellfire Oil, Blessed Scroll of Escape, Quick Healing Potions, Large Lucky Cubs, Ancient Enchant Scrolls A-grade, Vitality Ginseng or powerful herbs.</font><br><br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Back</Button>
</body></html>

View File

@ -1,10 +1,8 @@
<html>
<body>Buzz the Cat:<br>
Nice to meet you! I'm Buzz the Cat, faithful employee to Gardener Fordson of Floran. My boss is one of the greatest agricultural geniuses in all of Aden. After such a successful summer, Gardener Fordson has reinvested in a new lot of improved magical squash seeds. He has decided to grow them for the Fall season. Fortunately for you, we still have more seeds than we know what to do with. We would love more nectar to develop full grown squashes to meet our increased customer demands.<br>
Would you like to help me out? <br> I will trade you seeds for nectar. You can get nectar by killing any monsters near your level all throughout the world.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3388800">Exchange nectar for squash seed.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3388801">Exchange nectar for a chrono weapon.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">Tell me more about event.</Button><br><br>
Plant the seed by double-clicking on it! Raise it well and claim your prizes! Good luck! <br>
</body>
</html>
<html><body>Santa Claus:<br>
Nice to meet you! I'm Santa Claus! Every year I come to give presents to all the good people of Elmoreaden. But this year some goblins stole all my presents and put them in enchanted squash seeds!<br>
Would you like to help me out? Use seeds with nectar to raise squashes and attack them with chrono weapons!<br>
I will trade you seeds for nectar. You can get nectar by killing any monsters all throughout the world.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3388801">Exchange nectar for squash seed.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3388802">Exchange nectar for a chrono weapon.</Button>
Plant the seed by double-clicking on it! Raise it well and claim your presents! Good luck!
</body></html>

View File

@ -20,11 +20,13 @@ import java.util.Arrays;
import java.util.List;
import com.l2jmobius.commons.util.Rnd;
import com.l2jmobius.gameserver.datatables.ItemTable;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.model.L2Object;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2MonsterInstance;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.items.type.CrystalType;
import com.l2jmobius.gameserver.model.quest.LongTimeEvent;
import com.l2jmobius.gameserver.model.skills.Skill;
import com.l2jmobius.gameserver.network.serverpackets.CreatureSay;
@ -39,7 +41,7 @@ public class MerrySquashmas extends LongTimeEvent
private static final int SNOWY_NECTAR_SKILL = 17110;
private static final List<Integer> SQUASH_LIST = Arrays.asList(13399, 13400, 13401, 13402, 13403, 13404, 13405, 13406);
private static final List<Integer> LARGE_SQUASH_LIST = Arrays.asList(13400, 13401, 13404, 13405);
private static final List<Integer> LARGE_SQUASH_LIST = Arrays.asList(13403, 13404, 13405, 13406);
private static final List<Integer> CHRONO_LIST = Arrays.asList(4202, 5133, 5817, 7058, 8350);
//@formatter:off
@ -573,27 +575,27 @@ public class MerrySquashmas extends LongTimeEvent
private static final void dropItem(L2Npc mob, L2PcInstance player)
{
final int npcId = mob.getId();
final int chance = Rnd.get(100);
for (int[] drop : DROPLIST)
{
if (npcId == drop[0])
{
if (chance < drop[2])
if (getRandomBoolean())
{
if (drop[1] > 6000)
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
}
else
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
}
continue;
}
}
if (npcId < drop[0])
{
return;
if (Rnd.get(100) < drop[2])
{
if (ItemTable.getInstance().getTemplate(drop[1]).getCrystalType() != CrystalType.NONE)
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
break;
}
((L2MonsterInstance) mob).dropItem(player, drop[1], (getRandom(1, 3)));
if (getRandomBoolean())
{
break;
}
}
}
}
}

View File

@ -1,14 +0,0 @@
<html><head><body>Buzz the Cat:<br>
Squash grow up by taking in nectar. After planting a seed, drip nectar on it and it will grow quickly! <br1>
After taking enough nectar, the squash will evolve. If you hit it with a weapon, the squash will crack open!<br1>
Be careful, there are several things you should look out for.<br1>
<font color="LEVEL">First of all, if you hit it before it's fully grown,</font> it will wilt from lack of nutrition. <br1>
Also, since <font color="LEVEL">a squash tends to flee</font>, you should try to crack it open before it gets out of hand!
Young squash that are not fully grown will run off in <font color="LEVEL">3 minutes</font> and fully grown squash will run away in <font color="LEVEL">a minute and 30 seconds</font>! <br1>
<font color="LEVEL">Also, a large squash can't be opened with a regular weapon! </font> I heard that there are <font color="LEVEL">chrono weapons</font> that produce musical sounds when you hit it against something.
You will only be able to hit large squash with weapons of this type. <br1>
<font color="LEVEL">One last thing! Since it's not easy to open a large squash by yourself,</font> you should find a friend who can help you open it.<br1>
Do you understand everything I've told you?<br1>
Posible rewards you can get: <font color="LEVEL">Adena, Fireworks, Large Fireworks, Life Stones, Gems A and S grades, Crystals A and S grades, Giant Codex, Lunargent and Hellfire Oil, Blessed Scroll of Escape, Quick Healing Potions, Large Lucky Cubs, Ancient Enchant Scrolls A-grade, Vitality Ginseng or powerful herbs.</font><br><br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Back</Button>
</body></html>

View File

@ -1,10 +1,7 @@
<html>
<body>Buzz the Cat:<br>
<html><body>Buzz the Cat:<br>
Nice to meet you! I'm Buzz the Cat, faithful employee to Gardener Fordson of Floran. My boss is one of the greatest agricultural geniuses in all of Aden. After such a successful summer, Gardener Fordson has reinvested in a new lot of improved magical squash seeds. He has decided to grow them for the Fall season. Fortunately for you, we still have more seeds than we know what to do with. We would love more nectar to develop full grown squashes to meet our increased customer demands.<br>
Would you like to help me out? <br> I will trade you seeds for nectar. You can get nectar by killing any monsters near your level all throughout the world.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 90318600">Exchange nectar for squash seed.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 90318601">Exchange nectar for a chrono weapon.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">Tell me more about event.</Button><br><br>
Plant the seed by double-clicking on it! Raise it well and claim your prizes! Good luck! <br>
</body>
</html>
Plant the seed by double-clicking on it! Raise it well and claim your prizes! Good luck!<br>
</body></html>

View File

@ -20,11 +20,13 @@ import java.util.Arrays;
import java.util.List;
import com.l2jmobius.commons.util.Rnd;
import com.l2jmobius.gameserver.datatables.ItemTable;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.model.L2Object;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2MonsterInstance;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.items.type.CrystalType;
import com.l2jmobius.gameserver.model.quest.LongTimeEvent;
import com.l2jmobius.gameserver.model.skills.Skill;
import com.l2jmobius.gameserver.network.serverpackets.CreatureSay;
@ -37,8 +39,8 @@ public class SquashEvent extends LongTimeEvent
private static final int MANAGER = 31860;
private static final int NECTAR_SKILL = 2005;
private static final List<Integer> SQUASH_LIST = Arrays.asList(12774, 12776, 12775, 12777, 12778, 12779, 13016, 13017);
private static final List<Integer> LARGE_SQUASH_LIST = Arrays.asList(12777, 12778, 12779, 13017);
private static final List<Integer> SQUASH_LIST = Arrays.asList(12774, 12775, 12776, 12777, 12778, 12779, 13016, 13017);
private static final List<Integer> LARGE_SQUASH_LIST = Arrays.asList(12778, 12779, 13016, 13017);
private static final List<Integer> CHRONO_LIST = Arrays.asList(4202, 5133, 5817, 7058, 8350);
//@formatter:off
@ -572,27 +574,27 @@ public class SquashEvent extends LongTimeEvent
private static final void dropItem(L2Npc mob, L2PcInstance player)
{
final int npcId = mob.getId();
final int chance = Rnd.get(100);
for (int[] drop : DROPLIST)
{
if (npcId == drop[0])
{
if (chance < drop[2])
if (getRandomBoolean())
{
if (drop[1] > 6000)
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
}
else
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
}
continue;
}
}
if (npcId < drop[0])
{
return;
if (Rnd.get(100) < drop[2])
{
if (ItemTable.getInstance().getTemplate(drop[1]).getCrystalType() != CrystalType.NONE)
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
break;
}
((L2MonsterInstance) mob).dropItem(player, drop[1], (getRandom(1, 3)));
if (getRandomBoolean())
{
break;
}
}
}
}
}

View File

@ -3,15 +3,27 @@
<item id="38923" name="Squash Seed" type="EtcItem">
<!-- Double-click and a Young or Defective Squash (Solo) will appear. Will be removed after the event is over. -->
<set name="icon" val="icon.etc_gourd_i00" />
<set name="default_action" val="SKILL_MAINTAIN" />
<set name="default_action" val="SKILL_REDUCE" />
<set name="material" val="PAPER" />
<set name="is_stackable" val="true" />
<set name="is_oly_restricted" val="true" />
<set name="handler" val="ItemSkills" />
<set name="commissionItemType" val="OTHER_ITEM" />
<skills>
<skill id="17111" level="1" /> <!-- Squash Seed -->
</skills>
</item>
<item id="38924" name="Large Squash Seed" type="EtcItem">
<!-- Double-click and a High Quality Large or Defective Large Squash (Solo) will appear. Will be removed after the event is over. -->
<set name="icon" val="icon.etc_gourd_i01" />
<set name="default_action" val="SKILL_MAINTAIN" />
<set name="default_action" val="SKILL_REDUCE" />
<set name="material" val="PAPER" />
<set name="is_stackable" val="true" />
<set name="is_oly_restricted" val="true" />
<set name="handler" val="ItemSkills" />
<set name="commissionItemType" val="OTHER_ITEM" />
<skills>
<skill id="17112" level="1" /> <!-- Large Squash Seed -->
</skills>
</item>
</list>

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="12774" level="1" type="L2Npc" name="Young Squash">
<npc id="12774" level="1" type="L2Monster" name="Young Squash">
<race>ETC</race>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
@ -102,7 +102,7 @@
<height normal="16" />
</collision>
</npc>
<npc id="12777" level="1" type="L2Npc" name="Large Young Squash">
<npc id="12777" level="1" type="L2Monster" name="Large Young Squash">
<race>ETC</race>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">

View File

@ -1,25 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/npcs.xsd">
<npc id="13399" level="1" type="L2Npc" name="Snowy Young Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<npc id="13399" level="1" type="L2Monster" name="Snowy Young Squash">
<race>ETC</race>
<sex>FEMALE</sex>
<stats str="88" int="79" dex="55" wit="78" con="82" men="78">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="6.1428012082644" critical="1" attackSpeed="253" range="40" />
<defence physical="40" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="true" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="10" />
<height normal="10.5" />

View File

@ -1,175 +1,238 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/npcs.xsd">
<npc id="13400" level="1" type="L2Monster" name="Snowy Ripe Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<race>ETC</race>
<sex>FEMALE</sex>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="23" />
<height normal="25" />
</collision>
</npc>
<npc id="13401" level="1" type="L2Monster" name="Snowy Rotten Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<race>ETC</race>
<sex>FEMALE</sex>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="15" />
<height normal="16" />
</collision>
</npc>
<npc id="13402" level="1" type="L2Monster" name="Snowy Royal Ripe Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<race>ETC</race>
<sex>FEMALE</sex>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="true" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
</skill_list>
<collision>
<radius normal="34" />
<height normal="30" />
</collision>
</npc>
<npc id="13403" level="1" type="L2Npc" name="Snowy Large Young Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<race>ETC</race>
<sex>FEMALE</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="6.1428012082644" critical="1" attackSpeed="253" range="40" />
<defence physical="40" magical="24.202420242024" />
</stats>
<status attackable="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="23" />
<height normal="25" />
</collision>
</npc>
<npc id="13404" level="1" type="L2Monster" name="Snowy Large Ripe Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<npc id="13403" level="1" type="L2Monster" name="Snowy Large Young Squash">
<race>ETC</race>
<sex>FEMALE</sex>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="34" />
<height normal="30" />
<height normal="40" />
</collision>
</npc>
<npc id="13405" level="1" type="L2Monster" name="Snowy Large Rotten Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<npc id="13404" level="1" type="L2Monster" name="Snowy Large Ripe Squash">
<race>ETC</race>
<sex>FEMALE</sex>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="28" />
<height normal="31" />
</collision>
</npc>
<npc id="13406" level="1" type="L2Monster" name="Snowy Royal Large Ripe Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<npc id="13405" level="80" type="L2Monster" name="Snowy Large Rotten Squash">
<race>ETC</race>
<sex>FEMALE</sex>
<sex>MALE</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="80.58" mp="40" mpRegen="3.09" />
<attack physical="1578.5" magical="1211.7" random="50" critical="1" accuracy="9" attackSpeed="278" type="FIST" range="40" distance="80" width="120" />
<defence physical="373.8" magical="303.1" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="23" />
<height normal="25" />
</collision>
</npc>
<npc id="13406" level="81" type="L2Monster" name="Snowy Royal Large Ripe Squash">
<race>ETC</race>
<sex>MALE</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="80.58" mp="40" mpRegen="3.09" />
<attack physical="1578.5" magical="1211.7" random="50" critical="1" accuracy="9" attackSpeed="278" type="FIST" range="40" distance="80" width="120" />
<defence physical="373.8" magical="303.1" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<abnormalResist physical="10" magical="10" />
</stats>
<status undying="false" />
<skill_list>
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="34" />
<height normal="40" />

View File

@ -114,9 +114,13 @@
<condition name="OpTargetNpc">
<npcIds>
<item>12774</item>
<item>12775</item>
<item>12776</item>
<item>12777</item>
<item>13271</item>
<item>13275</item>
<item>12778</item>
<item>12779</item>
<item>13016</item>
<item>13017</item>
</npcIds>
</condition>
</conditions>

View File

@ -44,7 +44,13 @@
<condition name="OpTargetNpc">
<npcIds>
<item>13399</item>
<item>13400</item>
<item>13401</item>
<item>13402</item>
<item>13403</item>
<item>13404</item>
<item>13405</item>
<item>13406</item>
</npcIds>
</condition>
</conditions>
@ -56,7 +62,7 @@
<reuseDelay>10000</reuseDelay>
<isMagic>2</isMagic> <!-- Static Skill -->
<itemConsumeCount>1</itemConsumeCount>
<itemConsumeId>37552</itemConsumeId> <!-- Snowy Squash Seed -->
<itemConsumeId>38923</itemConsumeId> <!-- Snowy Squash Seed -->
<magicLvl>1</magicLvl>
<rideState>NONE;STRIDER;WYVERN;WOLF</rideState>
<magicCriticalRate>5</magicCriticalRate>
@ -81,7 +87,7 @@
<reuseDelay>10000</reuseDelay>
<isMagic>2</isMagic> <!-- Static Skill -->
<itemConsumeCount>1</itemConsumeCount>
<itemConsumeId>37553</itemConsumeId> <!-- Snowy Large Squash Seed -->
<itemConsumeId>38924</itemConsumeId> <!-- Snowy Large Squash Seed -->
<magicLvl>1</magicLvl>
<rideState>NONE;STRIDER;WYVERN;WOLF</rideState>
<magicCriticalRate>5</magicCriticalRate>

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>33888</npc> <!-- Santa -->
</npcs>
<item>
<ingredient id="37543" count="10" /> <!-- Snowy Squash Nectar -->
<production id="38923" count="1" /> <!-- Squash Seed -->
</item>
<item>
<ingredient id="37543" count="20" /> <!-- Snowy Squash Nectar -->
<production id="38924" count="1" /> <!-- Large Squash Seed -->
</item>
</list>

View File

@ -0,0 +1,26 @@
<?xml version='1.0' encoding='utf-8'?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>33888</npc> <!-- Santa -->
</npcs>
<item>
<ingredient id="37543" count="100" /> <!-- Snowy Squash Nectar -->
<production id="4202" count="1" /> <!-- Chrono Cithara -->
</item>
<item>
<ingredient id="37543" count="150" /> <!-- Snowy Squash Nectar -->
<production id="5133" count="1" /> <!-- Chrono Unitus-->
</item>
<item>
<ingredient id="37543" count="200" /> <!-- Snowy Squash Nectar -->
<production id="5817" count="1" /> <!-- Chrono Campana -->
</item>
<item>
<ingredient id="37543" count="250" /> <!-- Snowy Squash Nectar -->
<production id="7058" count="1" /> <!-- Chrono Darubka -->
</item>
<item>
<ingredient id="37543" count="300" /> <!-- Snowy Squash Nectar -->
<production id="8350" count="1" /> <!-- Chrono Marakas -->
</item>
</list>

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>31860</npc> <!-- Buzz the Cat -->
</npcs>
<item>
<ingredient id="6391" count="10" /> <!-- Nectar -->
<production id="6389" count="1" /> <!-- Squash Seed -->
</item>
<item>
<ingredient id="6391" count="20" /> <!-- Nectar -->
<production id="6390" count="1" /> <!--Large Squash Seed -->
</item>
</list>

View File

@ -0,0 +1,26 @@
<?xml version='1.0' encoding='utf-8'?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>31860</npc> <!-- Buzz the Cat -->
</npcs>
<item>
<ingredient id="6391" count="100" /> <!-- Nectar -->
<production id="4202" count="1" /> <!-- Chrono Cithara -->
</item>
<item>
<ingredient id="6391" count="150" /> <!-- Nectar -->
<production id="5133" count="1" /> <!-- Chrono Unitus-->
</item>
<item>
<ingredient id="6391" count="200" /> <!-- Nectar -->
<production id="5817" count="1" /> <!-- Chrono Campana -->
</item>
<item>
<ingredient id="6391" count="250" /> <!-- Nectar -->
<production id="7058" count="1" /> <!-- Chrono Darubka -->
</item>
<item>
<ingredient id="6391" count="300" /> <!-- Nectar -->
<production id="8350" count="1" /> <!-- Chrono Marakas -->
</item>
</list>

View File

@ -1,14 +0,0 @@
<html><head><body>Buzz the Cat:<br>
Squash grow up by taking in nectar. After planting a seed, drip nectar on it and it will grow quickly! <br1>
After taking enough nectar, the squash will evolve. If you hit it with a weapon, the squash will crack open!<br1>
Be careful, there are several things you should look out for.<br1>
<font color="LEVEL">First of all, if you hit it before it's fully grown,</font> it will wilt from lack of nutrition. <br1>
Also, since <font color="LEVEL">a squash tends to flee</font>, you should try to crack it open before it gets out of hand!
Young squash that are not fully grown will run off in <font color="LEVEL">3 minutes</font> and fully grown squash will run away in <font color="LEVEL">a minute and 30 seconds</font>! <br1>
<font color="LEVEL">Also, a large squash can't be opened with a regular weapon! </font> I heard that there are <font color="LEVEL">chrono weapons</font> that produce musical sounds when you hit it against something.
You will only be able to hit large squash with weapons of this type. <br1>
<font color="LEVEL">One last thing! Since it's not easy to open a large squash by yourself,</font> you should find a friend who can help you open it.<br1>
Do you understand everything I've told you?<br1>
Posible rewards you can get: <font color="LEVEL">Adena, Fireworks, Large Fireworks, Life Stones, Gems A and S grades, Crystals A and S grades, Giant Codex, Lunargent and Hellfire Oil, Blessed Scroll of Escape, Quick Healing Potions, Large Lucky Cubs, Ancient Enchant Scrolls A-grade, Vitality Ginseng or powerful herbs.</font><br><br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Back</Button>
</body></html>

View File

@ -1,10 +1,8 @@
<html>
<body>Buzz the Cat:<br>
Nice to meet you! I'm Buzz the Cat, faithful employee to Gardener Fordson of Floran. My boss is one of the greatest agricultural geniuses in all of Aden. After such a successful summer, Gardener Fordson has reinvested in a new lot of improved magical squash seeds. He has decided to grow them for the Fall season. Fortunately for you, we still have more seeds than we know what to do with. We would love more nectar to develop full grown squashes to meet our increased customer demands.<br>
Would you like to help me out? <br> I will trade you seeds for nectar. You can get nectar by killing any monsters near your level all throughout the world.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3388800">Exchange nectar for squash seed.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3388801">Exchange nectar for a chrono weapon.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">Tell me more about event.</Button><br><br>
Plant the seed by double-clicking on it! Raise it well and claim your prizes! Good luck! <br>
</body>
</html>
<html><body>Santa Claus:<br>
Nice to meet you! I'm Santa Claus! Every year I come to give presents to all the good people of Elmoreaden. But this year some goblins stole all my presents and put them in enchanted squash seeds!<br>
Would you like to help me out? Use seeds with nectar to raise squashes and attack them with chrono weapons!<br>
I will trade you seeds for nectar. You can get nectar by killing any monsters all throughout the world.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3388801">Exchange nectar for squash seed.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3388802">Exchange nectar for a chrono weapon.</Button>
Plant the seed by double-clicking on it! Raise it well and claim your presents! Good luck!
</body></html>

View File

@ -20,11 +20,13 @@ import java.util.Arrays;
import java.util.List;
import com.l2jmobius.commons.util.Rnd;
import com.l2jmobius.gameserver.datatables.ItemTable;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.model.L2Object;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2MonsterInstance;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.items.type.CrystalType;
import com.l2jmobius.gameserver.model.quest.LongTimeEvent;
import com.l2jmobius.gameserver.model.skills.Skill;
import com.l2jmobius.gameserver.network.serverpackets.CreatureSay;
@ -39,7 +41,7 @@ public class MerrySquashmas extends LongTimeEvent
private static final int SNOWY_NECTAR_SKILL = 17110;
private static final List<Integer> SQUASH_LIST = Arrays.asList(13399, 13400, 13401, 13402, 13403, 13404, 13405, 13406);
private static final List<Integer> LARGE_SQUASH_LIST = Arrays.asList(13400, 13401, 13404, 13405);
private static final List<Integer> LARGE_SQUASH_LIST = Arrays.asList(13403, 13404, 13405, 13406);
private static final List<Integer> CHRONO_LIST = Arrays.asList(4202, 5133, 5817, 7058, 8350);
//@formatter:off
@ -573,27 +575,27 @@ public class MerrySquashmas extends LongTimeEvent
private static final void dropItem(L2Npc mob, L2PcInstance player)
{
final int npcId = mob.getId();
final int chance = Rnd.get(100);
for (int[] drop : DROPLIST)
{
if (npcId == drop[0])
{
if (chance < drop[2])
if (getRandomBoolean())
{
if (drop[1] > 6000)
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
}
else
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
}
continue;
}
}
if (npcId < drop[0])
{
return;
if (Rnd.get(100) < drop[2])
{
if (ItemTable.getInstance().getTemplate(drop[1]).getCrystalType() != CrystalType.NONE)
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
break;
}
((L2MonsterInstance) mob).dropItem(player, drop[1], (getRandom(1, 3)));
if (getRandomBoolean())
{
break;
}
}
}
}
}

View File

@ -1,14 +0,0 @@
<html><head><body>Buzz the Cat:<br>
Squash grow up by taking in nectar. After planting a seed, drip nectar on it and it will grow quickly! <br1>
After taking enough nectar, the squash will evolve. If you hit it with a weapon, the squash will crack open!<br1>
Be careful, there are several things you should look out for.<br1>
<font color="LEVEL">First of all, if you hit it before it's fully grown,</font> it will wilt from lack of nutrition. <br1>
Also, since <font color="LEVEL">a squash tends to flee</font>, you should try to crack it open before it gets out of hand!
Young squash that are not fully grown will run off in <font color="LEVEL">3 minutes</font> and fully grown squash will run away in <font color="LEVEL">a minute and 30 seconds</font>! <br1>
<font color="LEVEL">Also, a large squash can't be opened with a regular weapon! </font> I heard that there are <font color="LEVEL">chrono weapons</font> that produce musical sounds when you hit it against something.
You will only be able to hit large squash with weapons of this type. <br1>
<font color="LEVEL">One last thing! Since it's not easy to open a large squash by yourself,</font> you should find a friend who can help you open it.<br1>
Do you understand everything I've told you?<br1>
Posible rewards you can get: <font color="LEVEL">Adena, Fireworks, Large Fireworks, Life Stones, Gems A and S grades, Crystals A and S grades, Giant Codex, Lunargent and Hellfire Oil, Blessed Scroll of Escape, Quick Healing Potions, Large Lucky Cubs, Ancient Enchant Scrolls A-grade, Vitality Ginseng or powerful herbs.</font><br><br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Back</Button>
</body></html>

View File

@ -1,10 +1,7 @@
<html>
<body>Buzz the Cat:<br>
<html><body>Buzz the Cat:<br>
Nice to meet you! I'm Buzz the Cat, faithful employee to Gardener Fordson of Floran. My boss is one of the greatest agricultural geniuses in all of Aden. After such a successful summer, Gardener Fordson has reinvested in a new lot of improved magical squash seeds. He has decided to grow them for the Fall season. Fortunately for you, we still have more seeds than we know what to do with. We would love more nectar to develop full grown squashes to meet our increased customer demands.<br>
Would you like to help me out? <br> I will trade you seeds for nectar. You can get nectar by killing any monsters near your level all throughout the world.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 90318600">Exchange nectar for squash seed.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 90318601">Exchange nectar for a chrono weapon.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">Tell me more about event.</Button><br><br>
Plant the seed by double-clicking on it! Raise it well and claim your prizes! Good luck! <br>
</body>
</html>
Plant the seed by double-clicking on it! Raise it well and claim your prizes! Good luck!<br>
</body></html>

View File

@ -20,11 +20,13 @@ import java.util.Arrays;
import java.util.List;
import com.l2jmobius.commons.util.Rnd;
import com.l2jmobius.gameserver.datatables.ItemTable;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.model.L2Object;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2MonsterInstance;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.items.type.CrystalType;
import com.l2jmobius.gameserver.model.quest.LongTimeEvent;
import com.l2jmobius.gameserver.model.skills.Skill;
import com.l2jmobius.gameserver.network.serverpackets.CreatureSay;
@ -37,8 +39,8 @@ public class SquashEvent extends LongTimeEvent
private static final int MANAGER = 31860;
private static final int NECTAR_SKILL = 2005;
private static final List<Integer> SQUASH_LIST = Arrays.asList(12774, 12776, 12775, 12777, 12778, 12779, 13016, 13017);
private static final List<Integer> LARGE_SQUASH_LIST = Arrays.asList(12777, 12778, 12779, 13017);
private static final List<Integer> SQUASH_LIST = Arrays.asList(12774, 12775, 12776, 12777, 12778, 12779, 13016, 13017);
private static final List<Integer> LARGE_SQUASH_LIST = Arrays.asList(12778, 12779, 13016, 13017);
private static final List<Integer> CHRONO_LIST = Arrays.asList(4202, 5133, 5817, 7058, 8350);
//@formatter:off
@ -572,27 +574,27 @@ public class SquashEvent extends LongTimeEvent
private static final void dropItem(L2Npc mob, L2PcInstance player)
{
final int npcId = mob.getId();
final int chance = Rnd.get(100);
for (int[] drop : DROPLIST)
{
if (npcId == drop[0])
{
if (chance < drop[2])
if (getRandomBoolean())
{
if (drop[1] > 6000)
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
}
else
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
}
continue;
}
}
if (npcId < drop[0])
{
return;
if (Rnd.get(100) < drop[2])
{
if (ItemTable.getInstance().getTemplate(drop[1]).getCrystalType() != CrystalType.NONE)
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
break;
}
((L2MonsterInstance) mob).dropItem(player, drop[1], (getRandom(1, 3)));
if (getRandomBoolean())
{
break;
}
}
}
}
}

View File

@ -3,15 +3,27 @@
<item id="38923" name="Squash Seed" type="EtcItem">
<!-- Double-click and a Young or Defective Squash (Solo) will appear. Will be removed after the event is over. -->
<set name="icon" val="icon.etc_gourd_i00" />
<set name="default_action" val="SKILL_MAINTAIN" />
<set name="default_action" val="SKILL_REDUCE" />
<set name="material" val="PAPER" />
<set name="is_stackable" val="true" />
<set name="is_oly_restricted" val="true" />
<set name="handler" val="ItemSkills" />
<set name="commissionItemType" val="OTHER_ITEM" />
<skills>
<skill id="17111" level="1" /> <!-- Squash Seed -->
</skills>
</item>
<item id="38924" name="Large Squash Seed" type="EtcItem">
<!-- Double-click and a High Quality Large or Defective Large Squash (Solo) will appear. Will be removed after the event is over. -->
<set name="icon" val="icon.etc_gourd_i01" />
<set name="default_action" val="SKILL_MAINTAIN" />
<set name="default_action" val="SKILL_REDUCE" />
<set name="material" val="PAPER" />
<set name="is_stackable" val="true" />
<set name="is_oly_restricted" val="true" />
<set name="handler" val="ItemSkills" />
<set name="commissionItemType" val="OTHER_ITEM" />
<skills>
<skill id="17112" level="1" /> <!-- Large Squash Seed -->
</skills>
</item>
</list>

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="12774" level="1" type="L2Npc" name="Young Squash">
<npc id="12774" level="1" type="L2Monster" name="Young Squash">
<race>ETC</race>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
@ -102,7 +102,7 @@
<height normal="16" />
</collision>
</npc>
<npc id="12777" level="1" type="L2Npc" name="Large Young Squash">
<npc id="12777" level="1" type="L2Monster" name="Large Young Squash">
<race>ETC</race>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">

View File

@ -1,25 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/npcs.xsd">
<npc id="13399" level="1" type="L2Npc" name="Snowy Young Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<npc id="13399" level="1" type="L2Monster" name="Snowy Young Squash">
<race>ETC</race>
<sex>FEMALE</sex>
<stats str="88" int="79" dex="55" wit="78" con="82" men="78">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="6.1428012082644" critical="1" attackSpeed="253" range="40" />
<defence physical="40" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="true" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="10" />
<height normal="10.5" />

View File

@ -1,175 +1,238 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/npcs.xsd">
<npc id="13400" level="1" type="L2Monster" name="Snowy Ripe Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<race>ETC</race>
<sex>FEMALE</sex>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="23" />
<height normal="25" />
</collision>
</npc>
<npc id="13401" level="1" type="L2Monster" name="Snowy Rotten Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<race>ETC</race>
<sex>FEMALE</sex>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="15" />
<height normal="16" />
</collision>
</npc>
<npc id="13402" level="1" type="L2Monster" name="Snowy Royal Ripe Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<race>ETC</race>
<sex>FEMALE</sex>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="true" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
</skill_list>
<collision>
<radius normal="34" />
<height normal="30" />
</collision>
</npc>
<npc id="13403" level="1" type="L2Npc" name="Snowy Large Young Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<race>ETC</race>
<sex>FEMALE</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="6.1428012082644" critical="1" attackSpeed="253" range="40" />
<defence physical="40" magical="24.202420242024" />
</stats>
<status attackable="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="23" />
<height normal="25" />
</collision>
</npc>
<npc id="13404" level="1" type="L2Monster" name="Snowy Large Ripe Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<npc id="13403" level="1" type="L2Monster" name="Snowy Large Young Squash">
<race>ETC</race>
<sex>FEMALE</sex>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="34" />
<height normal="30" />
<height normal="40" />
</collision>
</npc>
<npc id="13405" level="1" type="L2Monster" name="Snowy Large Rotten Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<npc id="13404" level="1" type="L2Monster" name="Snowy Large Ripe Squash">
<race>ETC</race>
<sex>FEMALE</sex>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="28" />
<height normal="31" />
</collision>
</npc>
<npc id="13406" level="1" type="L2Monster" name="Snowy Royal Large Ripe Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<npc id="13405" level="80" type="L2Monster" name="Snowy Large Rotten Squash">
<race>ETC</race>
<sex>FEMALE</sex>
<sex>MALE</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="80.58" mp="40" mpRegen="3.09" />
<attack physical="1578.5" magical="1211.7" random="50" critical="1" accuracy="9" attackSpeed="278" type="FIST" range="40" distance="80" width="120" />
<defence physical="373.8" magical="303.1" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="23" />
<height normal="25" />
</collision>
</npc>
<npc id="13406" level="81" type="L2Monster" name="Snowy Royal Large Ripe Squash">
<race>ETC</race>
<sex>MALE</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="80.58" mp="40" mpRegen="3.09" />
<attack physical="1578.5" magical="1211.7" random="50" critical="1" accuracy="9" attackSpeed="278" type="FIST" range="40" distance="80" width="120" />
<defence physical="373.8" magical="303.1" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<abnormalResist physical="10" magical="10" />
</stats>
<status undying="false" />
<skill_list>
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="34" />
<height normal="40" />

View File

@ -114,9 +114,13 @@
<condition name="OpTargetNpc">
<npcIds>
<item>12774</item>
<item>12775</item>
<item>12776</item>
<item>12777</item>
<item>13271</item>
<item>13275</item>
<item>12778</item>
<item>12779</item>
<item>13016</item>
<item>13017</item>
</npcIds>
</condition>
</conditions>

View File

@ -44,7 +44,13 @@
<condition name="OpTargetNpc">
<npcIds>
<item>13399</item>
<item>13400</item>
<item>13401</item>
<item>13402</item>
<item>13403</item>
<item>13404</item>
<item>13405</item>
<item>13406</item>
</npcIds>
</condition>
</conditions>
@ -56,7 +62,7 @@
<reuseDelay>10000</reuseDelay>
<isMagic>2</isMagic> <!-- Static Skill -->
<itemConsumeCount>1</itemConsumeCount>
<itemConsumeId>37552</itemConsumeId> <!-- Snowy Squash Seed -->
<itemConsumeId>38923</itemConsumeId> <!-- Snowy Squash Seed -->
<magicLvl>1</magicLvl>
<rideState>NONE;STRIDER;WYVERN;WOLF</rideState>
<magicCriticalRate>5</magicCriticalRate>
@ -81,7 +87,7 @@
<reuseDelay>10000</reuseDelay>
<isMagic>2</isMagic> <!-- Static Skill -->
<itemConsumeCount>1</itemConsumeCount>
<itemConsumeId>37553</itemConsumeId> <!-- Snowy Large Squash Seed -->
<itemConsumeId>38924</itemConsumeId> <!-- Snowy Large Squash Seed -->
<magicLvl>1</magicLvl>
<rideState>NONE;STRIDER;WYVERN;WOLF</rideState>
<magicCriticalRate>5</magicCriticalRate>

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>33888</npc> <!-- Santa -->
</npcs>
<item>
<ingredient id="37543" count="10" /> <!-- Snowy Squash Nectar -->
<production id="38923" count="1" /> <!-- Squash Seed -->
</item>
<item>
<ingredient id="37543" count="20" /> <!-- Snowy Squash Nectar -->
<production id="38924" count="1" /> <!-- Large Squash Seed -->
</item>
</list>

View File

@ -0,0 +1,26 @@
<?xml version='1.0' encoding='utf-8'?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>33888</npc> <!-- Santa -->
</npcs>
<item>
<ingredient id="37543" count="100" /> <!-- Snowy Squash Nectar -->
<production id="4202" count="1" /> <!-- Chrono Cithara -->
</item>
<item>
<ingredient id="37543" count="150" /> <!-- Snowy Squash Nectar -->
<production id="5133" count="1" /> <!-- Chrono Unitus-->
</item>
<item>
<ingredient id="37543" count="200" /> <!-- Snowy Squash Nectar -->
<production id="5817" count="1" /> <!-- Chrono Campana -->
</item>
<item>
<ingredient id="37543" count="250" /> <!-- Snowy Squash Nectar -->
<production id="7058" count="1" /> <!-- Chrono Darubka -->
</item>
<item>
<ingredient id="37543" count="300" /> <!-- Snowy Squash Nectar -->
<production id="8350" count="1" /> <!-- Chrono Marakas -->
</item>
</list>

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>31860</npc> <!-- Buzz the Cat -->
</npcs>
<item>
<ingredient id="6391" count="10" /> <!-- Nectar -->
<production id="6389" count="1" /> <!-- Squash Seed -->
</item>
<item>
<ingredient id="6391" count="20" /> <!-- Nectar -->
<production id="6390" count="1" /> <!--Large Squash Seed -->
</item>
</list>

View File

@ -0,0 +1,26 @@
<?xml version='1.0' encoding='utf-8'?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>31860</npc> <!-- Buzz the Cat -->
</npcs>
<item>
<ingredient id="6391" count="100" /> <!-- Nectar -->
<production id="4202" count="1" /> <!-- Chrono Cithara -->
</item>
<item>
<ingredient id="6391" count="150" /> <!-- Nectar -->
<production id="5133" count="1" /> <!-- Chrono Unitus-->
</item>
<item>
<ingredient id="6391" count="200" /> <!-- Nectar -->
<production id="5817" count="1" /> <!-- Chrono Campana -->
</item>
<item>
<ingredient id="6391" count="250" /> <!-- Nectar -->
<production id="7058" count="1" /> <!-- Chrono Darubka -->
</item>
<item>
<ingredient id="6391" count="300" /> <!-- Nectar -->
<production id="8350" count="1" /> <!-- Chrono Marakas -->
</item>
</list>

View File

@ -1,14 +0,0 @@
<html><head><body>Buzz the Cat:<br>
Squash grow up by taking in nectar. After planting a seed, drip nectar on it and it will grow quickly! <br1>
After taking enough nectar, the squash will evolve. If you hit it with a weapon, the squash will crack open!<br1>
Be careful, there are several things you should look out for.<br1>
<font color="LEVEL">First of all, if you hit it before it's fully grown,</font> it will wilt from lack of nutrition. <br1>
Also, since <font color="LEVEL">a squash tends to flee</font>, you should try to crack it open before it gets out of hand!
Young squash that are not fully grown will run off in <font color="LEVEL">3 minutes</font> and fully grown squash will run away in <font color="LEVEL">a minute and 30 seconds</font>! <br1>
<font color="LEVEL">Also, a large squash can't be opened with a regular weapon! </font> I heard that there are <font color="LEVEL">chrono weapons</font> that produce musical sounds when you hit it against something.
You will only be able to hit large squash with weapons of this type. <br1>
<font color="LEVEL">One last thing! Since it's not easy to open a large squash by yourself,</font> you should find a friend who can help you open it.<br1>
Do you understand everything I've told you?<br1>
Posible rewards you can get: <font color="LEVEL">Adena, Fireworks, Large Fireworks, Life Stones, Gems A and S grades, Crystals A and S grades, Giant Codex, Lunargent and Hellfire Oil, Blessed Scroll of Escape, Quick Healing Potions, Large Lucky Cubs, Ancient Enchant Scrolls A-grade, Vitality Ginseng or powerful herbs.</font><br><br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Back</Button>
</body></html>

View File

@ -1,10 +1,8 @@
<html>
<body>Buzz the Cat:<br>
Nice to meet you! I'm Buzz the Cat, faithful employee to Gardener Fordson of Floran. My boss is one of the greatest agricultural geniuses in all of Aden. After such a successful summer, Gardener Fordson has reinvested in a new lot of improved magical squash seeds. He has decided to grow them for the Fall season. Fortunately for you, we still have more seeds than we know what to do with. We would love more nectar to develop full grown squashes to meet our increased customer demands.<br>
Would you like to help me out? <br> I will trade you seeds for nectar. You can get nectar by killing any monsters near your level all throughout the world.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3388800">Exchange nectar for squash seed.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3388801">Exchange nectar for a chrono weapon.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">Tell me more about event.</Button><br><br>
Plant the seed by double-clicking on it! Raise it well and claim your prizes! Good luck! <br>
</body>
</html>
<html><body>Santa Claus:<br>
Nice to meet you! I'm Santa Claus! Every year I come to give presents to all the good people of Elmoreaden. But this year some goblins stole all my presents and put them in enchanted squash seeds!<br>
Would you like to help me out? Use seeds with nectar to raise squashes and attack them with chrono weapons!<br>
I will trade you seeds for nectar. You can get nectar by killing any monsters all throughout the world.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3388801">Exchange nectar for squash seed.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3388802">Exchange nectar for a chrono weapon.</Button>
Plant the seed by double-clicking on it! Raise it well and claim your presents! Good luck!
</body></html>

View File

@ -20,11 +20,13 @@ import java.util.Arrays;
import java.util.List;
import com.l2jmobius.commons.util.Rnd;
import com.l2jmobius.gameserver.datatables.ItemTable;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.model.L2Object;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2MonsterInstance;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.items.type.CrystalType;
import com.l2jmobius.gameserver.model.quest.LongTimeEvent;
import com.l2jmobius.gameserver.model.skills.Skill;
import com.l2jmobius.gameserver.network.serverpackets.CreatureSay;
@ -39,7 +41,7 @@ public class MerrySquashmas extends LongTimeEvent
private static final int SNOWY_NECTAR_SKILL = 17110;
private static final List<Integer> SQUASH_LIST = Arrays.asList(13399, 13400, 13401, 13402, 13403, 13404, 13405, 13406);
private static final List<Integer> LARGE_SQUASH_LIST = Arrays.asList(13400, 13401, 13404, 13405);
private static final List<Integer> LARGE_SQUASH_LIST = Arrays.asList(13403, 13404, 13405, 13406);
private static final List<Integer> CHRONO_LIST = Arrays.asList(4202, 5133, 5817, 7058, 8350);
//@formatter:off
@ -573,27 +575,27 @@ public class MerrySquashmas extends LongTimeEvent
private static final void dropItem(L2Npc mob, L2PcInstance player)
{
final int npcId = mob.getId();
final int chance = Rnd.get(100);
for (int[] drop : DROPLIST)
{
if (npcId == drop[0])
{
if (chance < drop[2])
if (getRandomBoolean())
{
if (drop[1] > 6000)
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
}
else
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
}
continue;
}
}
if (npcId < drop[0])
{
return;
if (Rnd.get(100) < drop[2])
{
if (ItemTable.getInstance().getTemplate(drop[1]).getCrystalType() != CrystalType.NONE)
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
break;
}
((L2MonsterInstance) mob).dropItem(player, drop[1], (getRandom(1, 3)));
if (getRandomBoolean())
{
break;
}
}
}
}
}

View File

@ -1,14 +0,0 @@
<html><head><body>Buzz the Cat:<br>
Squash grow up by taking in nectar. After planting a seed, drip nectar on it and it will grow quickly! <br1>
After taking enough nectar, the squash will evolve. If you hit it with a weapon, the squash will crack open!<br1>
Be careful, there are several things you should look out for.<br1>
<font color="LEVEL">First of all, if you hit it before it's fully grown,</font> it will wilt from lack of nutrition. <br1>
Also, since <font color="LEVEL">a squash tends to flee</font>, you should try to crack it open before it gets out of hand!
Young squash that are not fully grown will run off in <font color="LEVEL">3 minutes</font> and fully grown squash will run away in <font color="LEVEL">a minute and 30 seconds</font>! <br1>
<font color="LEVEL">Also, a large squash can't be opened with a regular weapon! </font> I heard that there are <font color="LEVEL">chrono weapons</font> that produce musical sounds when you hit it against something.
You will only be able to hit large squash with weapons of this type. <br1>
<font color="LEVEL">One last thing! Since it's not easy to open a large squash by yourself,</font> you should find a friend who can help you open it.<br1>
Do you understand everything I've told you?<br1>
Posible rewards you can get: <font color="LEVEL">Adena, Fireworks, Large Fireworks, Life Stones, Gems A and S grades, Crystals A and S grades, Giant Codex, Lunargent and Hellfire Oil, Blessed Scroll of Escape, Quick Healing Potions, Large Lucky Cubs, Ancient Enchant Scrolls A-grade, Vitality Ginseng or powerful herbs.</font><br><br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Back</Button>
</body></html>

View File

@ -1,10 +1,7 @@
<html>
<body>Buzz the Cat:<br>
<html><body>Buzz the Cat:<br>
Nice to meet you! I'm Buzz the Cat, faithful employee to Gardener Fordson of Floran. My boss is one of the greatest agricultural geniuses in all of Aden. After such a successful summer, Gardener Fordson has reinvested in a new lot of improved magical squash seeds. He has decided to grow them for the Fall season. Fortunately for you, we still have more seeds than we know what to do with. We would love more nectar to develop full grown squashes to meet our increased customer demands.<br>
Would you like to help me out? <br> I will trade you seeds for nectar. You can get nectar by killing any monsters near your level all throughout the world.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 90318600">Exchange nectar for squash seed.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 90318601">Exchange nectar for a chrono weapon.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">Tell me more about event.</Button><br><br>
Plant the seed by double-clicking on it! Raise it well and claim your prizes! Good luck! <br>
</body>
</html>
Plant the seed by double-clicking on it! Raise it well and claim your prizes! Good luck!<br>
</body></html>

View File

@ -20,11 +20,13 @@ import java.util.Arrays;
import java.util.List;
import com.l2jmobius.commons.util.Rnd;
import com.l2jmobius.gameserver.datatables.ItemTable;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.model.L2Object;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2MonsterInstance;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.items.type.CrystalType;
import com.l2jmobius.gameserver.model.quest.LongTimeEvent;
import com.l2jmobius.gameserver.model.skills.Skill;
import com.l2jmobius.gameserver.network.serverpackets.CreatureSay;
@ -37,8 +39,8 @@ public class SquashEvent extends LongTimeEvent
private static final int MANAGER = 31860;
private static final int NECTAR_SKILL = 2005;
private static final List<Integer> SQUASH_LIST = Arrays.asList(12774, 12776, 12775, 12777, 12778, 12779, 13016, 13017);
private static final List<Integer> LARGE_SQUASH_LIST = Arrays.asList(12777, 12778, 12779, 13017);
private static final List<Integer> SQUASH_LIST = Arrays.asList(12774, 12775, 12776, 12777, 12778, 12779, 13016, 13017);
private static final List<Integer> LARGE_SQUASH_LIST = Arrays.asList(12778, 12779, 13016, 13017);
private static final List<Integer> CHRONO_LIST = Arrays.asList(4202, 5133, 5817, 7058, 8350);
//@formatter:off
@ -572,27 +574,27 @@ public class SquashEvent extends LongTimeEvent
private static final void dropItem(L2Npc mob, L2PcInstance player)
{
final int npcId = mob.getId();
final int chance = Rnd.get(100);
for (int[] drop : DROPLIST)
{
if (npcId == drop[0])
{
if (chance < drop[2])
if (getRandomBoolean())
{
if (drop[1] > 6000)
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
}
else
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
}
continue;
}
}
if (npcId < drop[0])
{
return;
if (Rnd.get(100) < drop[2])
{
if (ItemTable.getInstance().getTemplate(drop[1]).getCrystalType() != CrystalType.NONE)
{
((L2MonsterInstance) mob).dropItem(player, drop[1], 1);
break;
}
((L2MonsterInstance) mob).dropItem(player, drop[1], (getRandom(1, 3)));
if (getRandomBoolean())
{
break;
}
}
}
}
}

View File

@ -3,15 +3,27 @@
<item id="38923" name="Squash Seed" type="EtcItem">
<!-- Double-click and a Young or Defective Squash (Solo) will appear. Will be removed after the event is over. -->
<set name="icon" val="icon.etc_gourd_i00" />
<set name="default_action" val="SKILL_MAINTAIN" />
<set name="default_action" val="SKILL_REDUCE" />
<set name="material" val="PAPER" />
<set name="is_stackable" val="true" />
<set name="is_oly_restricted" val="true" />
<set name="handler" val="ItemSkills" />
<set name="commissionItemType" val="OTHER_ITEM" />
<skills>
<skill id="17111" level="1" /> <!-- Squash Seed -->
</skills>
</item>
<item id="38924" name="Large Squash Seed" type="EtcItem">
<!-- Double-click and a High Quality Large or Defective Large Squash (Solo) will appear. Will be removed after the event is over. -->
<set name="icon" val="icon.etc_gourd_i01" />
<set name="default_action" val="SKILL_MAINTAIN" />
<set name="default_action" val="SKILL_REDUCE" />
<set name="material" val="PAPER" />
<set name="is_stackable" val="true" />
<set name="is_oly_restricted" val="true" />
<set name="handler" val="ItemSkills" />
<set name="commissionItemType" val="OTHER_ITEM" />
<skills>
<skill id="17112" level="1" /> <!-- Large Squash Seed -->
</skills>
</item>
</list>

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="12774" level="1" type="L2Npc" name="Young Squash">
<npc id="12774" level="1" type="L2Monster" name="Young Squash">
<race>ETC</race>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
@ -102,7 +102,7 @@
<height normal="16" />
</collision>
</npc>
<npc id="12777" level="1" type="L2Npc" name="Large Young Squash">
<npc id="12777" level="1" type="L2Monster" name="Large Young Squash">
<race>ETC</race>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">

View File

@ -1,25 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/npcs.xsd">
<npc id="13399" level="1" type="L2Npc" name="Snowy Young Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<npc id="13399" level="1" type="L2Monster" name="Snowy Young Squash">
<race>ETC</race>
<sex>FEMALE</sex>
<stats str="88" int="79" dex="55" wit="78" con="82" men="78">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="6.1428012082644" critical="1" attackSpeed="253" range="40" />
<defence physical="40" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="true" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="10" />
<height normal="10.5" />

View File

@ -1,175 +1,238 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/npcs.xsd">
<npc id="13400" level="1" type="L2Monster" name="Snowy Ripe Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<race>ETC</race>
<sex>FEMALE</sex>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="23" />
<height normal="25" />
</collision>
</npc>
<npc id="13401" level="1" type="L2Monster" name="Snowy Rotten Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<race>ETC</race>
<sex>FEMALE</sex>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="15" />
<height normal="16" />
</collision>
</npc>
<npc id="13402" level="1" type="L2Monster" name="Snowy Royal Ripe Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<race>ETC</race>
<sex>FEMALE</sex>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="true" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
</skill_list>
<collision>
<radius normal="34" />
<height normal="30" />
</collision>
</npc>
<npc id="13403" level="1" type="L2Npc" name="Snowy Large Young Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<race>ETC</race>
<sex>FEMALE</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="6.1428012082644" critical="1" attackSpeed="253" range="40" />
<defence physical="40" magical="24.202420242024" />
</stats>
<status attackable="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="23" />
<height normal="25" />
</collision>
</npc>
<npc id="13404" level="1" type="L2Monster" name="Snowy Large Ripe Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<npc id="13403" level="1" type="L2Monster" name="Snowy Large Young Squash">
<race>ETC</race>
<sex>FEMALE</sex>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="34" />
<height normal="30" />
<height normal="40" />
</collision>
</npc>
<npc id="13405" level="1" type="L2Monster" name="Snowy Large Rotten Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<npc id="13404" level="1" type="L2Monster" name="Snowy Large Ripe Squash">
<race>ETC</race>
<sex>FEMALE</sex>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="0.9" mp="40" mpRegen="0" />
<attack physical="4" magical="5.79" random="30" critical="4" accuracy="4.75" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" />
<defence physical="45.88" magical="33.57" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="28" />
<height normal="31" />
</collision>
</npc>
<npc id="13406" level="1" type="L2Monster" name="Snowy Royal Large Ripe Squash">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<npc id="13405" level="80" type="L2Monster" name="Snowy Large Rotten Squash">
<race>ETC</race>
<sex>FEMALE</sex>
<sex>MALE</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="2" mp="40" mpRegen="0.9" />
<vitals hp="39" hpRegen="80.58" mp="40" mpRegen="3.09" />
<attack physical="1578.5" magical="1211.7" random="50" critical="1" accuracy="9" attackSpeed="278" type="FIST" range="40" distance="80" width="120" />
<defence physical="373.8" magical="303.1" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<attack physical="6.5892430607034" magical="4.6071009061983" critical="1" attackSpeed="253" range="40" />
<defence physical="38.888888888889" magical="24.202420242024" />
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<status undying="false" />
<skill_list>
<skill id="4441" level="5" /> <!-- Greater Mental Attack Resistance -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="23" />
<height normal="25" />
</collision>
</npc>
<npc id="13406" level="81" type="L2Monster" name="Snowy Royal Large Ripe Squash">
<race>ETC</race>
<sex>MALE</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
<vitals hp="39" hpRegen="80.58" mp="40" mpRegen="3.09" />
<attack physical="1578.5" magical="1211.7" random="50" critical="1" accuracy="9" attackSpeed="278" type="FIST" range="40" distance="80" width="120" />
<defence physical="373.8" magical="303.1" />
<speed>
<walk ground="50" />
<run ground="100" />
</speed>
<abnormalResist physical="10" magical="10" />
</stats>
<status undying="false" />
<skill_list>
<skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average P. Atk. -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="3" /> <!-- Light Armor Type -->
<skill id="4415" level="5" /> <!-- Blunt Weapons -->
<skill id="4416" level="19" /> <!-- Others -->
<skill id="4441" level="5" /> <!-- Greater Resist Mental Derangement -->
</skill_list>
<ex_crt_effect>true</ex_crt_effect>
<ai type="BALANCED" aggroRange="450" />
<collision>
<radius normal="34" />
<height normal="40" />

View File

@ -114,9 +114,13 @@
<condition name="OpTargetNpc">
<npcIds>
<item>12774</item>
<item>12775</item>
<item>12776</item>
<item>12777</item>
<item>13271</item>
<item>13275</item>
<item>12778</item>
<item>12779</item>
<item>13016</item>
<item>13017</item>
</npcIds>
</condition>
</conditions>

View File

@ -44,7 +44,13 @@
<condition name="OpTargetNpc">
<npcIds>
<item>13399</item>
<item>13400</item>
<item>13401</item>
<item>13402</item>
<item>13403</item>
<item>13404</item>
<item>13405</item>
<item>13406</item>
</npcIds>
</condition>
</conditions>
@ -56,7 +62,7 @@
<reuseDelay>10000</reuseDelay>
<isMagic>2</isMagic> <!-- Static Skill -->
<itemConsumeCount>1</itemConsumeCount>
<itemConsumeId>37552</itemConsumeId> <!-- Snowy Squash Seed -->
<itemConsumeId>38923</itemConsumeId> <!-- Snowy Squash Seed -->
<magicLvl>1</magicLvl>
<rideState>NONE;STRIDER;WYVERN;WOLF</rideState>
<magicCriticalRate>5</magicCriticalRate>
@ -81,7 +87,7 @@
<reuseDelay>10000</reuseDelay>
<isMagic>2</isMagic> <!-- Static Skill -->
<itemConsumeCount>1</itemConsumeCount>
<itemConsumeId>37553</itemConsumeId> <!-- Snowy Large Squash Seed -->
<itemConsumeId>38924</itemConsumeId> <!-- Snowy Large Squash Seed -->
<magicLvl>1</magicLvl>
<rideState>NONE;STRIDER;WYVERN;WOLF</rideState>
<magicCriticalRate>5</magicCriticalRate>