04-11-2012, 11:01 AM
Здравствуйте как сделать анимацию бафам, что бы была видна анимация, как баффер на персонажа ложит бафф
[SPOILER="
[SPOILER="
Открыть спойлер
Спойлер"]import sys
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
from net.sf.l2j.gameserver.datatables import SkillTable
from net.sf.l2j.gameserver.model import L2Effect
from net.sf.l2j.util import Rnd
from java.lang import System
qn = "912_buffer"
#Включение\выключение разделов. Для выключения замените ON на OFF
attack = "ON"
defence = "ON"
resist = "ON"
support = "ON"
warcryer = "ON"
overlord = "ON"
song = "ON"
dance = "ON"
noble = "ON"
summon = "ON"
cubic = "ON"
NPC = [40001]
prise_ID = 57
QuestId = 912
QuestName = "buffer"
QuestDesc = "custom"
InitialHtml = "buff.htm"
#Выставление цен на бафы
min_level = 1
max_level = 90
min_prise = 25000
buff_prise = 25000
Chant_prise = 25000
song_prise = 25000
Dance_prise = 25000
Hero_prise = 25000
Noble_prise = 25000
Summon_prise = 25000
Prophecy_prise = 25000
cubic_prise = 50000
Full_buff_f1_prise = 200000
Full_buff_f2_prise = 400000
Full_buff_f3_prise = 600000
Full_buff_m1_prise = 200000
Full_buff_m2_prise = 400000
Full_buff_m3_prise = 600000
all_song_prise = 100000
all_dance_prise = 100000
print "importing custom: 912_buffer OK"
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(prise_ID)
if count < min_prise :
htmltext = "<html><head><body>У вас не достаточно денег.</body></html>"
if st.getPlayer().getLevel() < min_level :
htmltext = "<html><head><body>У вас слишком маленький уровень.</body></html>"
if st.getPlayer().getLevel() < max_level :
htmltext = "<html><head><body>У вас слишком высокий уровень.</body></html>"
else:
st.takeItems(prise_ID,0)
st.getPlayer().setTarget(st.getPlayer())
if event == "11":
if resist == "ON":
st.takeItems(prise_ID,buff_prise)
SkillTable.getInstance().getInfo(1191,3).getEffects(st.getPlayer(),st.getPlayer())
return "buff_resist2.htm"
st.setState(COMPLETED)
else:
htmltext = "<html><head><body>Этот раздел отключен.</body></html>"
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
from net.sf.l2j.gameserver.datatables import SkillTable
from net.sf.l2j.gameserver.model import L2Effect
from net.sf.l2j.util import Rnd
from java.lang import System
qn = "912_buffer"
#Включение\выключение разделов. Для выключения замените ON на OFF
attack = "ON"
defence = "ON"
resist = "ON"
support = "ON"
warcryer = "ON"
overlord = "ON"
song = "ON"
dance = "ON"
noble = "ON"
summon = "ON"
cubic = "ON"
NPC = [40001]
prise_ID = 57
QuestId = 912
QuestName = "buffer"
QuestDesc = "custom"
InitialHtml = "buff.htm"
#Выставление цен на бафы
min_level = 1
max_level = 90
min_prise = 25000
buff_prise = 25000
Chant_prise = 25000
song_prise = 25000
Dance_prise = 25000
Hero_prise = 25000
Noble_prise = 25000
Summon_prise = 25000
Prophecy_prise = 25000
cubic_prise = 50000
Full_buff_f1_prise = 200000
Full_buff_f2_prise = 400000
Full_buff_f3_prise = 600000
Full_buff_m1_prise = 200000
Full_buff_m2_prise = 400000
Full_buff_m3_prise = 600000
all_song_prise = 100000
all_dance_prise = 100000
print "importing custom: 912_buffer OK"
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(prise_ID)
if count < min_prise :
htmltext = "<html><head><body>У вас не достаточно денег.</body></html>"
if st.getPlayer().getLevel() < min_level :
htmltext = "<html><head><body>У вас слишком маленький уровень.</body></html>"
if st.getPlayer().getLevel() < max_level :
htmltext = "<html><head><body>У вас слишком высокий уровень.</body></html>"
else:
st.takeItems(prise_ID,0)
st.getPlayer().setTarget(st.getPlayer())
if event == "11":
if resist == "ON":
st.takeItems(prise_ID,buff_prise)
SkillTable.getInstance().getInfo(1191,3).getEffects(st.getPlayer(),st.getPlayer())
return "buff_resist2.htm"
st.setState(COMPLETED)
else:
htmltext = "<html><head><body>Этот раздел отключен.</body></html>"