spec Posted September 23, 2007 Posted September 23, 2007 Hey!Does anyone have any custom quests to become noblese with adena,raid?upload if y do plz! :-[
0 Flare Posted September 23, 2007 Posted September 23, 2007 import sys from java.util import Iterator from net.sf.l2j.gameserver.model.quest import State from net.sf.l2j.gameserver.model.quest import QuestState from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest qn = "996_Nobles" #NPC TONY_THE_CAT = 32102 #QUEST ITEM MEDALS = 6392 GLITTERING_MEDALS = 6393 NOBLESS_TIARA = 7694 class Quest(JQuest): def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onEvent(self,event,st): htmltext = event count1=st.getQuestItemsCount(6392) count2=st.getQuestItemsCount(6393) if count1 < 1 or count2 < 1 : htmltext = "<html><head><body>You need medals to become Noblesse...</body></html>" else: #Nobles if event == "1": st.getPlayer().setNoble(1) st.giveItems(7694,1) st.takeItems(6392,1) st.takeItems(6393,1) st.playSound("ItemSound.quest_finish") return "You are Nobles now" st.setState(COMPLETED) if htmltext != event: st.setState(COMPLETED) st.exitQuest(1) return htmltext def onTalk (self,npc,player): st = player.getQuestState("996_Nobles") if not st: return "<html><head><body>I have no tasks for you</body></head> npcId = npc.getNpcId() if npcId == 32102: st.setState(STARTED) htmltext = "1.htm" return htmltext QUEST=Quest(996,"996_Nobles","Nobles") CREATED=State('Start',QUEST) STARTED=State('Started',QUEST) COMPLETED=State('Completed',QUEST) QUEST.setInitialState(CREATED) QUEST.addStartNpc(32102) QUEST.addTalkId(32102) print "importing quest data: 996 nobles" <html> <body> <table width="260"> <tr>Nobles Man<br><br> Hey you! I have an offer to make to you.I can give the Noblesse Status without doing Quest.The only thing that i want is medals.<br> ------------------------------------<br> Noblesse Requirments<br> ------------------------------------<br> Medals<br> Glittering Medals </tr> <tr> <td> </td> </tr> </table> <table width="260"> <tr> <td><a action="bypass -h Quest 996_Nobles 1"><font color="LEVEL">Noblesse Status</font></a></td> </tr> </table> </body> </html> This Quest give you Noble Status with 1 medal and 1 glittering medal
0 spec Posted September 24, 2007 Author Posted September 24, 2007 Sorry that i ask too much...But can y fix the quest and upload it ready so i can download it?i tried to fix it but i can't :( sorry 4 asking....
Question
spec
Hey!Does anyone have any custom quests to become noblese with adena,raid?upload if y do plz! :-[
3 answers to this question
Recommended Posts