import sys
from com.l2jfrozen.gameserver.model.quest import State
from com.l2jfrozen.gameserver.model.quest import QuestState
from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest
#=====================#
qn = "918_DonateList" #
NPC = 300300 #
#=====================#
#=====================#
# Общая настройка #
#=====================#
Adena = 9998 #
#=====================#
#================================#
# Vesper Gold Set #
#================================#
ApellaHeavy1 = 9950 # Шлем #
ApellaHeavy2 = 9951 # Верх #
ApellaHeavy3 = 9952 # Перчатки #
ApellaHeavy4 = 9953 # Ботинки #
ApellaHeavy5 = 9954 # низ #
ApellaHEnchant = 40 # Заточена + #
ApellaHCount = 10 # Цена #
#================================#
ApellaLight1 = 9950 # Шлем #
ApellaLight2 = 9955 # Верх #
ApellaLight3 = 9956 # Перчатки #
ApellaLight4 = 9957 # Ботинки #
ApellaLight5 = 9958 # низ #
ApellaLEnchant = 40 # Заточена + #
ApellaLCount = 10 # Цена #
#================================#
ApellaRobe1 = 9950 # Шлем #
ApellaRobe2 = 9959 # Верх #
ApellaRobe3 = 9960 # Перчатки #
ApellaRobe4 = 9961 # Ботинки #
ApellaRobe4 = 9962 # низ #
ApellaREnchant = 40 # Заточена + #
ApellaRCount = 10 # Цена #
#================================#
#================================#
# Magic of Cap #
#================================#
DuskShield = 9345 # Щит #
DuskSEnchant = 0 # Заточен + #
DuskSCount = 10 # Цена #
#================================#
#================================#
# RB Jewels #
#================================#
Baium = 6658 # Баиум #
BaiumEnchant = 40 # Заточен + #
BaiumCount = 5 # Цена #
#================================#
Valakas = 6657 # Валакас #
ValakasEnchant = 40 # Заточен + #
ValakasCount = 7 # Цена #
#================================#
Zaken = 6659 # Закен #
ZakenEnchant = 40 # Заточен + #
ZakenCount = 4 # Цена #
#================================#
Antharas = 6656 # Антарас #
AntharasEnchant = 40 # Заточен + #
AntharasCount = 6 # Цена #
#================================#
AntQueen = 6660 # Ант квин #
AntQueenEnchant = 40 # Заточен + #
AntQueenCount = 3 # Цена #
#================================#
FullSetEnchant = 40 # Заточен + #
FullSetCount = 20 # Цена #
#================================#
#================================#
# Other #
#================================#
Wyvern = 8663 # Виверн #
WyvernCount = 10 # Цена #
#================================#
class Quest (JQuest) :
def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)
def onEvent (self,event,st) :
htmltext = event
if event == "1":
count=st.getQuestItemsCount(Adena)
if count < ApellaHCount :
return "noadena.htm"
else:
st.takeItems(Adena,ApellaHCount)
st.giveItems(ApellaHeavy1,1,ApellaHEnchant)
st.giveItems(ApellaHeavy2,1,ApellaHEnchant)
st.giveItems(ApellaHeavy3,1,ApellaHEnchant)
st.giveItems(ApellaHeavy4,1,ApellaHEnchant)
st.giveItems(ApellaHeavy5,1,ApellaHEnchant)
st.playSound("ItemSound.quest_itemget")
return "main.htm"
st.setState(State.COMPLETED)
if event == "2":
count=st.getQuestItemsCount(Adena)
if count < ApellaLCount :
return "noadena.htm"
else:
st.takeItems(Adena,ApellaLCount)
st.giveItems(ApellaLight1,1,ApellaLEnchant)
st.giveItems(ApellaLight2,1,ApellaLEnchant)
st.giveItems(ApellaLight3,1,ApellaLEnchant)
st.giveItems(ApellaLight4,1,ApellaLEnchant)
st.giveItems(ApellaLight5,1,ApellaLEnchant)
st.playSound("ItemSound.quest_itemget")
return "main.htm"
st.setState(State.COMPLETED)
if event == "3":
count=st.getQuestItemsCount(Adena)
if count < ApellaRCount :
return "noadena.htm"
else:
st.takeItems(Adena,ApellaRCount)
st.giveItems(ApellaRobe1,1,ApellaREnchant)
st.giveItems(ApellaRobe2,1,ApellaREnchant)
st.giveItems(ApellaRobe3,1,ApellaREnchant)
st.giveItems(ApellaRobe4,1,ApellaREnchant)
st.giveItems(ApellaRobe5,1,ApellaREnchant)
st.playSound("ItemSound.quest_itemget")
return "main.htm"
st.setState(State.COMPLETED)
Скачал донат шоп, хочу его под себя переделать. Но вот сталкнулся с проблемой.
Ставлю в продажу 5 итем.
1ые 5 итем продает норм.
2ые 5 итем тоже норм продает.
А вот 3ие итемы продает 4 итемы и выдает скрипт ерор. В чем проблема? скрипт выше.