Jump to content
  • 0

Quest


VaGGPD

Question

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!

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

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?

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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 στην κατάλληλη τοποθεσία τους.
Link to comment
Share on other sites

  • 0

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

oxi einai akrivos apo to svn tous compile!

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

Link to comment
Share on other sites

  • 0

oxi einai akrivos apo to svn tous compile!

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

Σε ποια περιοχή αναφέρεσαι;
Link to comment
Share on other sites

  • 0

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

 

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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

    • Name: Rebel - WoW Website: https://rebel-wow.com/ Realmlist: Rebel 4.3.4 Cataclysm Instant 85 PvP Working PvP (player vs player ) environment, working Battlegrounds, spells, runes, etc. Custom Scripts: Duel Reset, Morpher, Free s11 403 gear as Starter, Free Mog gear (shadowmourne and more) Easy farm legendary, No crash, No lag            
    • In NBA 2K23’s MyTEAM mode, MT points are the currency used mainly at the Auction House, where people can trade player cards and other items. People can also use MT points to buy packs from the Pack Market.    MT points are also called MTP, MT, or MT coins. MT is one of the most important currencies in the game of NBA 2K23 because most people use MT to buy player cards they need for their team. The Auction House is the fastest way to acquire player cards, so knowing how to gather MT is important.   To earn MT coins in the game, people can sell unwanted cards or items, participate in different MyTEAM game modes, and flip items in the Auction House. Earning MT is a process requiring time, effort, and even some luck. People who don't like grind usually choose to purchase NBA 2K23 MT poins with real money from third-party websites.    The third-party websites use the Auction House to transfer MT points to their customers, and such behavior does violate the 2K Player Code of Conduct. But many gamers still prefer to buy MT from third parties because purchasing with real money is the easiest way to get NBA 2K23 MT quickly.   How to Earn MT in NBA 2K23 If you want to earn MT points in NBA 2K23 without spending money, there are many methods available. Below are some of the most popular ones.   Trading in Auction House One of the best places to earn MT is the Auction House. This in-game trading system allows trading with other gamers. You can sell unwanted player cards for MT coins, and if you have a good filter and enough patience, you can also make a decent profit by "Sniping" in the Auction House.   Completing Challenges In the MyTeam mode, there are various Challenges available on a daily, weekly, monthly, and lifetime basis. By completing these Challenges, you can obtain MT coins.   Playing Multiple MyTEAM Modes Domination and Triple Threat Online/Offline modes are also effective ways to get valuable cards, items, and MTP. While Domination provides the quickest way to earn MT, if you have limited time to play, you may prefer to play Triple Threat matches instead.   Redeeming Locker Codes This is a method that doesn’t require much effort. You only need to keep an eye on NBA 2K’s MyTEAM official Twitter account to get a code. Then, enter the code in the MyTEAM Community Hub to win rewards, including packs, tokens, players, or MT. Note that Locker Codes have expiration dates and won’t work after that date.  
    • Hello Mxc Community,   L2TRUE-CLUB is getting ready for its closed beta phase, and we want YOU to be part of this special opportunity! Explore the amazing world of Lineage 2 in its purest form.   We're looking for skilled players who know their way around Gracia Final L2OFF and are familiar with Lineage 2 mechanics.   To show our appreciation, we have awesome rewards lined up just for our beta testers. Make sure to regularly check our discord channel for updates and get ready to dive into this exciting adventure!   To join the L2TRUE-CLUB closed beta or if you have any questions, visit our Website or join Discord Channel.   We can't wait to welcome you to the game! Best regards, The L2TRUE-CLUB Team
    • Essence Party Style Reuse Skill time Auto Potion Settings INGAME FEATURES Auto Enchant / Auto Augment System Auto Assist System Auto Skill Enchant System Debuffs on Separate Line Custom Casting Skill Bar Inventory Search Save/Load Party LOW HP Warning Screen Visuals ALT+Q Insta Kick From Game ALT+RIGHT+CLICK On Party Member Switch UP/DOWN Positions CTRL+ALT+CLICK Delete Instantly Any Item ALT+Z Open/Close Auto Assist SHIFT+CTRL+RIGHT Click #1ST Main Assister SHIFT+CTRL+LEFT Click #2ST Main Assister SHIFT+CTRL+H Enables Hold Target SHIFT+CTRL+I Enables Ignore Target (Note on request most of features can be removed)    Some Screenshots         Price: 50€ 3 Character names bind (Version for Player) Price: 300€ Special for Server Owners (Version for Owners + Server Community players) Updates Lifetime Discord https://discord.gg/9VN6hjRT7Y    
  • 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