Перейти к содержанию

Saick

Заблокирован
  • Публикаций

    731
  • Зарегистрирован

  • Посещение

  • Победитель дней

    1
  • Отзывы

    0%

Весь контент Saick

  1. Saick

    Проблема - Нету Иконки

    Скрытый текст0 9508 3 1 15 5 0 vesper_slasher.Cleo_Chaos_Master_vesper_slasher_m00_wp VesperWeaponsV4.vesper_slasher_t02_wp LineageWeaponsTex-v.weapon_vesper_slasher_i00 тут нету -1 1820 14 1 0 14 2 1 vesper_slasher.Cleo_Chaos_Master_vesper_slasher_m00_wp 1 VesperWeaponsV4.vesper_slasher_t00_wp 4 ItemSound.hammer_2 ItemSound.sword_great_3 ItemSound.sword_mid_2 ItemSound.public_sword_shing_10 ItemSound.itemdrop_sword ItemSound.itemequip_sword 10 450 180 1 5 8 0 0 0 0 325 0 1 1 1000 0 -1 0 LineageEffect.c_u006 0.000000 0.000000 0.000000 1.000000 1.000000 LineageWeapons.rangesample 1.600000 0.700000 0.700000 12.000000 0.000000 0.000000 4 -1 -1 -1 VesperIconsV4.weapon_vesper_slasher_i00
  2. Saick

    L2jfrozen

    <effect count="1" name="Buff" time="1200" val="0" stackOrder="#power" stackType="DmgShield"> <add order="0x40" stat="reflectDam" val="#power"/> ставим 7200 ну или скоко тебе нужно
  3. Saick

    Проблема - Нету Иконки

    нету 1 строчки на иконку
  4. Saick

    Не Работает Л2

    turn off antivirus
  5. Saick

    Чистый Патч Для Interlude

    http://download.l2jfrozen.com/index.php?dir=L2+System%2F
  6. конечно если внутренний ип это ип дуднс выставь internalhostname 192.168.1.3(пример) локальный ип
  7. Saick

    Sw,ipb

    http://soft.sibnet.ru/soft/?id=18465 http://dleshka.org/scripts/2006-cms-stress...l-i-nulled.html
  8. Saick

    Проблемы С Регистрацией!

    выбери базу л2бейс или РТ
  9. Saick

    Проблемы С Регистрацией!

    В этой сборки багов я манал лучше заказать норм сборку чем эту
  10. потому что у крякера руки крякнутые
  11. Saick

    File Edit

    вот вписал текст нажал ентер и сохраняй
  12. Saick

    File Edit

    в конце всегда должна быть пустая строчка
  13. Скрытый текст import sys from java.lang import Integer from com.l2jfrozen.gameserver.model.quest import State from com.l2jfrozen.gameserver.model.quest import QuestState from com.l2jfrozen.gameserver.model.quest import Quest from com.l2jfrozen.gameserver.datatables import SkillTable from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest from com.l2jfrozen.util.database import L2DatabaseFactory from com.l2jfrozen.gameserver.ai import CtrlIntention from java.lang import System ################### qn = "50301_Hero" # NPC = 300300 # ################### QuestDesc = "custom" # Папка хранения скрипта # QuestName = "Hero" # Название квеста # QuestId = 50301 # ID Квеста # ############################################################## Item = 9401 # ID валюты # Count = 1 # Цена на хиро за 1 день # Count2 = 7 # Цена на хиро за 7 дней # Count3 = 13 # Цена на хиро за 14 дней # Count4 = 30 # Цена на хиро за месяц # Count5 = 100 # Цена на хиро за год # Iname = "Wmz Coin" # Имя валюты # ############################################################## day = [] # Тут не трогаем class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onAdvEvent(self,event,npc,player) : global day st = player.getQuestState(qn) htmltext = event xHRx = 0 eventSplit = event.split(" ") event = eventSplit[0] if event == "setHero1den" : if not player.isNoble() : htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0433\u0435\u0440\u043e\u0439\u0441\u0442\u0432\u043e,<br>\u041d\u0443\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0434\u0432\u043e\u0440\u044f\u043d\u0438\u043d\u043e\u043c !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext elif player.isHero(): htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0412\u044b \u0438 \u0442\u0430\u043a \u0433\u0435\u0440\u043e\u0439 !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext elif st.getQuestItemsCount(Item) >= Count : st.takeItems(Item,Count) player.setHero(True) heroTime = 86400000 heroTime2 = System.currentTimeMillis() heroTime3 = heroTime2 + heroTime obj_Id = str(player.getObjectId()) char_name = str(player.getName()) writelog=L2DatabaseFactory.getInstance().getConnection() write=writelog.prepareStatement("INSERT INTO characters_custom_data (obj_Id,char_name,hero,noble,donator,hero_end_date) VALUES (?,?,?,?,?,?)") write.setString(1, obj_Id) write.setString(2, char_name) write.setInt(3, 1) write.setInt(4, 1) write.setInt(5, 0) write.setLong(6, heroTime3) try : write.executeUpdate() write.close() writelog.close() except : try : writelog.close() except : pass st.giveItems(6842,1) st.playSound("ItemSound.quest_finish") htmltext = "<html><title> HEROOUUU</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 \u0445\u0438\u0440\u043E \u043D\u0430 1 \u0434\u0435\u043D\u044C.</font><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br><table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" st.exitQuest(1) day = [] return htmltext elif st.getQuestItemsCount(Item) < Count : htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0423 \u0432\u0430\u0441 \u043D\u0435\u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u0432 \u0434\u043B\u044F \u0445\u0438\u0440\u043E !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext if event == "setHero7den" : if not player.isNoble() : htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0433\u0435\u0440\u043e\u0439\u0441\u0442\u0432\u043e,<br>\u041d\u0443\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0434\u0432\u043e\u0440\u044f\u043d\u0438\u043d\u043e\u043c !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext elif player.isHero(): htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0412\u044b \u0438 \u0442\u0430\u043a \u0433\u0435\u0440\u043e\u0439 !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext elif st.getQuestItemsCount(Item) >= Count2 : st.takeItems(Item,Count) player.setHero(True) heroTime = 604800000 heroTime2 = System.currentTimeMillis() heroTime3 = heroTime2 + heroTime obj_Id = str(player.getObjectId()) char_name = str(player.getName()) writelog=L2DatabaseFactory.getInstance().getConnection() write=writelog.prepareStatement("INSERT INTO characters_custom_data (obj_Id,char_name,hero,noble,donator,hero_end_date) VALUES (?,?,?,?,?,?)") write.setString(1, obj_Id) write.setString(2, char_name) write.setInt(3, 1) write.setInt(4, 1) write.setInt(5, 0) write.setLong(6, heroTime3) try : write.executeUpdate() write.close() writelog.close() except : try : writelog.close() except : pass st.giveItems(6842,1) st.playSound("ItemSound.quest_finish") htmltext = "<html><title> HEROOUUU</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 \u0445\u0438\u0440\u043E \u043D\u0430 1 \u0434\u0435\u043D\u044C.</font><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br><table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" st.exitQuest(1) day = [] return htmltext elif st.getQuestItemsCount(Item) < Count2 : htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 \u0445\u0438\u0440\u043E \u043D\u0430 7 \u0434\u043D\u0435\u0439.</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext if event == "setHero14den" : if not player.isNoble() : htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0433\u0435\u0440\u043e\u0439\u0441\u0442\u0432\u043e,<br>\u041d\u0443\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0434\u0432\u043e\u0440\u044f\u043d\u0438\u043d\u043e\u043c !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext elif player.isHero(): htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0412\u044b \u0438 \u0442\u0430\u043a \u0433\u0435\u0440\u043e\u0439 !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext elif st.getQuestItemsCount(Item) >= Count3 : st.takeItems(Item,Count) player.setHero(True) heroTime = 1209600000 heroTime2 = System.currentTimeMillis() heroTime3 = heroTime2 + heroTime obj_Id = str(player.getObjectId()) char_name = str(player.getName()) writelog=L2DatabaseFactory.getInstance().getConnection() write=writelog.prepareStatement("INSERT INTO characters_custom_data (obj_Id,char_name,hero,noble,donator,hero_end_date) VALUES (?,?,?,?,?,?)") write.setString(1, obj_Id) write.setString(2, char_name) write.setInt(3, 1) write.setInt(4, 1) write.setInt(5, 0) write.setLong(6, heroTime3) try : write.executeUpdate() write.close() writelog.close() except : try : writelog.close() except : pass st.giveItems(6842,1) st.playSound("ItemSound.quest_finish") htmltext = "<html><title> HEROOUUU</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 \u0445\u0438\u0440\u043E \u043D\u0430 14 \u0434\u043D\u0435\u0439.</font><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br><table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" st.exitQuest(1) day = [] return htmltext elif st.getQuestItemsCount(Item) < Count3 : htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0423 \u0432\u0430\u0441 \u043D\u0435\u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u0432 \u0434\u043B\u044F \u0445\u0438\u0440\u043E !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext if event == "setHero31den" : if not player.isNoble() : htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0433\u0435\u0440\u043e\u0439\u0441\u0442\u0432\u043e,<br>\u041d\u0443\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0434\u0432\u043e\u0440\u044f\u043d\u0438\u043d\u043e\u043c !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext elif player.isHero(): htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0412\u044b \u0438 \u0442\u0430\u043a \u0433\u0435\u0440\u043e\u0439 !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext elif st.getQuestItemsCount(Item) >= Count4 : st.takeItems(Item,Count) player.setHero(True) heroTime = 2678400000 heroTime2 = System.currentTimeMillis() heroTime3 = heroTime2 + heroTime obj_Id = str(player.getObjectId()) char_name = str(player.getName()) writelog=L2DatabaseFactory.getInstance().getConnection() write=writelog.prepareStatement("INSERT INTO characters_custom_data (obj_Id,char_name,hero,noble,donator,hero_end_date) VALUES (?,?,?,?,?,?)") write.setString(1, obj_Id) write.setString(2, char_name) write.setInt(3, 1) write.setInt(4, 1) write.setInt(5, 0) write.setLong(6, heroTime3) try : write.executeUpdate() write.close() writelog.close() except : try : writelog.close() except : pass st.giveItems(6842,1) st.playSound("ItemSound.quest_finish") htmltext = "<html><title> HEROOUUU</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 \u0445\u0438\u0440\u043E \u043D\u0430 \u043C\u0435\u0441\u044F\u0446.</font><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br><table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" st.exitQuest(1) day = [] return htmltext elif st.getQuestItemsCount(Item) < Count4 : htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0423 \u0432\u0430\u0441 \u043D\u0435\u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u0432 \u0434\u043B\u044F \u0445\u0438\u0440\u043E !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext if event == "setHeroGod" : if not player.isNoble() : htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0433\u0435\u0440\u043e\u0439\u0441\u0442\u0432\u043e,<br>\u041d\u0443\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0434\u0432\u043e\u0440\u044f\u043d\u0438\u043d\u043e\u043c !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext elif player.isHero(): htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0412\u044b \u0438 \u0442\u0430\u043a \u0433\u0435\u0440\u043e\u0439 !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext elif st.getQuestItemsCount(Item) >= Count5 : st.takeItems(Item,Count) player.setHero(True) heroTime = 31536000000 heroTime2 = System.currentTimeMillis() heroTime3 = heroTime2 + heroTime obj_Id = str(player.getObjectId()) char_name = str(player.getName()) writelog=L2DatabaseFactory.getInstance().getConnection() write=writelog.prepareStatement("INSERT INTO characters_custom_data (obj_Id,char_name,hero,noble,donator,hero_end_date) VALUES (?,?,?,?,?,?)") write.setString(1, obj_Id) write.setString(2, char_name) write.setInt(3, 1) write.setInt(4, 1) write.setInt(5, 0) write.setLong(6, heroTime3) try : write.executeUpdate() write.close() writelog.close() except : try : writelog.close() except : pass st.giveItems(6842,1) st.playSound("ItemSound.quest_finish") htmltext = "<html><title> HEROOUUU</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 \u0445\u0438\u0440\u043E \u043D\u0430 \u0433\u043E\u0434.</font><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br><table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" st.exitQuest(1) day = [] return htmltext elif st.getQuestItemsCount(Item) < Count5 : htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0423 \u0432\u0430\u0441 \u043D\u0435\u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u0432 \u0434\u043B\u044F \u0445\u0438\u0440\u043E !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext def onTalk(self,npc,player) : htmltext = "Sorry !" st = player.getQuestState(qn) if not st : st = self.newQuestState(player) htmltext = "start.htm" return htmltext QUEST = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc) QUEST.addStartNpc(NPC) QUEST.addTalkId(NPC)
  14. сейчас доделаем
  15. так как я не успел сделать вот поправил под фрозенов херо нпц лакосты Скрытый текст import sys from java.lang import Integer from com.l2jfrozen.gameserver.model.quest import State from com.l2jfrozen.gameserver.model.quest import QuestState from com.l2jfrozen.gameserver.model.quest import Quest from com.l2jfrozen.gameserver.datatables import SkillTable from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest from com.l2jfrozen.util.database import L2DatabaseFactory from com.l2jfrozen.gameserver.ai import CtrlIntention from java.lang import System ################### qn = "50301_Hero" # NPC = 300300 # ################### QuestDesc = "custom" # Папка хранения скрипта # QuestName = "Hero" # Название квеста # QuestId = 50301 # ID Квеста # ############################################################## Item = 9401 # ID валюты # Count = 1 # Цена на хиро за 1 день # Count2 = 7 # Цена на хиро за 7 дней # Count3 = 13 # Цена на хиро за 14 дней # Count4 = 30 # Цена на хиро за месяц # Count5 = 100 # Цена на хиро за год # Iname = "Wmz Coin" # Имя валюты # ############################################################## day = [] # Тут не трогаем class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onAdvEvent(self,event,npc,player) : global day st = player.getQuestState(qn) htmltext = event xHRx = 0 eventSplit = event.split(" ") event = eventSplit[0] if event == "setHero1den" : if not player.isNoble() : htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0433\u0435\u0440\u043e\u0439\u0441\u0442\u0432\u043e,<br>\u041d\u0443\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0434\u0432\u043e\u0440\u044f\u043d\u0438\u043d\u043e\u043c !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext elif player.isHero(): htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0412\u044b \u0438 \u0442\u0430\u043a \u0433\u0435\u0440\u043e\u0439 !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext elif st.getQuestItemsCount(Item) >= Count : st.takeItems(Item,Count) player.setHero(True) heroTime = 86400000 heroTime2 = System.currentTimeMillis() heroTime3 = heroTime2 + heroTime obj_Id = str(player.getObjectId()) char_name = str(player.getName()) writelog=L2DatabaseFactory.getInstance().getConnection() write=writelog.prepareStatement("INSERT INTO hero_custom_data (obj_Id,char_name,hero,hero_end_date) VALUES (?,?,?,?)") write.setString(1, obj_Id) write.setString(2, char_name) write.setInt(3, 1) write.setLong(4, heroTime3) try : write.executeUpdate() write.close() writelog.close() except : try : writelog.close() except : pass st.giveItems(6842,1) st.playSound("ItemSound.quest_finish") htmltext = "<html><title> HEROOUUU</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 \u0445\u0438\u0440\u043E \u043D\u0430 1 \u0434\u0435\u043D\u044C.</font><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br><table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" st.exitQuest(1) day = [] return htmltext elif st.getQuestItemsCount(Item) < Count : htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0423 \u0432\u0430\u0441 \u043D\u0435\u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u0432 \u0434\u043B\u044F \u0445\u0438\u0440\u043E !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext if event == "setHero7den" : if not player.isNoble() : htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0433\u0435\u0440\u043e\u0439\u0441\u0442\u0432\u043e,<br>\u041d\u0443\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0434\u0432\u043e\u0440\u044f\u043d\u0438\u043d\u043e\u043c !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext elif player.isHero(): htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0412\u044b \u0438 \u0442\u0430\u043a \u0433\u0435\u0440\u043e\u0439 !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext elif st.getQuestItemsCount(Item) >= Count2 : st.takeItems(Item,Count) player.setHero(True) heroTime = 604800000 heroTime2 = System.currentTimeMillis() heroTime3 = heroTime2 + heroTime obj_Id = str(player.getObjectId()) char_name = str(player.getName()) writelog=L2DatabaseFactory.getInstance().getConnection() write=writelog.prepareStatement("INSERT INTO hero_custom_data (obj_Id,char_name,hero,hero_end_date) VALUES (?,?,?,?)") write.setString(1, obj_Id) write.setString(2, char_name) write.setInt(3, 1) write.setLong(4, heroTime3) try : write.executeUpdate() write.close() writelog.close() except : try : writelog.close() except : pass st.giveItems(6842,1) st.playSound("ItemSound.quest_finish") htmltext = "<html><title> HEROOUUU</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 \u0445\u0438\u0440\u043E \u043D\u0430 1 \u0434\u0435\u043D\u044C.</font><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br><table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" st.exitQuest(1) day = [] return htmltext elif st.getQuestItemsCount(Item) < Count2 : htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 \u0445\u0438\u0440\u043E \u043D\u0430 7 \u0434\u043D\u0435\u0439.</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext if event == "setHero14den" : if not player.isNoble() : htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0433\u0435\u0440\u043e\u0439\u0441\u0442\u0432\u043e,<br>\u041d\u0443\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0434\u0432\u043e\u0440\u044f\u043d\u0438\u043d\u043e\u043c !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext elif player.isHero(): htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0412\u044b \u0438 \u0442\u0430\u043a \u0433\u0435\u0440\u043e\u0439 !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext elif st.getQuestItemsCount(Item) >= Count3 : st.takeItems(Item,Count) player.setHero(True) heroTime = 1209600000 heroTime2 = System.currentTimeMillis() heroTime3 = heroTime2 + heroTime obj_Id = str(player.getObjectId()) char_name = str(player.getName()) writelog=L2DatabaseFactory.getInstance().getConnection() write=writelog.prepareStatement("INSERT INTO hero_custom_data (obj_Id,char_name,hero,hero_end_date) VALUES (?,?,?,?)") write.setString(1, obj_Id) write.setString(2, char_name) write.setInt(3, 1) write.setLong(4, heroTime3) try : write.executeUpdate() write.close() writelog.close() except : try : writelog.close() except : pass st.giveItems(6842,1) st.playSound("ItemSound.quest_finish") htmltext = "<html><title> HEROOUUU</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 \u0445\u0438\u0440\u043E \u043D\u0430 14 \u0434\u043D\u0435\u0439.</font><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br><table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" st.exitQuest(1) day = [] return htmltext elif st.getQuestItemsCount(Item) < Count3 : htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0423 \u0432\u0430\u0441 \u043D\u0435\u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u0432 \u0434\u043B\u044F \u0445\u0438\u0440\u043E !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext if event == "setHero31den" : if not player.isNoble() : htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0433\u0435\u0440\u043e\u0439\u0441\u0442\u0432\u043e,<br>\u041d\u0443\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0434\u0432\u043e\u0440\u044f\u043d\u0438\u043d\u043e\u043c !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext elif player.isHero(): htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0412\u044b \u0438 \u0442\u0430\u043a \u0433\u0435\u0440\u043e\u0439 !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext elif st.getQuestItemsCount(Item) >= Count4 : st.takeItems(Item,Count) player.setHero(True) heroTime = 2678400000 heroTime2 = System.currentTimeMillis() heroTime3 = heroTime2 + heroTime obj_Id = str(player.getObjectId()) char_name = str(player.getName()) writelog=L2DatabaseFactory.getInstance().getConnection() write=writelog.prepareStatement("INSERT INTO hero_custom_data (obj_Id,char_name,hero,hero_end_date) VALUES (?,?,?,?)") write.setString(1, obj_Id) write.setString(2, char_name) write.setInt(3, 1) write.setLong(4, heroTime3) try : write.executeUpdate() write.close() writelog.close() except : try : writelog.close() except : pass st.giveItems(6842,1) st.playSound("ItemSound.quest_finish") htmltext = "<html><title> HEROOUUU</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 \u0445\u0438\u0440\u043E \u043D\u0430 \u043C\u0435\u0441\u044F\u0446.</font><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br><table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" st.exitQuest(1) day = [] return htmltext elif st.getQuestItemsCount(Item) < Count4 : htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0423 \u0432\u0430\u0441 \u043D\u0435\u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u0432 \u0434\u043B\u044F \u0445\u0438\u0440\u043E !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext if event == "setHeroGod" : if not player.isNoble() : htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0433\u0435\u0440\u043e\u0439\u0441\u0442\u0432\u043e,<br>\u041d\u0443\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0434\u0432\u043e\u0440\u044f\u043d\u0438\u043d\u043e\u043c !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext elif player.isHero(): htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0412\u044b \u0438 \u0442\u0430\u043a \u0433\u0435\u0440\u043e\u0439 !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext elif st.getQuestItemsCount(Item) >= Count5 : st.takeItems(Item,Count) player.setHero(True) heroTime = 31536000000 heroTime2 = System.currentTimeMillis() heroTime3 = heroTime2 + heroTime obj_Id = str(player.getObjectId()) char_name = str(player.getName()) writelog=L2DatabaseFactory.getInstance().getConnection() write=writelog.prepareStatement("INSERT INTO hero_custom_data (obj_Id,char_name,hero,hero_end_date) VALUES (?,?,?,?)") write.setString(1, obj_Id) write.setString(2, char_name) write.setInt(3, 1) write.setLong(4, heroTime3) try : write.executeUpdate() write.close() writelog.close() except : try : writelog.close() except : pass st.giveItems(6842,1) st.playSound("ItemSound.quest_finish") htmltext = "<html><title> HEROOUUU</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 \u0445\u0438\u0440\u043E \u043D\u0430 \u0433\u043E\u0434.</font><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br><table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" st.exitQuest(1) day = [] return htmltext elif st.getQuestItemsCount(Item) < Count5 : htmltext = "<html><title>Exclusive Shop</title><body><center><br><br>" htmltext += "<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>" htmltext += u"<font color=\"LEVEL\">\u0423 \u0432\u0430\u0441 \u043D\u0435\u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u0432 \u0434\u043B\u044F \u0445\u0438\u0440\u043E !</font>" htmltext += u"<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><br>" htmltext += u"<table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table>" htmltext += "</center></body></html>" return htmltext def onTalk(self,npc,player) : htmltext = "Sorry !" st = player.getQuestState(qn) if not st : st = self.newQuestState(player) htmltext = "start.htm" return htmltext QUEST = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc) QUEST.addStartNpc(NPC) QUEST.addTalkId(NPC)
  16. Saick

    Ищу Прмые Руки

    У меня не было не 1 ошибки если у вас такие кривые руки что вы не можете нормально установить сборку тогда вам надобно обратится к врачу(без обид)
  17. Saick

    Ищу Прмые Руки

    Сравнивая вашу команду и фрозенов То фрозены опередили вашу команду на тысячу лет на данный момент самая лучшая сборка
  18. а сохранить старый не дано?
  19. могу попробовать сделать тебе на сколько дней чтоб выдавало ?
  20. Saick

    Кто Создаст*?

    http://www.ayola.net/ вот тебе хостинг бесплатный
  21. Saick

    Кто Создаст*?

    Просто так тратить своё время не кто не будет
  22. скил такой? <skill id="619" levels="1" name="Transform Dispel"> <set name="target" val="TARGET_SELF" /> <set name="skillType" val="TRANSFORMDISPEL" /> <set name="operateType" val="OP_ACTIVE" /> <set name="hitTime" val="2500" /> </skill>
  23. 1.в базе находишь итем и в столбике прайс ставишь цену 2.в базе находишь нпц и в столбике мпрег увеличиваешь на сколько тебе нужно 3.не понел вопрос
×
×
  • Создать...