Ir para conteúdo
  • Cadastre-se
  • 0

ENCHANT ITENS


kammilo

Pergunta

PESSOAL ALGUEM SABE COMO MUDAR O ENCHANT NO NPC ENCHANT? TIPO EU SO POSSO ENCHANT 1 ITENS SE ELE TIVER +0. MAIS EU QUERIA POR PARA ELE PODER ENCHANT SÓ QUANDO ESTIVESSE +20 ALGUEM SABE COMO?

 

import sys
from com.l2jfrozen import Config
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 = "99940_SafeEnchant"

print "Importing Custom: Auto-Enchant L2JTeon "

QuestId     = 99940
QuestName   = "SafeEnchant"
QuestDesc   = "custom"

ENCHANT_CHECK     = 20

AMOUNT_OF_ENCHANT     = 25

PAYMENT_ITEM_ID     = 93334
PAYMENT_AMOUNT     = 1

ENCHANT_NPC = 40010
weapons = ['Sword','Blunt','Dagger','Bow','Pole','Etc','Fist','Dual Sword','Dual Fist','Big Sword','Big Blunt','Ancient','Crossbow','Rapier','Dual Dagger']
armors = ['Light','Heavy','Magic','Shield','Sigil']
jewels = ['None']
acceptableItemTypes = weapons+armors+jewels

class Quest (JQuest) :

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

  def onEvent (self,event,st) :
    if event == "choose_item" :
      htmltext = ""
      for Item in st.getPlayer().getInventory().getItems():
        # given an item instance, get the item template to check what type it is
        itemType = Item.getItem().getItemType().toString()
        itemGrade = Item.getItem().getCrystalType()
        if itemType in acceptableItemTypes and itemGrade > 0 :      < EU JA MUDEI ESSE VALOR DE 0 PARA 10 MAIS NAO VAI O NPC BUGA
          htmltext += "<a action=\"bypass -h Quest 99940_SafeEnchant enchantItem_" + str(Item.getObjectId()) +"\">" + Item.getItem().getName() + "+" + str(Item.getEnchantLevel()) + "</a><br>"
      if htmltext == "":
        htmltext = "You have no enchantable items equiped or in your inventory."
      htmltext = "<html><title>Auto-Enchanter</title><body>Seu Item para ser Enchantado Precisa estar +20.<br>Por Favor Selecione Um Item a ser Enchantado na Lista Abaixo:<br><br>" + htmltext + "</body></html>

Link para o comentário
Compartilhar em outros sites

0 respostass a esta questão

Posts recomendados

Até agora não há respostas para essa pergunta

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Processando...




×
×
  • 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.