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

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

 

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+.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • It's also the players' fault, because there have been decent servers implementing some of the things you said plus some other 'innovations', plus many QOL things for newbies (ingame bestiary, with drops searchers, etc). In the end, it's the players who decide to feed into that shit and play the most garbage servers simply because the owners of the servers gave their clan leaders 100 euros, or they insta quit the server because they didn't win the first QA, etc, etc, etc.   In the end, if a server is garbage or great it doesn't really matter if the players don't wanna stay in there.   Players are no better than the devs themselves, in the end it seems there are abusive devs who will milk the shit out of their willingly milkable players, or there are none, goes both ways.
    • In my opinion, L2 is dead because the people who make servers didn’t adapt to today’s reality. People are getting older, life moves faster, there are more responsibilities, and less free time. And I’m not even talking about newcomers—how can you expect someone new to this game to learn by Googling every drop location or quest requirement? These things should’ve been integrated into the game, made accessible with just a few clicks through the interface. Instead, so much time was wasted trying to recreate retail-like features that no one asked for. Everyone hates autofarm, but why? Because admins never found a smart way to implement it. You could have made it available only in specific zones, with reduced drops, working like Adrenaline, or auto-teleporting to farm for a limited time per day—just enough to help people with limited time stay relevant in-game. There should also be zones with better drops, where active farming actually matters. Other features feel pointless—like the Life Stone system. Spamming LS to get a skill? Instead, you could create a system where you level up the skill with low chances per level, something that feels progressive and fair. Crafting should be simpler too. Right-click a recipe, and the required materials should show up right there. As for sieges, why not create daily clan war events at peak hours—one for Europeans, one for Latinos? You could spawn crystals inside or outside castles that give points and trigger PvP. Add a boss during the event that gives even more points, and let the top clan in the ranking take the castle. I could go on forever, but what’s the point? The community died because the people who had the knowledge to improve the game just took the easy way out, copying the same server formula over and over until no one could enjoy playing it anymore.
    • It's not because I'm an admin that he treated me differently. I actually gave him several clients from my side without him even knowing they came from me, and most of them had no issues. I was also waiting 3–4 weeks at times for things I bought from AvE, even when I was in a rush. He still delivered in the end. That said, I'm not defending him blindly. I'm just saying it's unlikely he’d risk scamming someone over 60–100€, especially knowing how quickly word spreads here.
    • For exact same reason - there were accusation that I scammed. When was it? 2016? But in that time, admins actually didn't listen. I got banned, then unbaned (when I prooved I've refunded) but I was trash talking to mods. When few months later same shit happened, Grisom (?) old global mod, banned me anyway. You can read somewhere on forum how I was shitting on him for doing that (from other account because original account was banned) - which was banned too. He is not here anymore I think. Back in the days I was well know for not carring that much if I was talking to mod or admin, I didn't hold my tongue. Now You know. Just like You know - if I delay, I deliver or refund. I'm not a scammer, even if my old time haterz love to repeat themselfs like mantra. I don't care.
    • Okay I respect that but why is your other account banned?   I don't think this happened just because you delayed somebodys work even in 2012
  • Topics

×
×
  • Create New...