DISCORD :
https://discord.com/users/325653525793210378
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/uthciha-services
https://campsite.bio/utchihaamkt
Question
DnR
Paidia prospa8isa na ftiaksw ena diko mou custom npc gia na ginesai noblesse amesws.
Omws otan pataw de ginetai tpt....
Mou bgazei mono ayto:You are either not on a quest that involves this NPC, or you don't meet this NPC's minimum quest requirements.
To A------ einai to item,apla de 8elw na to deite :P
# Made by parizakis
import sys
from net.sf.l2j.gameserver.model.actor.instance import L2PcInstance
from java.util import Iterator
from net.sf.l2j.gameserver.datatables import SkillTable
from net.sf.l2j import L2DatabaseFactory
from net.sf.l2j.gameserver.model.actor.appearance import PcAppearance
from net.sf.l2j.gameserver.model.quest import State
from net.sf.l2j.gameserver.model.actor.appearance import PcAppearance
from net.sf.l2j.gameserver.model.quest import QuestState
from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest
qn = "60000_NoblesseMaster"
NPC=[60000]
A------= -----
QuestId = 60000
QuestName = "NoblesseMaster"
QuestDesc = "custom"
InitialHtml = "60000-0.htm"
print "INFO Loaded: Possessor Of Noblesse"
class Quest (JQuest) :
def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)
def onEvent(self,event,st):
htmltext = event
if st.getPlayer().getLevel() < 80 :
htmltext = "60000-2.htm"
elif st.getPlayer().isNoble() == 1 :
htmltext = "60000-3.htm"
elif st.getPlayer().getLevel() < 80 :
htmltext = "60000-2.htm"
else:
st.getPlayer().setTarget(st.getPlayer())
if event == "2":
st.getPlayer().setNoble(True)
st.giveItems(A-----,1)
st.playSound("ItemSound.quest_finish")
st.setState(State.COMPLETED)
return "60000-1.htm"
st.exitQuest(1)
if htmltext != event:
st.setState(State.COMPLETED)
st.exitQuest(1)
return htmltext
def onTalk (self,npc,player):
st = player.getQuestState(qn)
htmltext = "<html><body>You don't meet this NPC's minimum requirements.</body></html>"
st.setState(State.STARTED)
return InitialHtml
QUEST = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc)
for npcId in NPC:
QUEST.addStartNpc(npcId)
QUEST.addTalkId(npcId)
5 answers to this question
Recommended Posts