Ir para conteúdo
  • Cadastre-se
  • 0

NPC BUFF DONATE


kristal

Pergunta

Estou criando um npc buff como seguinte script, ele da dando os buff porem nao esta cobrando a moeda ja mudei em ADENA_ID..para DONATION_ID mas nao deu certo alguem sabe como ajustar isso. ou tenha um npc buff donate para o parte final pronto. Coloquei apenas parte do script

 

 

n = "9997_NPCDonate"

 

NPC=[40009]

ADENA_ID=782911

QuestId = 9997

QuestName = "NPCDonate"

QuestDesc = "custom"

InitialHtml = "1.htm"

 

print "importing custom: 9997: NPCDonate"

 

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(ADENA_ID)

if count < 0 or st.getPlayer().getLevel() < 10 :

htmltext = "<html><head><body>Voce Nao tem Donation<br></body></html>"

else:

st.takeItems(ADENA_ID,0)

st.getPlayer().setTarget(st.getPlayer())

 

if event == "1":

st.takeItems(ADENA_ID,1)

return "1.htm"

st.setState(COMPLETED)

 

if event == "81":

st.takeItems(ADENA_ID,200)

SkillTable.getInstance().getInfo(1353,1).getEffects(st.getPlayer(),st.getPlayer(

))

SkillTable.getInstance().getInfo(1352,1).getEffects(st.getPlayer(),st.getPlayer(

))

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.