Jump to content
  • 0

[Help]Nobless npc


Question

Posted

Hi guys tou maxcheaters....Loipon exw na kanw tn ekseis erwtisi...9a i9ela na ftiaksw ena diko mou nobless npc k na tou valw egw oti items 9elw gia na ginei nobless mporei kapoios na mou deiksei enan odigo i na mou pei ti na kanw?? :/ exw ena nobless npc ston server mou alla dn kserw pws ginete na to allaksw ta items...px egw tr tou exw na 9elei 2 sub k 2 gb pws ginete px na to kanw na vgoun ta gb k gia paradigma na mpoune gold drake?? :/ anyone help me??? :) ty

10 answers to this question

Recommended Posts

  • 0
Posted

Hi guys tou maxcheaters....Loipon exw na kanw tn ekseis erwtisi...9a i9ela na ftiaksw ena diko mou nobless npc k na tou valw egw oti items 9elw gia na ginei nobless mporei kapoios na mou deiksei enan odigo i na mou pei ti na kanw?? :/ exw ena nobless npc ston server mou alla dn kserw pws ginete na to allaksw ta items...px egw tr tou exw na 9elei 2 sub k 2 gb pws ginete px na to kanw na vgoun ta gb k gia paradigma na mpoune gold drake?? :/ anyone help me??? :) ty

Στείλε ολόκληρο το _ini_ εδώ και θα σου δείξω.

  • 0
Posted

import sys

from com.l2jfrozen.gameserver.model.actor.instance import L2PcInstance

from com.l2jfrozen.gameserver.model.actor.instance import L2NpcInstance

from java.util import Iterator

from com.l2jfrozen.util.database import L2DatabaseFactory

from com.l2jfrozen.gameserver.model.quest import State

from com.l2jfrozen.gameserver.model.quest import QuestState

from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest

 

qn = "6666_NoblessTrader"

 

NPC=[66666]

NOBLESS_TIARA=7694

Goldbar=3470

QuestId    = 6666

QuestName  = "NoblessTrade"

QuestDesc  = "custom"

InitialHtml = "31739-1.htm"

 

print "Nobless Trader (66666) Enabled..."

 

class Quest (JQuest) :

 

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

 

def onEvent(self,event,st):

              htmltext = "<html><head><body>I have nothing to say you</body></html>"

              cond = st.getInt("cond")

              count=st.getQuestItemsCount(GOLD_BAR)

              if event == "31739-3.htm" :

                  if cond == 0 and st.getPlayer().isSubClassActive() :

                      if st.getPlayer().getLevel() >= 70 and count > 1:

                            htmltext=event

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

                            st.getPlayer().setNoble(True)

                            st.giveItems(NOBLESS_TIARA,1)

                            st.playSound("ItemSound.quest_finish")

                            st.setState(COMPLETED)

                            st.takeItems(GOLD_BAR,2)

                      else :

                            htmltext="31739-2.htm"

                            st.exitQuest(1)

                  else :

                      htmltext="31739-2.htm"

                      st.exitQuest(1)

              return htmltext

 

def onTalk (self,npc,player):

  htmltext = "<html><head><body>I have nothing to say you</body></html>"

          st = player.getQuestState(qn)

          if not st : return htmltext

          npcId = npc.getNpcId()

          id = st.getState()

          if id == CREATED :

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

              htmltext="31739-1.htm"

          elif id == COMPLETED :

              htmltext = "<html><head><body>This quest have already been completed.</body></html>"

          else :

              st.exitQuest(1)

          return htmltext

 

 

QUEST = Quest(6666,qn,"custom")

CREATED    = State('Start', QUEST)

STARTING    = State('Starting', QUEST)

STARTED    = State('Started', QUEST)

COMPLETED  = State('Completed', QUEST)

QUEST.setInitialState(CREATED)

 

for npcId in NPC:

QUEST.addStartNpc(npcId)

QUEST.addTalkId(npcId)

 

 

 

 

oriste...Gia peC mou...k ty gia ton kopo Cu..!!!

  • 0
Posted

Πέρνα το και είσαι οκ.

Από τώρα θα χρειάζεται 2 Gold Drake.

Αν θες απλά βάλε παραπάνω ή παρακάτω.

Με κόκκινο του έχω το όνομα, και με μπλε την τιμή του.

Τα άλλα χρώματα παραπάνω σου δείχνω απλά την ονομασία και το ID του.

 

import sys

from com.l2jfrozen.gameserver.model.actor.instance import L2PcInstance

from com.l2jfrozen.gameserver.model.actor.instance import L2NpcInstance

from java.util import Iterator

from com.l2jfrozen.util.database import L2DatabaseFactory

from com.l2jfrozen.gameserver.model.quest import State

from com.l2jfrozen.gameserver.model.quest import QuestState

from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest

 

qn = "6666_NoblessTrader"

 

NPC=[66666]

NOBLESS_TIARA=7694

GoldDrake=3485

QuestId    = 6666

QuestName  = "NoblessTrade"

QuestDesc  = "custom"

InitialHtml = "31739-1.htm"

 

print "Nobless Trader (66666) Enabled..."

 

class Quest (JQuest) :

 

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

 

  def onEvent(self,event,st):

              htmltext = "<html><head><body>I have nothing to say you</body></html>"

              cond = st.getInt("cond")

              count=st.getQuestItemsCount(GOLD_DRAKE)

              if event == "31739-3.htm" :

                  if cond == 0 and st.getPlayer().isSubClassActive() :

                      if st.getPlayer().getLevel() >= 70 and count > 1:

                            htmltext=event

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

                            st.getPlayer().setNoble(True)

                            st.giveItems(NOBLESS_TIARA,1)

                            st.playSound("ItemSound.quest_finish")

                            st.setState(COMPLETED)

                            st.takeItems(GOLD_DRAKE,2)

                      else :

                            htmltext="31739-2.htm"

                            st.exitQuest(1)

                  else :

                      htmltext="31739-2.htm"

                      st.exitQuest(1)

              return htmltext

 

  def onTalk (self,npc,player):

      htmltext = "<html><head><body>I have nothing to say you</body></html>"

          st = player.getQuestState(qn)

          if not st : return htmltext

          npcId = npc.getNpcId()

          id = st.getState()

          if id == CREATED :

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

              htmltext="31739-1.htm"

          elif id == COMPLETED :

              htmltext = "<html><head><body>This quest have already been completed.</body></html>"

          else :

              st.exitQuest(1)

          return htmltext

 

 

QUEST = Quest(6666,qn,"custom")

CREATED    = State('Start', QUEST)

STARTING    = State('Starting', QUEST)

STARTED    = State('Started', QUEST)

COMPLETED  = State('Completed', QUEST)

QUEST.setInitialState(CREATED)

 

for npcId in NPC:

QUEST.addStartNpc(npcId)

QUEST.addTalkId(npcId)

  • 0
Posted

k ama px 9elw na valw 4 items pws 9a ginei??? :/

Εκεί που σου έχω με μπλε και σου δείχνει 2 απλά βάλε 4.

  • 0
Posted

haha ;p oxi dn me katalaves an 9elw na valw 4 items oxi 4 gold drake... :/

Δεν είμαι σίγουρος όμως αν πάει έτσι.

 

 

NPC=[66666]

NOBLESS_TIARA=7694

GoldDrake=3485

GoldBar=3470

QuestId    = 6666

QuestName  = "NoblessTrade"

QuestDesc  = "custom"

InitialHtml = "31739-1.htm"

 

print "Nobless Trader (66666) Enabled..."

 

class Quest (JQuest) :

 

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

 

  def onEvent(self,event,st):

              htmltext = "<html><head><body>I have nothing to say you</body></html>"

              cond = st.getInt("cond")

              count=st.getQuestItemsCount(GOLD_DRAKE)

              count=st.getQuestItemsCount(GOLD_BAR)

              if event == "31739-3.htm" :

                  if cond == 0 and st.getPlayer().isSubClassActive() :

                      if st.getPlayer().getLevel() >= 70 and count > 1:

                            htmltext=event

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

                            st.getPlayer().setNoble(True)

                            st.giveItems(NOBLESS_TIARA,1)

                            st.playSound("ItemSound.quest_finish")

                            st.setState(COMPLETED)

                            st.takeItems(GOLD_DRAKE,2)

                            st.takeItems(GOLD_BAR,2)

  • 0
Posted

Επισης γινεται και να κανεισ και καινουριο με Java, που ειναι προτιμοτερο να τα κανεις με Java παρα να χρησιμοποιεις Python, και πιο καλο σε ολες τις αποψεις.

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.

×
×
  • Create New...