Jump to content

torsello

Members
  • Posts

    15
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by torsello

  1. Thanks guys, i found the solución, the problem was that , this method is private, and its on another public method. Im agree with you Tryskell haha
  2. This is the code, and the part its on the last ELSE. I've to write st.player.giveAvailableSkills()? I'm adding on the right part? I write it after give subclass item and after set class and lvl http://pastebin.com/DAi0TQN2 I have use st.player.giveAvailableSkills() and apear this: Traceback (innermost last): File "__init__.py", line 704, in onEvent AttributeError: giveAvailableSkills at org.python.core.Py.AttributeError(Unknown Source) at org.python.core.PyInstance.invoke(Unknown Source) at org.python.pycode.serializable._pyx1442539468425.onEvent$27(__init__. py:704) at org.python.pycode.serializable._pyx1442539468425.call_function(__init __.py) at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyFunction.__call__(Unknown Source) at org.python.core.PyMethod.__call__(Unknown Source) at org.python.core.PyObject.__call__(Unknown Source) at org.python.core.PyObject._jcallexc(Unknown Source) at org.python.core.PyObject._jcall(Unknown Source) at org.python.proxies.main$Quest$709.onEvent(Unknown Source) at net.sf.l2j.gameserver.model.quest.Quest.onAdvEvent(Quest.java:540) at net.sf.l2j.gameserver.model.quest.Quest.notifyEvent(Quest.java:355) at net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.processQuestE vent(L2PcInstance.java:1428) at net.sf.l2j.gameserver.clientpackets.RequestBypassToServer.runImpl(Req uestBypassToServer.java:176) at net.sf.l2j.gameserver.clientpackets.ClientBasePacket.run(ClientBasePa cket.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
  3. Hi friends, well i set FALSE to AutoLearnSkills, BUT, i want to use giveAvailableSkills on my script of Subclass NPC to give skills when a char make subclass and go to lvl 40, i put st.giveAvailableSkills but it shows an error, what is the right way? Im trying like that: (Last part of code , if want more, only tell me) http://pastebin.com/ksUd2CVM i import L2PcInstance (c4 server)
  4. Error while loading zones. java.lang.NullPointerException at net.sf.l2j.gameserver.datatables.ZoneTable.load(ZoneTable.java:116) at net.sf.l2j.gameserver.datatables.ZoneTable.<init>(ZoneTable.java:76) at net.sf.l2j.gameserver.datatables.ZoneTable.getInstance(ZoneTable.java :64) at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:249) at net.sf.l2j.gameserver.GameServer.main(GameServer.java:578) This error :c If i replace name by id, doesnt show me any error, but not work
  5. ohh :s, and how i can see the id of the name zone?.., i have to reemplazae name by id? thanks!
  6. Hi, my question is, how i have to do to add this on zone? , because i copy and paste and shows me an error with java.. No store zone: http://pastebin.com/tcXfND0q on Zone.xml http://pastebin.com/gNWkyULz
  7. Hi friends, well i have a problem with subclass on my server, i have a script for an npc that make you new sublcass, but i want to stuck all active skills, but not all pasive skills, because they have a lot of pasive skills like light armor mastery , and the wizards haves a lot of Casting speed... (C4 Server) Script Subclass Master http://pastebin.com/URzuHEMM Thanks of all
  8. withou <a </a> its working. I LOVE YOU GUYS!!! :)
  9. <a button value="Make Nobles" action="bypass -h npc_%objectId%_Quest 8204_NpcNoblesse" width=74 height=21 back="sek.cbui36" fore="sek.cbui75"> </a> Action like this?
  10. Hi , i've install a Nobless master script (C4 SERVER) , but when i talk to the Npc, and press Make noble, my client crash and apears this: Critical error: http://pastebin.com/dqqyhw1k I think that its because an error on HTML . Now the htm of the NPC (id: 66666) http://pastebin.com/v4sipNak __init__.py of the script : http://pastebin.com/vw4CRsua 1.htm: http://pastebin.com/uLcJev4T Error1.htm: http://pastebin.com/nkkgDMu1 Error2.htm: http://pastebin.com/czL30mpH End.htm: http://pastebin.com/aFTu6AM0 i put it on : data/scripts/quest/8204_NpcNoblesse, and i add on scripts.cfg like: quests/8204_NpcNoblesse/__init__.py Thanks!!
  11. Hi friends, well i add a quest script to my server. The script dont show any error, but when i spawn the npc and i talk him, he doesnt show nothing about the script. Any idea? Thanks and sorry for my bad english
  12. I've do it , but, someone saids to me that is not declared initial state, and that onTalk method is wrong, have you any idea? . Its l2j C4
  13. Thanks, i change the npc id, but now i think that i have to do a html called 1.htm ?, and i dont know what put on 1.html
  14. Someone can help me to do an html for this code? Its an NOBLESS NPC script 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 = "8204_NpcNoblesse" NPC=[100009] GOLDBAR= 3470 NOBLESS_TIARA = 7694 QuestId = 8204 QuestName = "NpcNoblesse" QuestDesc = "custom" InitialHtml = "1.htm" print "INFO Loaded: Noblesse Manager" class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onEvent(self,event,st): htmltext = event count=st.getQuestItemsCount(GOLDBAR) if count < 250 and st.getPlayer().getLevel() < 75 : htmltext = "<html><head><body>Sorry, but you dont have enought gb or u low lvl</body></html>" elif st.getPlayer().isNoble() == 1 : htmltext = "<html><head><body>Sorry, But you are alrdy nobles</body></html>" else: st.getPlayer().setTarget(st.getPlayer()) if event == "2": st.takeItems(GOLDBAR,250) st.getPlayer().setNoble(true) st.giveItems(NOBLESS_TIARA,1) st.playSound("ItemSound.quest_finish") st.setState(State.COMPLETED) return "End.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><head><body>I have nothing to say to you</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) Thanks, sorry for my bad english, and i dont know how to create an htm, for the npc 100009 .
×
×
  • Create New...