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:
When i try to talk one more time it's showing me this:
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)
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.
This specific modification was tested on a clean L2 C6 client and works perfectly. On ‘modified’ engine.dll I don’t know if it will work — find a clean engine.dll that is Windows 10 ready for C6 and try again!
sell adena
l2rebon signature x1 - 1kk = 1 dollars
l2reborn x10 - 500kk = 4.7 dollars
E-Global x Lu4 - 1kk = 2.7 dollars
BOHPTS - x20-x500 TOP PRICE
DISCORD - GODDARDSHOP
TELEGRAM - MMOPROMO
Also on sale are Epic jewelry, Clothes at a very good price
Hello everyone, Martin here - aka tehSx1, junior developer. I’m currently looking for work in private server development. I have experience working with L2JLucera, L2JEternity, L2JMobius, with Classic, Interlude, and H5 clients. The last project I participated in was L2-Avalon, a rework of Interlude using Classic files. I’m from Argentina, but I understand English very well for fluent communication.
I can work on configuration, maintenance, creating NPCs, mobs, items, fixing skills, or anything related to the server side. I also have basic knowledge to work on the client side as well. I have some self-taught knowledge of Java, so with a bit of time and ChatGPT I can get things done there too.
Anyone interested can contact me on Discord (Smookes420#4425) to discuss terms. I’m open to new opportunities and excited to take part in new projects to continue my learning process.
P.S.: I’ve been playing Lineage 2 since I was 6 years old on Chronicle C1. I’m 26 now. It’s all about the passion for the game, bro.
Question
millers
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:
When i try to talk one more time it's showing me this:
So Here is my __init__ starting:
And here is end of it :
And i'm using l2jserver IL
i hope someone can help me ! ;(
1 answer to this question
Recommended Posts
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.