Jump to content
  • 0

Help me to fix this error


hunterl2

Question

6 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • 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