Hi Everyone, i'am posting here because i need help whit this code from npcbuffer, well i need to know what i need to change in the code to make the NPC cast the buffs, or what I need to edit for see an animation when i press the buff button??
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 = "9977_NPCBuffer"
NPC=[7106]
ADENA_ID=57
QuestId = 9977
QuestName = "NPCBuffer"
QuestDesc = "custom"
InitialHtml = "1.htm"
print "importing custom: 9977: NPCBuffer"
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 < 15000 or st.getPlayer().getLevel() < 2 :
htmltext = "<html><head><body>No Tienes Adena.<br></body></html>"
else:
st.takeItems(ADENA_ID,0)
st.getPlayer().setTarget(st.getPlayer())
if event == "1":
st.takeItems(ADENA_ID,1000)
st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9951,5),False,False)
st.getPlayer().restoreHPMP()
return "1.htm"
st.setState(COMPLETED)
#Wind Walk
if event == "2":
st.takeItems(ADENA_ID,10000)
SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer(),st.getPlayer())
st.getPlayer().restoreHPMP()
return "2.htm"
st.setState(COMPLETED)
#Arcane Protection
if event == "3":
st.takeItems(ADENA_ID,10000)
SkillTable.getInstance().getInfo(1354,1).getEffects(st.getPlayer(),st.getPlayer())
st.getPlayer().restoreHPMP()
return "2.htm"
st.setState(COMPLETED)
#Shield
if event == "4":
st.takeItems(ADENA_ID,10000)
SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer(),st.getPlayer())
st.getPlayer().restoreHPMP()
return "2.htm"
st.setState(COMPLETED)
#Might
if event == "5":
st.takeItems(ADENA_ID,10000)
SkillTable.getInstance().getInfo(1068,3).getEffects(st.getPlayer(),st.getPlayer())
st.getPlayer().restoreHPMP()
return "2.htm"
st.setState(COMPLETED)
#Mental Shield
if event == "6":
st.takeItems(ADENA_ID,10000)
SkillTable.getInstance().getInfo(1035,4).getEffects(st.getPlayer(),st.getPlayer())
st.getPlayer().restoreHPMP()
return "2.htm"
st.setState(COMPLETED)
if htmltext != event:
st.setState(COMPLETED)
st.exitQuest(1)
return htmltext
def onTalk (self,npc,player):
st = player.getQuestState(qn)
htmltext = "<html><head><body>No Tengo Nada que decirte.</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)
with nothing more to say, thank you very much for the help ....
Francisko ^^*!
PD: i just post a part of the code, because the other repeats
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.
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/uthciha-market
https://campsite.bio/utchihaamkt
areadata 파일은 없지만 PVP zone 스크립트 폴더는 있습니다.
PVP 존 폴더의 arena zone 명령어로 arena 모드를 활성화 할 수 있습니다.
하지만 ID를 자동으로 보라색으로 바꾸는 명령이 무엇인지 알고 싶습니다.
The areadata file is not in my server pack
I can activate arena mode with the arena zone command in the PVP zone folder,
but I would like to know which command to use to automatically change the ID to purple.
The registration panel does not come with the VIP download, or is it paid separately, I would be interested in purchasing it, thank you How do I get in touch or how much it costs, I'll stay tuned.
Question
Francisko
Hi Everyone, i'am posting here because i need help whit this code from npcbuffer, well i need to know what i need to change in the code to make the NPC cast the buffs, or what I need to edit for see an animation when i press the buff button??
with nothing more to say, thank you very much for the help ....
Francisko ^^*!
PD: i just post a part of the code, because the other repeats
4 answers 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.