Skip to content

[Request]Hellbound Qust Help

Featured Replies

Helo i want to ask about hellbound quest ( my server is Gracia Final / L2j ) there are 2 versions of that quest and in my server easyest version that you make by speaking 2 times with casian and galate (quest name: Path to Hellbound) but after i complete quest when i click on warpgate nothing happen :(

so can some one told me what shoud i do to make that quest work ?

 

(sry for my bad eng)

 

Hello, try this

 

import sys
from net.sf.l2j.gameserver.model.quest import State
from net.sf.l2j.gameserver.model.quest import QuestState
from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest

qn = "130_PathToHellbound"

#NPCs
GALATE = 32292
CASIAN = 30612

#ITEMS
CASIAN_BLUE_CRY = 12823

class Quest (JQuest) :

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

def onEvent (self,event,st) :
   htmltext = event
   if event == "30612-03.htm" :
     st.set("cond","1")
     st.setState(State.STARTED)
     st.playSound("ItemSound.quest_accept")
   elif event == "32292-03.htm" :
 st.set("cond","2")
 st.playSound("ItemSound.quest_middle")
   elif event == "30612-05.htm" :
 st.set("cond","3")
 st.giveItems(CASIAN_BLUE_CRY,1)
 st.playSound("ItemSound.quest_middle")
   elif event == "32292-06.htm" :
 st.takeItems(CASIAN_BLUE_CRY,-1)
 st.playSound("ItemSound.quest_finish")
 st.exitQuest(False)
   return htmltext

def onTalk (self,npc,player):
   st = player.getQuestState(qn)
   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>"
   if not st: return htmltext

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

   if id == State.COMPLETED :
     htmltext = "<html><body>This quest has already been completed.</body></html>"

   elif npcId == CASIAN and cond == 0 :
     if player.getLevel() >= 78 :
       htmltext = "30612-01.htm"
     else :
       htmltext = "30612-00.htm"
       st.exitQuest(1)
   elif npcId == GALATE and cond == 1 :
     htmltext = "32292-01.htm"
   elif npcId == CASIAN and cond == 2 :
     htmltext = "30612-04.htm"
   elif npcId == GALATE and cond == 3 :
     if st.getQuestItemsCount(CASIAN_BLUE_CRY) == 1 :
       htmltext = "32292-04.htm"
     else :
       htmltext = "Incorrect item count."
   return htmltext

QUEST     = Quest(130,qn,"Path to Hellbound")

QUEST.addStartNpc(CASIAN)

QUEST.addTalkId(CASIAN)
QUEST.addTalkId(GALATE)


HTML FILES Here

 

  • Author

tnx i will try it now and give you my answer

 

 

.... nah my quest its the same didnt work .. i mean quest worl perfec i speak with casian and galate without problem the problem come when i speak with Warpgate when i klick nothink happen :S

you have the hellbound ai?

  • Author

i make it wapgate was bugged tnx alot you can lock topic :)

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.