Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
Ищу НПЦ Enchanter для l2jfree
#1
Ребят, нужен срочно НПЦ Enchanter для l2jfree последних релизов (1.2.3.+). Какие не пробовал - выдает ошибка синтаксиса...

Надеюсь на Вашу помощь, ибо больше никто не может мне помочь Sad

Добавлено через 6 часов 1 минуту
Ну пожалуйста, помогите кто-нибудь.. Или переделайте уже имеющегося под l2jfree, а то я в питоне совсем не шарю...

Ошибка сдежующая:


Traceback (innermost last):
(no code object) at line 0
SyntaxError: ('invalid syntax', ('__init__.py', 24, 1, 'def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)'))

Сам код:
Код:
class Quest (JQuest) :
def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)
def onEvent (self,event,st) :
  htmltext = " "
  if event == "1" :
    itm = st.getItemEquipped(1)
    enchlv = st.getEnchantLevel(itm)
    enchnew = enchlv + ench
    if st.getQuestItemsCount(SCROLL_ARMOR) < NUM :
      htmltext="Lack of scrolls"
      st.exitQuest(1)
    elif st.getQuestItemsCount(itm) >= 2 :
      htmltext="<html><head>The same item lies in your inventory.</body></html>"
      st.exitQuest(1)
    elif itm == 0 :
      htmltext = "<html><head>You should ware an item to proceed enchant!</body></html>"
      st.exitQuest(1)
    elif enchnew > max :
      htmltext = "<html><head>You're unable to enchant over the limit!</body></html>"
      st.exitQuest(1)
    else:
      st.takeItems(SCROLL_ARMOR,NUM)
      st.takeItems(itm,1)
      st.giveItems(itm,1,enchnew)
      htmltext = "Earring has been enchanted"
#=========================================
  if event == "4" :
    itm = st.getItemEquipped(4)
    enchlv = st.getEnchantLevel(itm)
    enchnew = enchlv + ench
    if st.getQuestItemsCount(SCROLL_ARMOR) < NUM :
      htmltext="Lack of scrolls"
      st.exitQuest(1)
    elif st.getQuestItemsCount(itm) >= 2 :
      htmltext="<html><head>The same item lies in your inventory. </body></html>"
      st.exitQuest(1)
    elif itm == 0 :
      htmltext = "<html><head>You should ware an item to proceed enchant!</body></html>"
      st.exitQuest(1)
    elif enchnew > max :
      htmltext = "<html><head>You're unable to enchant over the limit!</body></html>"
      st.exitQuest(1)
    else:
      st.takeItems(SCROLL_ARMOR,NUM)
      st.takeItems(itm,1)
      st.giveItems(itm,1,enchnew)
      htmltext = "Necklace has been enchanted"
#=========================================
  if event == "5" :
    itm = st.getItemEquipped(5)
    enchlv = st.getEnchantLevel(itm)
    enchnew = enchlv + ench
    if st.getQuestItemsCount(SCROLL_ARMOR) < NUM :
      htmltext="Lack of scrolls"
      st.exitQuest(1)
    elif st.getQuestItemsCount(itm) >= 2 :
      htmltext="<html><head>The same item lies in your inventory. </body></html>"
      st.exitQuest(1)
    elif itm == 0 :
      htmltext = "<html><head>You should ware an item to proceed enchant!</body></html>"
      st.exitQuest(1)
    elif enchnew > max :
      htmltext = "<html><head>You're unable to enchant over the limit!</body></html>"
      st.exitQuest(1)
    else:
      st.takeItems(SCROLL_ARMOR,NUM)
      st.takeItems(itm,1)
      st.giveItems(itm,1,enchnew)
      htmltext = "Ring has been enchanted"
#=========================================
  if event == "6" :
    itm = st.getItemEquipped(6)
    enchlv = st.getEnchantLevel(itm)
    enchnew = enchlv + ench
    if st.getQuestItemsCount(SCROLL_ARMOR) < NUM :
      htmltext="Lack of scrolls"
      st.exitQuest(1)
    elif st.getQuestItemsCount(itm) >= 2 :
      htmltext="<html><head>The same item lies in your inventory. </body></html>"
      st.exitQuest(1)
    elif itm == 0 :
      htmltext = "<html><head>You should ware an item to proceed enchant!</body></html>"
      st.exitQuest(1)
    elif enchnew > max :
      htmltext = "<html><head>You're unable to enchant over the limit!</body></html>"
      st.exitQuest(1)
    else:
      st.takeItems(SCROLL_ARMOR,NUM)
      st.takeItems(itm,1)
      st.giveItems(itm,1,enchnew)
      htmltext = "Ring has been enchanted"
#=========================================
  if event == "10" :
    itm = st.getItemEquipped(10)
    enchlv = st.getEnchantLevel(itm)
    enchnew = enchlv + ench
    if st.getQuestItemsCount(SCROLL_ARMOR) < NUM :
      htmltext="Lack of scrolls"
      st.exitQuest(1)
    elif st.getQuestItemsCount(itm) >= 2 :
      htmltext="<html><head>The same item lies in your inventory. </body></html>"
      st.exitQuest(1)
    elif itm == 0 :
      htmltext = "<html><head>You should ware an item to proceed enchant!</body></html>"
      st.exitQuest(1)
    elif enchnew > max :
      htmltext = "<html><head>You're unable to enchant over the limit!</body></html>"
      st.exitQuest(1)
    else:
      st.takeItems(SCROLL_ARMOR,NUM)
      st.takeItems(itm,1)
      st.giveItems(itm,1,enchnew)
      htmltext = "Shield has been enchanted"
#=========================================
  if event == "8" :
    itm = st.getItemEquipped(8)
    enchlv = st.getEnchantLevel(itm)
    enchnew = enchlv + ench
    if st.getQuestItemsCount(SCROLL_ARMOR) < NUM :
      htmltext="Lack of scrolls"
      st.exitQuest(1)
    elif st.getQuestItemsCount(itm) >= 2 :
      htmltext="<html><head>The same item lies in your inventory. </body></html>"
      st.exitQuest(1)
    elif itm == 0 :
      htmltext = "<html><head>You should ware an item to proceed enchant!</body></html>"
      st.exitQuest(1)
    elif enchnew > max :
      htmltext = "<html><head>You're unable to enchant over the limit!</body></html>"
      st.exitQuest(1)
    else:
      st.takeItems(SCROLL_ARMOR,NUM)
      st.takeItems(itm,1)
      st.giveItems(itm,1,enchnew)
      htmltext = "Helmet has been enchanted"
#=========================================
  if event == "2" :
    itm = st.getItemEquipped(2)
    enchlv = st.getEnchantLevel(itm)
    enchnew = enchlv + ench
    if st.getQuestItemsCount(SCROLL_ARMOR) < NUM :
      htmltext="Lack of scrolls"
      st.exitQuest(1)
    elif st.getQuestItemsCount(itm) >= 2 :
      htmltext="<html><head>The same item lies in your inventory. </body></html>"
      st.exitQuest(1)
    elif itm == 0 :
      htmltext = "<html><head>You should ware an item to proceed enchant!</body></html>"
      st.exitQuest(1)
    elif enchnew > max :
      htmltext = "<html><head>You're unable to enchant over the limit!</body></html>"
      st.exitQuest(1)
    else:
      st.takeItems(SCROLL_ARMOR,NUM)
      st.takeItems(itm,1)
      st.giveItems(itm,1,enchnew)
      htmltext = "Earring has been enchanted"
#=========================================
  if event == "11" :
    itm = st.getItemEquipped(11)
    enchlv = st.getEnchantLevel(itm)
    enchnew = enchlv + ench
    if st.getQuestItemsCount(SCROLL_ARMOR) < NUM :
      htmltext="Lack of scrolls"
      st.exitQuest(1)
    elif st.getQuestItemsCount(itm) >= 2 :
      htmltext="<html><head>The same item lies in your inventory. </body></html>"
      st.exitQuest(1)
    elif itm == 0 :
      htmltext = "<html><head>You should ware an item to proceed enchant!</body></html>"
      st.exitQuest(1)
    elif enchnew > max :
      htmltext = "<html><head>You're unable to enchant over the limit!</body></html>"
      st.exitQuest(1)
    else:
      st.takeItems(SCROLL_ARMOR,NUM)
      st.takeItems(itm,1)
      st.giveItems(itm,1,enchnew)
      htmltext = "Gloves has been enchanted"
#=========================================
(вырезал из-за сильно большого кол-ва символов)
#=========================================
  return htmltext
def onTalk (self,npc,player) :
  st = player.getQuestState(qn)
  npcId = npc.getNpcId()
  id = st.getInt("cound")
  htmltext = "<html><head><body>I have nothing to say to you</body></html>"
  if not st : return htmltext
  if npcId == NPC:
      if id == loop:
         htmltext = "You can't enchant any more"
      else:
        htmltext = "ench.htm"
  return htmltext
QUEST       = Quest(5654, qn, "custom")
QUEST.addStartNpc(NPC)                        
QUEST.addTalkId(NPC)

Помогите пожалуйста.. Я уже не знаю что делать...
Ответ
#2
сылку дай на него постараемся помоч
Ответ


Возможно похожие темы ...
Тема Автор Ответы Просмотры Последний пост
  L2jfree vitality operatorr 5 3,077 12-10-2010, 01:25 AM
Последний пост: DudeLu
  l2jfree 8217 - ошибка xSkyRagex 0 1,444 04-11-2010, 08:02 AM
Последний пост: xSkyRagex
  L2jFree компиляция Owned 4 2,572 04-01-2010, 02:53 AM
Последний пост: jonnyzero
  NPC Enchanter Дайте плиз Nirox 0 1,947 01-29-2010, 05:14 PM
Последний пост: Nirox
  Место рождения чаров в l2jfree. svGhost 4 2,585 01-22-2010, 02:10 PM
Последний пост: svGhost
  Нужна помощь по l2jfree nelegal 9 5,379 12-20-2009, 04:29 AM
Последний пост: nelegal
  Опыт в пати на сборке L2jfree lass 1 2,067 10-06-2009, 08:50 PM
Последний пост: IgorNox
  Компиль логина и ядра у l2jFREE MarShallx 18 4,824 09-21-2009, 09:13 PM
Последний пост: DorianGrey
  Ява сервер от команды L2jFree Gracia Final (CT2.3) ревизия 6378 _NEO_PK 4 4,467 08-02-2009, 02:07 PM
Последний пост: PROGRAMMATOR
  Помогите с Компиляцией l2jfree IL drdex 0 2,885 08-01-2009, 03:20 PM
Последний пост: drdex

Перейти к форуму:


Пользователи, просматривающие эту тему: 1 Гость(ей)