Ir para conteúdo
  • Cadastre-se
  • 0

GK Global


FaRM

Pergunta

Bom, Eu estou fazendo um GK VIP, gostaria de saber, como faço para a GK utilizar um item para teleportar!

Exemplo:

So pode teleportar se tiver o item, item VIP, que fica em quest!

 

Se alguem souber, me ajuda ae!

 

OBS: fiz a teleportes em html, ja tenho o npc, mas falta o script dela pra utilizar 1 item para teleportar!

 

VLWZAO!

 

-------------------------------

 

ACHEI, OBRIGADO e DESCULPE !

 

# Script for [VIP] Teleporters

 

import sys

from com.l2jserver.gameserver.datatables import DoorTable

from com.l2jserver.gameserver.model.actor.instance import L2PcInstance

from com.l2jserver.gameserver.model.quest import State

from com.l2jserver.gameserver.model.quest import QuestState

from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest

 

 

qn = "711_VIPTeleporters"

 

 

NPCS=[711]

 

print "============================="

print " [VIP] Teleporters OK "

print "============================="

 

# Main Quest Code

class Quest (JQuest):

 

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

 

def onTalk (self,npc,player):

st = player.getQuestState(qn)

npcId = npc.getNpcId()

htmltext = None

if npcId == 711 :

if st.getQuestItemsCount(13248) == 0: #Coloque aqui o ID do Item

return "returno.htm"

htmltext = "info.htm"

player.teleToLocation(-56748,-56344,-2008) #Coloque aqui as cordenadas do local a ser teleportado!

 

 

# Quest class and state definition

QUEST = Quest(-1, qn, "Teleports")

 

# Quest NPC starter initialization

for npc in NPCS :

QUEST.addStartNpc(npc)

QUEST.addTalkId(npc)

Editado por FaRM

Entre e Confira!!!!:

 

NEW* - L2Blank Freya PvP Server

 

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.