Jump to content

Recommended Posts

Posted

Το έγραψα χθες... το δοκιμασα σε freya

Ολα τα items, mobs ειναι L2 client και δεν απαιτουν patch.

Παιρνεις ενα quest απο τον Holiday Santa.

Οποιο npc και αν σκοτώσεις κανει drop καποια event items (παλιες περιοχές λιγα λιγοτερα).

Τα ανταλλασεις στον Holiday Santa για tickets αγορών από την Cat of christmas.

Τα ανταλλασεις στον Holiday Santa για item που σου δίνει ο ίδιος και εχουν Random δωρα (πολλα και ολα εορταστικά).

Το quest ειναι μονιμο για τις γιορτές ή επεναλαμβανόμενο.

Το quest το έγραψα και για solo και για party, το κάνετε όπως θέλετε.

Δεν επιρέζει την ροή του game, οπως exparoume μας κανει drop extra χριστουγεννιάτικα items.

 

NPC id = 4 - Holiday Santa

NPC id = 32633 - Cat of christmas

 

BHMA A

 

διαδρομη = gameserver/data/html/default/

Δημιουργήστε τα εξής html

 

1o -- στο διαδρομη/4.htm

<html><body>Holiday Santa:<br>
Hi ... Santa asked me to I will give gifts to surprise, to make you happy holidays in this city.<br><br>
<a action="bypass -h npc_%objectId%_multisell 90099">Exchange Santa's items.</a><br><br>
<a action="bypass -h npc_%objectId%_Chat 1">Quest</a><br>
</body></html>

 

2o -- στο διαδρομη/4-1.htm

<html><body>Holiday Santa:<br>
Will be happy Santa Claus to cleanse the area of hazardous elements that threaten the peace of the place.<br1>
In exchange for your services will provide you with various items that will enhance your options.<br><br>
<a action="bypass -h Quest 11105_SantasEvent 4-11.htm">Santa's event.</a>
</body></html>

 

3o -- στο διαδρομη/32633.htm

<html><body>Cat of Christmas:<br>
Hello ... I'm the cat for Christmas. I am one of Santa's helpers. From me you can find various festive items ...<br>
Merry Christmas and happy new year.<br><br>
<a action="bypass -h npc_%objectId%_multisell 90100">Exchange event items.</a>
</body></html>

 

ΒΗΜΑ Β

 

Δημιουργήστε τα Multisell sto data/multisell

 

1o 90099.xml

<?xml version="1.0" encoding="UTF-8"?>
<!-- Santas event items by Tr@C3R -->
<list>
<!-- drop to kaltsa-->
<item id="1">
	<ingredient id="16383" count="1" />
	<production id="14612" count="1" />
</item>
<item id="2">
	<ingredient id="16383" count="1" />
	<production id="14620" count="1" />
</item>
<!-- Santa\'s Buff Gift Set -->
<item id="3">
	<ingredient id="16383" count="5" />
	<production id="14614" count="1" />
</item>
<!-- Santa Claus\' Gift - Joyt -->
<item id="4">
	<ingredient id="16383" count="30" />
	<production id="20075" count="1" />
</item>
<!-- Santa Claus\' Gift - Enjoyment-->
<item id="5">
	<ingredient id="16383" count="30" />
	<production id="20076" count="1" />
</item>
<!-- Santa Claus\' Gift - Luck -->
<item id="6">
	<ingredient id="16383" count="500" />
	<production id="20077" count="1" />
</item>
<!--Santa Claus\' Gift Set -->
<item id="7">
	<ingredient id="16383" count="100" />
	<production id="20101" count="1" />
</item>
<item id="8">
	<ingredient id="16383" count="10" />
	<production id="20753" count="1" />
</item>
<item id="9">
	<ingredient id="16383" count="15" />
	<production id="20754" count="1" />
</item>
<!--Santa\'s Shirt Exchange Coupon -->
<item id="10">
	<ingredient id="16383" count="25" />
	<production id="20756" count="1" />
</item>
<!-- kaltsa to drop-->
<item id="11">
	<ingredient id="14612" count="1" />
	<production id="16383" count="1" />
</item>

</list>

 

2o 90100.xml

<?xml version="1.0" encoding="UTF-8"?>
<!-- Cat event items by Tr@C3R -->
<list>
<!-- Santa\'s Hat -->
<item id="1">
	<ingredient id="20756" count="2" />
	<production id="7836" count="1" />
</item>
<!-- Santa\'s Antlers -->
<item id="2">
	<ingredient id="20756" count="2" />
	<production id="8936" count="1" />
</item>
<!-- Santa\'s Hat -->
<item id="3">
	<ingredient id="20756" count="2" />
	<production id="9138" count="1" />
</item>
<!-- Rock-Paper-Scissors Santa Hat -->
<item id="4">
	<ingredient id="20756" count="3" />
	<production id="14613" count="1" />
</item>
<!-- Santa Horn Hat -->
<item id="5">
	<ingredient id="20756" count="3" />
	<production id="20095" count="1" />
</item>
<!-- Saving Santa Hat -->
<item id="6">
	<ingredient id="20756" count="3" />
	<production id="20100" count="1" />
</item>
<!--Santa Hat -->
<item id="7">
	<ingredient id="20756" count="3" />
	<production id="20900" count="1" />
</item>
<!--newbie weapons -->
<item id="8">
	<ingredient id="14620" count="1" />
	<production id="14621" count="1" />
</item>
<item id="9">
	<ingredient id="14620" count="1" />
	<production id="14622" count="1" />
</item>
<item id="10">
	<ingredient id="14620" count="1" />
	<production id="14623" count="1" />
</item>
<item id="11">
	<ingredient id="14620" count="1" />
	<production id="14624" count="1" />
</item>
<item id="12">
	<ingredient id="14620" count="1" />
	<production id="14625" count="1" />
</item>
<item id="13">
	<ingredient id="14620" count="1" />
	<production id="14626" count="1" />
</item>
<item id="14">
	<ingredient id="14620" count="1" />
	<production id="14627" count="1" />
</item>
<item id="15">
	<ingredient id="14620" count="1" />
	<production id="14628" count="1" />
</item>
<item id="16">
	<ingredient id="14620" count="1" />
	<production id="14629" count="1" />
</item>
<item id="17">
	<ingredient id="14620" count="1" />
	<production id="14630" count="1" />
</item>
<item id="18">
	<ingredient id="14620" count="1" />
	<production id="14631" count="1" />
</item>
<item id="19">
	<ingredient id="14620" count="1" />
	<production id="14632" count="1" />
</item>
<item id="20">
	<ingredient id="14612" count="1" />
	<production id="14633" count="1" />
</item>
<item id="21">
	<ingredient id="14620" count="1" />
	<production id="14634" count="1" />
</item>
<item id="22">
	<ingredient id="14620" count="1" />
	<production id="14674" count="1" />
</item>
<item id="23">
	<ingredient id="20756" count="3" />
	<production id="20759" count="1" />
</item>
<item id="24">
	<ingredient id="14614" count="1" />
	<production id="17005" count="1" />
</item>
<!-- Icarus special weapons-->
<item id="25">
	<ingredient id="20107" count="1" />
	<production id="11300" count="1" />
</item>
<item id="26">
	<ingredient id="20107" count="1" />
	<production id="11301" count="1" />
</item>
<item id="27">
	<ingredient id="20107" count="1" />
	<production id="11305" count="1" />
</item>
<item id="28">
	<ingredient id="20107" count="1" />
	<production id="11309" count="1" />
</item>
<item id="29">
	<ingredient id="20107" count="1" />
	<production id="11313" count="1" />
</item>
<item id="30">
	<ingredient id="20107" count="1" />
	<production id="11317" count="1" />
</item>
<item id="31">
	<ingredient id="20107" count="1" />
	<production id="11321" count="1" />
</item>
<item id="32">
	<ingredient id="20107" count="1" />
	<production id="11325" count="1" />
</item>
<item id="33">
	<ingredient id="20107" count="1" />
	<production id="11329" count="1" />
</item>
<item id="34">
	<ingredient id="20107" count="1" />
	<production id="11333" count="1" />
</item>
<item id="35">
	<ingredient id="20107" count="1" />
	<production id="11337" count="1" />
</item>
<item id="36">
	<ingredient id="20107" count="1" />
	<production id="11341" count="1" />
</item>
</list>

 

Posted

BHMA Γ

 

το quest ... στο data/scripts/quests φακελο

 

δημιουργήστε τον φακελο 11105_SantasEvent

 

δημιουργήστε ενα text αρχείο με ονομα __init__.py

copy-paste κωδικα:

 

# 2010-12-13 by Tr@C3R

import sys
from com.l2jserver.gameserver.model.quest import State
from com.l2jserver.gameserver.model.quest import QuestState
from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest
from com.l2jserver.util import Rnd

qn = "11105_SantasEvent"

# NPCs
HOLIDAY_SANTA = 4

#MOBS
MOBS = range(12077,36599)

#QUEST DROPS
STARTING_ADENA = 57
KOYTAKIA = 16383
KALTSES = 14612
ITEM_COUNT = 1

#QUEST REWARD
ADENA_EXP_ESP = 57

class Quest (JQuest) :
def __init__(self,id,name,descr):
	JQuest.__init__(self,id,name,descr)
	self.questItemIds = [sTARTING_ADENA]

def onAdvEvent(self, event, npc, player) :
	htmltext = event
	st = player.getQuestState(qn)
	if not st : return

	if event == "4-11.htm" :
		st.setState(State.STARTED)
		st.set("cond","1")
		st.playSound("ItemSound.quest_accept")
	return htmltext

def onTalk (self, npc, player) :
	htmltext = Quest.getNoQuestMsg(player)
	st = player.getQuestState(qn)
	if not st : return htmltext

	npcId = npc.getNpcId()
	cond = st.getInt("cond")

	if npcId == HOLIDAY_SANTA :
		if st.getState() == State.COMPLETED :
			htmltext = "4-13.htm"
		elif st.getQuestItemsCount(KALTSES) > 19 and cond == 1:
			htmltext = "4-15.htm"
			st.unset("cond")
			st.takeItems(KALTSES,20) 
			st.rewardItems(57,80000)
			st.addExpAndSp(3236600,118300)
			st.exitQuest(False)
			st.playSound("ItemSound.quest_finish")

	return htmltext

def onKill(self, npc, player, isPet) :
	npcId = npc.getNpcId()
	party = player.getParty()
	if party :
		PartyMembers = []
		for member in party.getPartyMembers().toArray() :
			st = member.getQuestState(qn)
			if st and st.getState() == State.STARTED and st.getInt("cond") == 1 :
				if npcId > 12000 :
					PartyMembers.append(st)
		if len(PartyMembers) == 0 : return
		winnerst = PartyMembers[Rnd.get(len(PartyMembers))]
		if npcId > 12000 :
			winnerst.giveItems(KOYTAKIA, 1)
			winnerst.playSound("ItemSound.quest_itemget")
		if npcId > 20000 :
			winnerst.giveItems(KALTSES,1)
			winnerst.playSound("ItemSound.quest_itemget")
	else :
		st = player.getQuestState(qn)
		if not st : return
		if st.getState() != State.STARTED : return

		if npcId > 12000 :
			st.giveItems(KOYTAKIA, 1)
			st.playSound("ItemSound.quest_itemget")
		if npcId > 20000 :
			st.giveItems(KALTSES,1)
			st.playSound("ItemSound.quest_itemget")
	return

QUEST	= Quest(11105,qn,"SantasEvent")

QUEST.addStartNpc(HOLIDAY_SANTA)
QUEST.addTalkId(HOLIDAY_SANTA)

for mobId in MOBS:
QUEST.addKillId(mobId)

 

 

Posted

ΒΗΜΑ Δ και τελευταίο τα htm του quest

 

στο data/scripts/quests/11105_SantasEvent  φακελο

 

1o 4-11.htm

<html><body>Holiday Santa:<br>
I count on you and I think it will help much. There is nothing strange to be you know, just gave tone of calm in our town.<br1> 
Good luck!
</body></html>

 

2o 4-13.htm

<html><body>Holiday Santa:<br>
I realize you just completed a difficult task, but we still need your help!<br>
</body></html>

 

3o 4-15.htm

<html><body>Holiday Santa:<br>
Thank you very much!<br1>
Choose some gifts from me or they commuted to Cat of Christmas.<br>
</body></html>

 

και τελος στο gameserver/data/scripts.cfg προσθέστε:

quests/11105_SantasEvent/__init__.py

 

Posted

Πολυ καλο

αλλα

Σε παρακαλω αν μπορεις να βαλεις [share]στο title του thread,και οπου πρεπει να βαλουμε κατι βαλτο μεσα σε [ code][/code ]

 

Posted

Thanks

Παιδια δεν χρειάζεται να προσθέσετε κάτι εσεις. Finito εκανα διαχωρισμο του κωδικα όπως πρότεινες και είναι ποιο ευδιάγνωστο.. thanks

Μονο στο multisell 90100 μετα το <!-- Icarus special weapons--> μπορείτε να προσθέσετε ότι rewards θελετε.

Χρησιμοποίησα τα icarus τα masterwork αλαξτε τα με οτι θελετε. Ολα τα αλλα είναι αντικείμενα και buffs εορταστικά.

Posted

με τον gm κανε spawn to 13186 npc, αν γινεται τοτε δουλευει ο santa με το ελκηθρο και σε interlude.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • I can see that the admins arent taking any action, yet they still seem willing to share information about various other people names and IP addresses. But when it comes to scams, no one reacts.      
    • Server Info Chronicle:  Interlude                                                                                                                                    XP: 100x | SP: 100x | Drop: 50x | Adena: 75x Enchant: Safe +3 |  Max +21 Website: Website Link Discord: Discord Link   WHY? When I was a teenager I had this idea. Build my own Lineage 2 server. My own rules. My own world. I wasn't a programmer. I had no idea how any of it worked. I tried, hit a wall, and quit. But the idea never left. I came back years later. Got further. Quit again. Watched friends try similar things. The idea stayed stuck in my head for fifteen years. I'm a developer now. I finally finished it. Not because I suddenly had more time - I have a full-time job and real responsibilities. An hour before bed if I'm lucky. That's actually exactly why I finished it.   The problem I kept running into I still love this game. But every server I tried as an adult made that one hour feel worthless. Log in, kill a few mobs, make no real progress, log out frustrated. The game was designed for someone with unlimited time. That person doesn't exist in my life anymore. I looked around. Everyone I used to play with has the same problem. Same love for the game. Same lack of time. Jobs, families, maybe an hour late at night. So I stopped waiting for someone else to build it.           WHAT? Custom starting zone in Gludin (up until 2nd profession start) Talent system - rebirth at level 80 and choose your talents Bounty hunter system - daily tasks to kill random monsters to receive great reward! Potion crafting system - custom HP/MP potions and recipes Custom 1st & 2nd class quests (shorter) Scheme buffer Shop until C grade   Visit our website to get more info: Website Link   The philosophy 95% of the game is completely soloable. No clan required. No raid schedules. No guilt when you have to log off. You are the solo director of your own session. Log in, pursue your goal for an hour, log out on your own terms. When you've conquered what you wanted - you stop naturally. A new season drops with fresh Talent Tree changes and you come back to build something completely different. No endless stretched grind. No pay-to-win. No shady admin decisions. No surprise wipes. I'm one developer who built this because I love it.                                          This is the server I needed fifteen years ago. Glad I finally had the skills to build it. Come see what I made. [Forever Lineage]
    • Hello MaxCheaters community! We’ve all been there: you spend months customizing your NPCs, balancing classes, and setting up the perfect farm zones. You launch your server, the hype is real, and suddenly you hit 200 players—and the "delay" starts. The mobs stop reacting, the Olympiad matches stutter, and your players start complaining on Discord. Many "newbie" admins think the solution is just throwing more RAM at the VPS. While hardware matters, Java is a finicky beast. If you don't tune your JVM (Java Virtual Machine) and your core code, you’ll lag even on a NASA supercomputer. Today, I’m sharing a deep dive into optimizing your L2 server for maximum performance. 1. The Myth of "More RAM" The biggest mistake people make is assigning 32GB of RAM to a server that only needs 8GB. In Java, if your Heap size is too large, the "Garbage Collector" (GC) has to work much harder. When the GC runs a "Full GC" cycle on a massive heap, it performs a "Stop-the-World" event. This literally freezes your server threads for 1–3 seconds to clear memory. Recommendation: For a mid-rate server with 500 players, 6GB to 8GB of Xmx (Max Heap) is usually the sweet spot. Use G1GC (Garbage First Garbage Collector) instead of the old ParallelGC. It handles large heaps much more gracefully by breaking memory into regions. 2. JVM Startup Flags (The Secret Sauce) Don't just run java -jar l2jserver.jar. You need specific flags to ensure the CPU prioritizes the right tasks. Try adding these to your start.sh or start.bat: Bash   -Xms6G -Xmx6G -XX:+UseG1GC -XX:MaxGCPauseMillis=50 -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+ParallelRefProcEnabled -XX:+TieredCompilation MaxGCPauseMillis=50: This tells Java, "Try not to freeze the server for more than 50ms at a time." It makes the gameplay feel much smoother for the end-user. 3. Geodata and Pathfinding Optimization Geodata is the biggest CPU killer in Lineage 2. Every time a mob moves or a player clicks, the server calculates "Can I see this target?" and "Is there a wall in the way?". The Fix: Use a "Pathfinding Cache." If 100 players are running from the Giran Gate to the Luxury Shop, the server shouldn't calculate that path 100 times. Check your Geodata format: Ensure you are using the .l2j or .dat formats optimized for your specific core. If your console is flooded with "Pathfind node limit reached," increase your node limit in the geo.properties file, but be prepared for higher RAM usage. 4. Database Pooling (HikariCP vs. C3P0) If your server freezes for a split second every time someone saves their character or buys an item, your Database Connection Pool is the bottleneck. Most old L2J cores use C3P0, which is outdated and slow. Switch to HikariCP: It is significantly faster and handles "dead" connections much better. Also, ensure your characters and items tables are indexed correctly in MySQL. Running a VACUUM or OPTIMIZE TABLE once a week can prevent those annoying "saving player data" spikes. 5. Network Threading In your server settings, look for "Network" or "Thread" configurations. Usually, you’ll see SelectorThreads and WorkerThreads. Selector Threads: Should be equal to the number of physical CPU cores. Worker Threads: This is where the logic happens (skills, movement). If this is too low, actions will "queue up," creating a delay even if your ping is low. 6. Community Board (BBS) Optimization On MaxCheaters, we love fancy Community Boards. However, if your Buffer or Shop script is poorly coded, it might be reloading the entire HTML from the hard drive every time a player clicks a button. The Fix: Ensure your scripts cache the HTML in the RAM. Reading from an SSD is fast, but reading from RAM is thousands of times faster. Conclusion Optimization isn't a "one-click" fix; it’s about finding the balance between your hardware and your software. Start with your JVM flags, clean up your Geodata settings, and make sure your Database isn't choking on old logs. If you found this helpful, leave a comment or a "Thank You" below! If you have specific lag issues with a certain core (aCis, L2Emu, etc.), post your server.properties and I’ll try to help you tune it.
    • Hello all, we are a small team of developers working on two servers right now. One of them is Interlude and the other Gracia Final. Both will be pride-like aiming to make the servers similar to old pride's chronicles, C6 and GF respectively. For those not familiar here's some quick info:  9300x XP / 5500x Adena 1x Drop / 1x Spoil Safe Enchant +3 Start at Level 80 Custom PvP Zones & Reward System  Reworked Buffer Classes Wondrous Cubic All-in-one Panel  For more information visit our discord: https://discord.com/invite/YmCa7kbMuG
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..