Jump to content
  • 0

L2j Equal top pvp/pk NPC.


booosas
 Share

Question

14 answers to this question

Recommended Posts

  • 0

FighterBoss,

 

already done it. But it saying me "you are either..etc.." thats why i'm asking for help.

 

 

import sys

from java.util                                  import Iterator

from lt.equal.gameserver.util                  import Rnd

from lt.equal.gameserver.model.quest          import State

from lt.equal.gameserver.model.quest          import QuestState

from lt.equal.gameserver.model.quest.jython    import QuestJython as JQuest

from lt.equal.gameserver.network.serverpackets import CreatureSay

from lt.equal                                  import L2DatabaseFactory

 

 

I added it to "\data\scripts" for sure tryed to add to "data\scripts\custom" it giving me error at console, failed to load.. tryed add to "data\scripts\quests" too.

Link to comment
Share on other sites

  • 0

put it at data/scripts/custom !

at this folder "custom" you will find a init.py file.

open it with notepad and you will see something like this in the...mid

'3995_echo',
'4000_ShadowWeapons',
'5000_MissQueen',
'7000_HeroItems',
'8000_RaidbossInfo',
'6050_KetraOrcSupport',
'6051_VarkaSilenosSupport'

ok you must make it like that

'3995_echo',
'4000_ShadowWeapons',
'5000_MissQueen',
'7000_HeroItems',
'8000_RaidbossInfo',
'6050_KetraOrcSupport',
'6051_VarkaSilenosSupport',
'80300_rank'

You understand what i made here?I import the folder of npc rank at this init.py .

Do it yourself and tell me results.

Link to comment
Share on other sites

  • 0

it gives error at GS console "failed to import quest: 80300_rank"

Tryed to log in and try npc its saying "you are either...etc"

 

 

P.S. at npc html ->

<button value="Lista PK/PVP" action="bypass -h npc_%objectId%_Quest 80300_rank" width=134 height=21 back="jaksonrank.bt" fore="jaksonrank.bt">

is it good? (i not copied all the html text)
Link to comment
Share on other sites

  • 0

Something you are doing wrong i am sure...( i had the same prob months ago...)

Btw inside at folder 80300_rank there is a file _init_$py.class

You must change import from there too...


it gives error at GS console "failed to import quest: 80300_rank"

Tryed to log in and try npc its saying "you are either...etc"

Be sure that you have it right,with no "," at the end ..

Make a reload,rr server and tell me results...

Link to comment
Share on other sites

  • 0

Something you are doing wrong i am sure...( i had the same prob months ago...)

Btw inside at folder 80300_rank there is a file _init_$py.class

You must change import from there too...


Be sure that you have it right,with no "," at the end ..

Make a reload,rr server and tell me results...

 

at "_init_$py.class " its changing auto when u loading GS..

 

Some people saying that it doesnt work on Equal but on others Pack working good.

Link to comment
Share on other sites

  • 0

data\scripts\custom -> __init__.py ->

__all__ = [

'3995_echo',

'4000_ShadowWeapons',

'7000_HeroItems',

'8000_RaidbossInfo',

'6050_KetraOrcSupport',

'6051_VarkaSilenosSupport',

'9999_NPCBuffer',

'999999_NPCEnchant',

'80300_rank'

]

print ""

print "importing custom data ..."

for name in __all__ :

    try :

        __import__('data.scripts.custom.'+name,globals(), locals(), ['__init__'], -1)

    except:

        print "failed to import quest : ",name

print "... done"

print ""

 

data\scripts\custom\80300_rank -> __init__.py (imports) ->

import sys

from java.util                                  import Iterator

from lt.equal.gameserver.util                  import Rnd

from lt.equal.gameserver.model.quest          import State

from lt.equal.gameserver.model.quest          import QuestState

from lt.equal.gameserver.model.quest.jython    import QuestJython as JQuest

from lt.equal.gameserver.network.serverpackets import CreatureSay

from lt.equal                                  import L2DatabaseFactory

 

Dont get, whats wrong..

Link to comment
Share on other sites

  • 0

Found problem! Fixed!

 

Problem is at:

 

data\scripts\custom\80300_rank -> __init__.py (imports) ->

Quote

import sys

from java.util                                  import Iterator

from lt.equal.gameserver.util                  import Rnd*

from lt.equal.gameserver.model.quest          import State

from lt.equal.gameserver.model.quest          import QuestState

from lt.equal.gameserver.model.quest.jython    import QuestJython as JQuest

from lt.equal.gameserver.network.serverpackets import CreatureSay

from lt.equal                                  import L2DatabaseFactory

 

* -> from lt.equal.util                  import Rnd

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock