Jump to content
  • 0

[Help] Bad requestbypassToServer Using Buffer..


Question

Posted

Hello Guys ;) .. I'm searching 2 days all ready and i could not found the answer to my question.

i Have big problem with my npc buffer..

When i'm trying to talk with npc buffer it's shows me this:

questimport4.png

When i try to talk one more time it's showing me this:

questimport3.png

 

So Here is my __init__ starting:

 

import sys
from net.sf.l2j.gameserver.model.actor.instance import L2PcInstance
from java.util import Iterator
from net.sf.l2j.gameserver.datatables import SkillTable
from net.sf.l2j			       import L2DatabaseFactory
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 = "8505_Buffer"

NPC=[85050]
ADENA_ID=57
QuestId     = 8505
QuestName   = "Buffer"
QuestDesc   = "custom"
InitialHtml = "1.htm"

print "importing custom: 8505: Buffer"

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 < 0  or st.getPlayer().getLevel() < 1 :
		htmltext = "<html><head><body>Minimum Level for Buff is 1.</body></html>"
	else:
		st.takeItems(ADENA_ID,0)
		st.getPlayer().setTarget(st.getPlayer())

 

And here is end of it :

 



def onTalk (self,npc,player):
   st = player.getQuestState(qn)
   htmltext = "<html><head><body>I have nothing to say to you</body></html>"
   st.setState(State.STARTED)
   return InitialHtml

QUEST       = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc)

for npcId in NPC:
QUEST.addStartNpc(npcId)
QUEST.addTalkId(npcId)

And i'm using l2jserver IL

i hope someone can help me ! ;(

 

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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