Jump to content
  • 0

Question

Posted

hi guys..

i'am trying to make a new server but i have problem with NPC buffer ..

i get never more npc buffer files  but when i click buff me no thing happen ...

i'am use l2j sever  version : 5937

              l2j Data pack version:9641

any one can help me ..

 

Ty.

11 answers to this question

Recommended Posts

  • 0
Posted

You have to give more info. Like what pack you're using, which buffer, is the buffer core or scripted and if there are any errors at gs console.

  • 0
Posted

l2j Data pack version:9641

..............................................

 

import sys

from com.l2jserver.gameserver.model.actor.instance import L2PcInstance

from java.util import Iterator

from com.l2jserver.gameserver.datatables import SkillTable

from com.l2jserver       import L2DatabaseFactory

from com.l2jserver.gameserver.model.quest import State

from com.l2jserver.gameserver.model.quest import QuestState

from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest

 

qn = "99999_NPCBuffer"

NPCS=[9999,99999]

ADENA_ID=57

QuestId    = 99999

QuestName  = "NPCBuffer"

QuestDesc  = "custom"

 

print "######################"

print "#  NeverMore's buffer just loaded  #"

print "######################"

 

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>You not a donator!!! Come back later.<br></body></html>"

else:

st.takeItems(ADENA_ID,0)

st.getPlayer().setTarget(st.getPlayer())

 

#Cancellation

if event == "1":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4094,12).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().stopAllEffects()

return "1.htm"

st.setState(State.COMPLETED)

 

#Restore

if event == "2":

st.takeItems(ADENA_ID,0)

st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Dagger buffs

if event == "3":

st.takeItems(ADENA_ID,0)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4342,2),False,False)

st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4344,3),False,False)

st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4345,3),False,False)

st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4346,4),False,False)

st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4347,6),False,False)

st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4348,6),False,False)

st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4349,2),False,False)

st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4350,4),False,False)

st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4352,2),False,False)

st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4357,2),False,False)

st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4359,3),False,False)

st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4360,3),False,False)

st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1363,1),False,False)

st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1389,3),False,False)

st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())

return "2.htm"

st.setState(COMPLETED)

 

if htmltext != event:

st.setState(State.COMPLETED)

st.exitQuest(1)

return htmltext

     

def onTalk (self,npc,player):

return "1.htm"

 

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

 

for npcId in NPCS:

QUEST.addStartNpc(npcId)

QUEST.addTalkId(npcId)

  • 0
Posted

It looks like you have to allocate skills on that particular NPC, otherwise it counts as if it was illegal. Follow the message you receive, there's probably an associated check. Either drop the check or add skills on the given table.

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