Jump to content
  • 0

Quest


Question

Posted

kalispera se ola ta members!! Exo to eksis provlima me ena quest!

Pao milao sto npc kai mou leei to gnosto "You dont meet the criteria etc..."

Aniksa sto html kai to init_py alla dn mporo na katalavo pos mporo na to fixaro!

An ksereis kapios as mou pei! to init_py einai etsi:

 

# Created by Gnacik

# 2010-02-16 based on official Franz server

 

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

 

qn = "311_ExpulsionOfEvilSpirits"

 

CHAIREN    = 32655

 

SOUL_CORE = 14881

RAGNA_ORCS_AMULET = 14882

 

DROP_CHANCE = 20

 

MOBS = [22691,22692,22693,22694,22695,22696,22697,22698,22699,22700,22701,22702]

 

 

class Quest (JQuest) :

 

    def __init__(self,id,name,descr):

        JQuest.__init__(self,id,name,descr)

        self.questItemIds = [sOUL_CORE,RAGNA_ORCS_AMULET]

 

    def onExchangeRequest (self,event,st,qty) :

        st.giveItems(int(event),1)

        st.takeItems(RAGNA_ORCS_AMULET,qty)

        st.playSound("ItemSound.quest_finish")

        return "32655-13ok.htm"

 

    def onAdvEvent (self,event,npc,player) :

        htmltext = event

        st = player.getQuestState(qn)

        if not st : return

        if event == "32655-yes.htm" :

            st.set("cond","1")

            st.setState(State.STARTED)

            st.playSound("ItemSound.quest_accept")

        elif event.isdigit() :

            f = st.getQuestItemsCount(RAGNA_ORCS_AMULET)

            if int(event) == 9482 and f >= 488 :                        # Recipe: Sealed Dynasty Breast Plate (60%)

                htmltext = self.onExchangeRequest(event,st,488)

            elif int(event) == 9483 and f >= 305 :                        # Recipe: Sealed Dynasty Gaiter (60%)

                htmltext = self.onExchangeRequest(event,st,305)

            elif int(event) == 9484 and f >= 183 :                        # Recipe: Sealed Dynasty Helmet (60%)

                htmltext = self.onExchangeRequest(event,st,183)

            elif int(event) == 9485 and f >= 122 :                        # Recipe: Sealed Dynasty Gauntlet (60%)

                htmltext = self.onExchangeRequest(event,st,122)

            elif int(event) == 9486 and f >= 122 :                        # Recipe: Sealed Dynasty Boots (60%)

                htmltext = self.onExchangeRequest(event,st,122)

            elif int(event) == 9487 and f >= 366 :                        # Recipe: Sealed Dynasty Leather Armor (60%)

                htmltext = self.onExchangeRequest(event,st,366)

            elif int(event) == 9488 and f >= 229 :                        # Recipe: Sealed Dynasty Leather Leggings (60%)

                htmltext = self.onExchangeRequest(event,st,229)

            elif int(event) == 9489 and f >= 183 :                        # Recipe: Sealed Dynasty Leather Helmet (60%)

                htmltext = self.onExchangeRequest(event,st,183)

            elif int(event) == 9490 and f >= 122 :                        # Recipe: Sealed Dynasty Leather Gloves (60%)

                htmltext = self.onExchangeRequest(event,st,122)

            elif int(event) == 9491 and f >= 122 :                        # Recipe: Sealed Dynasty Leather Boots (60%)

                htmltext = self.onExchangeRequest(event,st,122)

            elif int(event) == 9497 and f >= 129 :                        # Recipe: Sealed Dynasty Shield (60%)

                htmltext = self.onExchangeRequest(event,st,129)

            elif int(event) == 9625 and f >= 667 :                        # Giant's Codex - Oblivion

                htmltext = self.onExchangeRequest(event,st,667)

            elif int(event) == 9626 and f >= 1000 :                        # Giant's Codex - Discipline

                htmltext = self.onExchangeRequest(event,st,1000)

            elif int(event) == 9628 and f >= 24 :                        # Leonard

                htmltext = self.onExchangeRequest(event,st,24)

            elif int(event) == 9629 and f >= 43 :                        # Leonard

                htmltext = self.onExchangeRequest(event,st,43)

            elif int(event) == 9630 and f >= 36 :                        # Adamantine

                htmltext = self.onExchangeRequest(event,st,36)

            else :

                htmltext = "32655-13no.htm"

        elif event == "32655-14.htm" :

            if st.getQuestItemsCount(SOUL_CORE) == 10 :

                # TODO

                # htmltext = "32655-14ok.htm"

                htmltext = ""

            else:

                htmltext = "32655-14no.htm"

        elif event == "32655-quit.htm" :

            st.unset("cond")

            st.exitQuest(1)

            st.playSound("ItemSound.quest_finish")

        return htmltext

 

    def onTalk (self,npc,player) :

        htmltext = "<html><body>You are either not on a quest that involves this NPC, or you don't meet this NPC's minimum quest requirements.</body></html>"

        st = player.getQuestState(qn)

        if not st : return htmltext

 

        npcId = npc.getNpcId()

        cond = st.getInt("cond")

 

        if npcId == CHAIREN:

            if cond == 0:

                if player.getLevel() >= 80 :

                    htmltext = "32655-01.htm"

                else :

                    htmltext = "32655-lvl.htm"

                    st.exitQuest(1)

            elif st.getState() == State.STARTED :

                if st.getQuestItemsCount(SOUL_CORE) >= 1 or st.getQuestItemsCount(RAGNA_ORCS_AMULET) >= 1 :

                    htmltext = "32655-12.htm"

                else :

                    htmltext = "32655-10.htm"

        return htmltext

 

    def onKill(self,npc,player,isPet) :

        st = player.getQuestState(qn)

        if not st : return

        if st.getState() != State.STARTED : return

 

        npcId = npc.getNpcId()

        cond = st.getInt("cond")

        if cond == 1 and npcId in MOBS :

            if st.getRandom(100) < DROP_CHANCE :

                st.giveItems(RAGNA_ORCS_AMULET,1)

                st.playSound("ItemSound.quest_itemget")

        return

 

QUEST        = Quest(311,qn,"Expulsion of Evil Spirits")

 

QUEST.addStartNpc(CHAIREN)

QUEST.addTalkId(CHAIREN)

 

for i in MOBS :

    QUEST.addKillId(i)

 

Eno eimai 81lvl kanonika opos thelei to Q na eisai pano 80 ktlp..ti na po opios kserei as voithisei.

L2jserver last revision CT.2.4 epilogue.

 

Eyxaristo!

7 answers to this question

Recommended Posts

  • 0
Posted

kalispera se ola ta members!! Exo to eksis provlima me ena quest!

Pao milao sto npc kai mou leei to gnosto "You dont meet the criteria etc..."

Aniksa sto html kai to init_py alla dn mporo na katalavo pos mporo na to fixaro!

An ksereis kapios as mou pei! to init_py einai etsi:

 

Eno eimai 81lvl kanonika opos thelei to Q na eisai pano 80 ktlp..ti na po opios kserei as voithisei.

L2jserver last revision CT.2.4 epilogue.

 

Eyxaristo!

το init.py ειναι περασμένο στα scripts.cfg?

  • 0
Posted

Ok to fixara mporeis na pareis to q ola komple! to provlima mou omos einai oti o server den exei ta new mobs sta new zones tou epilogue!! Diladi sto den of evil den exei ta lvl 80+ exei ta 40-45...opos oute sto stakato nest ktlp.... Kserei kaneis pos ftiaxnete?? Gracia epilogue last revision l2jserver official

  • 0
Posted

Ok to fixara mporeis na pareis to q ola komple! to provlima mou omos einai oti o server den exei ta new mobs sta new zones tou epilogue!! Diladi sto den of evil den exei ta lvl 80+ exei ta 40-45...opos oute sto stakato nest ktlp.... Kserei kaneis pos ftiaxnete?? Gracia epilogue last revision l2jserver official

Μήπως είναι κάποιο custom pack? Γιατί κι εγώ l2j ep χρησιμοποιώ και είναι όλα τα mobs στην κατάλληλη τοποθεσία τους.
  • 0
Posted

Μήπως είναι κάποιο custom pack? Γιατί κι εγώ l2j ep χρησιμοποιώ και είναι όλα τα mobs στην κατάλληλη τοποθεσία τους.

oxi einai akrivos apo to svn tous compile!

Kai mena exei spawn mobs ekei alla oxi ta lvl 81+...

  • 0
Posted

oxi einai akrivos apo to svn tous compile!

Kai mena exei spawn mobs ekei alla oxi ta lvl 81+...

Σε ποια περιοχή αναφέρεσαι;
  • 0
Posted

Σε ποια περιοχή αναφέρεσαι;

 

Se ola ta new epilogue areas! Den of evil,crypts of disgrace,fog ta new mobs Primeval island ta new mobs opos episis kai ta quests tous den litourgoun....opos kai stakato nest exei ta palia mobs oxi ta 81+.

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

    • You should buy it then I’ll make a discount  
    • Hi everyone,   In 2014, I completely stepped away from developing L2 servers and doing L2J-related work. Since then, I’ve only opened this server about once a year and helped a few servers and individuals for free. I haven’t taken on any paid L2J work since then.   LINEAGE2.GOLD is a project that has reached about Season 6. The first season launched at the end of 2020 and was a fully rebuilt Gold-style server on the Classic client (protocol 110). It featured many custom systems and enhancements. After several seasons, I decided to abandon the Mobius-based project and move to Lucera, as my goal was to get as close as possible to Interlude PTS behavior while still staying on the L2J platform.   The current project was once again completely rebuilt, this time on the Essence client (protocol 306), and is based on Lucera. Because of that, acquiring a license from Deazer is required.   My Lucera extender includes, but is not limited to: Formulas.java Basic anti-bot detection, which proved quite effective, we caught most Adrenaline users using relatively simple server-side logic, logged them, and took staff action. Simple admin account lookup commands based on IP, HWID, and similar identifiers. In-game Captcha via https://lineage2.gold/code, protected by Cloudflare, including admin commands for blacklisting based on aggression levels and whitelisting. Additional admin tools such as Auto-Play status checks, Enchanted Hero Weapon live sync, force add/remove clans from castle sieges, item listeners for live item monitoring, and more. A fully rewritten Auto-Play system with support for ExAutoPlaySetting, while still using the Auto-Play UI wheel, featuring: Debuff Efficiency Party Leader Assist Respectful Hunting Healer AI Target Mode Range Mode Summoner buff support Dwarf mechanics Reworked EffectDispelEffects to restore buffs after Cancellation. Raid Bomb item support. Reworked CronZoneSwitcher. Prime Time Raid Respawn Service. Community Board features such as Top rankings and RB/Epic status. Custom systems for Noblesse, Subclasses, support-class rewards, and much more.   Depending on the deal, the project can include: The lineage2.gold domain The website built on the Laravel PHP framework The server’s Discord Client Interface source Server files and extender source The server database (excluding private data such as emails and passwords)   I’m primarily looking for a serious team to continue the project, as it would be a shame to see this work abandoned. This is not cheap. You can DM me with offers. If you’re wondering why I’m doing this: I’ve felt a clear lack of appreciation from the L2 community, and I’m not interested in doing charity work for people who don’t deserve it. I’m simply not someone who tolerates BS. Server Info: https://lineage2.gold/info Server for test: https://lineage2.gold/download Over 110 videos YouTube playlist: https://www.youtube.com/watch?v=HO7BZaxUv2U&list=PLD9WZ0Nj-zstZaYeWxAxTKbX7ia2M_DUu&index=113
  • 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..

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