Linwelin Posted December 20, 2007 Posted December 20, 2007 Hi, im trying to find a custom nobless script where you have to be lvl 80 and have 1 subclass, then you must kill 4 raid bosses and get 4 items then trade the items for a nobless tiara, then you get added to the nobless list somehow ? anyone have a script like this ? or a guide on how to make it ? please!
SoulShade Posted December 23, 2007 Posted December 23, 2007 >>Click Here<< Ok thats a Custom Nobless Quest By Liquid Ice, u can look at it and modify, its easy but u need to think. My suggestion is to make Multisell shop in the NPC to join the items the rb will drop(custom ones ofc which u shall put in the bosses) Then the requirement for being nobless is just change whats there, im not mistaken that npc asks Lunargetns and hellfire and lv 75 sub..LOok at it and change at ur way :D Hope i could help
Linwelin Posted December 24, 2007 Author Posted December 24, 2007 thanks soulshade ill take a look at it and see if i can edit it abit to suite my needs ty
ruter Posted March 18, 2009 Posted March 18, 2009 THANKS ! im looking this s*it xD i go test ;) Edit: Damn Error What is wrong ?
sτrίkε- Posted March 18, 2009 Posted March 18, 2009 THANKS ! im looking this s*it xD i go test ;) Edit: Damn Error What is wrong ? you must register your npc into server/gameserver/data/scripts.cfg file also wrong section
ruter Posted March 18, 2009 Posted March 18, 2009 i add this "custom/9998_Noble/__init__.py" in server/gameserver/data/scripts.cfg file In game gameserver.bat i have error like this: end gameserver create error files in folder 9998_Noble like this: "__init__.py.error" Error on: C:\Users\Ruter\Desktop\l2j\L2J Free Gracia Part 2\Gameserver\data\scripts\custom\9998_Noble\__init__.py.error.log Line: -1 - Column: -1 Traceback (innermost last): File "__init__.py", line 66, in ? TypeError: com.l2jfree.gameserver.model.quest.State(): expected 0 args; got 2 This is my file __init__.py: import sys from com.l2jfree.gameserver.model.actor.instance import L2PcInstance from java.util import Iterator from com.l2jfree.gameserver.datatables import SkillTable from com.l2jfree import L2DatabaseFactory from com.l2jfree.gameserver.model.quest import State from com.l2jfree.gameserver.model.quest import QuestState from com.l2jfree.gameserver.model.quest.jython import QuestJython as JQuest qn = "9998_Noble" NPC=[10003] NOBLESS_TIARA = 7694 ADENA_ID=57 InitialHtml = "1.htm" print "importing custom: 9998_Noble" 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(ADENA_ID) if count < 1 : htmltext = "<html><head><body>You dont have enough adena.</body></html>" else: if event == "1": if st.getPlayer().isNoble() : return "noble.htm" st.setState(COMPLETED) if not st.getPlayer().isSubClassActive() : return "noSub.htm" st.setState(COMPLETED) if st.getPlayer().getLevel() < 75 : return "toLow.htm" st.setState(COMPLETED) if not st.getPlayer().isNoble() : if st.getPlayer().isSubClassActive() : if st.getPlayer().getLevel() >= 75 : st.getPlayer().setNoble(True) st.giveItems(NOBLESS_TIARA,1) return "grat.htm" st.setState(COMPLETED) if event == "2": return "no.htm" st.setState(COMPLETED) if htmltext != event: st.setState(COMPLETED) st.exitQuest(1) return htmltext def onTalk (self,npc,st): htmltext = "<html><head><body>I have nothing to say to you</body></html>" st = st.getQuestState(qn) st.setState(STARTED) return InitialHtml QUEST = Quest(9998,qn,"Noble") CREATED=State('Start',QUEST) STARTED=State('Started',QUEST) COMPLETED=State('Completed',QUEST) QUEST.setInitialState(CREATED) Any Idea? Moved post ;) (plz delete this)
Dionysia Posted March 19, 2009 Posted March 19, 2009 bro u sayd: 80 Lv +1 Sub +4 Rb.... i dont see the code for sub+4 boses .... anywya if u want a nobles npc i can give link in pm
Versus Posted March 20, 2009 Posted March 20, 2009 Are you kidding me? Linwelin requested for help on: December 21, 2007, 12:17:14 AM. Topic locked. Ruter 1st warning for bumping!
Recommended Posts