hunterl2 Posted January 22, 2013 Share Posted January 22, 2013 I add Delevel Npc to my server and when i click i get this plz help me.....Thx Link to comment Share on other sites More sharing options...
0 panjoo Posted January 22, 2013 Share Posted January 22, 2013 from where u download this npc? Link to comment Share on other sites More sharing options...
0 hunterl2 Posted January 22, 2013 Author Share Posted January 22, 2013 Don't remember..but i had it from a long time Link to comment Share on other sites More sharing options...
0 Boorinio Posted January 22, 2013 Share Posted January 22, 2013 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? Link to comment Share on other sites More sharing options...
0 hunterl2 Posted January 22, 2013 Author Share Posted January 22, 2013 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 More sharing options...
0 lowevaldas Posted January 23, 2013 Share Posted January 23, 2013 Accidently double post.. Link to comment Share on other sites More sharing options...
0 lowevaldas Posted January 23, 2013 Share Posted January 23, 2013 I add Delevel Npc to my server and when i click i get this plz help me.....Thx 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 More sharing options...
Question
hunterl2
I add Delevel Npc to my server and when i click i get this plz help me.....Thx
Link to comment
Share on other sites
6 answers to this question
Recommended Posts