Letter Collector event.
Contributed by gigilo1968.
This commit is contained in:
		
							
								
								
									
										50
									
								
								trunk/dist/game/data/multisell/2042.xml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								trunk/dist/game/data/multisell/2042.xml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,50 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd"> | ||||
| 	<npcs> | ||||
| 		<npc>33873</npc> <!-- Angel Cat --> | ||||
| 	</npcs> | ||||
| 	<item> | ||||
| 		<ingredient id="3882" count="30" /> <!-- Letter - L -->  | ||||
| 		<production id="37007" count="1" chance="100" /> <!-- Letter Collector's Lucky Pouch -->  | ||||
| 	</item> | ||||
| 	<item> | ||||
| 		<ingredient id="3881" count="30" /> <!-- Letter - I -->  | ||||
| 		<production id="37007" count="1" chance="100" /> <!-- Letter Collector's Lucky Pouch -->  | ||||
| 	</item> | ||||
| 	<item> | ||||
| 		<ingredient id="3883" count="30" /> <!-- Letter - N -->  | ||||
| 		<production id="37007" count="1" chance="100" /> <!-- Letter Collector's Lucky Pouch --> | ||||
| 	</item> | ||||
| 	<item> | ||||
| 		<ingredient id="3877" count="30" /> <!-- Letter - E -->  | ||||
| 		<production id="37007" count="1" chance="100" /> <!-- Letter Collector's Lucky Pouch --> | ||||
| 	</item> | ||||
| 	<item> | ||||
| 		<ingredient id="3875" count="30" /> <!-- Letter - A -->  | ||||
| 		<production id="37007" count="1" chance="100" /> <!-- Letter Collector's Lucky Pouch -->  | ||||
| 	</item> | ||||
| 	<item> | ||||
| 		<ingredient id="3879" count="30" /> <!-- Letter - G -->  | ||||
| 		<production id="37007" count="1" chance="100" /> <!-- Letter Collector's Lucky Pouch --> | ||||
| 	</item> | ||||
| 	<item> | ||||
| 		<ingredient id="3876" count="30" /> <!-- Letter - C -->  | ||||
| 		<production id="37007" count="1" chance="100" /> <!-- Letter Collector's Lucky Pouch -->  | ||||
| 	</item> | ||||
| 	<item> | ||||
| 		<ingredient id="3878" count="30" /> <!-- Letter - F -->  | ||||
| 		<production id="37007" count="1" chance="100" /> <!-- Letter Collector's Lucky Pouch --> | ||||
| 	</item> | ||||
| 	<item> | ||||
| 		<ingredient id="3887" count="30" /> <!-- Letter - T -->  | ||||
| 		<production id="37007" count="1" chance="100" /> <!-- Letter Collector's Lucky Pouch --> | ||||
| 	</item> | ||||
| 	<item> | ||||
| 		<ingredient id="3884" count="30" /> <!-- Letter - O -->  | ||||
| 		<production id="37007" count="1" chance="100" /> <!-- Letter Collector's Lucky Pouch --> | ||||
| 	</item> | ||||
| 	<item> | ||||
| 		<ingredient id="3880" count="30" /> <!-- Letter - H -->  | ||||
| 		<production id="37007" count="1" chance="100" /> <!-- Letter Collector's Lucky Pouch --> | ||||
| 	</item> | ||||
| </list> | ||||
							
								
								
									
										1
									
								
								trunk/dist/game/data/scripts.cfg
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								trunk/dist/game/data/scripts.cfg
									
									
									
									
										vendored
									
									
								
							| @@ -289,6 +289,7 @@ conquerablehalls/RainbowSpringsChateau/RainbowSpringsChateau.java | ||||
| events/CharacterBirthday/CharacterBirthday.java | ||||
| events/EveTheFortuneTeller/EveTheFortuneTeller.java | ||||
| events/HuntForSanta/HuntForSanta.java | ||||
| events/LetterCollector/LetterCollector.java | ||||
| events/RedLibra/RedLibra.java | ||||
| events/ThePowerOfLove/ThePowerOfLove.java | ||||
|  | ||||
|   | ||||
							
								
								
									
										9
									
								
								trunk/dist/game/data/scripts/events/LetterCollector/33873-1.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								trunk/dist/game/data/scripts/events/LetterCollector/33873-1.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| <html><body>Angel Cat:<br> | ||||
| Traveler, are you interested in collecting letters?<br> | ||||
| Collect letters to create <font color="LEVEL">LINEAGE II</font>, <font color="LEVEL">TOGETHER</font>, or <font color="LEVEL">NCSOFT</font>, and bring them to me! I'll give you a gift!<br> | ||||
| <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest LetterCollector 33873-2.htm">"Tell me about the Letter Collecter Event."</Button>  | ||||
| <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest LetterCollector lineage">"I've collected 'LINEAGE II.'"</Button>  | ||||
| <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest LetterCollector together">"I've collected 'TOGETHER.'"</Button>  | ||||
| <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest LetterCollector ncsoft">"I've collected 'NCSOFT.'"</Button>  | ||||
| <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 2042">"I'd like a Letter Collector's Lucky Pouch."</Button> | ||||
| </body></html> | ||||
							
								
								
									
										12
									
								
								trunk/dist/game/data/scripts/events/LetterCollector/33873-2.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								trunk/dist/game/data/scripts/events/LetterCollector/33873-2.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| <html><body>Angel Cat:<br> | ||||
| <font color="LEVEL">So, here's the gist:</font><br> | ||||
| If you hunt monsters in the Lineage II world, you have a chance of obtaining letter-engraved items. If you collect these letters and bring them to me, I will give you a gift depending on the combination.<br>There are a total of 14 letters, and they are:<br> | ||||
| <font color="LEVEL">A</font>, <font color="LEVEL">C</font>, <font color="LEVEL">E</font>, <font color="LEVEL">F</font>, <font color="LEVEL">G</font>, <font color="LEVEL">I</font>, <font color="LEVEL">L</font>, <font color="LEVEL">N</font>, <font color="LEVEL">O</font>, <font color="LEVEL">S</font>, <font color="LEVEL">T</font>, <font color="LEVEL">II</font>, <font color="LEVEL">R</font>, and <font color="LEVEL">H</font>. | ||||
| <br> | ||||
| <br> | ||||
| <br> | ||||
| <br>Combine the letters and numbers to create <font color="LEVEL">LINEAGE II</font>, <font color="LEVEL">TOGETHER</font>, or <font color="LEVEL">NCSOFT</font>. | ||||
| <br> | ||||
| When you collect repeat letters, you can exchange them for <font color="LEVEL">Letter Collector's Lucky Pouch</font>. From the pouch, you can get <font color="LEVEL">Letter Collector's Pouch: RIIS</font>, from which you'll have a chance to get the letters R, II, or S.<br>  | ||||
| <Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest LetterCollector 33873-1.htm">Back</Button> | ||||
| </body></html> | ||||
							
								
								
									
										272
									
								
								trunk/dist/game/data/scripts/events/LetterCollector/LetterCollector.java
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										272
									
								
								trunk/dist/game/data/scripts/events/LetterCollector/LetterCollector.java
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,272 @@ | ||||
| /* | ||||
|  * This file is part of the L2J Mobius project. | ||||
|  *  | ||||
|  * This program is free software: you can redistribute it and/or modify | ||||
|  * it under the terms of the GNU General Public License as published by | ||||
|  * the Free Software Foundation, either version 3 of the License, or | ||||
|  * (at your option) any later version. | ||||
|  *  | ||||
|  * This program is distributed in the hope that it will be useful, | ||||
|  * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
|  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||||
|  * General Public License for more details. | ||||
|  *  | ||||
|  * You should have received a copy of the GNU General Public License | ||||
|  * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
|  */ | ||||
| package events.LetterCollector; | ||||
|  | ||||
| import com.l2jmobius.gameserver.model.actor.L2Npc; | ||||
| import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; | ||||
| import com.l2jmobius.gameserver.model.event.LongTimeEvent; | ||||
|  | ||||
| /** | ||||
|  * Event: Letter Collector | ||||
|  * @URL http://www.lineage2.com/en/news/events/letter-collector-event-05112016.php | ||||
|  * @author Gigi | ||||
|  */ | ||||
| final class LetterCollector extends LongTimeEvent | ||||
| { | ||||
| 	// NPC | ||||
| 	private static final int ANGEL_CAT = 33873; | ||||
| 	// Items | ||||
| 	private static final int A = 3875; | ||||
| 	private static final int C = 3876; | ||||
| 	private static final int E = 3877; | ||||
| 	private static final int F = 3878; | ||||
| 	private static final int G = 3879; | ||||
| 	private static final int H = 3880; | ||||
| 	private static final int I = 3881; | ||||
| 	private static final int L = 3882; | ||||
| 	private static final int N = 3883; | ||||
| 	private static final int O = 3884; | ||||
| 	private static final int R = 3885; | ||||
| 	private static final int S = 3886; | ||||
| 	private static final int T = 3887; | ||||
| 	private static final int II = 3888; | ||||
| 	// Rewards Together | ||||
| 	private static final int DARK_AMARANTHINE_ENHANCEMENT_STONE = 3875; | ||||
| 	private static final int TAUTI_DUAL_AXE = 35001; | ||||
| 	private static final int TAUTI_ONE_HEADED_AXE = 34998; | ||||
| 	private static final int KELBIM_BOW = 46062; | ||||
| 	private static final int KELBIM_DUAL_DAGER = 46061; | ||||
| 	private static final int KELBIM_DAGER = 46060; | ||||
| 	private static final int KELBIM_CROSSBOW = 46063; | ||||
| 	private static final int KELBIM_ATELIA_FRAGMENT = 46079; | ||||
| 	private static final int BLESSED_SPECTER_THROWER = 18041; | ||||
| 	private static final int BLESSED_SPECTER_STORMER = 18040; | ||||
| 	private static final int BLESSED_SPECTER_RETRIBUTER = 18045; | ||||
| 	private static final int BLESSED_SPECTER_BUSTER = 18043; | ||||
| 	private static final int BLESSED_SPECTER_DUALSWORD = 18046; | ||||
| 	private static final int BLESSED_SPECTER_FIGHTER = 18039; | ||||
| 	private static final int BLESSED_SPECTER_CASTER = 18044; | ||||
| 	private static final int BLESSED_SPECTER_DUAL_DAGGER = 18047; | ||||
| 	private static final int BLESSED_SPECTER_SLASHER = 18037; | ||||
| 	private static final int BLESSED_SPECTER_CUTTER = 18036; | ||||
| 	private static final int BLESSED_SPECTER_SHAPER = 18035; | ||||
| 	private static final int BLESSED_SPECTER_AVANGER = 18038; | ||||
| 	private static final int BLESSED_SPECTER_DUAL_BLUNT = 18048; | ||||
| 	private static final int BLESSED_SPECTER_SHOOTER = 18042; | ||||
| 	private static final int DARK_ETERNAL_ENHACEMENT_STONE = 35567; | ||||
| 	private static final int BLESSED_SERAPH_BREASTPLATE = 18050; | ||||
| 	private static final int BLESSED_SERAPH_LEATHER_ARMOR = 18056; | ||||
| 	private static final int BLESSED_SERAPH_TUNIC = 18061; | ||||
| 	private static final int BLESSED_SERAPH_LEATHER_LEGGINGS = 18057; | ||||
| 	private static final int HIGH_GRADE_WIND_DEY_PACK = 39562; | ||||
| 	private static final int BLESSED_SERAPH_STOCKINGS = 18062; | ||||
| 	private static final int LV_5_LEGENDERY_DEY_PACK = 34954; | ||||
| 	private static final int BLESSED_SERAPH_SHOES = 18064; | ||||
| 	private static final int BLESSED_SERAPH_HELMET = 18049; | ||||
| 	private static final int BLESSED_SERAPH_GAITERS = 18051; | ||||
| 	private static final int BLESSED_SERAPH_LEATHER_HELMET = 18055; | ||||
| 	private static final int BLESSED_SERAPH_CIRCLET = 18060; | ||||
| 	private static final int BLESSED_SERAPH_GUANTLETS = 18052; | ||||
| 	private static final int BLESSED_SERAPH_LEATHER_GLOVES = 18058; | ||||
| 	private static final int LV_5_ANCIENT_DEY_PACK = 34955; | ||||
| 	private static final int BLESSED_SERAPH_LEATHER_BOOTS = 18059; | ||||
| 	private static final int BLESSED_SERAPH_BOOTS = 18053; | ||||
| 	private static final int BLESSED_SERAPH_GLOVES = 18063; | ||||
| 	private static final int LV_5_GIANT_DEY_PACK = 34953; | ||||
| 	private static final int BLESSED_SERAPH_SIGIL = 18065; | ||||
| 	private static final int BLESSED_SERAPH_SHIELD = 18054; | ||||
| 	private static final int DARK_ETERNAL_ENHACEMENT_STONE_FRAGMENT = 37802; | ||||
| 	private static final int TOP_GRADE_SPIRIT_STONE = 45932; | ||||
| 	private static final int MID_GRADE_WIND_DYE_PACK = 39561; | ||||
| 	private static final int LV_4_LEGENDERY_DEY_PACK = 34951; | ||||
| 	private static final int FORTUNE_POKET_STAGE_5 = 39633; | ||||
| 	private static final int LEONAS_SCROLL_10000000_SP = 38103; | ||||
| 	private static final int LOW_GRADE_WIND_DYE_PACK = 39560; | ||||
| 	private static final int LV_4_ANCIENT_DEY_PACK = 34952; | ||||
| 	private static final int LV_3_LEGENDERY_DEY_PACK = 34946; | ||||
| 	private static final int HIGH_GRADE_SPIRIT_STONE = 45931; | ||||
| 	private static final int LEONAS_SCROLL_5000000_SP = 38102; | ||||
| 	private static final int LV_4_GIANT_DEY_PACK = 34950; | ||||
| 	private static final int MID_GRADE_SPIRIT_STONE = 45930; | ||||
| 	private static final int SPIRIT_STONE_HAIR_ACCESSORY = 45937; | ||||
| 	private static final int LV_3_ANCIENT_DEY_PACK = 34947; | ||||
| 	private static final int LV_3_GIANT_DEY_PACK = 34945; | ||||
| 	private static final int LEONAS_SCROLL_1000000_SP = 38101; | ||||
| 	private static final int GAMESTONE_R_GRADE = 19440; | ||||
| 	private static final int BLUEBERRY_CAKE = 37009; | ||||
| 	private static final int SPIRIT_STONE = 45929; | ||||
| 	private static final int BLESSED_SPIRITSHOT_R_GEADE = 19442; | ||||
| 	private static final int SOULSHOT_R_GEADE = 17754; | ||||
| 	private static final int CRYSTAL_R_GEADE = 17371; | ||||
| 	 | ||||
| 	private LetterCollector() | ||||
| 	{ | ||||
| 		super(LetterCollector.class.getSimpleName(), "events"); | ||||
| 		addStartNpc(ANGEL_CAT); | ||||
| 		addFirstTalkId(ANGEL_CAT); | ||||
| 		addTalkId(ANGEL_CAT); | ||||
| 	} | ||||
| 	 | ||||
| 	@Override | ||||
| 	public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) | ||||
| 	{ | ||||
| 		String htmltext = null; | ||||
| 		switch (event) | ||||
| 		{ | ||||
| 			case "33873-1.htm": | ||||
| 			case "33873-2.htm": | ||||
| 			{ | ||||
| 				htmltext = event; | ||||
| 				break; | ||||
| 			} | ||||
| 			case "lineage": | ||||
| 			{ | ||||
| 				if ((getQuestItemsCount(player, L) >= 1) && (getQuestItemsCount(player, I) >= 1) && (getQuestItemsCount(player, N) >= 1) && (getQuestItemsCount(player, E) >= 2) && (getQuestItemsCount(player, A) >= 1) && (getQuestItemsCount(player, G) >= 1) && (getQuestItemsCount(player, II) >= 1)) | ||||
| 				{ | ||||
| 					takeItems(player, L, 1); | ||||
| 					takeItems(player, I, 1); | ||||
| 					takeItems(player, N, 1); | ||||
| 					takeItems(player, E, 2); | ||||
| 					takeItems(player, A, 1); | ||||
| 					takeItems(player, G, 1); | ||||
| 					takeItems(player, II, 1); | ||||
| 					htmltext = "33873-1.htm"; | ||||
| 				} | ||||
| 				else | ||||
| 				{ | ||||
| 					htmltext = "noItem.htm"; | ||||
| 				} | ||||
| 				break; | ||||
| 			} | ||||
| 			case "together": | ||||
| 			{ | ||||
| 				if ((getQuestItemsCount(player, T) >= 2) && (getQuestItemsCount(player, O) >= 1) && (getQuestItemsCount(player, G) >= 1) && (getQuestItemsCount(player, E) >= 2) && (getQuestItemsCount(player, H) >= 1) && (getQuestItemsCount(player, R) >= 1)) | ||||
| 				{ | ||||
| 					takeItems(player, T, 2); | ||||
| 					takeItems(player, O, 1); | ||||
| 					takeItems(player, G, 1); | ||||
| 					takeItems(player, E, 2); | ||||
| 					takeItems(player, H, 1); | ||||
| 					takeItems(player, R, 1); | ||||
| 					giveItemRandomly(player, null, DARK_AMARANTHINE_ENHANCEMENT_STONE, 1, 1, 0.07, false); | ||||
| 					giveItemRandomly(player, null, TAUTI_DUAL_AXE, 1, 1, 0.01, false); | ||||
| 					giveItemRandomly(player, null, TAUTI_ONE_HEADED_AXE, 1, 1, 0.01, false); | ||||
| 					giveItemRandomly(player, null, KELBIM_BOW, 1, 1, 0.01, false); | ||||
| 					giveItemRandomly(player, null, KELBIM_DUAL_DAGER, 1, 1, 0.01, false); | ||||
| 					giveItemRandomly(player, null, KELBIM_DAGER, 1, 1, 0.01, false); | ||||
| 					giveItemRandomly(player, null, KELBIM_CROSSBOW, 1, 1, 0.01, false); | ||||
| 					giveItemRandomly(player, null, KELBIM_ATELIA_FRAGMENT, 1, 1, 0.05, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SPECTER_THROWER, 1, 1, 0.02, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SPECTER_STORMER, 1, 1, 0.02, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SPECTER_RETRIBUTER, 1, 1, 0.02, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SPECTER_BUSTER, 1, 1, 0.02, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SPECTER_DUALSWORD, 1, 1, 0.015, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SPECTER_FIGHTER, 1, 1, 0.02, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SPECTER_CASTER, 1, 1, 0.02, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SPECTER_DUAL_DAGGER, 1, 1, 0.015, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SPECTER_SLASHER, 1, 1, 0.02, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SPECTER_CUTTER, 1, 1, 0.02, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SPECTER_SHAPER, 1, 1, 0.02, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SPECTER_AVANGER, 1, 1, 0.02, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SPECTER_DUAL_BLUNT, 1, 1, 0.015, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SPECTER_SHOOTER, 1, 1, 0.02, false); | ||||
| 					giveItemRandomly(player, null, DARK_ETERNAL_ENHACEMENT_STONE, 1, 1, 0.25, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SERAPH_BREASTPLATE, 1, 1, 0.025, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SERAPH_LEATHER_ARMOR, 1, 1, 0.025, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SERAPH_TUNIC, 1, 1, 0.025, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SERAPH_LEATHER_LEGGINGS, 1, 1, 0.025, false); | ||||
| 					giveItemRandomly(player, null, HIGH_GRADE_WIND_DEY_PACK, 1, 1, 0.3, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SERAPH_STOCKINGS, 1, 1, 0.025, false); | ||||
| 					giveItemRandomly(player, null, LV_5_LEGENDERY_DEY_PACK, 1, 1, 0.1, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SERAPH_SHOES, 1, 1, 0.025, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SERAPH_HELMET, 1, 1, 0.025, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SERAPH_GAITERS, 1, 1, 0.025, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SERAPH_LEATHER_HELMET, 1, 1, 0.025, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SERAPH_CIRCLET, 1, 1, 0.025, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SERAPH_GUANTLETS, 1, 1, 0.025, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SERAPH_LEATHER_GLOVES, 1, 1, 0.025, false); | ||||
| 					giveItemRandomly(player, null, LV_5_ANCIENT_DEY_PACK, 1, 1, 0.15, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SERAPH_LEATHER_BOOTS, 1, 1, 0.025, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SERAPH_BOOTS, 1, 1, 0.025, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SERAPH_GLOVES, 1, 1, 0.025, false); | ||||
| 					giveItemRandomly(player, null, LV_5_GIANT_DEY_PACK, 1, 1, 0.15, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SERAPH_SIGIL, 1, 1, 0.025, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SERAPH_SHIELD, 1, 1, 0.025, false); | ||||
| 					giveItemRandomly(player, null, DARK_ETERNAL_ENHACEMENT_STONE_FRAGMENT, 1, 1, 0.55, false); | ||||
| 					giveItemRandomly(player, null, TOP_GRADE_SPIRIT_STONE, 1, 1, 0.06, false); | ||||
| 					giveItemRandomly(player, null, MID_GRADE_WIND_DYE_PACK, 1, 1, 0.3, false); | ||||
| 					giveItemRandomly(player, null, LV_4_LEGENDERY_DEY_PACK, 1, 1, 0.2, false); | ||||
| 					giveItemRandomly(player, null, FORTUNE_POKET_STAGE_5, 1, 1, 0.32, false); | ||||
| 					giveItemRandomly(player, null, LEONAS_SCROLL_10000000_SP, 1, 1, 0.25, false); | ||||
| 					giveItemRandomly(player, null, LOW_GRADE_WIND_DYE_PACK, 1, 1, 0.38, false); | ||||
| 					giveItemRandomly(player, null, LV_4_ANCIENT_DEY_PACK, 1, 1, 0.24, false); | ||||
| 					giveItemRandomly(player, null, LV_3_LEGENDERY_DEY_PACK, 1, 1, 0.25, false); | ||||
| 					giveItemRandomly(player, null, HIGH_GRADE_SPIRIT_STONE, 1, 1, 0.08, false); | ||||
| 					giveItemRandomly(player, null, LV_4_GIANT_DEY_PACK, 1, 1, 0.2, false); | ||||
| 					giveItemRandomly(player, null, MID_GRADE_SPIRIT_STONE, 1, 1, 0.1, false); | ||||
| 					giveItemRandomly(player, null, SPIRIT_STONE_HAIR_ACCESSORY, 1, 1, 0.1, false); | ||||
| 					giveItemRandomly(player, null, LV_3_ANCIENT_DEY_PACK, 1, 1, 0.26, false); | ||||
| 					giveItemRandomly(player, null, LEONAS_SCROLL_5000000_SP, 1, 1, 0.3, false); | ||||
| 					giveItemRandomly(player, null, LV_3_GIANT_DEY_PACK, 1, 1, 0.25, false); | ||||
| 					giveItemRandomly(player, null, LEONAS_SCROLL_1000000_SP, 1, 1, 0.35, false); | ||||
| 					giveItemRandomly(player, null, GAMESTONE_R_GRADE, 1, 1, 0.8, false); | ||||
| 					giveItemRandomly(player, null, BLUEBERRY_CAKE, 3, 3, 0.3, false); | ||||
| 					giveItemRandomly(player, null, SPIRIT_STONE, 1, 1, 0.15, false); | ||||
| 					giveItemRandomly(player, null, BLESSED_SPIRITSHOT_R_GEADE, 500, 500, 0.7, false); | ||||
| 					giveItemRandomly(player, null, SOULSHOT_R_GEADE, 2000, 2000, 0.8, false); | ||||
| 					giveItemRandomly(player, null, CRYSTAL_R_GEADE, 20, 20, 0.14, false); | ||||
| 					htmltext = "33873-1.htm"; | ||||
| 				} | ||||
| 				else | ||||
| 				{ | ||||
| 					htmltext = "noItem.htm"; | ||||
| 				} | ||||
| 				break; | ||||
| 			} | ||||
| 			case "ncsoft": | ||||
| 			{ | ||||
| 				if ((getQuestItemsCount(player, N) >= 1) && (getQuestItemsCount(player, C) >= 1) && (getQuestItemsCount(player, S) >= 1) && (getQuestItemsCount(player, O) >= 1) && (getQuestItemsCount(player, F) >= 1) && (getQuestItemsCount(player, T) >= 1)) | ||||
| 				{ | ||||
| 					takeItems(player, N, 1); | ||||
| 					takeItems(player, C, 1); | ||||
| 					takeItems(player, S, 1); | ||||
| 					takeItems(player, O, 1); | ||||
| 					takeItems(player, F, 1); | ||||
| 					takeItems(player, T, 1); | ||||
| 					htmltext = "33873-1.htm"; | ||||
| 				} | ||||
| 				else | ||||
| 				{ | ||||
| 					htmltext = "noItem.htm"; | ||||
| 				} | ||||
| 				break; | ||||
| 			} | ||||
| 		} | ||||
| 		return htmltext; | ||||
| 	} | ||||
| 	 | ||||
| 	@Override | ||||
| 	public String onFirstTalk(L2Npc npc, L2PcInstance player) | ||||
| 	{ | ||||
| 		return npc.getId() + "-1.htm"; | ||||
| 	} | ||||
| 	 | ||||
| 	public static void main(String[] args) | ||||
| 	{ | ||||
| 		new LetterCollector(); | ||||
| 	} | ||||
| } | ||||
							
								
								
									
										29
									
								
								trunk/dist/game/data/scripts/events/LetterCollector/config.xml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								trunk/dist/game/data/scripts/events/LetterCollector/config.xml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <event name="Letter Collector" active="11 05 1016-01 06 2016" enableShrines="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/eventConfig.xsd"> | ||||
| 	<droplist>		 | ||||
| 		<add item="37004" min="1" max="1" chance="3%" /> <!-- Letter Collector's Pouch: LINEAGE II --> | ||||
| 		<add item="37003" min="1" max="1" chance="3%" /> <!-- Letter Collector's Pouch: TOGETHER --> | ||||
| 		<add item="37005" min="1" max="1" chance="3%" /> <!-- Letter Collector's Pouch: NCSOFT --> | ||||
| 		<add item="37006" min="1" max="1" chance="1%" /> <!-- Letter Collector's Pouch: RIIS --> | ||||
| 	</droplist> | ||||
| 	<spawnlist> | ||||
| 		<add npc="33873" x="-14143" y="123176" z="-3096" heading="30212" /> <!-- Gludio --> | ||||
| 		<add npc="33873" x="16354" y="142848" z="-2680" heading="14450" /> <!-- Dion --> | ||||
| 		<add npc="33873" x="80814" y="147987" z="-3448" heading="3355" /> <!-- Giran --> | ||||
| 		<add npc="33873" x="82008" y="53874" z="-1472" heading="3355" /> <!-- Oren --> | ||||
| 		<add npc="33873" x="147457" y="27863" z="-2248" heading="17863" /> <!-- Aden --> | ||||
| 		<add npc="33873" x="112172" y="220447" z="-3648" heading="30708" /> <!-- Heine --> | ||||
| 		<add npc="33873" x="148195" y="-57368" z="-2752" heading="17863" /> <!-- Goddard --> | ||||
| 		<add npc="33873" x="44530" y="-48368" z="-776" heading="14450" /> <!-- Rune --> | ||||
| 		<add npc="33873" x="86897" y="-141346" z="-1320" heading="49153" /> <!-- Shutgard --> | ||||
| 		<add npc="33873" x="-114822" y="256385" z="-1472" heading="49744" /> <!-- Talking Island --> | ||||
| 		<add npc="33873" x="-78832" y="249115" z="-3272" heading="56380" /> <!-- Faeron Village --> | ||||
| 		<add npc="33873" x="-80485" y="149537" z="-3016" heading="16383" /> <!-- Gluddin --> | ||||
| 		<add npc="33873" x="117380" y="76684" z="-2672" heading="40961" /> <!-- Hunters Village --> | ||||
| 		<add npc="33873" x="208499" y="87743" z="-1006" heading="11264" /> <!-- Arcan Village --> | ||||
| 	</spawnlist> | ||||
| 	<messages> | ||||
| 		<add type="onEnd" text="Letter Collector: Event end!" /> | ||||
| 		<add type="onEnter" text="Letter Collector (5/11~6/1)" /> | ||||
| 	</messages> | ||||
| </event> | ||||
							
								
								
									
										4
									
								
								trunk/dist/game/data/scripts/events/LetterCollector/noItem.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								trunk/dist/game/data/scripts/events/LetterCollector/noItem.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| <html><body>Angel Cat:<br> | ||||
| I'm sorry, but you'll need more letters to play.<br> | ||||
| <Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest LetterCollector 33873-1.htm">Back</Button> | ||||
| </body></html>  | ||||
							
								
								
									
										32
									
								
								trunk/dist/game/data/stats/items/37000-37099.xml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										32
									
								
								trunk/dist/game/data/stats/items/37000-37099.xml
									
									
									
									
										vendored
									
									
								
							| @@ -40,20 +40,28 @@ | ||||
| 		<set name="time" val="7200" /> | ||||
| 	</item> | ||||
| 	<item id="37003" name="Letter Collector's Pouch: TOGETHER" type="EtcItem"> | ||||
| 		<!-- Magic pouch that contains the letters of TOGETHE. Double-click to get one of the following letters: T, O, G, E, T, H and E. The letter R can be obtained from the RIIS pouch at a certain probability. --> | ||||
| 		<!-- Magic pouch that contains the letters of TOGETHE. Double-click to get one of the following letters: T, O, G, E, H. The letter R can be obtained from the RIIS pouch at a certain probability. --> | ||||
| 		<set name="icon" val="icon.etc_crystal_spice_new_i00" /> | ||||
| 		<set name="commissionItemType" val="POUCH" /> | ||||
| 		<set name="capsuled_items" val="3887,1,1,20;3884,1,1,20;3879,1,1,20;3877,1,1,20;3880,1,1,20" /> | ||||
| 		<set name="default_action" val="CAPSULE" /> | ||||
| 		<set name="extractableCountMin" val="1" /> | ||||
|         <set name="extractableCountMax" val="1" /> | ||||
| 		<set name="handler" val="ExtractableItems" /> | ||||
| 		<set name="commissionItemType" val="POUCH" /> | ||||
| 		<set name="is_sellable" val="false" /> | ||||
| 		<set name="is_stackable" val="true" /> | ||||
| 		<set name="material" val="PAPER" /> | ||||
| 		<set name="weight" val="10" /> | ||||
| 	</item> | ||||
| 	<item id="37004" name="Letter Collector's Pouch: LINEAGE II" type="EtcItem"> | ||||
| 		<!-- Magic pouch that contains the letters of LINEAGE. Double-click to get one of the following letters: L, I, N, E, A, G and E. The letter II can be obtained from the RIIS pouch at a certain probability. --> | ||||
| 		<!-- Magic pouch that contains the letters of LINEAGE. Double-click to get one of the following letters: L, I, N, E, A, G. The letter II can be obtained from the RIIS pouch at a certain probability. --> | ||||
| 		<set name="icon" val="icon.etc_crystal_spice_new_i00" /> | ||||
| 		<set name="commissionItemType" val="POUCH" /> | ||||
| 		<set name="capsuled_items" val="3882,1,1,16;3881,1,1,16;3883,1,1,16;3877,1,1,10;3875,1,1,16;3879,1,1,16" /> | ||||
| 		<set name="default_action" val="CAPSULE" /> | ||||
| 		<set name="extractableCountMin" val="1" /> | ||||
|         <set name="extractableCountMax" val="1" /> | ||||
| 		<set name="handler" val="ExtractableItems" /> | ||||
| 		<set name="commissionItemType" val="POUCH" /> | ||||
| 		<set name="is_sellable" val="false" /> | ||||
| 		<set name="is_stackable" val="true" /> | ||||
| 		<set name="material" val="PAPER" /> | ||||
| @@ -62,8 +70,12 @@ | ||||
| 	<item id="37005" name="Letter Collector's Pouch: NCSOFT" type="EtcItem"> | ||||
| 		<!-- Magic pouch that contains the letters of NCOFT. Double-click to get one of the following letters: N, C, O, F and T. The letter S can be obtained from the RIIS pouch at a certain probability. --> | ||||
| 		<set name="icon" val="icon.etc_crystal_spice_new_i00" /> | ||||
| 		<set name="commissionItemType" val="POUCH" /> | ||||
| 		<set name="capsuled_items" val="3883,1,1,20;3876,1,1,20;3884,1,1,20;3878,1,1,20;3887,1,1,20" /> | ||||
| 		<set name="default_action" val="CAPSULE" /> | ||||
| 		<set name="handler" val="ExtractableItems" /> | ||||
| 		<set name="extractableCountMin" val="1" /> | ||||
|         <set name="extractableCountMax" val="1" /> | ||||
| 		<set name="commissionItemType" val="POUCH" /> | ||||
| 		<set name="is_sellable" val="false" /> | ||||
| 		<set name="is_stackable" val="true" /> | ||||
| 		<set name="material" val="PAPER" /> | ||||
| @@ -72,8 +84,12 @@ | ||||
| 	<item id="37006" name="Letter Collector's Pouch: RIIS" type="EtcItem"> | ||||
| 		<!-- Magic pouch that contains the letters of RIIS. Double-click to get one of the following letters: R, II and S. --> | ||||
| 		<set name="icon" val="icon.etc_crystal_spice_s_i00" /> | ||||
| 		<set name="commissionItemType" val="POUCH" /> | ||||
| 		<set name="capsuled_items" val="3885,1,1,33;3886,1,1,33;3888,1,1,34" /> | ||||
| 		<set name="default_action" val="CAPSULE" /> | ||||
| 		<set name="extractableCountMin" val="1" /> | ||||
|         <set name="extractableCountMax" val="1" /> | ||||
| 		<set name="handler" val="ExtractableItems" /> | ||||
| 		<set name="commissionItemType" val="POUCH" /> | ||||
| 		<set name="is_sellable" val="false" /> | ||||
| 		<set name="is_stackable" val="true" /> | ||||
| 		<set name="material" val="PAPER" /> | ||||
| @@ -82,8 +98,10 @@ | ||||
| 	<item id="37007" name="Letter Collector's Lucky Pouch" type="EtcItem"> | ||||
| 		<!-- Chance to test your luck! You can get Letter Collector's Pouch: RIIS at a certain probability. If you fail, you won't get anything. --> | ||||
| 		<set name="icon" val="icon.etc_crystal_spice_blessed_i00" /> | ||||
| 		<set name="commissionItemType" val="POUCH" /> | ||||
| 		<set name="capsuled_items" val="3885,1,1,100;3886,1,1,100;3888,1,1,100" /> | ||||
| 		<set name="default_action" val="CAPSULE" /> | ||||
| 		<set name="handler" val="ExtractableItems" /> | ||||
| 		<set name="commissionItemType" val="POUCH" /> | ||||
| 		<set name="is_sellable" val="false" /> | ||||
| 		<set name="is_stackable" val="true" /> | ||||
| 		<set name="material" val="PAPER" /> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDev
					MobiusDev