Jump to content
  • 0

[Request]-NoblessNpc


Question

Posted

Hi all. Can Sombody Give good and working Npc on L2jfree Datapack wich gives nobles without quest... I think I tryed all NoblessNpc in forum, but no one was working in l2jfree.. Give some Npc or suggestions? Thx.

9 answers to this question

Recommended Posts

  • 0
Posted

It seems that you didn't search enough.

 

http://www.maxcheaters.com/forum/index.php?topic=27202.0

 

Btw is so simple to make it with jscript.If it doesn't suit you try to make it your own.

  • 0
Posted

Tryed... When I replace quest and start server in console apears erorr to load whis quest.. I was used it on C6 it was working but it was not l2jfree datapack... mayby some more suggestions? ???

  • 0
Posted

The one i gave you is working on L2JFree i've tested it in the past.Maybe you are doing something wrong.

 

Well don't forget to add a

 

after the default imports..something like this

 

__all__ = [

'4000_ShadowWeapons',

'5011_l2day',

'6050_KetraOrcSupport',

'6051_VarkaSilenosSupport',

'7000_HeroItems',

'8000_RaidbossInfo',<~Don't forget to add this!

'9999_NoblesseQuest'

  • 0
Posted

http://www.maxcheaters.com/forum/index.php?topic=32361.0

---------------------------------------------------------------------------------

THIS IS FOR L2J, IF YOU WANT IT FOR ANOTHEER PACK U MUST CHANGE IMPORTS IN SCRIPT!

 

Make you nobles, without Quest,without Sub! (like w][e)

 

this code is b4 event!

 

def onEvent(self,event,st):
	htmltext = event
	count=st.getQuestItemsCount(GOLDBAR)
	if count < 10  and st.getPlayer().getLevel() < 80 :
		htmltext = "<html><head><body>You dont have enough items to use this Action.</body></html>"

	elif st.getPlayer().isHero() == 1 :
		htmltext = "<html><head><body> Sorry, You Have Already Hero Status!</body></html>"

	elif st.getQuestItemsCount(GOLDBAR) < 20 :	
                        htmltext = "<html><head><body>You dont have enough items to use this Action.</body></html>"

	else:
		st.getPlayer().setTarget(st.getPlayer())

 

the code check ...if player is already hero!

if have enought items

if player is 80 lvl +

and return some messages

 

htmltext = "<html><head><body>MESSAGE HERE</body></html>" 

<--this 1 way to return one Message like html file, u dont need to create in folder html file....)

 

----------------------------------------------------------------------------------

THIS IS THE EVENT!

			if event == "2":
			st.takeItems(GOLDBAR,20)
                                st.getPlayer().setHero(True)
                                st.giveItems(DESTINY_CIRCLET,1)
                                st.playSound("ItemSound.quest_finish")
			st.setState(State.COMPLETED)
			return "HeroFinish.htm"
                                st.exitQuest(1)	

 

THIS CODE MAKE YOU HERO

st.getPlayer().setHero(True)

 

this code take from you one item

st.takeItems(GOLDBAR,20)

 

this code give you one item

st.giveItems(DESTINY_CIRCLET,1)

 

this code return you message (name.html)<---return html file

return "HeroFinish.htm"

 

-----------------------------------------------------------------------------

 

 

 

 

 

 

  • 0
Posted

Thanks all gues for suggestions and help... I realize what whas some problem with data pack. beacouse I changed datapack in the other one l2jfree again, and most of whose Npc working okey.. ;) Thank's  :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...