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

    • https://www.4shared.com/s/fyGGySJVvfa  
    • SOCNET STORE — is a unique place where you can find everything you need for your work on the Internet!   We offer the following range of products and services: Verified accounts with blue tick marks and confirmed documents in Instagram, Facebook, Twitter (X), LinkedIn; Gift cards and premium subscriptions for your services (Instagram Meta, Facebook Meta, Discord Nitro, Telegram Premium, YouTube Premium, Spotify Premium, ChatGPT, Netflix Premium, LinkedIn Premium, Twitter Premium, etc.); Telegram bot for purchasing Telegram Stars with a minimum markup with automatic delivery; Replenishment of your advertising accounts (in TikTok ADS, Facebook ADS, Google ADS, Bing ADS) + linking a bank card; Payment for any other service or subscription with a markup from 5 to 25% (depending on the cost of the subscription) Available payment methods: via PayPal, any cryptocurrency (+Binance Pay), Telegram Stars, Cash App, or any bank card.    Our online store  SOCNET.STORE  Our Telegram Stars Bot  SOCNET.CC  Our SMM-Panel for social media promotion  SOCNET.PRO  Telegram store  SOCNET.SHOP    News:  ➡ Telegram channel ➡ WhatsApp channel ➡ Discord server  Contacts and support:  ➡ Telegram support ➡ WhatsApp support ➡ Discord support: socnet_support ➡ Email support: solomonbog@socnet.store We have been operating for a long time and have gathered a huge list of reviews about our work! Our large list of positive and honest reviews is presented on our website!   VERIFIED ACCOUNTS    Verified old Instagram Meta account (2010-2020) with an active blue checkmark | Subscription has already been paid for 1 month in advance, account confirmed by documents: from $70 Verified old Facebook Meta account (2010-2023) with an active blue checkmark | Subscription has already been paid for 1 month in advance, account confirmed by documents: from $70 Verified Linkedin account (2010-2024) with an active checkmark and confirmed documents | Checkmark does not require renewal: from $80 Verified old Twitter (X) account (2010-2022) with an active blue checkmark | GEO: Tier 1-3 (your choice) | Subscription has already been paid for 1 month in advance: from $16    TELEGRAM STARS    Telegram Stars | 1 star from $0.0175 | Discounts for bulk orders | Delivery within 1-2 minutes automatically    GIFT SERVICES & PREMIUM SUBSCRIPTIONS  DISCORD NITRO Discord Nitro Classic (Basic) GIFT | 1/12 MONTHS | NO LOGIN OR PASSWORD NEEDED | Full subscription guarantee | Price from: $3.15 Discord Nitro FULL | 1/12 MONTHS | NO LOGIN OR PASSWORD NEEDED | Full subscription guarantee | Price from: $6.8 SPOTIFY PREMIUM Individual Spotify Premium plan for 1 month ON YOUR ACCOUNT | Available worldwide | Price from: $2.49 Family Spotify Premium plan for 1 month ON YOUR ACCOUNT | Works in any country | Price from: $3.75 Personal YouTube Premium Music on your account | 1 month | Ad-free YouTube | Price from: $3.75 Family YouTube Premium Music on your account | 1 month | Ad-free YouTube | Price from: $4.35 TELEGRAM PREMIUM Telegram Premium subscription for 1 month on your account | Authorization required (via TDATA or phone number) | Price from: $6 Telegram Premium subscription for 3 months on your account | No account authorization required | Guaranteed for full period | Price from: $17 Telegram Premium subscription for 6 months on your account | No account authorization required | Guaranteed for full period | Price from: $22 Telegram Premium subscription for 12 months on your account | No account authorization required | Guaranteed for full period | Price from: $37 GOOGLE VOICE • Google Voice Accounts (GMAIL US NEW) | Age/Year: Random 2024 | Phone Verified: Yes | Price from: $13 TWITTER(X) PREMIUM • Twitter Premium X subscription on your Twitter account for 1 month/1 year (your choice). Authorization in your Twitter account is required. Price from: $13 per month • Twitter X Premium Plus subscription with GROK AI on your Twitter account for 1 month/1 year (your choice). Authorization in your Twitter account is required. Price from: $55 NETFLIX PREMIUM • Netflix Premium subscription for 1 month on your personal account for any country, renewable after expiration | Price from: $10 CANVA PRO • CANVA PRO subscription for 1 month via invitation to your email | Price from: $1 CHATGPT 5 • Shared ChatGPT 5 Plus account FOR 2/5 USERS | Price from: $5 / $10 • Group ChatGPT 5 Plus subscription on your own email address for 1 month | Price from: $5 • Personal ChatGPT 5 Plus account FOR 1 USER or CHAT GPT PLUS subscription on your own account | Price from: $18 • ChatGPT 5 PRO account with UNLIMITED REQUESTS | Dedicated personal account FOR 1 USER ONLY or ON YOUR ACCOUNT | Works in any country or region | Price from: $220 Payment for any other subscription and replenishment of advertising accounts: Additional 5–20% to the cost of the subscription on the site or to the replenishment amount depending on the total purchase amount.   Attention: This text block does not represent our full product range; for more details, please visit the relevant links below! If you have any questions, our support team is always ready to help!       Our online store  SOCNET.STORE  Our Telegram Stars Bot  SOCNET.CC  Our SMM-Panel for social media promotion  SOCNET.PRO  Telegram store  SOCNET.SHOP    News:  ➡ Telegram channel ➡ WhatsApp channel ➡ Discord server  Contacts and support:  ➡ Telegram support ➡ WhatsApp support ➡ Discord support: socnet_support ➡ Email support: solomonbog@socnet.store We have been operating for a long time and have gathered a huge list of reviews about our work! Our large list of positive and honest reviews is presented on our website!  10% – 20% Discount or $1 BONUS for your registration  If you’d like to receive a $1 BONUS for your registration OR a DISCOUNT of 10% – 20% on your first purchase, simply leave a comment: "SEND ME MY BONUS, MY USERNAME IS..." You can also use the ready promo code across all our stores: "SOCNET" (15% discount!)  We invite you to COOPERATE and EARN with us  Want to sell your product or service in our stores and earn money? Want to become our partner or propose a mutually beneficial collaboration? You can contact us through the CONTACTS listed in this thread. Frequently Asked Questions and Refund Policy If you have any questions or issues, our fast customer support is always ready to respond to your requests! Refunds for services that do not fully meet the stated requirements or quality will only be issued if a guarantee and duration are explicitly mentioned in the product description. In all other cases, refunds will not be fully processed! By purchasing such services, you automatically agree to our refund policy for non-provided services. We currently accept CRYPTOMUS, Payeer, NotPayments, Perfect Money, Russian and Ukrainian bank cards, AliPay, BinancePay, CryptoBot, credit cards, and PayPal. The $1 registration bonus can only be used for purchases and only once after your first registration in any SOCNET project. We value every customer and provide replacements in case of invalid accounts through our contact methods! p.s.: Purchase bonuses can be used across any SOCNET projects: web store or Telegram bots.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock