Ir para conteúdo
  • Cadastre-se
  • 0

npc


garuda

Pergunta

uso uma reyver l2 emu gracia pt2 ..gostaria de saber se tem como configurar os buff para da all..sem precisar fica bufando buff por buff tipo,voce clica em all fight e ele buffa completo minha configuracao

do meu buff ta assim

 

 

# Created by Charus

import sys

from net.l2emuproject.gameserver.datatables import SkillTable

from net.l2emuproject.gameserver.model.quest import State

from net.l2emuproject.gameserver.model.quest import QuestState

from net.l2emuproject.gameserver.model.quest.jython import QuestJython as JQuest

from net.l2emuproject.gameserver.templates.skills import L2SkillType

 

qn = "9998_AIOBuffer"

 

# NPC

NPC = 31227

 

BUFFLIST = {

#Prophet

"1204" : ["1204", "2"], "1040" : ["1040", "3"], "1068" : ["1068", "3"], "1036" : ["1036", "2"], "1035" : ["1035", "4"], "1045" : ["1045", "6"], "1048" : ["1048", "6"], "1062" : ["1062", "2"], "1086" : ["1086", "2"], "1240" : ["1240", "3"], "1242" : ["1242", "3"], "1077" : ["1077", "3"], "1268" : ["1268", "4"], "1087" : ["1087", "3"], "1085" : ["1085", "3"], "1059" : ["1059", "3"], "1078" : ["1078", "6"], "1243" : ["1243", "6"], "1304" : ["1304", "3"],

 

#Dances

"271" : ["271", "1"], "274" : ["274", "1"], "275" : ["275", "1"], "272" : ["272", "1"], "310" : ["310", "1"], "273" : ["273", "1"], "276" : ["276", "1"], "277" : ["277", "1"], "365" : ["365", "1"], "311" : ["311", "1"], "307" : ["307", "1"], "309" : ["309", "1"],

 

#Songs

"264" : ["264", "1"], "304" : ["304", "1"], "268" : ["268", "1"], "267" : ["267", "1"], "266" : ["266", "1"], "269" : ["269", "1"], "265" : ["265", "1"], "270" : ["270", "1"], "349" : ["349", "1"], "305" : ["305", "1"], "306" : ["306", "1"], "308" : ["308", "1"], "363" : ["363", "1"], "364" : ["364", "1"],

 

#Cubics

"33" : ["33", "8"], "22" : ["22", "7"], "278" : ["278", "6"], "10" : ["10", "8"], "67" : ["67", "7"], "1279" : ["1279", "9"], "1281" : ["1281", "9"], "1280" : ["1280", "9"],

 

#Hero

"395" : ["395", "1"], "396" : ["396", "1"], "1374" : ["1374", "1"],

 

#Noble

"1323" : ["1323", "1"], "1325" : ["1325", "1"],

 

#Summons

"4699" : ["4699", "13"], "4700" : ["4700", "13"], "4702" : ["4702", "13"], "4703" : ["4703", "13"],

 

#Orc

"1006" : ["1006", "3"], "1261" : ["1261", "2"], "1250" : ["1250", "3"], "1391" : ["1391", "3"], "1390" : ["1390", "3"], "1362" : ["1362", "1"], "1363" : ["1363", "1"], "1310" : ["1310", "4"], "1309" : ["1309", "3"], "1284" : ["1284", "3"], "1249" : ["1249", "3"], "1253" : ["1253", "3"], "1008" : ["1008", "3"], "1252" : ["1252", "3"], "1004" : ["1004", "3"], "1251" : ["1251", "2"], "1010" : ["1010", "3"], "1365" : ["1365", "1"], "1009" : ["1009", "3"], "1364" : ["1364", "1"], "1007" : ["1007", "2"], "1305" : ["1305", "5"], "1005" : ["1005", "3"], "1002" : ["1002", "3"], "1308" : ["1308", "3"], "1003" : ["1003", "3"], "1260" : ["1260", "3"],

 

#Other

"1355" : ["1355", "1"], "1356" : ["1356", "1"], "1357" : ["1357", "1"], "1388" : ["1388", "3"], "1413" : ["1413", "1"], "1389" : ["1389", "3"], "1392" : ["1392", "3"], "1393" : ["1393", "3"], "1303" : ["1303", "2"], "1353" : ["1353", "1"], "1259" : ["1259", "4"], "1352" : ["1352", "1"]

}

 

class Quest (JQuest) :

 

def __init__(self, id, name, descr) : JQuest.__init__(self, id, name, descr)

 

def onAdvEvent(self, event, npc, player) :

st = player.getQuestState(qn)

if not st : st = self.newQuestState(player)

if event == "main.htm" :

htmltext = "main.htm"

elif event == "cubics.htm" :

st.set("lastHtml", str(event))

htmltext = "cubics.htm"

elif event == "dances.htm" :

st.set("lastHtml", str(event))

htmltext = "dances.htm"

elif event == "hero.htm" :

st.set("lastHtml", str(event))

htmltext = "hero.htm"

elif event == "noble.htm" :

st.set("lastHtml", str(event))

htmltext = "noble.htm"

elif event == "orc.htm" :

st.set("lastHtml", str(event))

htmltext = "orc.htm"

elif event == "other.htm" :

st.set("lastHtml", str(event))

htmltext = "other.htm"

elif event == "prophet.htm" :

st.set("lastHtml", str(event))

htmltext = "prophet.htm"

elif event == "songs.htm" :

st.set("lastHtml", str(event))

htmltext = "songs.htm"

elif event == "summons.htm" :

st.set("lastHtml", str(event))

htmltext = "summons.htm"

if event in BUFFLIST :

skillId, skillLvl = BUFFLIST[event]

skill = SkillTable.getInstance().getInfo(int(skillId), int(skillLvl))

if skill.getSkillType() == L2SkillType.SUMMON :

player.doSimultaneousCast(skill)

else :

skill.getEffects(player, player)

player.sendMessage(skill.getName()+"'s effect can be felt.")

htmltext = str(st.get("lastHtml"))

elif event == "heal" :

player.restoreHPMP()

htmltext = "main.htm"

elif event == "cancel" :

player.stopAllEffects()

player.clearSouls()

player.clearCharges()

htmltext = "main.htm"

return htmltext

 

def onTalk(self, npc, player) :

st = player.getQuestState(qn)

if not st : st = self.newQuestState(player)

htmltext = "main.htm"

return htmltext

 

QUEST = Quest(9998, qn, "custom")

 

QUEST.addStartNpc(NPC)

 

QUEST.addTalkId(NPC)

Link para o comentário
Compartilhar em outros sites

2 respostass a esta questão

Posts recomendados


Visitante
Este tópico está impedido de receber novos posts.



×
×
  • Criar Novo...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.