Jump to content

Nobless script


Recommended Posts

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!

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

  • 1 year later...

THANKS ! im looking this s*it xD i go test ;)

 

Edit:

 

Damn Error 2w5oaja.jpg

 

What is wrong ?

you must register your npc into server/gameserver/data/scripts.cfg file

also wrong section

 

Link to comment
Share on other sites

i add this "custom/9998_Noble/__init__.py" in server/gameserver/data/scripts.cfg file

 

In game gameserver.bat i have error like this:

14o5fkm.jpgp

 

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)

Link to comment
Share on other sites

Are you kidding me? Linwelin requested for help on: December 21, 2007, 12:17:14 AM.

 

Topic locked. Ruter 1st warning for bumping!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...