Jump to content
  • 0

Help me to fix this error


Question

6 answers to this question

Recommended Posts

  • 0
Posted

Don't remember..but i had it from a long time

First of all does the gs gives you error during the import of the quest? what project are you using?

  • 0
Posted

L2j Frozen and here is the code from int..

 

# Npc by RevoltadO
import sys
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 = "8500_LevelDown"
NPCid = [80005]
NPC = [80005]
ADENA = 57
QuestId = 8500
QuestName = "LevelDown"
QuestDesc = "custom"
InitialHtml = "1.htm"


print "Regress Level Npc Sucessfully imported"

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

    def onEvent(self,event,st) :
        htmltext = event
        level = st.getPlayer().getLevel()
        #Regress level for 1kk
        if event == "1":
            if st.getQuestItemsCount(ADENA) >= 1000:
                  st.takeItems(ADENA,1000)
                  delexp = (st.player.getStat().getExp() - st.player.getStat() .getExpForLevel(level-1))
                  st.player.getStat().addExp(-delexp)
                  return "2.htm"
            else:
                  htmltext = "You do not have Adena"
                  return htmltext
                
    def onTalk (self,npcid,player):
        st = player.getQuestState(qn)
        st.setState(State.STARTED)
        return InitialHtml

QUEST       = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc)

for npcId in NPC:
QUEST.addStartNpc(npcId)
QUEST.addTalkId(npcId)

 

Gs doesn't give errors but when i click to delevel i get this error

  • 0
Posted

I add Delevel Npc to my server and when i click i get this plz help me.....Thx

 

 

dgf.jpg

 

Did you added this to scripts.cfg in gameserver/data folder? If no did you tryed to reload script custom?

Guest
This topic is now closed to further replies.
×
×
  • Create New...